/* ================================================================
   DREAMS STUDIO — fotografía de danza y teatro musical, por Mario Cubo
   Rediseño visual — concepto "La luz del foco"
   Paleta:      negro-índigo (la sala a oscuras) + ámbar (la luz de escena)
   Tipografía:  Bodoni Moda (cartel de teatro) + Inter (interfaz/cuerpo)
   ================================================================ */

:root {
    /* --- Color --- */
    --bg: #0F0B16;
    --bg-alt: #17111F;
    --surface: #1E1728;
    --surface-hover: #271E36;
    --ink: #F4EEE4;
    --ink-soft: #D9D0E2;
    --muted: #9A90A8;
    --muted-2: #6D6379;
    --gold: #E2A63E;
    --gold-soft: #EFC272;
    --gold-dim: rgba(226, 166, 62, 0.14);
    --line: rgba(244, 238, 228, 0.12);
    --line-strong: rgba(244, 238, 228, 0.24);
    --ink-on-gold: #1B1410;

    /* --- Tipografía --- */
    --font-display: 'Bodoni Moda', 'Georgia', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* --- Layout --- */
    --container-width: 1240px;
    --section-padding: clamp(4.5rem, 9vw, 7.5rem) 0;
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-full: 999px;

    /* --- Movimiento --- */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --speed: 0.35s;

    --shadow-pop: 0 24px 48px -16px rgba(0, 0, 0, 0.6);
}

/* ================================================================
   RESET Y BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    line-height: 1.7;
    background-color: var(--bg);
    color: var(--muted);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--gold); text-decoration: none; transition: color var(--speed) ease; }
a:hover { color: var(--gold-soft); }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 500;
    line-height: 1.15;
}
.section-padding { padding: var(--section-padding); }
.bg-alt { background-color: var(--bg-alt); }

::selection { background: var(--gold); color: var(--ink-on-gold); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-hover); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

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

/* Grano cinematográfico — textura sutil de película sobre toda la página */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9990;
    pointer-events: none;
    opacity: 0.035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

/* ================================================================
   INTRO LOADER
   ================================================================ */
body.intro-active { overflow: hidden; }

#intro-loader {
    position: fixed; inset: 0; z-index: 9999;
    background: radial-gradient(ellipse at 50% 40%, #1C1526 0%, #0F0B16 65%);
    display: flex; justify-content: center; align-items: center;
    transition: transform 1.1s var(--ease), opacity 0.9s ease;
}
#intro-loader.hidden { transform: translateY(-100%); opacity: 0; }

.loader-container {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 100%; padding: 20px; text-align: center;
}

