/* ==========================================================================
   TERRA CONCERTS - CORE STYLESHEET
   Architecture: Mobile-First, Component-Based, Strict Vanilla CSS
   ========================================================================== */

/* ==========================================================================
   1. TOKENS & VARIABLES
   ========================================================================== */
@font-face {
    font-family: 'GlacialIndifference-Bold';
    src: url('../fnt/GlacialIndifference-Bold.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Abel';
    src: url('../fnt/abel-regular.ttf') format('truetype');
    font-display: swap;
}

:root {
    /* Colors */
    --clr-bg-dark: #111111;
    --clr-bg-light: #ffffff;
    --clr-text-dark: #333333;
    --clr-text-light: #ffffff;
    --clr-overlay: rgba(0, 0, 0, 0.5);
    --clr-modal-bg: rgba(0, 0, 0, 0.9);

    /* Typography */
    --fnt-main: system-ui, -apple-system, sans-serif;
    --fnt-heading: 'GlacialIndifference-Bold', var(--fnt-main);
    --fnt-date: 'Abel', var(--fnt-main);

    /* Layout & Sizing */
    --w-fluid: 86vw;
    --w-max: 1200px;

    /* Animation */
    --t-speed: 0.3s;
    --t-easing: cubic-bezier(0.4, 0, 0.2, 1);

    /* Component specific (Dynamic) */
    --sz-arrow: 30px;
    --sz-arrow-scroll: 45px;
    --h-img-slide: 55vw;

    /* Variables de flechas optimizadas para móvil */
    --sz-arrow-hero: 20px;     /* Reducido para no ensuciar el hero en móvil */
    --sz-arrow-content: 24px;  /* Ligeramente más grande para visibilidad en tarjetas */
    --sz-arrow-scroll: 45px;
}

@media (min-width: 768px) {
    :root {
        --sz-arrow: 40px;
        --sz-arrow-scroll: 60px;
        --h-img-slide: 40vw;
    }
}

@media (min-width: 1024px) {
    :root {
        --sz-arrow: 50px;
        --sz-arrow-scroll: 75px;
        --h-img-slide: 25vw;
    }
}

@media (min-width: 1400px) {
    :root {
        --sz-arrow: 60px;
        --sz-arrow-scroll: 90px;
        --h-img-slide: 280px;
    }
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    text-align: center;
    font-family: var(--fnt-main);
    color: var(--clr-text-dark);
    background-color: var(--clr-bg-light);
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

/* ==========================================================================
   OPTIMIZACIÓN DE CARGA (Fade-in para Lazy Load)
   ========================================================================== */
/* Estado inicial: Oculto pero ocupando su espacio (reservado por el SVG base64) */
.lazy-img {
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}

/* Estado resuelto: Inyectado por JS tras el evento 'load' nativo */
.lazy-img.is-loaded {
    opacity: 1;
}

/* Fallback de accesibilidad: Si JS falla, mostrar imagen bruscamente */
noscript .lazy-img {
    opacity: 1;
}

/* ==========================================================================
   3. LAYOUT & CONTAINERS
   ========================================================================== */
.content-section {
    position: relative;
    width: 100%;
    padding: 4rem 0;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .content-section {
        padding: 8rem 0;
    }
}

@media (min-width: 1024px) {
    .content-section {
        width: var(--w-fluid);
    }
}

@media (min-width: 1400px) {
    .content-section {
        width: var(--w-max);
    }
}

/* ==========================================================================
   4. TYPOGRAPHY & HEADINGS (Layout: Vertical/Stacked)
   ========================================================================== */
.section-title-group {
    display: flex;
    flex-direction: column; /* Forzado a columna para garantizar el salto de línea */
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.section-header {
    font-family: var(--fnt-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    /* Margen inferior por defecto para cuando va solo (ej: Noticias, Galería) */
    margin: 0 0 1.5rem 0;
    line-height: 1.1;
}

/* Reset del margen cuando forma parte del grupo (el contenedor ya tiene gap y margin) */
.section-title-group .section-header {
    margin: 0;
}

.title-badge {
    font-family: var(--fnt-date);
    font-size: clamp(0.8rem, 2vw, 1.1rem);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.35rem 1.1rem;
    border: 1px solid rgba(51, 51, 51, 0.2);
    border-radius: 50px;
    background-color: transparent;
    transition: background-color var(--t-speed);
}

.title-badge:hover {
    background-color: rgba(51, 51, 51, 0.05);
}

.separator {
    width: 100px;
    height: 2px;
    border: none;
    background: linear-gradient(to right, transparent, var(--clr-text-dark), transparent);
    margin: 0 auto 3rem;
}

/* Restablecimiento de info-banner y section-subtitle */
.info-banner p,
.section-subtitle {
    font-family: var(--fnt-date);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin: 0;
}

.info-banner.dark {
    background-color: var(--clr-bg-dark);
    color: var(--clr-text-light);
    padding: 1.5rem 0;
}

/* Responsividad: Mantenimiento de estructura vertical en pantallas grandes */
@media (min-width: 768px) {
    .section-title-group {
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .separator {
        margin: 0 auto 4rem;
    }
}

/* ==========================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background-color var(--t-speed);
}

.site-header.scrolled {
    background-color: var(--clr-bg-dark);
}

#logo {
    width: clamp(120px, 15vw, 180px);
}

#menu-toggle {
    display: inline-flex;
    align-items: center;
    color: var(--clr-text-light);
    transition: opacity var(--t-speed);
    cursor: pointer;
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

#menu-toggle .mobile-icon {
    display: block;
    width: 32px;
    height: auto;
    transition: transform 0.2s var(--t-easing);
}

/* Rotación de la hamburguesa en móvil al abrir modal */
#menu-toggle[aria-expanded="true"] .mobile-icon {
    transform: rotate(90deg);
}

#menu-toggle .desktop-text {
    display: none;
}

#menu-overlay {
    position: fixed;
    inset: 0;
    background: var(--clr-overlay);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-speed);
}

#menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

#menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75vw;
    max-width: 320px;
    height: 100vh;
    background: var(--clr-text-light);
    z-index: 101;
    padding: 100px 2rem 2rem;
    text-align: right;
    transition: right 0.4s var(--t-easing);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

#menu.active {
    right: 0;
}

#menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#menu a {
    display: inline-block;
    font-family: var(--fnt-heading);
    font-size: clamp(1.2rem, 4.5vw, 1.6rem);
    color: var(--clr-text-dark);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.5rem 0;
    transition: color 0.2s, transform 0.2s ease-out;
}

#menu a:hover,
#menu a:active {
    color: #777;
    transform: translateX(-5px);
}

#close-menu {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 28px;
    height: 28px;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
}

#close-menu:hover {
    opacity: 1;
    transform: scale(1.1);
}

@media (min-width: 1024px) {
    .site-header {
        padding: 1.5rem 5%;
    }

    #menu-toggle .mobile-icon {
        display: none;
    }

    #menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        color: var(--clr-text-light);
        text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
        transition: opacity var(--t-speed), text-shadow var(--t-speed);
        cursor: pointer;
        min-height: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    /* Anulación de la sombra cuando el header ya tiene fondo oscuro (ahorro de recursos de renderizado) */
    .site-header.scrolled #menu-toggle {
        text-shadow: none;
    }

    #menu-toggle .desktop-text {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        font-family: var(--fnt-heading);
        font-size: 1.15rem;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        line-height: 1;
        margin-top: 2px;
    }

    #menu-toggle .menu-arrow {
        font-size: 0.85em;
        transition: transform 0.3s var(--t-easing);
        will-change: transform;
    }

    #menu-toggle[aria-expanded="true"] .menu-arrow {
        transform: rotate(-90deg);
    }

    @media (hover: hover) and (pointer: fine) {
        #menu-toggle:hover {
            opacity: 0.7;
        }
    }
}

/* ==========================================================================
   6. HERO COMPONENT
   ========================================================================== */
.hero-slider {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: #000;
    overflow: hidden;
}

.hero-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1.5 / 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.bottom-banner {
    position: relative;
    width: 100%;
    height: 12vh;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0 5%;
    z-index: 2;
}

@media (min-width: 1024px), (min-aspect-ratio: 3/2) {
    .hero-slider {
        display: block;
        height: 100vh;
    }
    .hero-image-container {
        height: 100%;
        aspect-ratio: auto;
    }
    .bottom-banner {
        position: absolute;
        bottom: 0;
        height: 20vh;
        min-height: auto;
    }
}

/* ==========================================================================
   7. CAROUSEL & CARDS
   ========================================================================== */
.slider-wrapper {
    position: relative;
    width: 100%;
    overflow: visible;
}

.native-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 0 25vw;
}

.native-slider::-webkit-scrollbar {
    display: none;
}

.slide {
    flex: 0 0 50vw;
    scroll-snap-align: center;
    padding: 0 3vw;
    display: grid;
    grid-template-rows: max-content max-content 1fr max-content;
    height: 100%;
    min-width: 0;
}

#slider-news {
    padding: 0 7vw;
}

#slider-news .slide {
    flex: 0 0 86vw;
}

.slide-image-container {
    width: 100%;
    height: var(--h-img-slide);
    margin-bottom: 3%;
    display: grid;
    place-content: center;
    background-color: transparent;
}

.slide-image {
    grid-area: 1 / 1;
    max-width: 100%;
    max-height: var(--h-img-slide);
    width: auto;
    height: auto;
    object-fit: contain;
}

