/* Festival de la Lana 2026 — styles.css */

/* -------------------------------------------------------------------------- */
/*                              ACCESSIBILITY                                 */
/* -------------------------------------------------------------------------- */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* -------------------------------------------------------------------------- */
/*                                   FONTS                                    */
/* -------------------------------------------------------------------------- */

@font-face {
    font-family: 'League Spartan';
    src: url('assets/fonts/LeagueSpartan-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Edu SA Beginner';
    src: url('assets/fonts/EduSABeginner-VariableFont_wght.ttf') format('truetype');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

/* -------------------------------------------------------------------------- */
/*                                 VARIABLES                                  */
/* -------------------------------------------------------------------------- */

:root {
    --color-brown-main: #8a3821;
    --color-brown-accent: #D4A373;
    --color-brown-dropdown: #ac6741;
    --color-gold: #D9A952;
    --color-gold-social: #bf9655;
    --color-green-olive: #9AAF7C;
    --color-pink: #C5959C;
    --color-cream: #F9F7F2;
    --color-white: #FFFFFF;
    --color-dark: #222222;
    --color-text-gray: #4f4f4f;
    --color-brown-dark: #7A3B20;
    --color-green-badge: #6B7D4A;
    --color-brown-warm: #B07850;
    --color-crimson: #C24B6B;
    
    /* Alias semánticos (usados por páginas de bases) */
    --color-primary: #8a3821;
    --color-secondary: #F9F7F2;
    --color-light: #FFFFFF;

    --font-primary: 'Inter', sans-serif;
    --font-headings: 'League Spartan', sans-serif;
    --font-script: 'Edu SA Beginner', cursive;
    --font-serif: 'Playfair Display', serif;
}

/* -------------------------------------------------------------------------- */
/*                               RESET & BASE                                 */
/* -------------------------------------------------------------------------- */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-white);
    color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--color-gold);
    outline-offset: 2px;
    border-radius: 2px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

/* Utility Classes */
.link-more {
    color: var(--color-brown-main);
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 600;
    font-size: 1.05rem;
    border-bottom: 1px solid currentColor;
    display: inline-block;
    margin-top: 0.5rem;
}

.section-title {
    font-family: var(--font-headings);
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    color: var(--color-brown-main);
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title-img {
    display: block;
    max-width: 300px;
    height: auto;
    margin-bottom: 1.5rem;
}

.section-title-left {
    font-family: var(--font-headings);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-brown-main);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-intro {
    margin-bottom: 3rem;
    font-size: 1.05rem;
    color: var(--color-text-gray);
    max-width: 800px;
}

/* -------------------------------------------------------------------------- */
/*                                  HEADER                                    */
/* -------------------------------------------------------------------------- */

.main-header {
    position: relative;
    width: 100%;
    height: 144px;
    background-color: var(--color-brown-main);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    z-index: 1000;
    padding: 1rem 2rem;
}

.header-logo {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.nav-logo {
    height: 55px;
    width: auto;
}

/* Nav floats bottom-right */
.header-nav {
    position: absolute;
    top: 1.2rem;
    right: 12rem;
}

.header-nav > ul {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header-nav a {
    color: var(--color-white);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.75rem 0;
    display: inline-block;
}

/* Dropdown */
.has-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-brown-dropdown);
    min-width: 200px;
    flex-direction: column;
    padding: 0.5rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.has-dropdown:hover .dropdown {
    display: flex;
}

.dropdown li {
    width: 100%;
}

.dropdown a {
    display: block;
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
}

.dropdown a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Nested dropdown (Santiago submenu) */
.has-dropdown-nested {
    position: relative;
}

.dropdown-nested {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: var(--color-brown-main);
    min-width: 180px;
    flex-direction: column;
    padding: 0.5rem 0;
    box-shadow: 4px 4px 6px rgba(0,0,0,0.1);
}

.has-dropdown-nested:hover .dropdown-nested {
    display: flex;
}

.dropdown-nested a {
    display: block;
    padding: 0.5rem 1.5rem;
    white-space: nowrap;
    font-size: 0.7rem;
}

/* Social icons — top-right, individual circles */
.header-social {
    margin-left: auto;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.header-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--color-gold-social);
    border-radius: 50%;
    overflow: hidden;
}

.header-social img {
    width: 44px;
    height: 44px;
}

/* Header transparente (solo home) */
.header-transparent {
    position: absolute;
    top: 0;
    left: 0;
    background-color: transparent;
}

/* -------------------------------------------------------------------------- */
/*                              MOBILE MENU                                   */
/* -------------------------------------------------------------------------- */

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.menu-toggle-icon span {
    display: block;
    height: 2px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* -------------------------------------------------------------------------- */
/*                                   HERO                                     */
/* -------------------------------------------------------------------------- */

.hero {
    position: relative;
    height: 90vh;
    overflow: visible;
    background-color: #000; /* Fallback */
}

/* El video sigue acotado al hero aunque overflow sea visible */
.hero > .hero-video,
.hero > .hero-overlay {
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    width: 100%;
    max-width: 700px;
    padding: 0 1rem;
}

.hero-logo {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

/* -------------------------------------------------------------------------- */
/*                               HERO CTA                                     */
/* -------------------------------------------------------------------------- */

.hero-cta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    z-index: 3;
}

.hero-cta-text {
    font-family: var(--font-script);
    font-size: 1.2rem;
    color: var(--color-white);
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-image: url('assets/img/boton-textura.jpg');
    background-size: cover;
    background-position: center;
    /* La mitad inferior del círculo sobresale del hero hacia el cream */
    transform: translateY(50%);
    transition: transform 0.3s ease;
}

.hero-cta-btn:hover {
    transform: translateY(calc(50% + 4px));
    opacity: 1;
}

/* -------------------------------------------------------------------------- */
/*                                  SEDES                                     */
/* -------------------------------------------------------------------------- */

.section-locations {
    padding: 7rem 1rem 5rem;
    background-color: var(--color-cream);
}

/* ---- Sedes: Mapa de Chile ---- */

.sedes-mapa {
    max-width: 1100px;
    margin: 0 auto;
}

.sedes-mapa-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.sedes-mapa-kicker {
    display: block;
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-brown-main);
    margin-bottom: 0.5rem;
}

.sedes-mapa-title {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 2.6rem);
    line-height: 1.1;
    color: var(--color-brown-main);
    letter-spacing: -0.01em;
    margin: 0;
}

.sedes-mapa-subtitle {
    display: block;
    font-family: var(--font-script);
    font-size: 1.6rem;
    color: var(--color-brown-accent);
    margin-top: 0.25rem;
}

.sedes-mapa-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 80px;
    align-items: flex-start;
}

/* Mapa: caja 200x620 (proporciones del handoff). El SVG mantiene su aspect
   ratio interno (155/900) y se centra dentro de la caja. */
.sedes-mapa-canvas {
    position: relative;
    width: 200px;
    aspect-ratio: 200 / 620;
    margin-top: -100px;
}

