/* 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;
    
    --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-script);
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px solid currentColor;
    display: inline-block;
    margin-top: 0.5rem;
}

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

.section-title-left {
    font-family: var(--font-headings);
    font-size: 2rem;
    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: fixed;
    top: 0;
    left: 0;
    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;
    bottom: 1rem;
    right: 2rem;
}

.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;
}

/* 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: 40px;
    height: 40px;
    background-color: var(--color-gold-social);
    border-radius: 50%;
    overflow: hidden;
}

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

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

.hero {
    position: relative;
    height: 80vh;
    margin-top: 144px; /* Header compensation */
    overflow: hidden;
    background-color: #000; /* Fallback */
}

.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;
}

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

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

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

.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-script);
    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);
}

.convocatoria-banner {
    background-color: var(--color-gold);
    border-radius: 16px;
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.convocatoria-banner h2 {
    font-family: var(--font-headings);
    font-size: 2rem;
    color: var(--color-white);
    letter-spacing: 2px;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.btn-convocatoria {
    display: inline-block;
    background-color: #7A3B20; /* Darker brown specifically for this button */
    color: var(--color-white);
    font-family: var(--font-script);
    font-size: 1.3rem; /* Slightly larger for readability */
    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;
}

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

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

.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;
}

.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;
}

/* -------------------------------------------------------------------------- */
/*                                 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;
    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-brown-main);
    padding: 4rem 2rem 3rem;
    margin-top: 144px;
    text-align: center;
    color: var(--color-white);
}

.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;
}

.page-header p {
    font-family: var(--font-script);
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 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 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);
}

/* Timeline for historia */
.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 3px solid var(--color-brown-accent);
    margin: 2rem 0;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.6rem;
    top: 0.3rem;
    width: 12px;
    height: 12px;
    background-color: var(--color-brown-main);
    border-radius: 50%;
}

.timeline-item .year {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-brown-main);
    margin-bottom: 0.25rem;
}

.timeline-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

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

.expositor-card {
    background-color: var(--color-cream);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.expositor-card:hover {
    transform: translateY(-4px);
}

.expositor-card .photo {
    width: 100%;
    aspect-ratio: 1;
    background-color: var(--color-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-family: var(--font-headings);
}

.expositor-card .info {
    padding: 1rem;
}

.expositor-card .name {
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--color-brown-main);
    margin-bottom: 0.25rem;
}

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

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

.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;
}

/* Taller card */
.taller-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

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

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

.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(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

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

.team-member .avatar {
    width: 120px;
    height: 120px;
    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;
}

.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 {
    display: inline-flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

.team-sede-badge span {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    background-color: var(--color-cream);
    color: var(--color-brown-main);
    border: 1px solid var(--color-brown-accent);
    font-family: var(--font-primary);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* 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);
}

/* 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;
}

/* -------------------------------------------------------------------------- */
/*                                 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);
}

/* -------------------------------------------------------------------------- */
/*                                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;
        gap: 1.5rem;
    }

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

    .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; }
}

/* Mobile */
@media (max-width: 768px) {
    /* Header */
    .header-nav {
        display: none; /* Hide menu on mobile as per prompt */
    }
    
    .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;
        gap: 1.5rem;
    }

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

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

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

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

    .taller-grid { grid-template-columns: 1fr; }

    .programa-item { flex-direction: column; gap: 0.5rem; }
    .programa-item .time { min-width: auto; }

    .page-header { padding: 2rem 1rem; }
    .page-header h1 { font-size: 1.8rem; }

    .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; }

    .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; }
}