/* ============================================================
   PEÑARANDILLA VUELA · ESTILO RÚSTICO v2
   Tierra de Alba: adobe, teja, trigo y encina.
   Tipografía: Bitter (títulos, serifa de imprenta rural)
               + Lora (texto).
   Firma visual: friso de arcos románicos, como el ábside de la
   iglesia de Nuestra Señora de la Asunción.
   ============================================================ */

:root {
    /* Paleta tierra */
    --tierra:        #36291c;   /* marrón tierra oscuro (texto, cabecera) */
    --adobe:         #7d5a36;   /* adobe / madera */
    --teja:          #a24a28;   /* teja / ladrillo mudéjar (acento principal) */
    --teja-oscura:   #7f3820;
    --trigo:         #c59a45;   /* dorado trigo (acento secundario) */
    --trigo-claro:   #e4c98a;
    --oliva:         #5e6b3c;   /* verde encina/oliva */
    --papel:         #f1e8d5;   /* fondo papel de estraza */
    --papel-oscuro:  #e6d9bd;   /* secciones alternas */
    --crema:         #faf5e9;   /* tarjetas */
    --linea:         #d4c3a0;   /* bordes suaves */

    --color-text:        var(--tierra);
    --color-text-light:  #5d4c39;

    --f-titulo: 'Bitter', Georgia, serif;
    --f-texto:  'Lora', Georgia, serif;

    --radius:    6px;
    --radius-lg: 10px;
    --border-radius-lg: 10px;
    --shadow-sm: 0 2px 6px rgba(54,41,28,.12);
    --shadow-md: 0 6px 18px rgba(54,41,28,.16);
    --shadow-lg: 0 14px 34px rgba(54,41,28,.22);

    /* Compatibilidad con estilos antiguos */
    --gradient-secondary: linear-gradient(135deg, var(--adobe), var(--teja));
}

/* ---------- Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--f-texto);
    color: var(--color-text);
    background-color: var(--papel);
    /* grano de papel sutil */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.27 0 0 0 0 0.17 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
    line-height: 1.75;
    font-size: 17px;
}

img { max-width: 100%; }

a { color: var(--teja); }
a:hover { color: var(--teja-oscura); }

::selection { background: var(--trigo); color: var(--tierra); }

/* ============================================================
   FIRMA: friso de arcos románicos
   (usado en la parte baja de la cabecera y en divisores)
   ============================================================ */
.arcos,
.section-divider {
    --arco-color: var(--teja);
    width: 220px;
    height: 16px;
    margin: .9rem auto 0;
    background:
        radial-gradient(circle at 50% 0, transparent 6px, var(--arco-color) 6.5px, var(--arco-color) 8px, transparent 8.5px);
    background-size: 22px 16px;
    background-repeat: repeat-x;
    background-position: bottom center;
}

/* ============================================================
   CABECERA Y NAVEGACIÓN
   ============================================================ */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--tierra);
    border-bottom: 4px solid var(--trigo);
    box-shadow: var(--shadow-md);
}

.navbar { width: 100%; }

.nav-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: .55rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: .7rem;
    text-decoration: none;
}