@keyframes revealSmooth {
    0% { opacity: 0; transform: translateY(16px); filter: blur(6px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes lineBreathe {
    0% { width: 20px; opacity: 0.25; }
    50% { width: 140px; opacity: 1; }
    100% { width: 20px; opacity: 0.25; }
}
@keyframes spin { to { transform: rotate(360deg); } }

.primary-group {
    display: flex; flex-direction: column; align-items: center;
    opacity: 0; animation: revealSmooth 1.8s var(--ease) forwards; animation-delay: 0.4s;
    margin-bottom: 36px; width: 100%;
}
.spinner {
    width: 26px; height: 26px;
    border: 1px solid rgba(244, 238, 228, 0.15);
    border-top: 1px solid var(--gold);
    border-radius: 50%; margin-bottom: 28px;
    animation: spin 1s linear infinite;
}
.brand-name {
    font-family: var(--font-display); font-style: italic; font-weight: 500;
    font-size: clamp(2.75rem, 9vw, 4.75rem);
    letter-spacing: 0.02em;
    color: var(--ink); margin-bottom: 6px; line-height: 1;
}
.sub-brand {
    font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.15em;
    font-weight: 500; color: var(--muted); margin-bottom: 34px;
}
.loader-line { height: 1px; background-color: var(--gold); animation: lineBreathe 4s ease-in-out infinite; }

.secondary-group {
    text-align: center; display: flex; flex-direction: column; align-items: center;
    opacity: 0; animation: revealSmooth 1.8s var(--ease) forwards; animation-delay: 1.3s;
}
.info-text {
    font-family: var(--font-display); font-style: italic; font-size: 1.15rem; font-weight: 400;
    color: var(--ink-soft); margin-bottom: 16px;
}
.date-highlight {
    font-family: var(--font-display); font-size: 1.4rem; font-weight: 500;
    letter-spacing: 0.04em; color: var(--gold); margin-bottom: 28px;
}

.intro-cta {
    margin-top: 6px; padding: 14px 42px;
    background: transparent; color: var(--ink);
    border: 1px solid var(--gold); border-radius: var(--radius-full);
    font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; letter-spacing: 0.02em;
    cursor: pointer; opacity: 0; transform: translateY(10px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    pointer-events: none;
}
.intro-cta.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.intro-cta:hover { background: var(--gold); color: var(--ink-on-gold); box-shadow: 0 0 30px rgba(226, 166, 62, 0.35); }

@media (max-width: 768px) {
    .sub-brand { letter-spacing: 0.1em; }
    .info-text { font-size: 1rem; padding: 0 20px; }
    .date-highlight { font-size: 1.15rem; }
}

/* ================================================================
   HEADER
   ================================================================ */
#main-header {
    background-color: rgba(15, 11, 22, 0.4);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    padding: 1.5rem 0; position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: background-color var(--speed) ease, border-color var(--speed) ease, padding var(--speed) ease;
}
#main-header.scrolled { background-color: rgba(15, 11, 22, 0.9); border-color: var(--line); padding: 1rem 0; }
#main-header .container { display: flex; justify-content: space-between; align-items: center; }

.logo-wrapper { display: flex; flex-direction: column; align-items: flex-start; }
.logo { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; color: var(--ink); line-height: 1; }
.logo span { font-style: italic; color: var(--gold); }
.header-credit {
    font-family: var(--font-body); font-size: 0.68rem; color: var(--muted);
    letter-spacing: 0.06em; margin-top: 4px; display: inline-block; transition: color var(--speed) ease;
}
.header-credit:hover { color: var(--gold); }

#main-nav ul { list-style: none; display: flex; align-items: center; gap: 2.25rem; }
#main-nav ul li a {
    color: var(--ink-soft); font-family: var(--font-body); font-weight: 500; font-size: 0.92rem;
    position: relative; padding-bottom: 6px;
}
#main-nav ul li a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px;
    background-color: var(--gold); transition: width var(--speed) var(--ease);
}
#main-nav ul li a:hover, #main-nav ul li a.active { color: var(--ink); }
#main-nav ul li a:hover::after, #main-nav ul li a.active::after { width: 100%; }
#mobile-menu-toggle { display: none; background: none; border: none; color: var(--ink); font-size: 1.3rem; cursor: pointer; padding: 0.5rem; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
    height: 100vh; min-height: 640px; display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative; color: var(--ink); overflow: hidden;
}
.hero-bg-slider { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-bg-slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0; transition: opacity 2.2s ease-in-out;
}
.hero-bg-slide.active { opacity: 1; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-overlay {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(226, 166, 62, 0.12) 0%, rgba(15, 11, 22, 0) 55%),
        linear-gradient(to bottom, rgba(15, 11, 22, 0.35) 0%, rgba(15, 11, 22, 0.6) 48%, rgba(15, 11, 22, 0.96) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 0 24px; }
.hero-title {
    font-family: var(--font-display); font-weight: 500; font-style: italic;
    font-size: clamp(3rem, 9vw, 6.5rem); line-height: 1; letter-spacing: 0.01em;
    color: var(--ink); margin-bottom: 1.25rem;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}
.hero-subtitle {
    font-family: var(--font-body); font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 400;
    color: var(--ink-soft); max-width: 460px; margin: 0 auto 2.75rem; letter-spacing: 0.01em;
}

.cta-button {
    display: inline-block; background-color: var(--gold); color: var(--ink-on-gold);
    padding: 15px 38px; border-radius: var(--radius-full); font-weight: 600;
    font-family: var(--font-body); font-size: 0.95rem; letter-spacing: 0.02em;
    transition: background-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.cta-button:hover { background-color: var(--gold-soft); transform: translateY(-3px); color: var(--ink-on-gold); }

.cta-button-outline {
    display: inline-block; border: 1px solid var(--gold); color: var(--gold);
    padding: 14px 36px; border-radius: var(--radius-full); font-weight: 600;
    font-family: var(--font-body); font-size: 0.95rem; letter-spacing: 0.02em;
    transition: all var(--speed) var(--ease);
}
.cta-button-outline:hover { background-color: var(--gold); color: var(--ink-on-gold); transform: translateY(-3px); }

.scroll-down-indicator {
    position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
    color: var(--ink-soft); font-size: 1.2rem; animation: bounce 2.2s infinite; opacity: 0.8;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

/* --- Countdown (hero y galería "próximamente") --- */
#countdown-container, .countdown-container {
    display: flex; justify-content: center; align-items: center; gap: 0;
    margin: 0 auto 2.75rem; width: fit-content;
}
.countdown-block { display: flex; flex-direction: column; align-items: center; padding: 0 1.5rem; }
.countdown-block:not(:last-child) { border-right: 1px solid var(--line); }
.countdown-number {
    font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 500;
    color: var(--ink); line-height: 1;
}
.countdown-label { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--muted); margin-top: 0.6rem; }
.event-started-message { font-family: var(--font-display); font-style: italic; color: var(--gold); font-size: 1.4rem; }

/* ================================================================
   CABECERAS DE SECCIÓN (compartidas)
   ================================================================ */
.section-head { max-width: 640px; margin-bottom: 3.5rem; }
.section-title {
    font-family: var(--font-display); font-weight: 500;
    font-size: clamp(2.25rem, 4.5vw, 3.5rem); color: var(--ink);
    line-height: 1.08; margin-bottom: 1.1rem;
}
.section-intro { font-family: var(--font-body); font-size: 1.05rem; line-height: 1.7; color: var(--muted); max-width: 48ch; margin: 0; }

/* ================================================================
   SELECTOR DE GALERÍAS (Estilo Polaroid / Poly)
   ================================================================ */
.gallery-chooser-section { min-height: 50vh; background-color: var(--bg); }
.gallery-chooser-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 3.5rem 2rem; 
    margin-top: 1.5rem; 
    justify-items: center; /* Evita que las fotos se estiren, dándoles fisicidad */
}