.play-btn {
    grid-area: 1 / 1;
    align-self: end;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.play-btn img {
    height: 30px;
}

.title-wrapper {
    align-self: center;
    height: 75px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
}

.event-name,
.dj-name,
.gallery-name {
    font-family: var(--fnt-heading);
    text-transform: uppercase;
    margin: 0;
    line-height: 1.1;
    width: 100%;
}

.date {
    font-family: var(--fnt-date);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    text-transform: uppercase;
    margin-top: 1rem;
}

.ticket-link {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 220px;
    min-height: 48px;
    padding: 8px 15px;
    border-radius: 30px;
    background-color: var(--clr-bg-dark);
    color: var(--clr-text-light);
    font-size: clamp(0.75rem, 2vw, 0.95rem);
    align-self: end;
    justify-self: center;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    box-sizing: border-box;
    line-height: 1.1;
    transition: background-color var(--t-speed);
}

.ticket-link:hover {
    background-color: #555;
}

/* --- Programa Dinámico (Cartelería) --- */
.program-item {
    width: 100%;
    /* Margen lateral fluido y consistente con el resto del layout móvil */
    padding: 0 5vw;
    display: flex;
    justify-content: center;
}

.program-image {
    width: 100%;
    max-width: 800px; /* Límite para pantallas ultra anchas */
    height: auto;

    /* Detalles opcionales pero recomendados para UI moderna */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

@media (min-width: 1024px) {
    .native-slider {
        padding: 0;
    }
    .slide {
        flex: 0 0 calc(100% / 3);
        scroll-snap-align: start;
        padding: 0 1.5vw;
    }
    #slider-news .slide {
        flex: 0 0 100%;
        scroll-snap-align: center; /* Forzar eje central estricto */
        padding: 0; /* Purgar padding lateral heredado del grid de 3 columnas */
    }
    .program-item {
        /* En escritorio el contenedor padre ya gestiona el ancho fluido/fijo */
        padding: 0;
    }
}

/* ==========================================================================
   OPTIMIZACIÓN GALERÍA (Ajuste de proporciones fotográficas)
   ========================================================================== */

/* Redefinición de variable local para anular el alto de cartelería (vertical) */
.gallery-slide {
    --h-img-slide: 35vw; /* Ratio fotográfico aproximado para móvil */
}

/* Las imágenes de galería apaisadas requieren 'cover' para evitar letterboxing interno */
.gallery-slide .slide-image {
    object-fit: cover;
    border-radius: 4px; /* Suavizado estándar para thumbnails fotográficos */
    width: 100%;
    height: 100%;
}

/* Escalado de la variable local por breakpoints */
@media (min-width: 768px) {
    .gallery-slide {
        --h-img-slide: 25vw;
    }
}

@media (min-width: 1024px) {
    .gallery-slide {
        --h-img-slide: 16vw; /* Ajuste para grid de 3 columnas */
    }
}

@media (min-width: 1400px) {
    .gallery-slide {
        --h-img-slide: 220px;
    }
}

/* ==========================================================================
   8. CONTROLS & UI ELEMENTS (UNIFIED COMPONENT ARCHITECTURE)
   ========================================================================== */
:root {
    --sz-arrow-hero: 20px;
    --sz-arrow-content: 24px;
    --sz-arrow-scroll: 45px;
}

@media (min-width: 768px) {
    :root {
        --sz-arrow-hero: 40px;
        --sz-arrow-content: 36px;
        --sz-arrow-scroll: 60px;
    }
}

@media (min-width: 1024px) {
    :root {
        --sz-arrow-hero: 50px;
        --sz-arrow-content: 40px;
        --sz-arrow-scroll: 75px;
    }
}

@media (min-width: 1400px) {
    :root {
        --sz-arrow-hero: 60px;
        --sz-arrow-content: 50px;
        --sz-arrow-scroll: 90px;
    }
}

/* --- Layout Contenedores --- */
.hero-controls {
    position: absolute;
    top: calc(50% - 6vh);
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 5vw;
    z-index: 2;
    pointer-events: none;
}

.slider-controls.floating {
    position: absolute;
    bottom: -3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4rem;
    pointer-events: none;
}

/* --- Interacción Base Componente (.nav-btn) --- */
.nav-btn {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px; /* Hitbox táctil estricto WCAG 2.1 */
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s;
}

.hero-controls .nav-btn img {
    height: var(--sz-arrow-hero);
}

.slider-controls.floating .nav-btn img {
    height: var(--sz-arrow-content);
}

/* Feedback Táctil (Móviles) */
.nav-btn:active {
    transform: scale(0.85);
    opacity: 0.7;
}

/* Feedback Puntero (Escritorio) */
@media (hover: hover) and (pointer: fine) {
    .nav-btn:hover {
        transform: scale(1.15);
        opacity: 1;
    }
    .nav-btn:active {
        transform: scale(0.95);
    }
}

/* --- Indicador Scroll --- */
.scroll-down {
    display: none; /* Oculto en móvil por redundancia */
    position: absolute;
    bottom: calc(12vh + 1.5rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-down img {
    width: var(--sz-arrow-scroll);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.7; }
    50% { transform: translate(-50%, -15px); opacity: 1; }
}

/* --- Breakpoints Layout --- */
@media (min-width: 768px) {
    .slider-controls.floating {
        bottom: -5rem;
        gap: 6rem;
    }
}

@media (min-width: 1024px) {
    .scroll-down {
        display: block;
    }

    .slider-controls.floating {
        bottom: -5rem;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        justify-content: center;
        gap: 2.5rem; /* Proporción armónica para desktop (escala visual áurea/base 8) */
    }
}

@media (min-width: 1400px) {
    :root {
        --sz-arrow-hero: 60px;
        --sz-arrow-content: 50px;
        --sz-arrow-scroll: 90px;
    }
}

@media (min-width: 1024px) and (min-aspect-ratio: 3/2) {
    .scroll-down {
        bottom: calc(20vh + 2rem);
    }
}
/* ==========================================================================
   9. FOOTER & MAP
   ========================================================================== */
.map-container {
    width: var(--w-fluid);
    height: 60vh;
    margin: 0 auto 2rem;
    background: #eaeaea;
}

#address {
    font-family: var(--fnt-date);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

#footer {
    background-color: var(--clr-bg-dark);
    color: var(--clr-text-light);
    padding: 4rem 10% 2rem;
    text-align: left;
    position: relative;
}

#footer h3 {
    font-family: var(--fnt-heading);
    font-size: 2rem;
    margin: 0 0 2rem;
}