.logo {
    height: 44px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.brand-text {
    font-family: var(--f-titulo);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: .5px;
    color: var(--papel);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: .2rem;
    list-style: none;
}

.nav-link {
    display: inline-block;
    padding: .55rem .8rem;
    font-family: var(--f-titulo);
    font-weight: 600;
    font-size: .92rem;
    color: var(--trigo-claro);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color .2s, border-color .2s;
}

.nav-link:hover { color: #fff; }
.nav-link.active { color: #fff; border-bottom-color: var(--trigo); }

/* Menú desplegable */
.nav-dropdown { position: relative; }
.nav-dropdown > .nav-link { display: inline-flex; align-items: center; gap: .35em; cursor: pointer; }
.nav-dropdown .dropdown-caret { font-size: .7em; transition: transform .25s ease; }
.nav-dropdown:hover .dropdown-caret,
.nav-dropdown:focus-within .dropdown-caret { transform: rotate(180deg); }

.dropdown-menu {
    position: absolute; top: 100%; left: 0;
    min-width: 240px; margin: 0; padding: .4rem 0;
    list-style: none;
    background: var(--crema);
    border: 1px solid var(--linea);
    border-top: 3px solid var(--trigo);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 1200;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li { margin: 0; }
.dropdown-menu a {
    display: block; padding: .7rem 1.2rem;
    color: var(--tierra); text-decoration: none;
    font-family: var(--f-titulo); font-weight: 600; font-size: .92rem;
    white-space: nowrap; transition: background .15s ease, color .15s ease;
}
.dropdown-menu a:hover,
.dropdown-menu a.active { background: var(--papel-oscuro); color: var(--teja); }

/* Hamburguesa */
.hamburger { display: none; cursor: pointer; padding: .4rem; }
.hamburger span {
    display: block; width: 26px; height: 3px;
    background: var(--trigo-claro);
    margin: 5px 0; border-radius: 2px;
    transition: transform .3s, opacity .3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
    .hamburger { display: block; }
    .nav-menu {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--tierra);
        border-bottom: 4px solid var(--trigo);
        padding: .5rem 1rem 1rem;
        display: none;
    }
    .nav-menu.active { display: flex; }
    .nav-link { border-bottom: none; padding: .7rem .4rem; }
    .nav-dropdown .dropdown-caret { display: none; }
    .dropdown-menu {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: none; min-width: 0;
        padding: 0 0 .3rem 1rem; background: transparent;
    }
    .dropdown-menu a { color: var(--trigo-claro); padding: .5rem 0; }
    .dropdown-menu a:hover, .dropdown-menu a.active { background: transparent; color: #fff; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    background: var(--papel-oscuro);
    border-bottom: 1px solid var(--linea);
    padding: 4.5rem 1.5rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    text-align: center;
    overflow: hidden;
}

/* friso de arcos en la base de cada hero */
.hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 14px;
    background:
        radial-gradient(circle at 50% 0, var(--papel) 6px, var(--adobe) 6.5px, var(--adobe) 8px, var(--papel-oscuro) 8.5px);
    background-size: 24px 14px;
    background-repeat: repeat-x;
    opacity: .45;
}

.hero-compact { padding: 3.2rem 1.5rem 3rem; }

.hero-content { max-width: 760px; position: relative; z-index: 2; }

.hero-eyebrow {
    display: inline-block;
    font-family: var(--f-titulo);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--oliva);
    border-top: 1px solid var(--oliva);
    border-bottom: 1px solid var(--oliva);
    padding: .25rem .8rem;
    margin-bottom: 1.1rem;
}

.hero-title {
    font-family: var(--f-titulo);
    font-weight: 900;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.12;
    color: var(--teja);
    text-wrap: balance;
}

.hero-subtitle {
    margin-top: .8rem;
    font-size: 1.15rem;
    color: var(--color-text);
    font-style: italic;
}

.hero-description {
    margin-top: .6rem;
    color: var(--color-text-light);
}

.hero-buttons {
    margin-top: 1.8rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-image { position: relative; z-index: 2; }

.hero-logo {
    max-width: 320px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 4px solid var(--crema);
    box-shadow: var(--shadow-lg);
}

/* Hero con fotografía de fondo (El Pueblo) */
.hero-foto {
    min-height: 420px;
    background-size: cover;
    background-position: center;
}
.hero-foto .hero-overlay,
.hero-foto::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(30,22,14,.35) 0%, rgba(30,22,14,.62) 100%);
}
.hero-foto .hero-title,
.hero-foto .hero-subtitle,
.hero-foto .hero-description { color: #f6efe0; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.hero-foto .hero-eyebrow { color: var(--trigo-claro); border-color: var(--trigo-claro); }

@media (max-width: 768px) {
    .hero { padding: 3rem 1.2rem 2.6rem; gap: 1.8rem; }
    .hero-logo { max-width: 200px; }
    .hero-foto { min-height: 320px; }
}

/* ============================================================
   SECCIONES
   ============================================================ */
.section-container { padding: 4rem 1.5rem; }

.highlight-section {
    background: var(--papel-oscuro);
    border-top: 1px solid var(--linea);
    border-bottom: 1px solid var(--linea);
}

.section-content { max-width: 1180px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 2.4rem; }

.section-eyebrow {
    display: block;
    font-family: var(--f-titulo);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--oliva);
    margin-bottom: .5rem;
}

.section-header h2 {
    font-family: var(--f-titulo);
    font-weight: 800;
    font-size: clamp(1.6rem, 3.4vw, 2.2rem);
    color: var(--tierra);
    text-wrap: balance;
}

.section-intro {
    color: var(--color-text-light);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.section-text {
    max-width: 860px;
    margin: 0 auto;
}
.section-text p + p { margin-top: 1.1rem; }
.section-text p { color: var(--color-text-light); }
.section-text strong { color: var(--tierra); }

/* ============================================================
   TARJETAS
   ============================================================ */
.activities-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.4rem;
}

.activity-card {
    background: var(--crema);
    border: 1px solid var(--linea);
    border-top: 4px solid var(--trigo);
    border-radius: var(--radius);
    padding: 1.8rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-top-color: var(--teja);
}

.activity-icon { font-size: 2.4rem; margin-bottom: .7rem; }

.activity-card h3 {
    font-family: var(--f-titulo);
    font-weight: 700;
    font-size: 1.12rem;
    color: var(--teja);
    margin-bottom: .5rem;
}

.activity-card p { font-size: .95rem; color: var(--color-text-light); }

/* Tarjetas de opción (inscripción, socios) */
.option-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.6rem;
    max-width: 900px;
    margin: 2rem auto;
}