.gallery-card.poly-card { 
    display: flex; 
    flex-direction: column; 
    text-decoration: none;
    background-color: var(--ink); /* Color claro del papel aprovechando tu paleta */
    padding: 14px 14px 26px 14px;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 1px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 360px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    position: relative;
    z-index: 1;
}

/* Efecto rotación alternada: da un aspecto real de "fotos caídas sobre una mesa" */
.gallery-card.poly-card:nth-child(even) { transform: rotate(2.5deg); }
.gallery-card.poly-card:nth-child(odd) { transform: rotate(-2.5deg); }
.gallery-card.poly-card:nth-child(3n) { transform: rotate(1deg); }

.gallery-card.poly-card:hover {
    transform: rotate(0deg) scale(1.06) translateY(-8px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
    z-index: 10;
}

.poly-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Formato cuadrado clásico de polaroid */
    overflow: hidden;
    background-color: var(--surface);
    border: 1px solid rgba(0,0,0,0.05); /* Sutil línea interior */
}

.poly-image-wrapper .gallery-card-bg {
    position: absolute; 
    inset: 0; 
    background-size: cover; 
    background-position: center;
    filter: grayscale(0.8) brightness(0.9);
    transition: filter 0.6s var(--ease), transform 0.8s var(--ease);
}

.gallery-card.poly-card:hover .gallery-card-bg { 
    filter: grayscale(0) brightness(1.05); 
    transform: scale(1.08); 
}