#footer p {
    font-family: var(--fnt-date);
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

#footer p.small {
    font-size: 0.8rem;
    opacity: 0.8;
}

.rss {
    width: 40px;
    margin-left: 1rem;
    display: inline-block;
    vertical-align: middle;
}

#logos {
    width: 100%;
    max-width: 400px;
    margin: 2rem 0;
}

@media (min-width: 1024px) {
    .map-container {
        width: 100%;
    }

    #footer {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 1.5rem;
    }

    #footer h3 {
        width: 100%;
        margin: 0;
    }

    .footer-contact-group {
        width: 100%; /* Mantiene la agrupación de contacto estructurada en la parte superior */
    }

    #logos {
        position: static; /* Anula el absolute que lo sacaba del flujo en la versión anterior */
        display: block;
        width: 100%; /* Fuerza el salto a su propia fila */
        max-width: 300px;
        margin: 2rem 0 0 0; /* Empuja el bloque hacia abajo, separándolo del contacto */
    }

    #footer p.small {
        width: 100%; /* Fuerza el salto a su propia fila, debajo de los logos */
        margin: 0; /* Limpia el margin-top extremo de la versión inicial */
    }
}

/* ==========================================================================
   10. MODALS & A11Y
   ========================================================================== */
.modern-modal {
    border: none;
    background: var(--clr-modal-bg);
    padding: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
}

.modern-modal::backdrop {
    background: var(--clr-modal-bg);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--clr-text-light);
    font-size: 3rem;
    z-index: 10;
}

#modal-content-area {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

#modal-content-area img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

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

/* --- AJUSTES DE VISIBILIDAD Y POSICIONAMIENTO EN MODAL --- */
.modal-gallery-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: transparent;
}

.modal-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.modal-img-container img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    user-select: none;
}

/* --- Controles Nativos del Modal --- */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: transparent; /* Fondo transparente */
    color: var(--clr-text-light); /* O #fff si no usas la variable */
    border: none;
    width: 60px;  /* Área táctil más grande */
    height: 60px; /* Área táctil más grande */
    font-size: 3rem; /* Icono más grande */
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s, opacity 0.2s;

    /* Optimización táctil estricta */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Efecto hover suave (solo puntero) */
@media (hover: hover) and (pointer: fine) {
    .modal-nav:hover {
        opacity: 0.7; /* Feedback visual sin fondo */
    }
}

/* Efecto activo (click/tap) */
.modal-nav:active {
    transform: translateY(-50%) scale(0.9); /* Compresión táctil */
}

/* Posicionamiento ajustado a los bordes */
.modal-nav.prev { left: 10px; }
.modal-nav.next { right: 10px; }

.modal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-family: var(--fnt-date);
    font-size: 1rem;
    letter-spacing: 1px;
}

/* --- Estados de Visibilidad Dinámica --- */
.modal-nav,
.modal-counter {
    display: none; /* Ocultos por defecto en el DOM */
}

/* Clases inyectadas por JS cuando hay múltiples imágenes */
.modal-nav.is-visible {
    display: flex;
}

.modal-counter.is-visible {
    display: block;
}