.option-card {
    background: var(--crema);
    border: 1px solid var(--linea);
    border-radius: var(--radius);
    padding: 2rem 1.6rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.option-card::before {
    content: "";
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 90px; height: 8px;
    background: radial-gradient(circle at 50% 0, transparent 4px, var(--trigo) 4.5px, var(--trigo) 6px, transparent 6.5px);
    background-size: 15px 8px;
    background-repeat: repeat-x;
}

.option-card .icon { font-size: 2.4rem; margin-bottom: .6rem; }
.option-card h3 {
    font-family: var(--f-titulo);
    color: var(--teja);
    margin-bottom: .6rem;
}
.option-card p { color: var(--color-text-light); font-size: .98rem; margin-bottom: .5rem; }

/* Tarjetas de contacto */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.4rem;
    max-width: 1000px;
    margin: 0 auto;
}
.contact-card {
    background: var(--crema);
    border: 1px solid var(--linea);
    border-top: 4px solid var(--oliva);
    border-radius: var(--radius);
    padding: 1.8rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.contact-icon { font-size: 2.2rem; margin-bottom: .6rem; }
.contact-card h3 { font-family: var(--f-titulo); color: var(--oliva); margin-bottom: .5rem; }
.contact-card p { color: var(--color-text-light); font-size: .96rem; }
.small-text { font-size: .85rem !important; font-style: italic; margin-top: .4rem; }

/* ============================================================
   BOTONES
   ============================================================ */
.btn, .btn-submit, .btn-secondary, .btn-hero, .btn-hero-secondary {
    display: inline-block;
    font-family: var(--f-titulo);
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .04em;
    padding: .8rem 1.7rem;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, color .2s, transform .15s, box-shadow .2s;
}

.btn-submit, .btn-hero {
    background: var(--teja);
    color: #fdf7ec;
    border-color: var(--teja-oscura);
    box-shadow: 0 3px 0 var(--teja-oscura);
}
.btn-submit:hover, .btn-hero:hover {
    background: var(--teja-oscura);
    transform: translateY(-2px);
    box-shadow: 0 5px 0 var(--teja-oscura);
    color: #fff;
}

.btn-secondary, .btn-hero-secondary {
    background: transparent;
    color: var(--adobe);
    border-color: var(--adobe);
}
.btn-secondary:hover, .btn-hero-secondary:hover {
    background: var(--adobe);
    color: #fdf7ec;
}

button.btn-submit { border-style: solid; }

/* ============================================================
   FORMULARIOS
   ============================================================ */
.form-card {
    background: var(--crema);
    border: 1px solid var(--linea);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 860px;
    margin: 0 auto;
    padding: 2.2rem 2rem;
}

.form-card h3 {
    font-family: var(--f-titulo);
    color: var(--tierra);
    margin-bottom: 1.4rem;
    padding-bottom: .8rem;
    border-bottom: 2px dashed var(--linea);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem 1.4rem;
}
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
    font-family: var(--f-titulo);
    font-weight: 600;
    font-size: .88rem;
    margin-bottom: .35rem;
    color: var(--adobe);
}
.required { color: var(--teja); }

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--f-texto);
    font-size: .98rem;
    color: var(--tierra);
    background: #fffdf7;
    border: 1px solid var(--linea);
    border-radius: var(--radius);
    padding: .65rem .8rem;
    transition: border-color .2s, box-shadow .2s;
}
.form-group textarea { min-height: 90px; resize: vertical; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--trigo);
    box-shadow: 0 0 0 3px rgba(197,154,69,.25);
}