.poly-content { 
    padding-top: 1.25rem; 
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.poly-content .gallery-card-title { 
    font-family: var(--font-display); 
    font-size: 1.45rem; 
    color: var(--bg); /* Texto oscuro para contrastar elegantemente con el papel */
    margin-bottom: 0.15rem; 
    font-weight: 600;
    font-style: italic;
}

.poly-content .gallery-card-subtitle { 
    font-family: var(--font-body); 
    font-size: 0.78rem; 
    color: var(--muted-2); 
    margin-bottom: 0; 
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ================================================================
   VISTA DE GALERÍA INDIVIDUAL
   ================================================================ */
.gallery-toolbar { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; }
.gallery-actions { flex-shrink: 0; }
.gallery-download-zip-btn { display: inline-flex; align-items: center; gap: 0.65rem; }

.gallery-filters { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.filter-btn {
    background: none; border: none; border-bottom: 2px solid transparent;
    padding: 0 0 0.4rem; cursor: pointer;
    font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; color: var(--muted);
    transition: color var(--speed) ease, border-color var(--speed) ease;
}
.filter-btn:hover { color: var(--ink-soft); }
.filter-btn.active { color: var(--ink); border-bottom-color: var(--gold); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; transition: opacity 0.3s ease; }
.gallery-item { position: relative; overflow: hidden; cursor: pointer; border-radius: var(--radius-md); background-color: var(--surface); aspect-ratio: 4 / 5; border: 1px solid var(--line); }
.gallery-item::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(100deg, transparent, rgba(244, 238, 228, 0.06), transparent);
    background-size: 200% 100%; animation: shimmer 1.5s infinite linear; transition: opacity 0.5s ease;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.gallery-item.item-loaded::before { opacity: 0; animation: none; }
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover; opacity: 0;
    filter: grayscale(0.85) brightness(0.9);
    transition: transform 0.6s var(--ease), opacity 0.5s ease, filter 0.6s var(--ease);
}
.gallery-item img.loaded { opacity: 1; }
.gallery-item:hover img { transform: scale(1.045); filter: grayscale(0) brightness(1); }
.gallery-item .overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(15, 11, 22, 0.92) 0%, rgba(15, 11, 22, 0) 100%);
    padding: 1.5rem 1.1rem 1rem; opacity: 0; transform: translateY(8px);
    transition: opacity var(--speed) ease, transform var(--speed) ease;
}
.gallery-item:hover .overlay { opacity: 1; transform: translateY(0); }
.gallery-item .overlay .photo-title { font-family: var(--font-display); font-size: 1rem; color: var(--ink); }
.no-results { font-family: var(--font-body); color: var(--muted); font-size: 1rem; grid-column: 1 / -1; padding: 1rem 0; }

/* ================================================================
   LIGHTBOX
   ================================================================ */
.lightbox {
    display: none; position: fixed; z-index: 1001; inset: 0; height: 100dvh;
    overflow: hidden; background-color: rgba(11, 8, 16, 0.97);
    opacity: 0; transition: opacity 0.3s ease; backdrop-filter: blur(6px);
}
.lightbox.visible { opacity: 1; }

.lightbox-image-container { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: absolute; inset: 0; transition: all 0.3s ease; }
.lightbox-image-container.is-zoomed { display: block; overflow: auto; cursor: grab; -webkit-overflow-scrolling: touch; text-align: center; }
.lightbox-image-container.is-zoomed:active { cursor: grabbing; }

.lightbox-content { max-width: 90vw; max-height: 85vh; border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; user-select: none; }
.lightbox-content.zoomed { max-width: none !important; max-height: none !important; width: auto; height: auto; margin: auto; cursor: zoom-out; padding: 20px; }