.sedes-mapa-svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Ilustraciones sobre el mapa. Posiciones en % calculadas considerando que
   el SVG con viewBox 155x900 se renderiza centrado en una caja 200x620,
   ocupando ~106.78px de ancho real (limitado por la altura).
   Tamaño = 55.6% del contenedor (= pinScale 1.3 del handoff). */
.sedes-mapa-pin {
    position: absolute;
    width: 56%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 2px 4px rgba(60,40,30,0.15));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.sedes-mapa-pin img {
    display: block;
    width: 100%;
    height: 100%;
}

.sedes-mapa-pin-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 100px;
    text-align: center;
    font-family: var(--font-script);
    font-size: 1.4rem;
    line-height: 1.05;
    color: var(--color-brown-main);
    pointer-events: none;
}

.sedes-mapa-pin:hover,
.sedes-mapa-pin:focus-visible {
    transform: translate(-50%, -50%) scale(1.08);
    filter: drop-shadow(0 4px 10px rgba(60,40,30,0.28));
    outline: none;
}

/* z-index descendente para que el label de cada pin quede encima de la
   ilustración del pin siguiente (Atacama > Santiago > Coyhaique). */
.sedes-mapa-pin--atacama   { left: 41.22%; top: 13.33%; z-index: 3; }
.sedes-mapa-pin--santiago  { left: 66.36%; top: 35%;    z-index: 2; }
.sedes-mapa-pin--coyhaique { left: 51.89%; top: 71.11%; z-index: 1; }

/* Posiciones por sede del label sobre cada ilustración */
.sedes-mapa-pin--atacama .sedes-mapa-pin-label   { top: 50%; left: 25%; }
.sedes-mapa-pin--santiago .sedes-mapa-pin-label  { top: 60%; left: 78%; }
.sedes-mapa-pin--coyhaique .sedes-mapa-pin-label { top: 88%; left: 62%; }

/* Lista de sedes */
.sedes-mapa-list {
    list-style: none;
    margin: 0;
    padding: 1.25rem 0 0;
}

.sedes-mapa-list li + li {
    margin-top: 0;
}

.sedes-mapa-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 0.25rem;
    border-bottom: 1px dashed #9a8b7c;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.sedes-mapa-row:hover,
.sedes-mapa-row:focus-visible {
    background-color: rgba(138, 56, 33, 0.04);
    padding-left: 0.75rem;
    outline: none;
}

.sedes-mapa-row--past {
    opacity: 0.88;
}

.sedes-mapa-bullet {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-brown-main);
    color: var(--color-cream);
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sedes-mapa-bullet--past {
    background-color: var(--color-green-olive);
}

.sedes-mapa-row-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sedes-mapa-city {
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--color-brown-main);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.sedes-mapa-dates {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: var(--color-brown-accent);
    line-height: 1.3;
}

.sedes-mapa-tag {
    color: var(--color-green-olive);
    font-weight: 700;
}

.sedes-mapa-cta {
    flex-shrink: 0;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--color-brown-main);
    white-space: nowrap;
    transition: transform 0.2s ease;
}

.sedes-mapa-row:hover .sedes-mapa-cta,
.sedes-mapa-row:focus-visible .sedes-mapa-cta {
    transform: translateX(4px);
}

/* Separadores decorativos */
.separador-ondulado {
    display: block;
    max-width: 500px;
    margin: 0 auto;
    padding: 1rem 0;
}

/* Badge Entrada Liberada (uso opcional como badge absoluto) */
.entrada-liberada-badge {
    max-width: 120px;
    position: absolute;
    top: -1rem;
    right: 0;
}

/* Sección Actividades */
.section-actividades {
    padding: 2rem 1rem;
    text-align: center;
}

.section-actividades img {
    max-width: 550px;
    width: 100%;
    margin: 0 auto;
    display: block;
}

/* Decoración Noticias */
.noticias-decoracion {
    display: block;
    max-width: 250px;
    margin: 0 auto -2rem auto;
}

/* Grid 3 columnas (usado en otras páginas) */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Legacy location-circle (para páginas interiores que aún las usen) */
.location-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    cursor: pointer;
}

.location-circle img {
    max-width: 280px;
    width: 100%;
    border-radius: 50%;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.4s ease,
                box-shadow 0.4s ease;
    filter: saturate(0.9);
}

.location-circle:hover img {
    transform: scale(1.08) rotate(2deg);
    filter: saturate(1.15) brightness(1.05);
    box-shadow: 0 12px 35px rgba(143, 59, 33, 0.3),
                0 0 0 4px rgba(217, 169, 82, 0.4);
}

.location-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 169, 82, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    pointer-events: none;
}

.location-circle:hover::after {
    width: 320px;
    height: 320px;
}

.location-circle .link-more {
    position: absolute;
    bottom: 2%;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-white);
    border-bottom: none;
}

div.location-circle {
    cursor: default;
    opacity: 0.7;
}

div.location-circle:hover img {
    transform: none;
    filter: saturate(0.9);
    box-shadow: none;
}

div.location-circle:hover::after {
    width: 0;
    height: 0;
}

.link-coming {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--color-text-gray);
    margin-top: 0.5rem;
    display: block;
}

/* -------------------------------------------------------------------------- */
/*                               CONVOCATORIA                                 */
/* -------------------------------------------------------------------------- */

.section-calls {
    padding: 4rem 1rem;
    background-color: var(--color-white);
}

/* Banner estilo afiche oficial (San Pedro de Atacama) */
.convocatoria-spa {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.convocatoria-spa-kicker {
    font-family: var(--font-headings);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.75rem;
    color: var(--color-crimson);
    margin-bottom: 0.25rem;
}

.convocatoria-spa-date {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--color-crimson);
    margin-bottom: 0.5rem;
}

.wave-divider {
    display: block;
    margin: 0.75rem auto 1.5rem;
}

.convocatoria-spa-block {
    background-color: var(--color-green-olive);
    padding: 2.75rem 2rem;
    margin: 0 auto;
}

.convocatoria-spa-block h2 {
    font-family: var(--font-headings);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-crimson);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.convocatoria-spa-block p {
    color: var(--color-white);
    font-size: 1.15rem;
    line-height: 1.5;
    margin: 0 auto;
    max-width: 540px;
}

.convocatoria-spa-cta {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.btn-convocatoria {
    display: inline-block;
    background-color: var(--color-brown-dark);
    color: var(--color-white);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    padding: 0.75rem 2.5rem;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s;
}

.btn-convocatoria:hover {
    background-color: var(--color-brown-main);
    transform: translateY(-2px);
    opacity: 1;
}

/* Botón secundario (outline) para acción de menor jerarquía (Postular) */
.btn-convocatoria-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--color-brown-dark);
    border: 2px solid var(--color-brown-dark);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    padding: 0.65rem 2.25rem;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s;
}