.form-check {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    font-size: .9rem;
    color: var(--color-text-light);
    font-family: var(--f-texto) !important;
    font-weight: 400 !important;
}
.form-check input { margin-top: .3rem; accent-color: var(--teja); }

.form-actions {
    margin-top: 1.6rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

@media (max-width: 680px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-card { padding: 1.6rem 1.2rem; }
}

/* Alertas */
.alert {
    padding: 1rem 1.3rem;
    border-radius: var(--radius);
    font-size: .98rem;
    border: 1px solid;
}
.alert-success { background: #eef3e2; border-color: #b9c78e; color: #44521f; }
.alert-error   { background: #f7e6de; border-color: #dfab93; color: #8a3517; }

/* ============================================================
   BLOQUES ESPECIALES
   ============================================================ */
.bank-block {
    background: var(--tierra);
    color: var(--papel);
    border-radius: var(--radius-lg);
    padding: 2rem 1.8rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--adobe);
}
.bank-block h3 { font-family: var(--f-titulo); color: var(--trigo-claro); margin-bottom: 1rem; }
.bank-block p { margin-top: .35rem; }
.iban {
    font-family: 'Courier New', monospace;
    font-size: 1.15rem;
    letter-spacing: .12em;
    background: rgba(255,255,255,.09);
    border: 1px dashed var(--trigo);
    color: var(--trigo-claro);
    border-radius: var(--radius);
    padding: .7rem 1rem;
    margin: .5rem 0;
    text-align: center;
}

.poster-block {
    max-width: 560px;
    margin: 0 auto 2.4rem;
    text-align: center;
}
.poster-block img {
    width: 100%;
    border-radius: var(--radius);
    border: 8px solid var(--crema);
    outline: 1px solid var(--linea);
    box-shadow: var(--shadow-lg);
}
.poster-placeholder {
    background: var(--crema);
    border: 2px dashed var(--linea);
    border-radius: var(--radius);
    padding: 3.2rem 1.6rem;
    color: var(--color-text-light);
}
.poster-placeholder h3 { font-family: var(--f-titulo); color: var(--adobe); margin-bottom: .6rem; }

.mission-statement {
    margin-top: 2.6rem;
    background: var(--crema);
    border-left: 5px solid var(--trigo);
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: var(--shadow-sm);
    padding: 1.8rem 1.8rem;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}
.mission-statement h3 { font-family: var(--f-titulo); color: var(--teja); margin-bottom: .6rem; }
.mission-statement p { color: var(--color-text-light); font-style: italic; }

/* Cuenta atrás */
.countdown-wrapper { margin-top: 1.4rem; }
.countdown-label {
    font-family: var(--f-titulo);
    font-size: .8rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--oliva);
}
.countdown {
    margin-top: .4rem;
    font-family: var(--f-titulo);
    font-size: 1.15rem;
    color: var(--color-text);
}
.cd-num {
    display: inline-block;
    min-width: 2.3ch;
    background: var(--tierra);
    color: var(--trigo-claro);
    border-radius: var(--radius);
    padding: .18rem .45rem;
    margin: 0 .15rem;
    font-weight: 800;
}
.hero-foto .countdown { color: #f6efe0; }
.hero-foto .countdown-label { color: var(--trigo-claro); }

/* Eventos */
.event-card {
    background: var(--crema);
    border: 1px solid var(--linea);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 300px 1fr;
    overflow: hidden;
    margin: 0 auto 2rem;
    max-width: 1000px;
}
.event-img {
    background: var(--papel-oscuro);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}
.event-body { padding: 1.8rem 1.8rem; }
.event-body h3 { font-family: var(--f-titulo); color: var(--teja); font-size: 1.3rem; margin-bottom: .5rem; }
.event-meta {
    display: flex; flex-wrap: wrap; gap: .5rem 1.2rem;
    font-size: .88rem;
    font-family: var(--f-titulo);
    color: var(--adobe);
    margin-bottom: .8rem;
}
.event-body p { color: var(--color-text-light); font-size: .98rem; }

@media (max-width: 760px) {
    .event-card { grid-template-columns: 1fr; }
    .event-img { min-height: 170px; }
}

/* Contenido tipo revista (Vyjuvek) */
.medicine-content {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 2.4rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}
.medicine-info h3 {
    font-family: var(--f-titulo);
    color: var(--teja);
    margin: 1.6rem 0 .5rem;
}
.medicine-info h3:first-child { margin-top: 0; }
.medicine-info p, .medicine-info li { color: var(--color-text-light); }
.medicine-highlight { position: sticky; top: 90px; }
.highlight-box {
    background: var(--crema);
    border: 1px solid var(--linea);
    border-top: 4px solid var(--oliva);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.6rem 1.4rem;
}
.highlight-box p { margin: .45rem 0; font-size: .94rem; color: var(--color-text-light); }
.highlight-box strong { color: var(--tierra); }

@media (max-width: 860px) {
    .medicine-content { grid-template-columns: 1fr; }
    .medicine-highlight { position: static; }
}

.org-card {
    background: var(--crema);
    border: 1px solid var(--linea);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 2.2rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}
.org-card h3 { font-family: var(--f-titulo); color: var(--teja); margin-bottom: .5rem; }
.org-card p, .org-card li { color: var(--color-text-light); }

/* ============================================================
   GALERÍAS Y CARRUSEL
   ============================================================ */
.gallery-section { max-width: 980px; margin: 0 auto; }

.carousel {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 8px solid var(--crema);
    outline: 1px solid var(--linea);
    box-shadow: var(--shadow-lg);
    background: var(--tierra);
}
.carousel-container { position: relative; min-height: 320px; }
.carousel-slide { display: none; }
.carousel-slide.active { display: block; }
.carousel-slide img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}
.slide-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: linear-gradient(transparent, rgba(30,22,14,.85));
    color: #f6efe0;
    font-family: var(--f-titulo);
    font-size: .95rem;
    padding: 2rem 1.2rem .9rem;
    text-align: center;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(54,41,28,.65);
    color: var(--trigo-claro);
    border: 1px solid var(--trigo);
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 5;
    transition: background .2s;
}
.carousel-btn:hover { background: var(--teja); color: #fff; }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-dots {
    position: absolute;
    bottom: 10px; left: 0; right: 0;
    display: flex; justify-content: center; gap: .5rem;
    z-index: 5;
}
.carousel-dot {
    width: 11px; height: 11px;
    border-radius: 50%;
    background: rgba(246,239,224,.5);
    border: 1px solid var(--trigo);
    cursor: pointer;
}
.carousel-dot.active { background: var(--trigo); }