.lightbox-action-btn, .close-lightbox {
    position: absolute; top: 24px; background: rgba(30, 23, 40, 0.6);
    border: 1px solid var(--line); color: var(--ink); border-radius: 50%; cursor: pointer; z-index: 1010;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s ease; backdrop-filter: blur(6px);
}
.lightbox-action-btn { right: 92px; width: 48px; height: 48px; font-size: 18px; }
.close-lightbox { right: 30px; width: 48px; height: 48px; font-size: 26px; font-weight: 300; line-height: 1; }
.lightbox-action-btn:hover, .close-lightbox:hover { background-color: var(--gold); color: var(--ink-on-gold); border-color: var(--gold); }

.lightbox-ui-element { transition: opacity 0.3s ease, visibility 0.3s ease; }
.lightbox-ui-element.hidden-by-zoom { opacity: 0; visibility: hidden; pointer-events: none; }

.lightbox-caption {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, rgba(11, 8, 16, 0.92), transparent);
    padding: 34px 24px; z-index: 1005; display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
#lightbox-title { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--ink); margin: 0; text-align: center; }

.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: transparent; color: var(--ink-soft); border: none;
    padding: 20px 14px; font-size: 1.3rem; cursor: pointer; z-index: 1005; transition: color 0.2s ease;
}
.lightbox-nav:hover { color: var(--gold); }
.lightbox-nav.prev { left: 10px; }
.lightbox-nav.next { right: 10px; }

.download-container { position: relative; }
.download-btn { display: inline-flex; align-items: center; gap: 0.6rem; padding: 10px 22px; border-radius: var(--radius-full); text-decoration: none; transition: all var(--speed) ease; }
#main-download-btn { border: none; cursor: pointer; font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; }
.download-btn.highlight { background-color: var(--gold); color: var(--ink-on-gold); }
.download-btn.highlight:hover { background-color: var(--gold-soft); transform: scale(1.03); }

.download-quality-menu {
    position: absolute; bottom: calc(100% + 12px); left: 50%; width: 230px;
    background-color: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-pop);
    border: 1px solid var(--line); padding: 0.5rem; z-index: 10;
    opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: all 0.25s var(--ease);
}
.download-quality-menu.visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.download-quality-menu a { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; color: var(--ink-soft); text-decoration: none; border-radius: var(--radius-sm); transition: background-color var(--speed); }
.download-quality-menu a:hover { background-color: var(--surface-hover); color: var(--gold); }

.lightbox .spinner {
    width: 44px; height: 44px; border: 3px solid rgba(244, 238, 228, 0.15); border-top-color: var(--gold);
    border-radius: 50%; position: absolute; top: 50%; left: 50%; margin: 0 0 0 -22px; top: calc(50% - 22px);
    z-index: 1004; animation: spin 1s linear infinite; display: none;
}
.lightbox .spinner.visible { display: block; }

/* ================================================================
   AGRADECIMIENTOS — lista de créditos
   ================================================================ */