.btn-convocatoria-outline:hover {
    background-color: var(--color-brown-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    opacity: 1;
}

/* Bloque verde como encabezado de la convocatoria en página de sede */
.sede-convocatoria-inner .convocatoria-spa-block {
    max-width: 760px;
    margin-bottom: 2.5rem;
    text-align: center;
}

/* Bloque CTA dentro de la convocatoria de sede (Atacama/Coyhaique) */
.sede-convocatoria-cta {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

/* -------------------------------------------------------------------------- */
/*                              PÁGINA DE BASES                                */
/* -------------------------------------------------------------------------- */

.section-title-small {
    font-family: var(--font-headings);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.95rem;
    color: var(--color-gold);
    margin-bottom: 0.75rem;
}

.btn-primary-solid {
    display: inline-block;
    background-color: var(--color-brown-main);
    color: var(--color-white);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    padding: 0.85rem 2.75rem;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s;
}

.btn-primary-solid:hover {
    background-color: var(--color-brown-dark);
    transform: translateY(-2px);
    opacity: 1;
}

.dates-highlight {
    background-color: var(--color-cream);
    border: 1px solid #e8e4df;
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    text-align: center;
}

.dates-highlight h3 {
    font-family: var(--font-headings);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-brown-main);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.dates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.dates-grid .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 0.35rem;
}

.dates-grid .value {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--color-dark);
    font-size: 1.05rem;
}

.bases-section {
    margin-bottom: 2.5rem;
    color: var(--color-text-gray);
    line-height: 1.7;
}

.bases-section > p {
    line-height: 1.7;
}

.bullet-list {
    list-style: disc;
    padding-left: 1.25rem;
    line-height: 1.7;
}

.bullet-list li {
    margin-bottom: 0.6rem;
}

.bullet-list.accent li::marker {
    color: var(--color-gold);
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.info-card {
    background-color: var(--color-cream);
    border: 1px solid #e8e4df;
    border-radius: 10px;
    padding: 1.25rem;
}

.info-card h4 {
    font-family: var(--font-headings);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-brown-main);
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.callout-warning {
    background-color: #fbf3e3;
    border-left: 4px solid var(--color-gold);
    border-radius: 6px;
    padding: 1rem 1.25rem;
}

.callout-warning p {
    color: var(--color-brown-dark);
    line-height: 1.6;
}

/* -------------------------------------------------------------------------- */
/*                           TALLERES CAROUSEL                                */
/* -------------------------------------------------------------------------- */

.section-talleres {
    padding: 4rem 1rem;
    position: relative;
    overflow: hidden;
}

.talleres-deco {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: auto;
    pointer-events: none;
    z-index: 999;
}

.talleres-carousel {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.talleres-carousel::-webkit-scrollbar {
    display: none;
}

.talleres-carousel-track {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
}

.talleres-carousel-slide {
    flex: 0 0 280px;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-cream);
    transition: transform 0.2s;
}

.talleres-carousel-slide:hover {
    transform: translateY(-4px);
}

.talleres-carousel-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.talleres-carousel-caption {
    padding: 0.75rem 1rem;
}

.talleres-carousel-caption strong {
    display: block;
    font-family: var(--font-headings);
    font-size: 0.9rem;
    color: var(--color-brown-main);
    margin-bottom: 0.25rem;
}

.talleres-carousel-caption span {
    font-size: 0.8rem;
    color: var(--color-text-gray);
}

/* Talleres grid estático (portada) */
.talleres-home-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 1rem 0;
}

.talleres-home-grid .taller-card {
    text-decoration: none;
    color: inherit;
}

.talleres-home-grid .taller-card h4 {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.talleres-home-grid .taller-card .meta {
    font-size: 0.75rem;
}

/* -------------------------------------------------------------------------- */
/*                                 HISTORIA                                   */
/* -------------------------------------------------------------------------- */

.section-history {
    padding: 5rem 1rem;
    position: relative;
}

.historia-deco {
    position: absolute;
    top: 0.5rem;
    left: 13rem;
    width: 142px;
    height: auto;
    pointer-events: none;
    z-index: 999;
}

.grid-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.text-content p {
    font-size: 0.95rem;
    color: var(--color-text-gray);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.history-illustrations {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.history-illustrations img:first-child {
    max-width: 70%;
    position: relative;
    z-index: 1;
    border-radius: 8px;
}

.history-illustrations img:last-child {
    max-width: 55%;
    position: absolute;
    right: 0;
    top: 10%;
    z-index: 2;
    border-radius: 8px;
}

/* -------------------------------------------------------------------------- */
/*                                 NOTICIAS                                   */
/* -------------------------------------------------------------------------- */

.section-news {
    padding: 5rem 1rem;
    background-color: var(--color-cream);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.news-card {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.card-illustration {
    max-height: 120px;
    object-fit: contain;
    margin: 0 auto 1rem;
}

.news-card-date {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-brown-main);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.news-card p {
    font-size: 0.95rem;
    color: var(--color-dark);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.news-photo-placeholder {
    background-color: var(--color-pink);
    border-radius: 8px;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-white);
    font-family: var(--font-headings);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.news-photo {
    border-radius: 8px;
    overflow: hidden;
}

.news-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

/* -------------------------------------------------------------------------- */
/*                          FESTIVALES ANTERIORES                             */
/* -------------------------------------------------------------------------- */

.section-past {
    padding: 5rem 1rem;
    position: relative;
    overflow: hidden;
}

.past-deco-left {
    position: absolute;
    top: 5rem;
    left: -16px;
    width: 150px;
    height: auto;
    pointer-events: none;
    z-index: 999;
}

.past-deco-right {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 230px;
    height: auto;
    pointer-events: none;
    z-index: 999;
}

.past-card {
    text-align: center;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--color-pink);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.past-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.past-card-year {
    padding: 1rem 0 0.75rem;
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--color-dark);
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(0,0,0,0.15);
}

.past-card-photo {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.past-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.past-card:hover .past-card-photo img {
    transform: scale(1.05);
}

.past-card .link-more {
    display: block;
    padding: 0.75rem 0;
    color: var(--color-dark);
    border-bottom: none;
}

.past-card-photo:last-child {
    border-radius: 0 0 12px 12px;
}

.past-carousel {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--color-gold) transparent;
    padding-bottom: 0.5rem;
}

.past-carousel::-webkit-scrollbar {
    height: 6px;
}

.past-carousel::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: 3px;
}

.past-carousel-track {
    display: flex;
    gap: 1.5rem;
}

.past-carousel-track .past-card {
    flex: 0 0 calc((100% - 3rem) / 3);
    scroll-snap-align: start;
    min-width: 260px;
}

/* -------------------------------------------------------------------------- */
/*                                 FONDART                                    */
/* -------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------- */
/*                                 FONDART                                    */
/* -------------------------------------------------------------------------- */

.section-fondart {
    padding: 2rem 1rem;
    text-align: center;
    background-color: var(--color-white);
}

.section-fondart .fondart-credit {
    font-family: var(--font-script);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-dark);
    max-width: 700px;
    margin: 0 auto;
}

/* -------------------------------------------------------------------------- */
/*                                SPONSORS                                    */
/* -------------------------------------------------------------------------- */

.section-sponsors {
    padding: 2rem 1rem 3rem;
    border-top: 1px solid #ddd;
    background-color: var(--color-white);
}

.sponsors-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: nowrap;
}

.sponsor-group {
    display: flex;
    flex-direction: column;
}

.sponsor-group h4 {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-brown-main);
}

.sponsor-group .logos {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: nowrap;
    padding-right: 1.5rem;
    border-right: 1px solid #ddd;
}

.sponsor-group:last-child .logos {
    border-right: none;
    padding-right: 0;
    padding-left: 1.5rem;
}

.sponsor-group:nth-child(2) .logos {
    padding-left: 1.5rem;
}

.sponsor-group .logos img {
    width: auto;
    object-fit: contain;
}

/* Financia — Ministerio */
.sponsor-group:nth-child(1) .logos img { height: 75px; }

/* Auspicia — soyprovidencia, Montecarmelo, INDAP */
.sponsor-group:nth-child(2) .logos img:nth-child(1) { height: 50px; }  /* soyprovidencia */
.sponsor-group:nth-child(2) .logos img:nth-child(2) { height: 35px; }  /* Montecarmelo */
.sponsor-group:nth-child(2) .logos img:nth-child(3) { height: 75px; }  /* INDAP */

/* Colaboran — Fundación SPA, Cultura Coyhaique, Pulso Austral, ONA, JANOME */
.sponsor-group:nth-child(3) .logos img:nth-child(1) { height: 80px; }  /* Fundación SPA */
.sponsor-group:nth-child(3) .logos img:nth-child(2) { height: 50px; }  /* Cultura Coyhaique */
.sponsor-group:nth-child(3) .logos img:nth-child(3) { height: 45px; }  /* Pulso Austral */
.sponsor-group:nth-child(3) .logos img:nth-child(4) { height: 45px; }  /* ONA */
.sponsor-group:nth-child(3) .logos img:nth-child(5) { height: 12px; }  /* JANOME */


/* -------------------------------------------------------------------------- */
/*                                  FOOTER                                    */
/* -------------------------------------------------------------------------- */

.main-footer {
    background-color: var(--color-brown-main);
    padding: 1.5rem 2rem;
    color: var(--color-white);
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-link img {
    width: 24px;
    height: 24px;
}

.footer-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* -------------------------------------------------------------------------- */
/*                           PÁGINAS INTERNAS                                 */
/* -------------------------------------------------------------------------- */

/* Page header banner */
.page-header {
    background-color: var(--color-white);
    padding: 2rem 2rem 1rem;
    text-align: center;
}

.page-header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.page-header-borla {
    height: 50px;
    width: auto;
}

.page-header-borla-right {
    transform: scaleX(-1);
}

.page-header h1 {
    font-family: var(--font-headings);
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    color: var(--color-gold);
}

.page-header p {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--color-text-gray);
    opacity: 1;
}

/* Sub-navigation for sede pages */
.sede-nav {
    background-color: var(--color-cream);
    border-bottom: 1px solid #ddd;
    padding: 0.75rem 1rem;
    text-align: center;
}

.sede-nav ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.sede-nav a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-brown-main);
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
}