@media (max-width: 700px) {
    .carousel-slide img { height: 300px; }
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    max-width: 1050px;
    margin: 0 auto;
}
.photo-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 6px solid var(--crema);
    outline: 1px solid var(--linea);
    box-shadow: var(--shadow-sm);
    transition: transform .25s;
}
.photo-grid img:hover { transform: scale(1.03) rotate(-.5deg); }

.empty-gallery {
    background: var(--crema);
    border: 2px dashed var(--linea);
    border-radius: var(--radius);
    text-align: center;
    color: var(--color-text-light);
    padding: 2.6rem 1.5rem;
    max-width: 720px;
    margin: 0 auto;
}

/* Foto destacada (El Pueblo) */
.pueblo-foto-noche { margin: 0; }
.pueblo-foto-noche img {
    width: 100%; max-height: 520px; object-fit: cover;
    border-radius: var(--radius-lg);
    border: 10px solid var(--crema);
    outline: 1px solid var(--linea);
    box-shadow: var(--shadow-lg);
}
.pueblo-foto-noche figcaption {
    margin-top: .8rem; text-align: center;
    font-size: .95rem; color: var(--color-text-light); font-style: italic;
}

/* Bloque de ruta con enlace externo */
.ruta-block {
    max-width: 860px;
    margin: 1.8rem auto 0;
    background: var(--crema);
    border: 1px solid var(--linea);
    border-left: 5px solid var(--oliva);
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: var(--shadow-sm);
    padding: 1.6rem 1.8rem;
}
.ruta-block p { color: var(--color-text-light); margin-bottom: 1rem; }
.ruta-block .btn-secondary { border-color: var(--oliva); color: var(--oliva); }
.ruta-block .btn-secondary:hover { background: var(--oliva); color: #fdf7ec; }

/* Mapa */
.map-wrap {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 8px solid var(--crema);
    outline: 1px solid var(--linea);
    box-shadow: var(--shadow-lg);
}
.map-wrap iframe { display: block; border: 0; filter: sepia(.25) saturate(.9); }

/* ============================================================
   PIE DE PÁGINA
   ============================================================ */
.footer {
    background: var(--tierra);
    color: #d9cbb2;
    margin-top: 3rem;
    border-top: 6px solid var(--trigo);
    position: relative;
}
.footer::before {
    content: "";
    position: absolute; top: -20px; left: 0; right: 0;
    height: 14px;
    background: radial-gradient(circle at 50% 100%, transparent 6px, var(--trigo) 6.5px, var(--trigo) 8px, transparent 8.5px);
    background-size: 24px 14px;
    background-repeat: repeat-x;
    opacity: .55;
}

.footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.footer-col h4 {
    font-family: var(--f-titulo);
    color: var(--trigo-claro);
    font-size: 1.02rem;
    letter-spacing: .06em;
    margin-bottom: .8rem;
}

.footer-logo {
    height: 58px; width: auto;
    max-width: 160px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: .7rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.footer-col p { font-size: .92rem; margin-bottom: .4rem; }
.footer-mission { color: var(--trigo-claro); font-style: italic; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a, .footer-col a {
    color: #d9cbb2;
    text-decoration: none;
    font-size: .92rem;
    transition: color .2s;
}
.footer-links a:hover, .footer-col a:hover { color: var(--trigo-claro); }

.footer-bottom {
    border-top: 1px solid rgba(217,203,178,.25);
    text-align: center;
    padding: 1.2rem 1.5rem 1.5rem;
    font-size: .85rem;
}
.footer-bottom p { margin: .2rem 0; }

/* ============================================================
   COOKIES
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--tierra);
    border-top: 3px solid var(--trigo);
    z-index: 2000;
    box-shadow: 0 -6px 20px rgba(0,0,0,.25);
}
.cookie-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.cookie-content p { color: #d9cbb2; font-size: .9rem; flex: 1; min-width: 260px; }
.cookie-content a { color: var(--trigo-claro); }
.btn-cookie {
    background: var(--trigo);
    color: var(--tierra);
    border: none;
    font-family: var(--f-titulo);
    font-weight: 700;
    padding: .6rem 1.6rem;
    border-radius: var(--radius);
    cursor: pointer;
}
.btn-cookie:hover { background: var(--trigo-claro); }

/* ============================================================
   PÁGINAS LEGALES
   ============================================================ */
.legal-content {
    max-width: 860px;
    margin: 0 auto;
    background: var(--crema);
    border: 1px solid var(--linea);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 2.4rem 2.2rem;
}
.legal-content h2 { font-family: var(--f-titulo); color: var(--teja); margin: 1.4rem 0 .5rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--color-text-light); font-size: .96rem; margin-bottom: .6rem; }

/* ============================================================
   ACCESIBILIDAD Y DETALLES
   ============================================================ */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--trigo);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
}