.thanks-section { background-color: var(--bg-alt); }
.thanks-section .contact-options { display: flex; flex-direction: column; margin-top: 1rem; border-top: 1px solid var(--line); }
.thank-you-card, a.thank-you-card {
    display: flex; align-items: center; gap: 1.5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line);
    text-align: left; text-decoration: none; color: inherit;
    transition: padding-left var(--speed) var(--ease), border-color var(--speed) ease;
}
.thank-you-card:hover { padding-left: 0.75rem; border-color: var(--line-strong); }
.thank-you-card:hover .card-title { color: var(--gold); }
.thank-you-card i { font-size: 1.4rem; color: var(--muted); width: 2.5rem; flex-shrink: 0; text-align: center; transition: color var(--speed) ease; }
.thank-you-card:hover i { color: var(--gold); }
.card-logo { height: 44px; width: 2.5rem; flex-shrink: 0; display: flex; align-items: center; }
.card-logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
.card-title { font-size: 1.15rem; color: var(--ink); margin-bottom: 0.2rem; transition: color var(--speed) ease; }
.card-role { font-family: var(--font-body); font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ================================================================
   CALENDARIO — estilo programa de sala
   ================================================================ */
.calendar-section { background-color: var(--bg); }
.calendar-filters { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }
.calendar-filter-label { display: inline-block; cursor: pointer; }
.calendar-filter-label input { display: none; }
.calendar-filter-label span {
    display: inline-block; padding: 0.55rem 1.15rem; border: 1px solid var(--line);
    border-radius: var(--radius-full); color: var(--muted); font-size: 0.85rem; font-weight: 500;
    transition: all var(--speed) ease;
}
.calendar-filter-label input:checked + span { background-color: var(--gold); border-color: var(--gold); color: var(--ink-on-gold); }
.calendar-filter-label span:hover { border-color: var(--line-strong); color: var(--ink-soft); }
.calendar-filter-label input:checked + span:hover { background-color: var(--gold-soft); border-color: var(--gold-soft); }

.calendar-grid { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.event-card { display: flex; flex-direction: column; gap: 0.75rem; padding: 2rem 0; border-bottom: 1px solid var(--line); transition: padding-left var(--speed) var(--ease); }
.event-card:hover { padding-left: 0.75rem; }
.event-card-header { display: flex; align-items: flex-start; gap: 1.75rem; }
.event-date { flex-shrink: 0; width: 4rem; text-align: left; }
.event-date .day { display: block; font-family: var(--font-display); font-size: 2.5rem; font-weight: 500; color: var(--gold); line-height: 1; }
.event-date .month { display: block; font-family: var(--font-body); font-size: 0.78rem; color: var(--muted); margin-top: 0.3rem; }
.event-details { flex: 1; min-width: 0; }
.event-title { font-size: 1.3rem; color: var(--ink); margin-bottom: 0.5rem; }
.event-group-tag { display: inline-block; border: 1px solid var(--line-strong); color: var(--muted); padding: 0.2rem 0.7rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 500; }
.event-description { font-family: var(--font-body); font-size: 0.95rem; line-height: 1.65; color: var(--muted); margin-top: 0.65rem; max-width: 60ch; margin-left: calc(4rem + 1.75rem); }

.prox-container { width: 100%; grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; padding: 1rem 0; }
.prox-container .event-started-message { margin: 0; }
.prox-container .countdown-container { margin: 0; }

/* ================================================================
   CONTACTO
   ================================================================ */
.contact-section { background-color: var(--bg-alt); }
.contact-section .contact-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 1rem; }
a.contact-link, a.contact-link:hover { color: inherit; text-decoration: none; }
.contact-option {
    display: flex; align-items: center; gap: 1.25rem; padding: 2rem;
    border: 1px solid var(--line); border-radius: var(--radius-md);
    transition: border-color var(--speed) ease, transform var(--speed) var(--ease), background-color var(--speed) ease;
}
.contact-option:hover { border-color: var(--gold); transform: translateY(-4px); background-color: var(--surface); }
.contact-option i { font-size: 1.6rem; color: var(--gold); flex-shrink: 0; }
.contact-option-text h3 { font-size: 1.15rem; margin-bottom: 0.15rem; }
.contact-option-text p { font-family: var(--font-body); font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ================================================================
   FOOTER
   ================================================================ */
#main-footer { background-color: #0A0710; color: var(--muted-2); text-align: center; padding: 3.5rem 0 3rem; font-size: 0.85rem; border-top: 1px solid var(--line); }
.footer-social { margin-bottom: 1.25rem; display: flex; justify-content: center; gap: 1.5rem; }
.footer-social a {
    color: var(--muted); font-size: 1.05rem; width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 50%; transition: all var(--speed) ease;
}
.footer-social a:hover { color: var(--ink-on-gold); background-color: var(--gold); border-color: var(--gold); }
#main-footer p { margin-bottom: 0.4rem; font-family: var(--font-body); }

/* ================================================================
   BOTÓN VOLVER ARRIBA
   ================================================================ */
.scroll-to-top-btn {
    position: fixed; bottom: 24px; right: 24px; width: 48px; height: 48px;
    background-color: var(--surface); color: var(--ink); border: 1px solid var(--line);
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    font-size: 1.2rem; text-decoration: none; z-index: 999;
    opacity: 0; visibility: hidden; transform: translateY(16px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(6px);
}
.scroll-to-top-btn:hover { background-color: var(--gold); color: var(--ink-on-gold); border-color: var(--gold); }
.scroll-to-top-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ================================================================
   COOKIE BANNER (en reserva, mismo estado que el original)
   ================================================================ */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background-color: rgba(15, 11, 22, 0.95); backdrop-filter: blur(8px);
    color: var(--muted); padding: 1.1rem 0; z-index: 2000;
    transform: translateY(100%); transition: transform 0.5s var(--ease);
    font-size: 0.88rem; border-top: 1px solid var(--line);
}
#cookie-banner.visible { transform: translateY(0); }
.cookie-content { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cookie-content p { margin: 0; line-height: 1.6; }
.cookie-content a { color: var(--gold); text-decoration: underline; }
#cookie-accept-btn {
    background-color: var(--gold); color: var(--ink-on-gold); border: none; padding: 10px 24px;
    border-radius: var(--radius-full); cursor: pointer; font-weight: 600; font-family: var(--font-body);
    white-space: nowrap; transition: background-color var(--speed) ease;
}
#cookie-accept-btn:hover { background-color: var(--gold-soft); }

/* ================================================================
   ANIMACIÓN DE APARICIÓN AL HACER SCROLL
   ================================================================ */
.fade-in-element { opacity: 0; transition: opacity 0.7s ease-out; pointer-events: none; }
.fade-in-element.is-visible { opacity: 1; pointer-events: auto; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
    .event-description { margin-left: 0; }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    .container { padding: 0 20px; }
    #main-header { padding: 1rem 0; }
    #main-header.scrolled { padding: 0.85rem 0; }
    #main-nav ul {
        display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%;
        background-color: rgba(15, 11, 22, 0.97); backdrop-filter: blur(10px);
        padding: 0.5rem 0; border-bottom: 1px solid var(--line); gap: 0;
    }
    #main-nav ul.active { display: flex; }
    #main-nav ul li { width: 100%; }
    #main-nav ul li a { display: block; padding: 1rem 24px; }
    #main-nav ul li a::after { display: none; }
    #mobile-menu-toggle { display: block; }
    .hero { min-height: 560px; }
    .section-head { margin-bottom: 2.5rem; }
    .gallery-grid { gap: 12px; }
    .gallery-toolbar { align-items: flex-start; }
    .contact-section .contact-options { grid-template-columns: 1fr; }
    .cookie-content { flex-direction: column; align-items: flex-start; }
    .event-card-header { gap: 1.1rem; }
    .event-date { width: 3.2rem; }
    .event-date .day { font-size: 2rem; }

    .lightbox-content { max-width: 95vw; }
    .lightbox-action-btn { right: auto; left: 16px; width: 42px; height: 42px; font-size: 16px; }
    .close-lightbox { right: 16px; width: 42px; height: 42px; font-size: 30px; }
    .lightbox-nav { padding: 15px 8px; }
}

@media (max-width: 480px) {
    .gallery-chooser-grid, .gallery-grid { grid-template-columns: 1fr; }
    .cta-button, .cta-button-outline { padding: 13px 28px; font-size: 0.88rem; }
    .countdown-block { padding: 0 0.9rem; }
    .countdown-number { font-size: 1.7rem; }
    .countdown-label { font-size: 0.65rem; }
    .calendar-filters { gap: 0.5rem; }
    .thank-you-card { gap: 1rem; }
    .thank-you-card i, .card-logo { width: 2rem; }
}