.sede-nav a:hover,
.sede-nav a.active {
    border-bottom-color: var(--color-brown-main);
    opacity: 1;
}

/* Page content */
.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.page-content p + h2 {
    padding-top: 50px;
}

.page-content h2 {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    color: var(--color-brown-main);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-content h3 {
    font-family: var(--font-headings);
    font-size: 1.3rem;
    color: var(--color-brown-main);
    margin-bottom: 1rem;
}

.page-content p {
    color: var(--color-text-gray);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Info cards for festival details */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-item {
    background-color: var(--color-cream);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.info-item .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--color-text-gray);
    margin-bottom: 0.5rem;
}

.info-item .value {
    font-family: var(--font-headings);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-brown-main);
}

/* ---- Sede page redesign components ---- */

.sede-banner {
    margin: 2rem 0;
    position: relative;
}

.sede-banner img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Texto del lugar sobre el banner (zona izquierda, donde estaba "Lugar por confirmar") */
.sede-banner-place {
    position: absolute;
    top: 50%;
    left: 4%;
    transform: translateY(-50%);
    width: 38%;
    font-family: var(--font-headings);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-brown-main);
    font-size: clamp(0.85rem, 2.4vw, 1.6rem);
}

/* En móvil el banner es muy bajo: el texto pasa a pie de banner legible */
@media (max-width: 768px) {
    .sede-banner-place {
        position: static;
        transform: none;
        width: auto;
        text-align: center;
        font-size: 1.05rem;
        margin-top: 0.75rem;
    }
}

/* Horarios grid */
.sede-horarios {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0 3rem;
    background-color: var(--color-cream);
    border-radius: 12px;
    padding: 2rem 1.5rem;
}

.sede-horarios-item {
    text-align: center;
}

.sede-horarios-item .horario-fecha {
    font-family: var(--font-headings);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-brown-main);
    margin-bottom: 0.25rem;
}

.sede-horarios-item .horario-hora {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--color-text-gray);
    margin-bottom: 0.5rem;
}

.sede-horarios-item .horario-hora small {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0.2rem;
}

.sede-horarios-item .horario-badge {
    display: inline-block;
    background-color: var(--color-green-badge);
    color: var(--color-white);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 1rem;
    border-radius: 20px;
}

.sede-horarios-item .horario-badge-link {
    font-size: 1.2rem;
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.sede-horarios-item .horario-badge-link .horario-badge-arrow {
    display: inline-block;
    margin-left: 0.4rem;
    transition: transform 0.25s ease;
}

.sede-horarios-item .horario-badge-link:hover,
.sede-horarios-item .horario-badge-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    background-color: var(--color-brown-main);
}

.sede-horarios-item .horario-badge-link:hover .horario-badge-arrow,
.sede-horarios-item .horario-badge-link:focus-visible .horario-badge-arrow {
    transform: translateX(4px);
}

/* Section title in script font */
.sede-section-title {
    font-family: var(--font-script);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-brown-main);
    font-style: italic;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

/* About section: text + illustration */
.sede-about {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin: 1rem 0 3rem;
}

.sede-about-text {
    flex: 1;
    border-left: 3px solid var(--color-brown-main);
    padding-left: 1.5rem;
}

.sede-about-text p {
    color: var(--color-text-gray);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.sede-about-illustration {
    flex: 0 0 280px;
    max-width: 280px;
}

.sede-about-illustration img {
    width: 100%;
    height: auto;
}

/* Objetivos section */
.sede-objetivos {
    background-color: var(--color-cream);
    padding: 3rem 0;
    margin: 0 -1rem;
}

.sede-objetivos-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.sede-objetivos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.sede-card {
    border-radius: 16px;
    padding: 1.5rem;
    color: var(--color-white);
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 500;
    min-height: 120px;
    display: flex;
    align-items: center;
}

.sede-card.card-olive { background-color: var(--color-green-olive); }
.sede-card.card-pink { background-color: var(--color-pink); }
.sede-card.card-brown { background-color: var(--color-brown-warm); }
.sede-card.card-crimson { background-color: var(--color-crimson); }
.sede-card.card-gold { background-color: var(--color-gold); }

/* Convocatoria section */
.sede-convocatoria {
    background-color: var(--color-cream);
    padding: 3rem 0;
    margin: 0 -1rem;
}

.sede-convocatoria-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.sede-convocatoria-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.sede-card h4 {
    font-family: var(--font-headings);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.sede-card .card-separator {
    width: 60px;
    height: 2px;
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
    margin-bottom: 0.75rem;
}

.sede-card ul {
    list-style: none;
    padding: 0;
}

.sede-card ul li {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.sede-card ul li::before {
    content: "*";
    margin-right: 0.3rem;
}

/* ---- Sede page redesign responsive ---- */

@media (max-width: 1024px) {
    .sede-objetivos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sede-horarios {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .sede-about {
        flex-direction: column;
    }

    .sede-about-illustration {
        flex: none;
        max-width: 250px;
        margin: 0 auto;
    }

    .sede-objetivos-grid,
    .sede-convocatoria-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- End sede redesign ---- */

/* Timeline for historia */
.timeline-section {
    background-color: var(--color-cream);
    padding: 3rem 0;
    margin: 0 -1rem;
}

.timeline-section-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.timeline {
    position: relative;
    padding-left: 1.78rem;
    border-left: 3px solid var(--color-green-olive);
    margin: 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.75rem;
    padding-left: 1rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-2rem - 10.5px);
    top: 0.2rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--color-gold);
}

.timeline-item.dot-gold::before { background-color: var(--color-gold); }
.timeline-item.dot-brown::before { background-color: #8a5a3a; }
.timeline-item.dot-crimson::before { background-color: var(--color-crimson); }
.timeline-item.dot-olive::before { background-color: var(--color-green-olive); }

.timeline-item .year {
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--color-brown-main);
    margin-bottom: 0.1rem;
    line-height: 1.2;
}

.timeline-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--color-text-gray);
    line-height: 1.5;
}

.timeline-item p strong {
    color: var(--color-brown-main);
}

/* Expositor card — Polaroid */
.expositor-section {
    position: relative;
}

.expositor-deco {
    position: absolute;
    width: 180px;
    height: auto;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.expositor-deco-tl { top: 360px; left: -180px; }
.expositor-deco-tr { top: 1040px; right: -180px; }
.expositor-deco-bl { top: 1720px; left: -180px; }
.expositor-deco-br { top: 2400px; right: -180px; }

@media (max-width: 1280px) {
    .expositor-deco { display: none; }
}

.expositor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin: 2rem 0;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

/* Mapa Santiago */
.mapa-content {
    max-width: 960px;
}

.mapa-wrap {
    position: relative;
    padding: 2rem 0;
}

.mapa-figura {
    margin: 0;
    text-align: center;
}

.mapa-imagen {
    width: 100%;
    max-width: 820px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.mapa-direccion {
    text-align: center;
    font-family: var(--font-headings);
    font-size: 1.2rem;
    color: var(--color-green-olive);
    letter-spacing: 0.5px;
    margin-top: 1.5rem;
}

.mapa-direccion strong {
    font-weight: 600;
}

.mapa-deco {
    position: absolute;
    pointer-events: none;
    user-select: none;
    width: 160px;
    height: auto;
    z-index: 0;
}

.mapa-deco-ave {
    top: -20px;
    left: -40px;
}

.mapa-deco-oveja {
    width: 180px;
    bottom: 0;
    right: 0;
}

.mapa-expositores {
    position: relative;
    margin-top: 3rem;
    padding-bottom: 220px;
}

.mapa-expositores h2 {
    text-align: center;
    font-family: var(--font-headings);
    color: var(--color-green-olive);
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    text-transform: none;
    letter-spacing: 0;
}

.mapa-expositores h2::after {
    content: "";
    display: block;
    width: 120px;
    height: 14px;
    margin: 0.5rem auto 0;
    background: url("../assets/img/separador-ondulado.png") no-repeat center / contain;
}

.expositores-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 3rem;
    color: var(--color-brown-main);
    font-size: 1rem;
    line-height: 1.6;
}

.expositores-lista li {
    break-inside: avoid;
    margin-bottom: 0.55rem;
    padding-left: 2.4em;
    text-indent: -2.4em;
}

.expositores-lista .num {
    font-weight: 700;
    color: var(--color-brown-main);
    margin-right: 0.35em;
}

@media (max-width: 768px) {
    .expositores-lista {
        columns: 1;
    }
    .mapa-deco-ave {
        display: none;
    }
    .mapa-deco-oveja {
        width: 130px;
    }
    .mapa-expositores {
        padding-bottom: 160px;
    }
}

.polaroid-card {
    background: var(--color-white);
    padding: 10px 10px 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    cursor: default;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.polaroid-card:nth-child(6n+1) { transform: rotate(-2deg); }
.polaroid-card:nth-child(6n+2) { transform: rotate(1.5deg); }
.polaroid-card:nth-child(6n+3) { transform: rotate(-0.8deg); }
.polaroid-card:nth-child(6n+4) { transform: rotate(2deg); }
.polaroid-card:nth-child(6n+5) { transform: rotate(-1.5deg); }
.polaroid-card:nth-child(6n+6) { transform: rotate(1deg); }

.polaroid-card:hover {
    transform: rotate(0deg) translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}

.polaroid-img {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--color-cream);
}

.polaroid-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.polaroid-img .polaroid-prod {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.polaroid-card:hover .polaroid-prod {
    opacity: 1;
}

.polaroid-name {
    font-family: var(--font-script);
    font-size: 1.1rem;
    color: var(--color-brown-main);
    text-align: center;
    margin-top: 0.75rem;
    line-height: 1.3;
}

/* Programa day blocks */
.programa-day {
    margin-bottom: 2.5rem;
}

.programa-day-card {
    background: var(--color-cream);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    position: relative;
}

.programa-day-header {
    margin-bottom: 1rem;
}

.programa-day-header img {
    max-width: 280px;
    height: auto;
}

.programa-table {
    width: 100%;
    border-collapse: collapse;
}

.programa-table tr {
    border-bottom: 1px solid #ddd;
}

.programa-table tr:last-child {
    border-bottom: none;
}

.programa-table td {
    padding: 0.6rem 0.5rem;
    vertical-align: top;
    font-size: 0.9rem;
    line-height: 1.4;
}

.programa-table .col-time {
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--color-brown-main);
    white-space: nowrap;
    width: 80px;
    font-size: 0.85rem;
}

.programa-table .col-detail {
    color: var(--color-dark);
}

.programa-table .location {
    font-weight: 700;
    color: var(--color-brown-main);
    font-size: 0.8rem;
}

.programa-day-illustration {
    position: absolute;
    bottom: 1rem;
    left: -60px;
    width: 120px;
}

.programa-day-illustration img {
    width: 100%;
    height: auto;
}

/* Legacy programa styles */
.programa-day h3 {
    background-color: var(--color-brown-main);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.programa-item {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.programa-item .time {
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--color-brown-main);
    min-width: 100px;
    flex-shrink: 0;
}

.programa-item .detail h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--color-dark);
}

.programa-item .detail p {
    font-size: 0.85rem;
    color: var(--color-text-gray);
    margin-bottom: 0;
}

/* Talleres */
.talleres-dia-wrapper {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.talleres-dia {
    flex: 1;
    margin-bottom: 1.5rem;
}

.talleres-ilustracion {
    flex: 0 0 180px;
    max-width: 180px;
    align-self: center;
}

.talleres-ilustracion img {
    width: 100%;
    height: auto;
}

.dia-header {
    font-family: var(--font-headings);
    color: var(--color-brown-main);
    font-size: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-gold);
    margin-bottom: 0;
}

.taller-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1rem 0 0.5rem;
}

.taller-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.taller-img-wrap {
    padding: 0.5rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.taller-card-pink .taller-img-wrap {
    background: #c48b8b;
}

.taller-card-olive .taller-img-wrap {
    background: #7a8050;
}

.taller-card-gold .taller-img-wrap {
    background: #d4952a;
}

.taller-img {
    width: 100%;
    border-radius: 8px;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.taller-card h4 {
    font-family: var(--font-headings);
    color: var(--color-brown-main);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.taller-card .meta {
    font-size: 0.8rem;
    color: var(--color-text-gray);
    margin-bottom: 0.5rem;
}

.taller-card .meta strong {
    color: var(--color-dark);
}

/* Team members */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
    margin: 2rem 0;
}

.team-member {
    text-align: center;
    position: relative;
    background-color: #eeebe6;
    border-radius: 20px;
    padding: 2rem 1.5rem;
}

.team-member .avatar {
    width: 168px;
    height: 168px;
    border-radius: 50%;
    background-color: var(--color-pink);
    object-fit: cover;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-family: var(--font-headings);
    font-size: 2rem;
}

.avatar-placeholder {
    font-size: 3.5rem;
}

.team-member .name {
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--color-brown-main);
}

.team-member .role {
    font-size: 0.85rem;
    color: var(--color-text-gray);
    margin-bottom: 0.75rem;
}

.team-bio {
    font-size: 0.85rem;
    color: var(--color-text-gray);
    line-height: 1.6;
    text-align: left;
}

/* Badges de sede en página equipo */
.team-sede-badge {
    position: absolute;
    top: 0.5rem;
    left: -1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    align-items: center;
    background-color: rgba(184, 82, 88, 0.7);
    border-radius: 50%;
    width: 110px;
    height: 110px;
    justify-content: center;
    padding: 0.75rem;
}

.team-sede-badge span {
    font-size: 0.75rem;
    color: var(--color-white);
    font-family: var(--font-headings);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.2;
}

/* Colaboradores por sede */
.collab-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.collab-sede {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--color-cream);
    border-radius: 12px;
}

.collab-sede h3 {
    font-family: var(--font-headings);
    color: var(--color-brown-main);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.collab-sede ul {
    list-style: none;
    padding: 0;
}

.collab-sede li {
    font-size: 0.9rem;
    color: var(--color-text-gray);
    margin-bottom: 0.5rem;
}

/* Placeholder state */
.placeholder-notice {
    text-align: center;
    padding: 3rem 1rem;
    background-color: var(--color-cream);
    border-radius: 12px;
    margin: 2rem 0;
}

.placeholder-notice h3 {
    color: var(--color-brown-main);
    margin-bottom: 0.5rem;
}

.placeholder-notice p {
    color: var(--color-text-gray);
}

/* Inscripcion Talleres */
.inscripcion-talleres {
    text-align: center;
    padding: 1rem 1rem 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.inscripcion-talleres-content {
    padding: 2rem 1rem;
}

.inscripcion-talleres-content h3 {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    color: var(--color-brown-main);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.inscripcion-talleres-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-dark);
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.inscripcion-nota {
    font-size: 0.9rem !important;
    color: var(--color-text-gray) !important;
    font-style: italic;
    margin-bottom: 1.5rem !important;
}

.inscripcion-talleres-content .btn-convocatoria {
    margin-bottom: 1.5rem;
}

.inscripcion-contacto {
    font-size: 0.85rem !important;
    color: var(--color-text-gray) !important;
}

.inscripcion-talleres .separador-ondulado {
    max-width: 100%;
    width: 100%;
}

.inscripcion-talleres .separador-bottom {
    max-width: 400px;
}

/* Hero festival (imagen afiche a ancho completo) */
/* Festival Edition Cards */
.festival-title-card {
    max-width: 550px;
    margin: 2rem auto 2.5rem;
    background: var(--color-gold);
    border-radius: 12px;
    padding: 2rem 2.5rem;
    text-align: center;
    color: var(--color-white);
}

.festival-title-card h2 {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-white);
}

.festival-title-card .wavy-line {
    display: block;
    font-family: var(--font-script);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.festival-title-card p {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.95;
}

.festival-content-section {
    background: var(--color-cream);
    padding: 2.5rem 0;
    margin: 0 -1rem;
}

.festival-content-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.festival-poster {
    flex: 0 0 320px;
    max-width: 320px;
}

.festival-poster img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.festival-description {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-gray);
}

.festival-expositores {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.festival-expositores h3 {
    font-family: var(--font-headings);
    color: var(--color-brown-main);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.expositores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem 1.5rem;
    font-size: 0.85rem;
    color: var(--color-text-gray);
}

.expositores-grid span {
    padding: 0.3rem 0;
    border-bottom: 1px solid #eee;
}

.festival-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    margin-top: 144px;
    overflow: hidden;
}

.festival-hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    z-index: 0;
}

.festival-hero-text {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--color-white);
    z-index: 1;
}

.festival-hero-text h1 {
    font-family: var(--font-headings);
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.festival-hero-text p {
    font-family: var(--font-script);
    font-size: 1.3rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.festival-hero--light .festival-hero-text {
    color: #333;
}

.festival-hero--light .festival-hero-text h1,
.festival-hero--light .festival-hero-text p {
    text-shadow: none;
}

.afiche-card {
    max-width: 360px;
    margin: 2rem auto;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    background: var(--color-white);
}

.afiche-card img {
    width: 100%;
    height: auto;
    display: block;
}

.afiche-card a {
    display: block;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-brown-main);
    text-decoration: none;
    border-top: 1px solid #e0e0e0;
}

.afiche-card a:hover {
    background-color: var(--color-cream);
}

.afiche-card .afiche-size {
    color: var(--color-text-gray);
    font-size: 0.8rem;
}

.festival-subtitle {
    font-family: var(--font-script);
    font-size: 1.2rem;
    color: var(--color-text-gray);
    margin-bottom: 2rem;
}

/* Ficha festival anterior */
.ficha-expositores {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem 2rem;
    margin: 1.5rem 0 2.5rem;
}

.ficha-expositores span {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    color: var(--color-text-gray);
    font-size: 0.9rem;
}

.ficha-talleres {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0 2.5rem;
}

.ficha-taller-card {
    background-color: var(--color-cream);
    border-radius: 8px;
    padding: 1.25rem;
}

.ficha-taller-card h3 {
    font-family: var(--font-headings);
    color: var(--color-brown-main);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.ficha-taller-meta {
    font-size: 0.85rem;
    color: var(--color-text-gray);
    margin-bottom: 0.25rem;
}

.ficha-programa {
    margin: 1.5rem 0 2.5rem;
}

.ficha-programa-dia {
    margin-bottom: 2rem;
}

.ficha-programa-dia h3 {
    background-color: var(--color-brown-main);
    color: var(--color-white);
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.ficha-programa-dia ul {
    list-style: none;
    padding: 0;
}

.ficha-programa-dia li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    color: var(--color-text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

.ficha-backup {
    text-align: center;
    margin: 3rem 0 1rem;
}

.ficha-backup-link {
    display: inline-block;
    background-color: var(--color-brown-main);
    color: var(--color-white);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.ficha-backup-link:hover {
    background-color: var(--color-brown-accent);
    transform: translateY(-2px);
}

/* Breadcrumb */
.breadcrumb {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 2rem 0;
}

.breadcrumb ol {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    font-size: 0.8rem;
    color: var(--color-text-gray);
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 0.5rem;
    color: #ccc;
}

.breadcrumb a {
    color: var(--color-brown-main);
}

/* Noticias index */
.noticias-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 2rem;
}

.noticia-preview {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #eee;
}

.noticia-preview-img {
    flex-shrink: 0;
    width: 220px;
    border-radius: 8px;
    overflow: hidden;
}

.noticia-preview-img img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.noticia-preview:hover .noticia-preview-img img {
    transform: scale(1.03);
}

.noticia-preview-body time {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.noticia-preview-body h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.noticia-preview-body h2 a {
    color: var(--color-brown-main);
    text-decoration: none;
}

.noticia-preview-body h2 a:hover {
    color: var(--color-brown-accent);
}

.noticia-preview-body p {
    font-size: 0.9rem;
    color: var(--color-text-gray);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

/* Noticia article */
.noticia-article {
    max-width: 720px;
}

.noticia-date {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.noticia-hero {
    margin: 0 0 2rem;
}

.noticia-hero img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.noticia-article p {
    margin-bottom: 1.25rem;
}

.noticia-article ul {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--color-text-gray);
    line-height: 2;
}

.noticia-nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

/* Créditos / agradecimientos a auspiciadores */
.noticia-creditos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem 1.5rem;
    margin: 2rem 0 2.5rem;
}

.noticia-creditos figure {
    margin: 0;
}

.noticia-creditos .credito-foto {
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-cream);
}

.noticia-creditos .credito-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.noticia-creditos .credito-foto:hover img {
    transform: scale(1.05);
}

.noticia-creditos figcaption {
    text-align: center;
    margin-top: 0.7rem;
}

.noticia-creditos figcaption a {
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-brown-main);
    text-decoration: none;
}

.noticia-creditos figcaption a:hover {
    text-decoration: underline;
}

.noticia-financiamiento {
    font-size: 0.85rem;
    color: var(--color-text-gray);
    font-style: italic;
}

/* -------------------------------------------------------------------------- */
/*                                 GALERÍA                                    */
/* -------------------------------------------------------------------------- */

.gallery-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.gallery-intro {
    font-size: 1.05rem;
    color: var(--color-text-gray);
    line-height: 1.7;
    margin-bottom: 3rem;
    max-width: 800px;
}

/* Year sections */
.gallery-year {
    margin-bottom: 3rem;
}

.gallery-year-title {
    font-family: var(--font-headings);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-brown-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--color-brown-accent);
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.gallery-year-sub {
    font-family: var(--font-script);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-text-gray);
    text-transform: none;
    letter-spacing: 0;
}

/* Category accordion */
.gallery-category {
    margin-bottom: 0.75rem;
}

.gallery-cat-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
    padding: 0.6rem;
    background-color: var(--color-cream);
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
    font-family: inherit;
    font-size: inherit;
}

.gallery-cat-header:hover {
    background-color: #f0ece4;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.gallery-cat-header[aria-expanded="true"] {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
}

.gallery-cat-cover {
    width: 120px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.gallery-cat-info {
    flex-grow: 1;
}

.gallery-cat-info h3 {
    font-family: var(--font-headings);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-brown-main);
    margin-bottom: 0.2rem;
}

.gallery-cat-count {
    font-size: 0.85rem;
    color: var(--color-text-gray);
}

.gallery-cat-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-brown-main);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.gallery-cat-header[aria-expanded="true"] .gallery-cat-toggle {
    transform: rotate(45deg);
}

/* Photo grid (CSS columns masonry) */
.gallery-grid {
    columns: 4 240px;
    column-gap: 0.5rem;
    padding: 0.75rem;
    background-color: var(--color-cream);
    border: 1px solid #e8e4dc;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.gallery-grid[hidden] {
    display: none;
}

.gallery-grid img {
    width: 100%;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
    break-inside: avoid;
    display: block;
}

.gallery-grid img:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

/* -------------------------------------------------------------------------- */
/*                                 LIGHTBOX                                   */
/* -------------------------------------------------------------------------- */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox[hidden] {
    display: none;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 2001;
    line-height: 1;
    padding: 0.5rem;
}

.lightbox-close:hover { color: var(--color-gold); }

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 1rem 0.75rem;
    cursor: pointer;
    border-radius: 4px;
    z-index: 2001;
    transition: background-color 0.2s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-family: var(--font-primary);
}

/* -------------------------------------------------------------------------- */
/*                                EN LA PRENSA                                */
/* -------------------------------------------------------------------------- */

.section-prensa {
    padding: 5rem 1rem;
}

.prensa-group {
    margin-top: 2.5rem;
}

.prensa-subtitle {
    font-family: var(--font-headings);
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-crimson);
    margin-bottom: 0.5rem;
}

.prensa-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prensa-list li {
    padding: 0.85rem 0;
    border-bottom: 1px solid #e9e2d6;
    line-height: 1.6;
    color: var(--color-text-gray);
}

.prensa-list li:last-child {
    border-bottom: none;
}

.prensa-medio {
    font-weight: 600;
    color: var(--color-dark);
    margin-right: 0.35rem;
}

.prensa-list a {
    color: var(--color-brown-main);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* -------------------------------------------------------------------------- */
/*                                RESPONSIVE                                  */
/* -------------------------------------------------------------------------- */

/* Tablet / Small Desktop */
@media (max-width: 1024px) {
    .grid-3, 
    .grid-split {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sponsors-grid {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .sponsor-group {
        align-items: center;
        text-align: center;
    }

    .sponsor-group .logos {
        border-right: none;
        padding-right: 0;
        padding-left: 0;
        justify-content: center;
    }

    .sponsor-group:last-child .logos,
    .sponsor-group:nth-child(2) .logos {
        padding-left: 0;
    }

    .hero-logo { max-width: 350px; }

    .info-grid { grid-template-columns: repeat(2, 1fr); }
    .expositor-grid { grid-template-columns: repeat(2, 1fr); }
    .ficha-expositores { grid-template-columns: repeat(2, 1fr); }

    .gallery-grid { columns: 3 200px; }

    .talleres-home-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
    /* Header — mobile menu */
    .main-header {
        align-items: center;
    }
    .header-social {
        display: none;
    }
    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-brown-main);
        padding: 1rem 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        z-index: 999;
    }

    .header-nav.is-open {
        display: block;
    }

    .header-nav > ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .header-nav > ul > li > a {
        display: block;
        padding: 0.75rem 2rem;
        font-size: 0.9rem;
    }

    .header-nav > ul > li > a:hover {
        background-color: rgba(255,255,255,0.1);
    }

    .has-dropdown {
        flex-direction: column;
        align-items: stretch;
    }

    /* Dropdown on mobile — show inline */
    .dropdown {
        position: static;
        background-color: rgba(0,0,0,0.15);
        box-shadow: none;
        min-width: auto;
        display: none;
        padding: 0;
    }

    .has-dropdown.is-open .dropdown {
        display: block;
    }

    .has-dropdown:hover .dropdown {
        display: none;
    }

    .has-dropdown.is-open .dropdown {
        display: block;
    }

    .dropdown a {
        padding: 0.6rem 3rem;
        font-size: 0.85rem;
    }
    
    .main-header {
        justify-content: space-between;
    }
    
    .nav-logo {
        height: 35px;
    }
    
    /* Hero */
    .hero {
        height: 60vh;
    }
    
    .hero-logo { max-width: 250px; }
    
    /* Grids */
    .grid-3, 
    .grid-split,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .main-header {
        padding: 1rem;
    }

    .history-illustrations {
        justify-content: center;
        margin-top: 2rem;
        min-height: auto;
        overflow: hidden;
    }

    .sponsors-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .sponsor-group {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .sponsor-group .logos {
        border-right: none;
        padding-right: 0;
        padding-left: 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .sponsor-group:last-child .logos,
    .sponsor-group:nth-child(2) .logos {
        padding-left: 0;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-locations,
    .section-calls,
    .section-history,
    .section-news,
    .section-prensa,
    .section-past {
        padding: 3rem 1rem;
    }

    .convocatoria-spa-kicker { font-size: 1.4rem; }
    .convocatoria-spa-date { font-size: 1.3rem; }
    .convocatoria-spa-block { padding: 2rem 1.25rem; }
    .convocatoria-spa-block h2 { font-size: 1.7rem; }
    .convocatoria-spa-block p { font-size: 1.05rem; }

    .info-grid,
    .team-grid,
    .collab-grid,
    .ficha-expositores { grid-template-columns: 1fr; }

    .expositor-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0.5rem;
    }

    .polaroid-card:nth-child(6n+1) { transform: rotate(-1deg); }
    .polaroid-card:nth-child(6n+2) { transform: rotate(1deg); }
    .polaroid-card:nth-child(6n+3) { transform: rotate(-0.5deg); }
    .polaroid-card:nth-child(6n+4) { transform: rotate(1deg); }
    .polaroid-card:nth-child(6n+5) { transform: rotate(-1deg); }
    .polaroid-card:nth-child(6n+6) { transform: rotate(0.5deg); }

    .taller-grid { grid-template-columns: 1fr; }
    .talleres-dia-wrapper { flex-direction: column; }
    .talleres-ilustracion { max-width: 150px; align-self: center; }
    .talleres-home-grid { grid-template-columns: 1fr; }

    .entrada-liberada-badge { max-width: 80px; top: -0.5rem; }

    .sedes-mapa-grid {
        grid-template-columns: 130px 1fr;
        gap: 32px;
    }
    .sedes-mapa-canvas {
        width: 130px;
        margin-top: -40px;
    }
    .sedes-mapa-heading { margin-bottom: 2rem; }
    .sedes-mapa-city { font-size: 1.15rem; }
    .sedes-mapa-cta { font-size: 1.1rem; }
    .sedes-mapa-bullet { width: 36px; height: 36px; font-size: 1rem; }

    .programa-item { flex-direction: column; gap: 0.5rem; }
    .programa-item .time { min-width: auto; }
    .programa-day-card { padding: 1rem; }
    .programa-day-illustration { display: none; }
    .festival-content-inner { flex-direction: column; }
    .festival-poster { flex: none; max-width: 280px; margin: 0 auto; }
    .expositores-grid { grid-template-columns: 1fr; }

    .page-header { padding: 1.5rem 1rem; }
    .page-header h1 { font-size: 1.8rem; }
    .page-header-borla { height: 30px; }

    .sede-nav ul { gap: 1rem; }

    .noticia-preview { flex-direction: column; }
    .noticia-preview-img { width: 100%; }
    .noticia-preview-img img { height: 200px; }

    .noticia-nav { flex-direction: column; text-align: center; }

    .noticia-creditos { grid-template-columns: repeat(2, 1fr); }

    .gallery-year-title { flex-direction: column; gap: 0.25rem; }
    .gallery-cat-header { gap: 0.75rem; }
    .gallery-cat-cover { width: 80px; height: 55px; }
    .gallery-cat-info h3 { font-size: 1rem; }
    .gallery-grid { columns: 2 150px; padding: 0.5rem; }
    .lightbox-prev, .lightbox-next { padding: 0.75rem 0.5rem; font-size: 1.5rem; }
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
    .inscripcion-talleres .separador-ondulado:not(.separador-bottom) {
        margin: 0 0 0 auto;
    }
}

/* Teléfono móvil vertical */
@media (max-width: 480px) {
    .polaroid-card { transform: rotate(0deg) !important; }
    .polaroid-card:hover { transform: translateY(-4px) !important; }

    .talleres-deco,
    .historia-deco,
    .past-deco-left,
    .past-deco-right {
        display: none;
    }
    .sedes-mapa-grid {
        grid-template-columns: 90px 1fr;
        gap: 18px;
    }
    .sedes-mapa-canvas {
        width: 90px;
        margin-top: 46px;
    }
    .sedes-mapa-pin { width: 60%; }
    .sedes-mapa-pin-label { display: none; }
    .sedes-mapa-row {
        flex-wrap: wrap;
        gap: 0.65rem 0.85rem;
        padding: 1rem 0;
    }
    .sedes-mapa-row-body { flex: 1; }
    .sedes-mapa-city { font-size: 1.05rem; }
    .sedes-mapa-dates { font-size: 0.78rem; }
    .sedes-mapa-cta {
        flex-basis: 100%;
        margin-left: calc(36px + 0.85rem);
        font-size: 1rem;
    }
    .sedes-mapa-bullet { width: 36px; height: 36px; font-size: 1rem; }
    .sedes-mapa-subtitle { font-size: 1.35rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}