
:root {
    --color-rojo: #dc2626;
    --color-rojo-hover: #b91c1c;
    --color-verde: #25d366;
    --color-verde-hover: #128c7e;
    --banner-height: 50px;
}

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

html, body {
    height: 100%;
    font-family: 'Roboto', sans-serif;
    background-color: #000;
    color: #fff;
    scroll-behavior: smooth;
}

body {
    padding-bottom: var(--banner-height);
}

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* --- Mejoras de Accesibilidad --- */
:focus-visible {
    outline: 2px solid var(--color-rojo);
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Sección Hero --- */
.seccion-hero {
    position: sticky;
    top: 0;
    z-index: 10;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-imagen {
    max-height: 40px; /* <-- ¡Este es el valor clave! Ajústalo a la altura que prefieras. */
    width: auto; /* Mantiene la proporción correcta de la imagen para que no se deforme. */
    display: block; /* Elimina posibles espacios extraños debajo de la imagen. */
}

#video-fondo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: opacity 0.5s ease;
}

/* --- Estilos para el Menú Desplegable de Idioma --- */
.selector-idioma {
    position: relative; /* Necesario para posicionar el menú desplegable */
}

.selected-language {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.language-dropdown {
    position: absolute;
    top: 120%; /* Lo posiciona justo debajo del selector principal */
    right: 0;
    background-color: rgba(20, 20, 20, 0.9); /* Fondo oscuro semitransparente */
    backdrop-filter: blur(8px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    z-index: 50;

    /* Inicialmente oculto con una animación suave */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.selector-idioma.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #d1d5db;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.language-option:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

        .hero-superposicion {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1;
            transition: opacity 0.5s ease;
        }

        /* --- Encabezado --- */
        .encabezado-principal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 30;
            padding: 1.5rem 2rem;
            color: #fff;
            transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
        }
        
        .contenedor-encabezado {
            max-width: 1280px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .lado-encabezado {
            flex: 1;
        }
        .lado-encabezado--derecho {
            display: flex;
            justify-content: flex-end;
        }

        .contenedor-logo {
            display: flex;
            align-items: center;
            flex-shrink: 0;
        }

        .contenedor-logo svg {
            margin-right: 0.25rem;
        }

        .texto-logo div:first-child {
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.15em;
        }

        .texto-logo div:last-child {
            font-size: 0.75rem;
            font-weight: 300;
            letter-spacing: 0.15em;
        }
        
        .acciones-encabezado {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .btn-accion {
            position: relative;
            color: white;
            transition: color 0.3s ease;
        }
        .btn-accion:hover {
             color: #d1d5db;
        }

        .contador-carrito {
            position: absolute;
            top: -0.5rem;
            right: -0.5rem;
            background-color: white;
            color: black;
            font-size: 0.75rem;
            border-radius: 9999px;
            height: 1.25rem;
            width: 1.25rem;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
            transform: scale(1);
            opacity: 1;
        }

        .contador-carrito--hidden {
            transform: scale(0);
            opacity: 0;
        }

        .btn-menu-movil {
            display: block;
        }
        
        /* --- Selector de Idioma (REUBICADO) --- */
        .selector-idioma {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            cursor: pointer;
            color: white;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: opacity 0.3s ease, visibility 0s 0.3s, transform 0.3s ease;
        }
        .selector-idioma.visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
            transition: opacity 0.3s ease, visibility 0s 0s, transform 0.3s ease;
        }
        .selector-idioma:hover {
            color: #d1d5db;
        }

        /* --- Menú Móvil --- */
        .navegacion-movil {
            position: fixed;
            top: 0;
            left: 0;
            height: 100%;
            width: fit-content;
            background-color: rgba(0, 0, 0, 0.9);
            backdrop-filter: blur(8px);
            transform: translateX(-100%);
            transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            z-index: 40;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            padding: 6rem 4rem 2rem 2.5rem;
            overflow-y: auto;
        }

        .navegacion-movil.abierto {
            transform: translateX(0);
        }

        .btn-cerrar-menu {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            color: white;
        }

        .enlaces-nav-movil {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 1.5rem;
            font-size: 1.25rem;
            width: 100%;
        }
        
        .enlace-nav, .nav-item-desplegable {
            width: 100%;
        }

        .navegacion-movil .enlace-nav, 
        .navegacion-movil .form-busqueda-nav,
        .navegacion-movil .nav-item-desplegable {
            transition: color 0.3s ease;
            opacity: 0;
            transform: translateX(-20px);
        }
        
        .navegacion-movil.abierto .enlace-nav,
        .navegacion-movil.abierto .form-busqueda-nav,
        .navegacion-movil.abierto .nav-item-desplegable {
            opacity: 1;
            transform: translateX(0);
            transition: opacity 0.4s ease-out, transform 0.4s ease-out, color 0.3s;
        }

        .navegacion-movil.abierto .nav-item-1 { transition-delay: 0.05s; }
        .navegacion-movil.abierto .nav-item-2 { transition-delay: 0.08s; }
        .navegacion-movil.abierto .nav-item-3 { transition-delay: 0.11s; }
        .navegacion-movil.abierto .nav-item-4 { transition-delay: 0.14s; }
        .navegacion-movil.abierto .nav-item-5 { transition-delay: 0.17s; }
        .navegacion-movil.abierto .nav-item-6 { transition-delay: 0.20s; }
        .navegacion-movil.abierto .nav-item-7 { transition-delay: 0.23s; }
        .navegacion-movil.abierto .nav-item-8 { transition-delay: 0.26s; }
        .navegacion-movil.abierto .nav-item-9 { transition-delay: 0.29s; }
        .navegacion-movil.abierto .nav-item-10 { transition-delay: 0.32s; }
        .navegacion-movil.abierto .nav-item-11 { transition-delay: 0.35s; }

        .navegacion-movil .enlace-nav:hover {
            color: var(--color-rojo);
        }
        
        /* --- Barra de Búsqueda Elegante --- */
        .form-busqueda-nav {
            display: flex;
            align-items: center;
        }
        .form-busqueda-nav #alternar-busqueda {
            padding: 0;
            color: white;
            transition: color 0.3s ease;
        }
        .input-busqueda-linea {
            width: 0;
            opacity: 0;
            visibility: hidden;
            border: none;
            background: transparent;
            color: white;
            font-size: 1rem;
            padding: 0.5rem 0;
            margin-left: 0.5rem;
            transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                        opacity 0.2s ease, 
                        visibility 0s 0.4s,
                        padding 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            border-bottom: 2px solid transparent;
        }
        .input-busqueda-linea:focus {
            outline: none;
            border-bottom-color: var(--color-rojo);
        }

        .form-busqueda-nav.activo .input-busqueda-linea {
            width: 180px;
            opacity: 1;
            visibility: visible;
            padding: 0.5rem;
            transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                        opacity 0.3s ease 0.1s,
                        visibility 0s 0s,
                        padding 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        .form-busqueda-nav.activo #alternar-busqueda {
            color: var(--color-rojo);
        }

        /* --- Estilos del Menú Desplegable --- */
        .enlace-principal-desplegable {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            color: white;
            transition: color 0.3s ease;
        }
        .enlace-principal-desplegable:hover {
            color: var(--color-rojo);
        }
        .icono-desplegable {
            width: 1rem;
            height: 1rem;
            transition: transform 0.3s ease-out;
        }

        .submenu-movil {
            max-height: 0;
            overflow: hidden;
            background-color: rgba(20, 20, 20, 0.7);
            border-radius: 4px;
            margin-top: 0;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: max-height 0.4s ease-out, margin-top 0.4s ease-out, opacity 0.3s ease-out, visibility 0.3s, transform 0.3s ease-out;
            box-shadow: 0 8px 24px rgba(0,0,0,0.3);
        }
        
        .nav-item-desplegable:hover .submenu-movil,
        .nav-item-desplegable:focus-within .submenu-movil {
            margin-top: 0.75rem;
            max-height: 500px;
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        
        .nav-item-desplegable:hover .icono-desplegable,
        .nav-item-desplegable:focus-within .icono-desplegable {
            transform: rotate(180deg);
        }

        .submenu-movil-contenido {
            padding: 0.5rem 0;
        }
        
        .enlace-submenu {
            display: block;
            padding: 0.75rem 1.5rem;
            font-size: 1rem;
            color: #d1d5db;
            transition: color 0.3s, background-color 0.3s;
        }
        .enlace-submenu:hover {
            color: white;
            background-color: rgba(255, 255, 255, 0.05);
        }
        .enlace-submenu:not(:last-child) {
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }


        /* --- Contenido Hero --- */
        .contenido-hero {
            position: relative;
            z-index: 20;
            text-align: center;
            padding: 0 1rem;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 1s ease-out, transform 1s ease-out;
            margin-bottom: 150px; 
        }

        .contenido-hero.cargado {
            opacity: 1;
            transform: translateY(0);
        }

        .contenido-hero .fecha, .contenido-hero h1, .contenedor-eslogan {
            transition: opacity 0.3s ease;
        }

        .contenido-hero .fecha {
            font-size: 1.125rem;
            font-weight: 400;
            letter-spacing: 0.1em;
            margin-bottom: 0.5rem;
        }

        .contenido-hero h1 {
            font-family: 'Bebas Neue', sans-serif;
            font-size: clamp(3.5rem, 13vw, 10rem);
            font-weight: bold;
            letter-spacing: 0.05em;
            line-height: 1;
            margin: 0;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        }

        .contenedor-eslogan {
            margin-top: 0.5rem;
        }

        .eslogan {
            font-size: 1rem;
            font-weight: 300;
            letter-spacing: 0.1em;
            text-transform: uppercase;
        }
        
        /* --- Pie de Hero (CTA) --- */
        .pie-hero {
            position: absolute;
            bottom: calc(2vh + 100px);
            left: 55vw;
            transform: translateX(-50%);
            z-index: 20;
            opacity: 0;
            transition: opacity 1s ease-out 0.3s;
            display: flex;
            flex-direction: column;
            align-items: center;
            margin:-7vw;
            margin-bottom:5vh;
        }

        .pie-hero.cargado {
            opacity: 1;
        }

        /* --- Botón CTA (Llamada a la Acción) --- */
        .btn-cta-inicio {
            display: inline-block;
            background-color: #ff0000;
            color: white;
            padding: 2.5vh 4vw;
            border-radius: 9999px;
            font-weight: 700;
            font-size: 2vw;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            text-align: center;
        
        }
        
        .btn-cta-inicio:hover {
            background-color: #e80000;
    
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
        }

.btn-cta { 
                 display: inline-block;
            background-color: #ff0000;
            color: white;
            padding: 3vh 3.4vw;
            border-radius: 9999px;
            font-weight: 700;
            font-size: 2.5vw;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            text-align: center;
            margin-bottom: 0vh;
                 
            }
            
            .btn-cta:hover {
            background-color: #e80000;
    
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
        }
        
        /* --- Mensaje de Plazas debajo del CTA --- */
        .plazas-restantes-cta {
            margin-top: 1.25vh;
            font-size: 1.5vw;
            font-weight: 700;
            color: #ffffff;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            animation: blink-blink-rojo 1.5s infinite;
            text-shadow: 0 0 8px rgba(220, 38, 38, 0.7);
            transition: opacity 0.3s ease;
            text-align:center;
             
            margin-top: 0vw; 
            text-align: center
        }

        /* === COMPONENTE CTA UNIFICADO === */
        .cta-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 1.5vh;
            width: 100%;
            max-width: 400px;
            margin: 0 auto;
        }

        .cta-container .btn-cta {
            margin-bottom: 0;
        }

        .cta-container .plazas-restantes-cta-final {
            margin-top: 0;
        }
        
        /* Fallback para que el contenido sea visible sin JavaScript */
        .no-js .scrollytelling-escena {
            position: relative !important;
            opacity: 1 !important;
            pointer-events: auto !important;
            height: auto !important;
            margin-bottom: 50vh;
        }
        
        .no-js .seccion-scrollytelling {
            height: auto !important;
        }

        /* Sistema de carga progresiva para servidor */
        .scrollytelling-escena {
            transition: opacity 0.5s ease-in-out;
        }

        .scrollytelling-escena.loading {
            opacity: 0.3;
            background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
        }

        .scrollytelling-escena.loaded {
            opacity: 1;
        }

        /* Placeholder mientras cargan las imágenes */
        .scrollytelling-fondo {
            background-color: #1a1a1a;
            transition: opacity 0.8s ease-in-out;
        }

        .scrollytelling-escena.loading .scrollytelling-fondo::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 40px;
            height: 40px;
            border: 3px solid #333;
            border-top: 3px solid #dc2626;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            z-index: 10;
        }

        .scrollytelling-escena.loading .scrollytelling-contenido {
            opacity: 0.6;
        }

        .scrollytelling-escena.loaded .scrollytelling-contenido {
            opacity: 1;
            transition: opacity 0.5s ease-in-out 0.2s;
        }

        @keyframes spin {
            0% { transform: translate(-50%, -50%) rotate(0deg); }
            100% { transform: translate(-50%, -50%) rotate(360deg); }
        }

        /* Optimización para conexiones lentas */
        @media (prefers-reduced-motion: reduce) {
            .scrollytelling-escena,
            .scrollytelling-fondo,
            .scrollytelling-contenido {
                transition: none !important;
            }
            
            .scrollytelling-escena.loading .scrollytelling-fondo::before {
                animation: none;
            }
        }
        .plazas-restantes-cta-final {
            margin-top: 1.5vh;
            font-size: 2vw;
            font-weight: 700;
            color: #ffffff;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            animation: blink-blink-rojo 1.5s infinite;
            text-shadow: 0 0 8px rgba(220, 38, 38, 0.7);
            transition: opacity 0.3s ease;
            text-align:center;
        }
            

        @keyframes blink-rojo {
            0%, 100% {
                opacity: 1;
                text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
            }
            50% {
                opacity: 0.5;
                text-shadow: 0 0 4px rgba(220, 38, 38, 0.5);
            }
        }

        /* --- Indicador de Scroll --- */
        .scroll-indicator {
            position: absolute;
            bottom: calc(2rem + 50px);
            right: 2rem;
            z-index: 20;
            display: flex;
            flex-direction: column;
            align-items: center;
            color: white;
            opacity: 0;
            animation: fadeInScroll 1s 1.5s forwards;
            transition: opacity 0.3s ease;
        }

        @keyframes fadeInScroll {
            to {
                opacity: 0.8;
            }
        }

        .scroll-indicator__text {
            writing-mode: vertical-rl;
            font-size: 0.75rem;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            margin-bottom: 0.75rem;
        }

        .scroll-indicator__arrow {
            width: 24px;
            height: 24px;
            animation: bounce-arrow 2s infinite ease-in-out;
        }

        @keyframes bounce-arrow {
            0%, 20%, 50%, 80%, 100% {
                transform: translateY(0);
            }
            40% {
                transform: translateY(8px);
            }
            60% {
                transform: translateY(4px);
            }
        }

        /* --- Barra de Urgencia Móvil --- */
        .urgency-banner {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background-color: var(--color-rojo);
            color: white;
            z-index: 50;
            overflow: hidden;
            white-space: nowrap;
            display: flex;
            align-items: center;
            height: var(--banner-height);
            transition: opacity 0.3s ease, transform 0.3s ease;
        }
        
        .urgency-banner.hidden {
            opacity: 0;
            transform: translateY(100%);
        }

        .urgency-banner__track {
            display: flex;
            align-items: center;
            animation: marquee 30s linear infinite;
        }

        .urgency-banner__item {
            display: flex;
            align-items: center;
            gap: 2.5rem;
            padding: 0 2.5rem;
            font-family: 'Bebas Neue', sans-serif;
            font-size: 1.25rem;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            flex-shrink: 0;
            position: relative;
        }
        
        .urgency-banner__item::after {
            content: '≫';
            font-family: 'Bebas Neue', sans-serif;
            font-size: 1.25rem;
            letter-spacing: 0.05em;
            opacity: 0.75;
            position: absolute;
            right: 0;
            top: 50%;
            transform: translate(50%, -50%);
        }

        .urgency-banner__separator {
            opacity: 0.75;
        }

        /* --- Contador en el Banner --- */
        .banner-contador {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            color: white;
        }
        .banner-contador__reloj {
            display: flex;
            align-items: baseline;
            gap: 0.2rem;
        }
        .unidad-tiempo {
            display: flex;
            flex-direction: column;
            align-items: center;
            line-height: 1;
        }
        .numero-tiempo {
            font-size: 1.25rem;
            font-weight: 400;
            font-family: 'Bebas Neue', sans-serif;
            min-width: 2ch;
            text-align: center;
        }
        .separador-tiempo {
            font-size: 1.1rem;
            font-weight: 400;
            font-family: 'Bebas Neue', sans-serif;
            padding: 0 0.1rem;
            transform: translateY(-2px);
        }
        .etiqueta-tiempo {
            font-size: 0.5rem;
            margin-top: 3px;
            font-family: 'Roboto', sans-serif;
            font-weight: 500;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            opacity: 0.9;
        }

        @keyframes marquee {
            0% { transform: translateX(0%); }
            100% { transform: translateX(-50%); }
        }
        
        /* --- Scrollytelling Section --- */
        .seccion-scrollytelling {
            position: relative;
            height: 5000vh; /* Aumentado para el nuevo timeline */
            z-index: 15;
            color: white;
            background-color: #000; /* Fondo base para todas las escenas */
        }

        .scrollytelling-pegajoso {
            position: sticky;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            overflow: hidden;
            will-change: transform, opacity;
        }

        .scrollytelling-escena {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 1; /* Visible por defecto */
            pointer-events: auto; /* Interactuable por defecto */
        }
        
        /* Clase para controlar la visibilidad via JavaScript */
        .scrollytelling-escena.js-hidden {
            opacity: 0;
            pointer-events: none;
        }
        
        .scrollytelling-escena.js-active {
            opacity: 1;
            pointer-events: auto;
        }
        
        
        
        .scrollytelling-fondo {
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            position: absolute;
            top: 0;
            left: 0;
        }
        #scrollytelling-fondo-1 {
            background-image: url('imagenes/fondo1.jpg');
        }
        #scrollytelling-fondo-2 {
            background-image: url('imagenes/fondo2_.jpg');
        }
        
        .scrollytelling-contenido {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            pointer-events: none;
        }

        .texto-scroll {
            font-family: 'Bebas Neue', sans-serif;
            font-size: clamp(3rem, 10vw, 8rem);
            font-weight: 500;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            line-height: 1.1;
            opacity: 0; /* Controlado por JS */
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
            position: absolute;
        }
        
        #texto-scroll-1 {
            transform: translateY(-0.6em);
        }
        #texto-scroll-2 {
            transform: translateY(0.6em);
        }
        
        .contenido-leyenda {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            width: 100%;
            gap: 2.5rem;
            pointer-events: auto;
        }

    
        
        #texto-leyenda {
            position: relative;
            text-align: center;
            color: var(--color-rojo);
            text-shadow: 0 0 8px rgba(220, 38, 38, 0.6), 0 0 16px rgba(220, 38, 38, 0.4);
            opacity: 1;
            line-height: 1;
            max-width: 90%;
            font-size: clamp(3.2rem, 13vw, 5.5rem);
        }

        .video-embebido-contenedor {
            position: relative;
            width: 90%;
            max-width: 800px;
            margin-top: 2rem;
            opacity: 0; /* JS controlled */
            pointer-events: auto;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
            border-radius: 12px;
            overflow: hidden;
            z-index: 25;
        }

        /* --- Barra de Progreso de Scroll (Nueva) --- */
        .scroll-progress-container {
            position: fixed;
            top: 50%;
            right: 2rem;
            transform: translateY(-50%);
            width: 2px;
            height: 33vh;
            background-color: rgba(255, 255, 255, 0.2);
            z-index: 30;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }
        
        .scroll-progress-container.visible {
            opacity: 1;
            visibility: visible;
        }

        .scroll-progress-bar {
            width: 100%;
            height: 0%; /* Controlado por JS */
            background-color: white;
            transition: height 0.1s linear;
        }

        /* --- Video Embebido y Responsivo --- */
        .video-responsive-contenedor {
            position: relative;
            padding-bottom: 56.25%; /* 16:9 aspect ratio */
            height: 0;
            overflow: hidden;
            background-color: #000;
        }
        .video-responsive-contenedor iframe,
        .video-responsive-contenedor #youtube-player,
        .video-responsive-contenedor #youtube-fallback {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
        
        /* --- GRAN FONDO (Integrado en Scrollytelling) --- */
        #gran-fondo-wrapper {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate( -50%, -50%);
            width: 100%;
            z-index: 10; /* Para mantenerse por encima de la distancia */
            transition: opacity 0.3s ease; /* Para la animación de salida */
        }
        .texto-gran-fondo-contenedor {
            font-family: 'Bebas Neue', sans-serif;
            font-size: clamp(3.5rem, 15vw, 12rem);
            font-weight: 500;
            letter-spacing: 0.05em;
            color: white;
            display: flex;
            justify-content: center;
            gap: clamp(1rem, 4vw, 3rem);
            white-space: nowrap;
            margin-top:50px;
        }

        .texto-gran-fondo-palabra {
            display: inline-block;
        }

        #mapa-container {
            --y-offset: 30px; /* Variable para animación JS */
            position: absolute;
            top: 270px;
            left: 10%;
            width: 45%;
            max-width: 550px;
            opacity: 0;
            transform: translateY(var(--y-offset));
            transition: opacity 0.4s ease, transform 0.4s ease;
            z-index: 15;
            
        }

        #mapa-gran-fondo {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 12px;
            box-shadow: 0 15px 40px rgba(0,0,0,0.6);
        }

        /* --- Estilos para los Enlaces del Mapa --- */
        .map-links-container {
            flex-direction: row;
            display: flex; /* Coloca los enlaces uno al lado del otro */
            justify-content: center; /* Centra los enlaces horizontalmente */
            gap: 1.5rem; /* Añade espacio entre cada enlace */
            margin-top: 1rem; /* Añade un pequeño margen superior para separarlo del mapa */
            flex-wrap: wrap; /* Permite que los enlaces pasen a la siguiente línea en pantallas pequeñas */
        }

        .map-link {
            color: #ffffff; /* Color del texto blanco */
            font-size: clamp(0.9rem, 1.5vw, 1rem); /* Tamaño de fuente adaptable */
            font-weight: 400;
            text-decoration: none; /* Quita el subrayado por defecto */
            border-bottom: 1px solid rgba(255, 255, 255, 0.4); /* Línea sutil debajo */
            padding-bottom: 4px; /* Espacio entre el texto y la línea */
            transition: color 0.3s ease, border-color 0.3s ease; /* Transición suave para el hover */
        }

        /* --- Efecto Hover Elegante --- */
        .map-link:hover {
            color: #b0b0b0; /* Texto se oscurece a un gris claro */
            border-color: rgba(255, 255, 255, 0.7); /* La línea se hace un poco más visible */
        }

        #puertos-container {
            position: absolute;
            top: 270px;
            left: 60%;
            width: 70vw;
            max-width: 32.5vw;
            text-align: left;
            z-index: 20; /* Base z-index */
        }

        #titulo-puertos {
            font-family: 'Bebas Neue', sans-serif;
            font-size: clamp(2.5rem, 5vw, 4rem);
            margin-bottom: 1rem;
            color: white;
            opacity: 0; /* initial state */
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        /* --- Estilos Acordeón de Puertos --- */
        #lista-puertos, #lista-crono, #lista-puertos-mf, #lista-crono-mf {
            list-style: none;
            padding: 0;
        }
        
        .puerto-item {
            font-family: 'Roboto', sans-serif;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            opacity: 0; /* from existing animation */
            transform: translateX(100px); /* from existing animation */
            transition: opacity 0.3s ease, transform 0.3s ease;
        }
        .puerto-item:last-child {
            border-bottom: none;
        }

        .puerto-toggle {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 70vw;
            padding: 1vw;
            text-align: left;
            color: white;
            font-size: clamp(1.1rem, 2vw, 1.6rem);
            font-weight: 300;
            font-family: inherit;
        }
        .puerto-toggle span {
            transition: color 0.3s ease;
        }

        .puerto-icono {
            width: clamp(1rem, 2vw, 1.2rem);
            height: clamp(1rem, 2vw, 1.2rem);
            color: rgba(255, 255, 255, 0.7);
            flex-shrink: 0;
            margin-left: 1rem;
            transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.3s ease;
        }

        .puerto-info {
            max-height: 0;
            background: black;
            opacity: 0;
            transition: max-height 0.4s ease-out, opacity 0.3s ease-out, padding-bottom 0.4s ease-out, transform 0.4s ease-out;
            padding-bottom: 0;
            cursor: default;
            pointer-events: none; /* Evita interacciones cuando está oculto */
        }
        .puerto-info p {
            background: black;
            font-size: clamp(1.25vw, 1.25vw, 1.25vw);
            font-weight: 300;
            color: #d1d5db; /* Lighter grey */
            line-height: 1.6;
            padding: 0 0.5rem 0 0;
        }
        
        /* Universal hover state for all devices */
        .puerto-item:hover .puerto-toggle span {
            color: var(--color-rojo);
           
        }
        .puerto-item:hover .puerto-toggle .puerto-icono {
            transform: rotate(135deg); /* Turns + into x */
            color: var(--color-rojo);
            
        }
        .puerto-item:hover .puerto-info {
            max-height: 200px; /* Ample height for content */
            opacity: 1;
            padding-bottom: 1rem;
            pointer-events: auto; /* Permite interacciones cuando es visible */
        }
        
        /* --- Avituallamientos Section --- */
        #avituallamientos-container {
            position: absolute;
            top: 270px;
            left: 60%;
            width: 30%;
            max-width: 450px;
            text-align: left;
            opacity: 0; /* controlled by JS */
            pointer-events: none;
        }

        #titulo-avituallamientos {
            font-family: 'Bebas Neue', sans-serif;
            font-size: clamp(2.5rem, 5vw, 4rem);
            margin-bottom: 1rem;
            color: white;
            opacity: 0; /* controlled by JS */
            transform: translateX(100px); /* controlled by JS */
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        #numero-avituallamientos {
            font-family: 'Bebas Neue', sans-serif;
            font-size: clamp(12rem, 30vw, 20rem);
            font-weight: 500;
            color: white;
            line-height: 1;
            text-align: center;
            width: 100%;
            opacity: 0; /* controlled by JS */
            transform: scale(0.9); /* controlled by JS */
            transition: opacity 0.4s ease, transform 0.4s ease;
        }

        /* --- Distancia Section --- */
        #distancia-container,
        #distancia-mf-container,
        #desnivel-mf-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0; /* JS controlled */
            pointer-events: none;
            z-index: 5;
        }



        #texto-distancia,
        #texto-distancia-mf,
        #texto-desnivel-mf {
            font-family: 'Bebas Neue', sans-serif;
            font-size: clamp(10rem, 20vw, 25rem);
            font-weight: 500;
            line-height: 1;
            text-align: center;
            transform: scale(0.8);
            color: transparent;
            background: linear-gradient(90deg, 
                #ff5e5e, 
                #fff,
                #dc2626,
                #b91c1c,
                #dc2626,
                #fff,
                #ff5e5e
            );
            background-size: 300% 100%;
            -webkit-background-clip: text;
            background-clip: text;
            animation: circulate-glow 4s linear infinite, neon-outer-glow 2.5s infinite ease-in-out;
        }

        @keyframes circulate-glow {
            from { background-position: 150% 50%; }
            to { background-position: -150% 50%; }
        }

        @keyframes neon-outer-glow {
            0%, 100% {
                text-shadow: 0 0 10px rgba(220, 38, 38, 0.7), 0 0 25px rgba(220, 38, 38, 0.7), 0 0 50px rgba(220, 38, 38, 0.5);
            }
            50% {
                text-shadow: 0 0 15px rgba(220, 38, 38, 0.8), 0 0 35px rgba(220, 38, 38, 0.8), 0 0 65px rgba(220, 38, 38, 0.6);
            }
        }

        /* --- Escenas Finales --- */
        #scrollytelling-fondo-4 {
            background-image: url('imagenes/fondo4.jpg');
        }
        
        #scrollytelling-fondo-5 {
            background-image: url('imagenes/fondo8.jpg');
        }

        #texto-final-1, #texto-final-2 {
            white-space: nowrap;
        }

        #texto-final-1 {
            top: calc(50% - 0.7em); /* Ajustado para centrar mejor */
        }
        #texto-final-2 {
            top: calc(50% + 0.7em); /* Ajustado para centrar mejor */
            color: #d1d5db;
        }

        /* --- Mide tu progreso (ESCENA 5 REESTRUCTURADA) --- */
        .progreso-fijo {
            position: fixed;
            z-index: 25;
            opacity: 0; /* Controlado por JS, sin transición de CSS */
            color: white;
            text-shadow: 0 0 10px rgba(0,0,0,0.7);
            pointer-events: none;
            will-change: transform;
        }

        #progreso-contador {
            top: 150px;
            right: 2rem;
            font-family: 'DS-Digital', sans-serif;
            font-size: clamp(3rem, 8vw, 6rem);
            letter-spacing: 0.05em;
            transform: translateY(-300px); /* Posición inicial fuera de pantalla */
        }

        #progreso-reloj {
            bottom: 2rem;
            left: 2rem;
            width: clamp(80px, 15vw, 150px);
            height: clamp(80px, 15vw, 150px);
            transform: translateY(300px); /* Posición inicial fuera de pantalla */
        }
        #reloj-aguja-hora, #reloj-aguja-minuto {
            transform-origin: center;
        }

        #progreso-moving-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            will-change: transform;
            transform: translateY(100vh); /* Start position */
        }

        .progreso-contenido .texto-scroll {
            position: relative;
            opacity: 1; /* Always visible within its container */
            top: auto;
            transform: none;
        }

        #progreso-regla {
            width: 80%;
            max-width: 600px;
            height: 20px;
            background-color: rgba(255,255,255,0.2);
            margin-top: 1.5rem;
            border: 1px solid rgba(255,255,255,0.3);
            border-radius: 2px;
            padding: 3px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.4);
            /* Ruler ticks */
            background-image: repeating-linear-gradient(90deg, 
                rgba(255,255,255,0.4), 
                rgba(255,255,255,0.4) 1px, 
                transparent 1px, 
                transparent 10%);
        }

        #progreso-regla-relleno {
            width: 0%; /* JS Controlled */
            height: 100%;
            background-color: var(--color-rojo);
            border-radius: 1px;
        }


        /* --- Cronoescaladas Section (Nueva) --- */
        #altimetria-container {
            position: absolute;
            top: 270px;
            left: 10%;
            width: 45%;
            max-width: 550px;
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.4s ease, transform 0.4s ease;
        }

        #altimetria-img {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 12px;
            box-shadow: 0 15px 40px rgba(0,0,0,0.6);
        }

        #crono-container {
            position: absolute;
            top: 270px;
            left: 60%;
            width: 32.5vw;
            max-width: 32.5vw;
            text-align: left;
            transition: transform 0.4s ease; /* For exit animation */
        }

        #titulo-crono {
            font-family: 'Bebas Neue', sans-serif;
            font-size: clamp(2.5rem, 5vw, 4rem);
            margin-bottom: 1rem;
            color: white;
            opacity: 0; /* initial state */
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        /* --- Desnivel Section (Nueva) --- */
        #desnivel-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column; /* To stack texts */
            align-items: center;
            justify-content: center;
            opacity: 0; /* JS controlled */
            pointer-events: none;
            z-index: 5;
        }

        #texto-desnivel {
            position: relative; /* Needed for stacking context */
            font-family: 'Bebas Neue', sans-serif;
            font-size: clamp(10rem, 20vw, 25rem);
            font-weight: 500;
            line-height: 1;
            text-align: center;
            transform: scale(0.8);
            color: transparent;
            background: linear-gradient(90deg, 
                #ff5e5e, 
                #fff,
                #dc2626,
                #b91c1c,
                #dc2626,
                #fff,
                #ff5e5e
            );
            background-size: 300% 100%;
            -webkit-background-clip: text;
            background-clip: text;
            animation: circulate-glow 4s linear infinite, neon-outer-glow 2.5s infinite ease-in-out;
        }
        
        #texto-miedo {
            font-size: clamp(2rem, 5vw, 4rem);
            position: relative;
            opacity: 0; /* JS controlled */
            margin-top: 0rem; /* Adjust overlap */
        }
        
        /* --- Nuevas Escenas Medio Fondo --- */
        #scrollytelling-fondo-6 {
             background-image: url('imagenes/fondo5.jpg');
        }
        #scrollytelling-fondo-7 {
             background-image: url('https://images.pexels.com/photos/373495/pexels-photo-373495.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2');
        }

        #medio-fondo-wrapper {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100%;
        }
        
        #gloria-ritmo-wrapper {
            position: absolute;
            top: 62%; /* Lowered to be below the main title */
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100%;
            opacity: 0; /* Controlled by JS */
            pointer-events: none; /* No interaction */
        }

        #gloria-ritmo-wrapper .texto-gran-fondo-contenedor {
            font-size: clamp(1.8rem, 5vw, 3.5rem); /* Smaller font size */
        }

        /* --- Estilos para Medio Fondo (Nuevos) --- */
        #mapa-mf-container {
            --y-offset: 0px; /* No se usa Y offset para esta animacion */
            position: absolute;
            top: 270px;
            left: 10%;
            width: 45%;
            max-width: 550px;
            opacity: 0;
            transform: translateX(-100vw); /* Inicia fuera de la pantalla a la izquierda */
            transition: opacity 0.4s ease, transform 0.4s ease;
            z-index: 15;
        }

        #mapa-medio-fondo {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 12px;
            box-shadow: 0 15px 40px rgba(0,0,0,0.6);
        }

        #puertos-mf-container {
            position: absolute;
            top: 270px;
            left: 60%;
            width: 32.5vw;
            max-width: 450px;
            text-align: left;
            z-index: 20;
        }

        #titulo-puertos-mf {
            font-family: 'Bebas Neue', sans-serif;
            font-size: clamp(2.5rem, 5vw, 4rem);
            margin-bottom: 1rem;
            color: white;
            opacity: 0;
            transform: translateX(100px); /* Inicia desplazado para animación JS */
            transition: opacity 0.3s ease, transform 0.3s ease;
        }



        /* --- Avituallamientos Medio Fondo (Nuevos) --- */
        #avituallamientos-mf-container {
            position: absolute;
            top: 270px;
            left: 60%;
            width: 30%;
            max-width: 450px;
            text-align: left;
            opacity: 0; /* JS controlled */
            pointer-events: none;
            transition: opacity 0.4s ease, transform 0.4s ease;
        }

        #titulo-avituallamientos-mf {
            font-family: 'Bebas Neue', sans-serif;
            font-size: clamp(2.5rem, 5vw, 4rem);
            margin-bottom: 1rem;
            color: white;
            opacity: 0; /* controlled by JS */
            transform: translateX(100px); /* controlled by JS */
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        #numero-avituallamientos-mf {
            font-family: 'Bebas Neue', sans-serif;
            font-size: clamp(12rem, 30vw, 20rem); /* Same as Gran Fondo */
            font-weight: 500;
            color: white;
            line-height: 1;
            text-align: center;
            width: 100%;
            opacity: 0; /* controlled by JS */
            transform: translateY(100px); /* controlled by JS */
            transition: opacity 0.4s ease, transform 0.4s ease;
        }

        /* --- Altimetria y Cronoescalada Medio Fondo (Nuevos) --- */
        #altimetria-mf-container {
            position: absolute;
            top: 270px;
            left: 10%;
            width: 45%;
            max-width: 550px;
            opacity: 0;
            transform: translateX(-100vw);
            transition: opacity 0.4s ease, transform 0.4s ease;
        }

        #altimetria-mf-img {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 12px;
            box-shadow: 0 15px 40px rgba(0,0,0,0.6);
        }

        #crono-mf-container {
            position: absolute;
            top: 270px;
            left: 60%;
            width: 32.5vw;
            max-width: 450px;
            text-align: left;
            z-index: 20;
            transition: transform 0.4s ease; /* For exit animation */
        }

        #titulo-crono-mf {
            font-family: 'Bebas Neue', sans-serif;
            font-size: clamp(2.5rem, 5vw, 4rem);
            margin-bottom: 1rem;
            color: white;
            opacity: 0;
            transform: translateX(100px);
            transition: opacity 0.3s ease, transform 0.3s ease;
        }
        
        /* --- Nueva Escena 12 --- */
        #escena-12 .scrollytelling-contenido {
            justify-content: center; /* Centrar verticalmente */
            flex-direction: column; /* Para apilar título y tarjetas */
            padding-top: 2rem;
        }

        #scrollytelling-fondo-8 {
            background-image: url('imagenes/fondo5.jpg');
            opacity: 0; /* Controlado por JS para aparición tardía */
            transition: opacity 0.5s ease-in-out;
        }

        #scrollytelling-fondo-9 {
            background-image: url('imagenes/fondo3.jpg');
            opacity: 0; /* Controlado por JS para la transición */
            transition: opacity 0.5s ease-in-out;
        }

        #scrollytelling-fondo-10 {
            background-image: url('imagenes/fondo6.jpg');
            opacity: 0; /* Controlado por JS para la transición */
            transition: opacity 0.5s ease-in-out;
        }

        #texto-elite {
            position: absolute;
            top: 50%;
            left: 0;
            font-family: 'Bebas Neue', sans-serif;
            font-size: clamp(14rem, 30vw, 16rem);
            font-weight: 500;
            color: white;
            white-space: nowrap;
            will-change: transform;
            opacity: 1; /* Opacity is handled by scene fade */
            transform: translateY(-50%) translateX(100vw); /* Initial position */
            pointer-events: none; /* FIX: Evita que bloquee el hover en las tarjetas */
        }
        
        #texto-elite .mobile-elite {
            display: none;
            font-size: clamp(20rem, 35vw, 20rem);
            line-height: 1.1;
        }
        
        /* --- NUEVO TÍTULO: ANTES/DURANTE LA MARCHA --- */
        .titulo-marcha-movil {
            font-family: 'Bebas Neue', sans-serif;
            font-size: clamp(2rem, 5vw, 3rem);
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: white;
            margin-bottom: 2rem;
            display: block; /* Visible por defecto */
        }

        .titulo-marcha-desktop {
            font-family: 'Bebas Neue', sans-serif;
            font-size: clamp(2rem, 5vw, 3rem);
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: white;
            position: absolute;
            top: 20vh;
            left: 50%;
            transform: translateX(-50%);
            z-index: 25;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
            display: none; /* Oculto por defecto */
        }

        /* --- NUEVO: Estilos Acordeón "Scroll" --- */
        .cards-section-container {
            position: absolute;
            top: 50%;
            left: 0;
            transform: translateY(-50%);
            width: auto;
            pointer-events: auto; /* Habilitar interacción */
            opacity: 0; /* Controlado por JS */
            z-index: 20;
        }

        .cards-track {
            display: flex;
            width: fit-content;
            padding: 0 2rem;
            gap: 2rem;
            will-change: transform; /* Performance hint */
        }

        .card-wrapper {
            display: flex;
            flex-direction: column;
            align-items: center;
            flex-shrink: 0;
        }
        
        .acordeon-item {
            background-color: rgba(26, 26, 26, 0.6);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            width: 320px;
            cursor: pointer;
            transition: background-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                        transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                        box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                        border-color 0.4s ease;
        }
        .acordeon-item:hover {
            background-color: rgba(42, 42, 42, 0.8);
            transform: scale(1.03) translateY(-8px);
            box-shadow: 0 12px 35px rgba(0,0,0,0.6);
            border-color: rgba(255, 255, 255, 0.25);
        }

        .acordeon-toggle {
            position: relative;
            display: flex;
            flex-direction: column; 
            justify-content: center; 
            align-items: center;
            width: 100%;
            padding: 1.25rem;
            text-align: center;
            color: white;
        }

        .card-subtitle {
            font-family: 'Bebas Neue', sans-serif;
            font-size: clamp(1rem, 2.5vw, 1.25rem);
            color: white;
            letter-spacing: 0.05em;
            white-space: nowrap;
            opacity: 0.8;
            margin-bottom: 0.25rem;
        }

        .acordeon-titulo {
            font-family: 'Bebas Neue', sans-serif;
            font-size: clamp(1.5rem, 4vw, 2rem);
            font-weight: 500;
            letter-spacing: 0.05em;
            line-height: 1.1;
            text-transform: uppercase;
            white-space: normal; /* Permitir wrap si es necesario */
            padding: 0; /* Eliminado padding lateral */
        }

        .acordeon-icono {
            position: absolute;
            right: 1.25rem;
            top: 50%;
            width: 1.5rem;
            height: 1.5rem;
            color: white;
            flex-shrink: 0;
            transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            transform: translateY(-50%) rotate(0deg);
        }
        .acordeon-item {
                width: 30vw;
                max-width: 30vw;
            }

        .acordeon-item:hover .acordeon-icono {
             transform: translateY(-50%) rotate(45deg);
        }


        .acordeon-contenido {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s ease-out, padding 0.5s ease-out;
        }
        .acordeon-contenido p {
            padding: 0 1.25rem 0 1.25rem; /* No padding bottom on initial state */
            font-size: clamp(1.5vw, 1.5vw, 1.5vw);
            line-height: 1.6;
            color: #d1d5db;
        }

        .acordeon-item:hover .acordeon-contenido {
            max-height: 500px;
            padding-bottom: 1.25rem;
        }
        
        /* --- Escena Final CTA --- */
        #escena-final-cta {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background-color: #000;
            gap: 1.25rem;
            padding: 2rem 1rem;
            box-sizing: border-box;
            margin-top: 0rem;
            transition: opacity 0.4s ease, transform 0.4s ease;
        }
        
        .cta-title-final, #cta-final, #plazas-final, .badges-container {
            transition: opacity 0.4s ease, transform 0.4s ease;
            
        }
        
        .badges-container{
    
    flex-direction: row;
}
        .cta-title-final {
            font-family: 'Bebas Neue', sans-serif;
            font-size: 7rem;
            letter-spacing: 0.1em;
            color: #FFFFFF;
            text-transform: uppercase;
            margin-bottom: 10rem;
            opacity: 0;
            transform: translateY(20px);
        }

        #cta-final {
            display: inline-block;
            background-color: #e50000;
            color: white;
            padding: 1.25rem 3.125rem;
            border-radius: 9999px;
            font-weight: 700;
            font-size: 1.25rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            text-align: center;
            
        }

        #cta-final:hover {
            background-color: #e80000;
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
        }




        #plazas-final {
            margin-top: -20px;
            opacity: 0;
            transform: translateY(20px);
        }

        .badges-container {
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            gap: 0.75rem;
            margin-top: 14rem;
            opacity: 0;
            transform: translateY(20px);
            opacity: 1 !important;
            transform: none !important;
        
        }

        .trust-badge {
            background: rgba(45, 45, 45, 0.85);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            padding: 0.75rem 1.25rem;
            display: inline-flex;
            align-items: center;
            gap: 0.6rem;
            color: white;
            font-size: 0.9rem;
            font-weight: 500;
            width: fit-content;
            max-width: 90vw;
            z-index:30;
        }
       
        .trust-badge svg {
            width: 1.25rem;
            height: 1.25rem;
            color: var(--color-verde);
            flex-shrink: 0;
        }

        /* --- NUEVA SECCIÓN DE PREMIOS --- */
        #scrollytelling-fondo-premios {
            background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('imagenes/fondo7.jpg');
        }

        #escena-premios .scrollytelling-contenido {
            justify-content: flex-start;
            padding-top: 3vh;
            
        }

        #titulo-premios {
            font-family: 'Bebas Neue', sans-serif;
            font-size: clamp(3rem, 10vw, 6rem);
            color: white;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            position: absolute;
            top: 12vh;
            opacity: 0; /* JS controlled */
            transform: translateX(100vw); /* JS controlled */
            transition: opacity 0.5s ease-out, transform 0.5s ease-out;
        }

        .acordeon-premios-container {
            margin-top: calc(15vh + clamp(3rem, 4vw, 6rem));
            width: 90%;
            max-width: 800px;
            pointer-events: auto;
            opacity: 0; /* JS controlled */
            transform: translateY(50px); /* JS controlled */
            transition: opacity 0.5s ease, transform 0.5s ease;
        }

        .premio-item {
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.4s ease, transform 0.4s ease;
        }
        .premio-item:last-child {
            border-bottom: none;
        }

        .premio-toggle {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            padding: 1.25rem 0.5rem;
            text-align: left;
            color: white;
        }
        
        .premio-toggle span {
            font-size: clamp(6vw, 6vw, 6vw);
            font-family: 'Bebas Neue', sans-serif;
            letter-spacing: 0.05em;
            transition: color 0.3s ease;
        }

        .premio-info {
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            transition: max-height 0.4s ease-out, opacity 0.3s ease-out, padding-bottom 0.4s ease-out;
            padding: 0 0.5rem;
        }
        
        .premio-info p {
            font-size: clamp(3vw, 3vw, 3vw);
            color: #d1d5db;
            line-height: 1.6;
            margin-bottom: 0; /* Reset margin */
        }
        
        .premio-item:hover .premio-toggle span {
            color: var(--color-rojo);
        }

        .premio-item:hover .premio-info {
            max-height: 200px;
            opacity: 1;
            padding-bottom: 1.5rem;
        }

        /* --- NUEVA SECCIÓN FAMILIA AITANA TOUR --- */
        #scrollytelling-fondo-familia {
            background-color: #0a0a0a;
        }

        #escena-familia .scrollytelling-contenido {
            justify-content: flex-start;
            padding: 5vh 0;
            overflow: hidden; /* Evita que las columnas se salgan */
        }

        #titulo-familia {
            font-family: 'Bebas Neue', sans-serif;
            font-size: clamp(3rem, 10vw, 6rem);
            color: white;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            position: relative;
            z-index: 10;
            margin-bottom: 5vh;
            margin-top: 5vh;
            opacity: 0;
            transform: translateY(-30px);
            transition: opacity 0.5s ease, transform 0.5s ease;
        }

        .galeria-familia-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.5vw;
            padding: 0 1.5vw;
            pointer-events: none;
        }

        .galeria-columna {
            display: flex;
            flex-direction: column;
            gap: 1.5vw;
            will-change: transform;
        }

        .galeria-columna img {
            width: 100%;
            height: auto;
            object-fit: cover;
            border-radius: 8px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.5);
            transition: transform 0.3s ease, filter 0.3s ease;
            filter: grayscale(40%);
        }

        .galeria-columna img:hover {
            transform: scale(1.03);
            filter: grayscale(0%);
        }
        
        /* --- NUEVA SECCIÓN DE FAQs --- */
        #scrollytelling-fondo-faq {
            background-color: #0a0a0a;
        }

        #escena-faq .scrollytelling-contenido {
            justify-content: center;
            align-items: center;
        }

        .contenedor-faq {
            max-width: 900px;
            width: 90%;
            margin: 0 auto;
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.5s ease, transform 0.5s ease;
        }

        .titulo-faq {
            font-family: 'Bebas Neue', sans-serif;
            font-size: clamp(3rem, 10vw, 5rem);
            text-align: center;
            margin-bottom: 6vh;
            letter-spacing: 0.1em;
            text-transform: uppercase;
        }

        .acordeon-item-faq {
            border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        }

        .acordeon-item-faq:first-of-type {
            border-top: 1px solid rgba(255, 255, 255, 0.15);
        }

        .acordeon-pregunta {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.75rem 0.5rem;
            text-align: left;
            color: #e5e7eb;
            cursor: pointer;
        }

        .acordeon-pregunta span {
            font-size: clamp(1.1rem, 2.5vw, 1.6rem);
            font-weight: 500;
            font-family: 'Poppins', sans-serif;
            transition: color 0.3s ease;
        }
        
        /* Efecto HOVER para el texto de la pregunta */
        .acordeon-item-faq:hover .acordeon-pregunta span {
            color: var(--color-rojo);
        }

        .acordeon-icono-faq {
            width: 1.5rem;
            height: 1.5rem;
            color: white;
            flex-shrink: 0;
            margin-left: 1.5rem;
            transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        /* Efecto HOVER para el icono */
        .acordeon-item-faq:hover .acordeon-icono-faq {
            transform: rotate(45deg);
        }

        .acordeon-respuesta {
            
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease-out, padding-bottom 0.4s ease-out;
        }
        
        /* Efecto HOVER para mostrar la respuesta */
        .acordeon-item-faq:hover .acordeon-respuesta {
            max-height: 300px; 
            padding-bottom: 2rem;
        }
        
        .acordeon-respuesta p {
            font-size: clamp(0.95rem, 2vw, 1.05rem);
            line-height: 1.7;
            color: #d1d5db;
            padding: 0 0.5rem;
        }
        
         #mapa-gran-fondo {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 12px;
            box-shadow: 0 15px 40px rgba(0,0,0,0.6);
        }
        
@media (min-width: 1024px){
    
        #mapa-container{
        top:20vh;
        }
    
        #puertos-container{
        top:20vh;          
        } 
    
        #mapa-mf-container{
        top:20vh;
        }
    
        #puertos-mf-container{
        top:20vh;          
        } 
    
        #avituallamientos-mf-container, #avituallamientos-container, #altimetria-mf-container, #crono-mf-container{  
            top:20vh;  
        }
    
        .premio-toggle span {
            font-size: clamp(2.5vw, 2.5vw, 2.5vw);
            font-family: 'Bebas Neue', sans-serif;
            letter-spacing: 0.05em;
            transition: color 0.3s ease;
        }

        .premio-info {
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            transition: max-height 0.4s ease-out, opacity 0.3s ease-out, padding-bottom 0.4s ease-out;
            padding: 0 0.5rem;
        }
        
        .premio-info p {
            font-size: clamp(1.5vw, 1.5vw, 1.5vw);
            color: #d1d5db;
            line-height: 1.6;
            margin-bottom: 0; /* Reset margin */
        }
        
    
    
    
    
   
        
    }
        /* --- Diseño Responsivo / Adaptativo --- */
        @media (min-width: 768px) {
            .encabezado-principal { padding: 1.5rem 2rem; }
            .contenido-hero .fecha { font-size: 1.25rem; }
            .eslogan { font-size: 1.25rem; letter-spacing: 0.15em; }
            .contenedor-eslogan { margin-top: 0.5rem; }
            .titulo-marcha-movil {
                display: none;
            }
            .titulo-marcha-desktop {
                display: block;
            }
            .badges-container {
                flex-direction: row; /* Cambia la dirección a horizontal */
                gap: 1rem;           /* Ajusta el espacio entre ellos */
            }
            
          
            
            
            
            
        }

        @media (max-width: 1024px) and (min-width: 768px) {
            #mapa-container, #altimetria-container, #mapa-mf-container, #altimetria-mf-container {
                left: 5%;
                width: 40%;
                top: 25vh;
            }
            #puertos-container, #avituallamientos-container, #crono-container, #puertos-mf-container, #avituallamientos-mf-container, #crono-mf-container {
                left: 60%;
                width: 35%;
                top: 25vh;
            }
            .acordeon-item { width: 280px; }
            .cards-track { gap: 1.5rem; }
            
            /* CTA Container responsive para tablets */
            .cta-container {
                gap: 2vh;
                max-width: 350px;
            }
        }

        @media (max-width: 767px) {
             .btn-cta-inicio { 
                 display: inline-block;
            background-color: #ff0000;
            color: white;
            padding: 3vh 4.3vw;
            border-radius: 9999px;
            font-weight: 700;
            font-size: 3.9vw;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            text-align: center;
            margin-top: 0;
            margin-bottom: 0;
        }
            
            .puerto-info p {
            font-size: clamp(3.2vw, 3.2vw, 3.2vw);
            font-weight: 300;
            color: #d1d5db; /* Lighter grey */
            line-height: 1.6;
            padding: 0 0.5rem 0 0;
        }
            
          
            
            
            
            
            .btn-cta:hover {
            background-color: #e80000;
    
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
        }
            
            
            .btn-cta { 
                 display: inline-block;
            background-color: #ff0000;
            color: white;
            padding: 3vh 4.3vw;
            border-radius: 9999px;
            font-weight: 700;
            font-size: 4vw;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            text-align: center;
            margin-top: 0vh;
                 
            }
            
            .btn-cta:hover {
            background-color: #e80000;
    
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
        }
            
            
            .contenido-hero{
                margin-bottom:80vw;
            }
            
            #menu-title{
                 font-size: 20vw;
            }
            
            .eslogan{
                font-size: 3.5vw;
                
            }
            
            
        .premio-toggle {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            padding: 1.25rem 0.5rem;
            text-align: left;
            color: white;
        }
        
        .premio-toggle span {
            font-size: clamp(7vw, 7vw, 7vw);
            font-family: 'Bebas Neue', sans-serif;
            letter-spacing: 0.05em;
            transition: color 0.3s ease;
        }

        .premio-info {
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            transition: max-height 0.4s ease-out, opacity 0.3s ease-out, padding-bottom 0.4s ease-out;
            padding: 0 0.5rem;
        }
        
        .premio-info p {
            font-size: clamp(3.5vw, 3.5vw, 3.5vw);
            color: #d1d5db;
            line-height: 1.6;
            margin-bottom: 0; /* Reset margin */
        }
        
            
            
            
            .pie-hero { bottom: calc(4vh + 120px); }
             .urgency-banner { height: 6vh;}
            .urgency-banner__item { font-size: 7vw; gap: 1.5rem; padding: 0 1.5rem; height: 10vh;}
            .urgency-banner__item::after { font-size: 7vw; }
            .plazas-restantes-cta { font-size: 1rem; margin-top: 1rem; }
            .banner-contador { gap: 0.5rem; }
            .banner-contador__reloj { gap: 0; }
            .numero-tiempo { font-size: 6vw; }
            .separador-tiempo { font-size: 7vw; transform: translateY(-1px); }
            .etiqueta-tiempo { font-size: 2vw; }
            .scroll-indicator, .scroll-progress-container { right: 1rem; }
            
            
        #scrollytelling-fondo-2 {
    background-position: 80% center; /* <-- ¡Juega con este porcentaje! */
}
            
            
            
            
            

            #escena-2 .scrollytelling-contenido { pointer-events: none; }
            
            #mapa-container {
                top: 15vh;
                left: 50%;
                width: 65vw;
                max-width: 500px;
                transform: translateX(-50%) translateY(var(--y-offset));
            }
            #puertos-container, #avituallamientos-container {
                top: calc(150px + (110vw * 0.7) + 30px);
                left: 50%;
                transform: translateX(-50%);
                width: 80vw;
                max-width: 80vw;
                text-align: center; /* Centrar títulos */
               
            }
            #puertos-container #lista-puertos {
                text-align: left; /* Mantener la lista de puertos alineada a la izquierda */
            }

            
             .map-link {
            color: #ffffff; /* Color del texto blanco */
            font-size: clamp(2vw, 2vw, 2vw); /* Tamaño de fuente adaptable */
            font-weight: 400;
            text-decoration: none; /* Quita el subrayado por defecto */
            border-bottom: 1px solid rgba(255, 255, 255, 0.4); /* Línea sutil debajo */
            padding-bottom: 4px; /* Espacio entre el texto y la línea */
            transition: color 0.3s ease, border-color 0.3s ease; /* Transición suave para el hover */
            gap: 0.2vw;
        }
            
            
            #titulo-puertos, #titulo-crono, #titulo-avituallamientos, #titulo-puertos-mf, #titulo-avituallamientos-mf, #titulo-crono-mf{
                
                font-size: clamp(8vw, 8vw, 8vw);
                
            }
            
            .scrollytelling-contenido h2{
                font-size: clamp(8vw, 8vw, 8vw);
                
                
            }
            
            .puerto-toggle{
                
                font-size: clamp(4vw, 4vw, 4vw);
                
            }
            
            .btn-cta{
                
                margin-bottom:-25vh;
            }
            
           
            
            #altimetria-container {
                top: 15vh;
                left: 50%;
                width: 70vw;
                max-width: 70vw;
                transform: translateX(-50%) translateY(30px);
            }
            #crono-container {
                top: calc(150px + (110vw * 0.7) + 30px); /* 0.7 is an approx aspect ratio */
                left: 10%;
                transform: translateX(-50%);
                width: 80%;
                max-width: 500px;
                text-align: center;
            }
            #crono-container #lista-crono {
                text-align: left;
            }
            
            #mapa-mf-container, #altimetria-mf-container {
                top: 15vh;
                left: 50%;
                width: 70vw;
                max-width: 70vw;
                transform: translateX(calc(-50% - 100vw));
            }
            #puertos-mf-container, #avituallamientos-mf-container{
                top: calc(150px + (140vw * 0.6) + 30px);
                left: 50vw;
                transform: translateX(-50%);
                width: 80%;
                max-width: 500px;
                text-align: center;
            }
            #crono-mf-container{
                left:20vw;
                top:60vh;
                width: 70vw;
                font-size: clamp(2vw, 2vw, 2vw)
                
            }
            
           
            #puertos-mf-container #lista-puertos-mf, #crono-mf-container #lista-crono-mf {
                text-align: left;
                margin-top: -30px; 
            }
            
            #numero-avituallamientos, #numero-avituallamientos-mf {
                font-size: clamp(10rem, 45vw, 15rem);
            }
            
            #lista-puertos, #lista-crono, #lista-puertos-mf, #lista-crono-mf {
                list-style: none;
                padding: 0;
                margin-top: -30px; 
            }
            
            .puerto-item.opens-up {
                position: relative; /* Contexto de posicionamiento */
                border-bottom: none;
                border-top: 1px solid rgba(255, 255, 255, 0.2);
            }
            .puerto-item.opens-up .puerto-info {
                position: absolute;
                bottom: 100%; /* Se posiciona encima del botón */
                left: 0;
                width: 100%;
                background-color: #000;
                transform: translateY(10px); /* Estado inicial para la animación */
                box-shadow: 0 -5px 15px rgba(0,0,0,0.25);
                border-radius: 4px 4px 0 0;
                padding: 0 0.5rem; /* Padding horizontal */
            }
            .puerto-item.opens-up:hover .puerto-info {
                transform: translateY(0); /* Estado final de la animación */
                padding-top: 1rem;
            }
            .puerto-item.opens-up .puerto-info p {
                padding: 0; /* El padding ahora está en el contenedor */
                
            }
            
            /* Responsive para la nueva sección de progreso */
            #progreso-contador {
                top: 150px;
                right: 1.5rem; /* Aumentar padding */
            }
            #progreso-reloj {
                bottom: 1rem;
                left: 1rem;
            }

            /* Estilos responsivos para Escena 12 */
             #escena-12 .scrollytelling-contenido {
                justify-content: center;
                align-items: center;
            }

            #texto-elite {
                top: 50%;
                left: 50%;
                transform: translate(-50%, 100vh);
                white-space: normal;
                text-align: center;
                font-size: clamp(2.5rem, 12vw, 3.5rem);
            }
            #texto-elite .desktop-elite {
                display: none;
            }
            #texto-elite .mobile-elite {
                display: block;
            }

            .cards-section-container {
                top: 0;
                left: 50%;
                transform: translateX(-50%);
                width: 90vw;
            }

            .cards-track {
                flex-direction: column;
                align-items: center;
                padding: 0;
                width: 100%;
                gap: 1.5rem;
            }
           
            .acordeon-item {
                width: 70vw;
                max-width: 70vw;
            }
            .acordeon-toggle { padding: 1rem; }
            
              .acordeon-contenido p {
            padding: 0 1.25rem 0 1.25rem; /* No padding bottom on initial state */
            font-size: clamp(3.5vw, 3.5vw, 3.5vw);
            line-height: 1.6;
            color: #d1d5db;
        }
            .acordeon-item:hover .acordeon-contenido {
                padding-bottom: 1rem;
            }
            
            #escena-final-cta {
                min-height: 100vh; /* Asegura que ocupe toda la pantalla para un mejor centrado */
                justify-content: center;
                padding: 2rem 1rem;
                gap: 1.5rem;
            }

            /* --- Título (CORREGIDO) --- */
            .cta-title-final {
                font-size: 5rem;
                /* REDUCIDO: Un margen inferior enorme separaba demasiado el título del botón */
                margin-bottom: 8rem; 
                text-align: center;
                line-height: 1.1;
            }

            /* --- Contenedor de Badges (CORREGIDO) --- */
            .badges-container {
                /* CORREGIDO: En pantallas menores a 768px, es mejor apilarlos verticalmente */
                flex-direction: column; 
                gap: 0.75rem;
                /* REDUCIDO: Un margen superior enorme los alejaba demasiado */
                margin-top: 6rem; 
                
            }

         
            /* --- RESPONSIVE FAMILIA --- */
            .galeria-familia-container {
                grid-template-columns: repeat(2, 1fr);
                gap: 3vw;
                padding: 0 3vw;
            }
            
            
        #texto-distancia,
        #texto-distancia-mf,
        #texto-desnivel-mf, 
        #texto-desnivel {
            font-family: 'Bebas Neue', sans-serif;
            font-size: clamp(30vw, 30vw, 30vw);
        }
        
        @media (max-width: 480px) {
            
            
            
            .contenido-hero{
                margin-bottom:50vh;
            }
            
            .pie-hero { bottom: calc(4vh + 120px); }
            .urgency-banner__item { font-size: 1rem; gap: 1.5rem; padding: 0 1.5rem; }
            .urgency-banner__item::after { font-size: 1rem; }
           
            .banner-contador { gap: 0.5rem; }
            .banner-contador__reloj { gap: 0; }
            .numero-tiempo { font-size: 1rem; }
            .separador-tiempo { font-size: 0.9rem; transform: translateY(-1px); }
            .etiqueta-tiempo { font-size: 0.4rem; }
            .scroll-indicator, .scroll-progress-container { right: 1rem; }

            #escena-2 .scrollytelling-contenido { pointer-events: none; }
            
            #scrollytelling-fondo-2 {
    background-position: 80% center; /* <-- ¡Juega con este porcentaje! */
}
            
             .puerto-info p {
            font-size: clamp(3.2vw, 3.2vw, 3.2vw);
            font-weight: 300;
            color: #d1d5db; /* Lighter grey */
            line-height: 1.6;
            padding: 0 0.5rem 0 0;
        }
            
            
            #texto-distancia,
            #texto-distancia-mf,
            #texto-desnivel-mf {
                font-family: 'Bebas Neue', sans-serif;
                font-size: clamp(30vw, 30vw, 30vw);
            }
            #mapa-container {
                top: 20vh;
                left: 50%;
                width: 65vw;
                max-width: 500px;
                transform: translateX(-50%) translateY(var(--y-offset));
            }
            
         
            
            
            #puertos-container, #avituallamientos-container {
                top: calc(150px + (90vw * 0.7) + 30px);
                left: 50%;
                transform: translateX(-50%);
                width: 70vw;
                max-width: 500px;
                text-align: center; /* Centrar títulos */
                
            }
            
           #puertos-container h3{
                 font-size: clamp(8vw, 8vw, 8vw);
               padding-bottom: 3vh;
                
            }
            
            .puerto-toggle{
                font-size: clamp(4vw, 4vw, 4vw);
                padding-bottom: 1vh;
                padding-top: 1vh;
                
            }
            #titulo-avituallamientos{
                font-size: clamp(8vw, 8vw, 8vw);
               padding-bottom: 0vh;
                
            }
            
            
            #puertos-container #lista-puertos {
                text-align: left; /* Mantener la lista de puertos alineada a la izquierda */
            }
            
          
            #texto-desnivel {
                font-size: clamp(30vw, 30vw, 30vw);
            }
            
            

            
             .map-link {
            color: #ffffff; /* Color del texto blanco */
            font-size: clamp(2vw, 2vw, 2vw); /* Tamaño de fuente adaptable */
            font-weight: 400;
            text-decoration: none; /* Quita el subrayado por defecto */
            border-bottom: 1px solid rgba(255, 255, 255, 0.4); /* Línea sutil debajo */
            padding-bottom: 4px; /* Espacio entre el texto y la línea */
            transition: color 0.3s ease, border-color 0.3s ease; /* Transición suave para el hover */
            gap:0.1vw;
                 
        }
            
            
            
            #altimetria-container {
                top: 20vh;
                left: 50%;
                width: 70vw;
                max-width: 70vw;
                transform: translateX(-50%) translateY(30px);
            }
            
            #texto-desnivel-mf {
                
            font-size: clamp(35vw, 35vw, 35vw)
                
            }
            
           
           
            #crono-container {
                top: calc(150px + (90vw * 0.7) + 30px); /* 0.7 is an approx aspect ratio */
                left: 10%;
                transform: translateX(-50%);
                width: 70vw;
                max-width: 70vwpx;
                text-align: center;
                margin-bottom:0vh;
            }
            
            #titulo-crono {
            font-family: 'Bebas Neue', sans-serif;
            font-size: clamp(10vw, 10vw, 10vw);
            margin-bottom: 5vh;
            color: white;
            opacity: 0; /* initial state */
            transition: opacity 0.3s ease, transform 0.3s ease;
        }
            
             #titulo-mf-crono {
            font-family: 'Bebas Neue', sans-serif;
            font-size: clamp(10vw, 10vw, 10vw);
            margin-bottom: 5vh;
            color: white;
            opacity: 0; /* initial state */
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

            #crono-container #lista-crono {
                text-align: left;
            }
            
            #mapa-mf-container, #altimetria-mf-container {
                top: 20vh;
                left: 50%;
                width: 70vw;
                max-width: 70vwpx;
                transform: translateX(calc(-50% - 100vw));
            }
            #puertos-mf-container, #avituallamientos-mf-container{
                top: calc(150px + (67vh * 0.6) + 30px);
                left: 50vw;
                transform: translateX(-50%);
                width: 70vw;
                max-width: 500px;
                text-align: center;
            
            }
            #crono-mf-container{
                left:20vw;
                top:65vh;
            }
            
           
            #puertos-mf-container #lista-puertos-mf, #crono-mf-container #lista-crono-mf {
                text-align: left;
                margin-top: 0px; 
            }
            
            #numero-avituallamientos, #numero-avituallamientos-mf {
                font-size: clamp(40vw, 40vw, 40vw);
            }
            
            #lista-puertos, #lista-crono, #lista-puertos-mf, #lista-crono-mf {
                list-style: none;
                padding: 0;
                margin-top: -30px; 
                width: 70vw;
            }
            
            .puerto-item.opens-up {
                position: relative; /* Contexto de posicionamiento */
                border-bottom: none;
                border-top: 1px solid rgba(255, 255, 255, 0.2);
            }
            .puerto-item.opens-up .puerto-info {
                position: absolute;
                bottom: 100%; /* Se posiciona encima del botón */
                left: 0;
                width: 100%;
                background-color: #000;
                transform: translateY(10px); /* Estado inicial para la animación */
                box-shadow: 0 -5px 15px rgba(0,0,0,0.25);
                border-radius: 4px 4px 0 0;
                padding: 0 0.5rem; /* Padding horizontal */
            }
            .puerto-item.opens-up:hover .puerto-info {
                transform: translateY(0); /* Estado final de la animación */
                padding-top: 1rem;
            }
            .puerto-item.opens-up .puerto-info p {
                padding: 0; /* El padding ahora está en el contenedor */
            }
            
            /* Responsive para la nueva sección de progreso */
            #progreso-contador {
                top: 150px;
                right: 1.5rem; /* Aumentar padding */
            }
            #progreso-reloj {
                bottom: 1rem;
                left: 1rem;
            }

            /* Estilos responsivos para Escena 12 */
             #escena-12 .scrollytelling-contenido {
                justify-content: center;
                align-items: center;
            }

            #texto-elite {
                top: 50%;
                left: 50%;
                transform: translate(-50%, 100vh);
                white-space: normal;
                text-align: center;
                font-size: clamp(2.5rem, 12vw, 3.5rem);
            }
            #texto-elite .desktop-elite {
                display: none;
            }
            #texto-elite .mobile-elite {
                display: block;
            }

            .cards-section-container {
                top: 0;
                left: 50%;
                transform: translateX(-50%);
                width: 90vw;
            }
            
            
                .acordeon-contenido p {
            padding: 0 1.25rem 0 1.25rem; /* No padding bottom on initial state */
            font-size: clamp(3.5vw, 3.5vw, 3.5vw);
            line-height: 1.6;
            color: #d1d5db;
        }
            
            

            .cards-track {
                flex-direction: column;
                align-items: center;
                padding: 0;
                width: 100%;
                gap: 1.5rem;
            }
           
            .acordeon-item {
                width: 100%;
                max-width: 380px;
            }
            .acordeon-toggle { padding: 1rem; }
            .acordeon-contenido p { padding: 0 1rem 0 1rem; }
            .acordeon-item:hover .acordeon-contenido {
                padding-bottom: 1rem;
            }
            
            #escena-final-cta {
                min-height: 100vh; /* Asegura que ocupe toda la pantalla para un mejor centrado */
                justify-content: center;
                padding: 2rem 1rem;
                gap: 1.5rem;
            }

            /* --- Título (CORREGIDO) --- */
            .cta-title-final {
                font-size: 15vw;
                /* REDUCIDO: Un margen inferior enorme separaba demasiado el título del botón */
                
                text-align: center;
                line-height: 1.1;
                    
                margin-bottom: 30vh;  /* Reducimos drásticamente el margen inferior */
                margin-top: 0vh;
            }
            
            
            
             .btn-cta-inicio { 
                 display: inline-block;
            background-color: #ff0000;
            color: white;
            padding: 3vh 4.3vw;
            border-radius: 9999px;
            font-weight: 700;
            font-size: 3.9vw;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            text-align: center;
            margin-top:0vh;
            margin-bottom:-25vh;
        
            
            
                 
            }
            
            .btn-cta:hover {
            background-color: #e80000;
    
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
        }
            
            
            .btn-cta { 
                 display: inline-block;
            background-color: #ff0000;
            color: white;
            padding: 3vh 4.3vw;
            border-radius: 9999px;
            font-weight: 700;
            font-size: 4vw;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            text-align: center;
            margin-top: 0vh;
            margin-bottom:0vh;
                 
            }
            
            .btn-cta:hover {
            background-color: #e80000;
    
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
        }
            
            .plazas-restantes-cta-final {
            margin-top: 1.5vh;
            font-size: 3vw;
            font-weight: 700;
            color: #ffffff;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            animation: blink-blink-rojo 1.5s infinite;
            text-shadow: 0 0 8px rgba(220, 38, 38, 0.7);
            transition: opacity 0.3s ease;
            text-align:center;
        }
            
             .plazas-restantes-cta {
                 position:absolute;
                 top:10vh;
            margin-top: 0vh;
            margin-bottom:0vh;
            font-size: 2.5vw;
            font-weight: 700;
            color: #ffffff;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            animation: blink-blink-rojo 1.5s infinite;
            text-shadow: 0 0 8px rgba(220, 38, 38, 0.7);
            transition: opacity 0.3s ease;
            text-align:center;
        }
            
            
            
            

            /* --- Contenedor de Badges (CORREGIDO) --- */
            .badges-container {
                /* CORREGIDO: En pantallas menores a 768px, es mejor apilarlos verticalmente */
                flex-direction: row; 
                gap: 0.75rem;
                /* REDUCIDO: Un margen superior enorme los alejaba demasiado */
                margin-top: 5vh; 
                margin-bottom: 0vh;     /* Reducimos el margen superior de los badges */
                 font-size: 2vw;
            }

            /* --- Estilos para los badges --- */
            .trust-badge {
                font-size: 0.8rem;
                padding: 0.6rem 1rem;
                
            }
            
            
            #acordeon-premios-container{
                
                margin-top:17vh;
            }
            
            
               .premio-toggle {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            padding: 1.25rem 0.5rem;
            text-align: left;
            color: white;
        }
        
        .premio-toggle span {
            font-size: clamp(6vw, 6vw, 6vw);
            font-family: 'Bebas Neue', sans-serif;
            letter-spacing: 0.05em;
            transition: color 0.3s ease;
        }

        .premio-info {
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            transition: max-height 0.4s ease-out, opacity 0.3s ease-out, padding-bottom 0.4s ease-out;
            padding: 0 0.5rem;
        }
        
        .premio-info p {
            font-size: clamp(3vw, 3vw, 3vw);
            color: #d1d5db;
            line-height: 1.6;
            margin-bottom: 0; /* Reset margin */
        }
        
            
            
            
            

            /* --- RESPONSIVE FAMILIA --- */
            .galeria-familia-container {
                grid-template-columns: repeat(2, 1fr);
                gap: 3vw;
                padding: 0 3vw;
            }
        }
        
        }
        
        /* --- Footer --- */
        .site-footer {
            background-color: #111;
            color: #e5e7eb;
            padding: 5rem 2rem;
            font-family: 'Roboto', sans-serif;
        }

        .footer-container {
            max-width: 1280px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 1.5fr 1fr;
            gap: 3rem;
        }

        .footer-column {
            display: flex;
            flex-direction: column;
        }
        
        .footer-column:last-child {
            align-items: flex-start;
        }

        .footer-heading {
            font-family: 'Roboto', sans-serif;
            font-weight: 700;
            font-size: 1.25rem;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            color: #fff;
            margin-bottom: 1.5rem;
        }

        .footer-links {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .footer-link {
            font-size: 1rem;
            font-weight: 300;
            color: #d1d5db;
            transition: color 0.3s ease;
        }

        .footer-link:hover {
            color: white;
        }

        .social-links {
            display: flex;
            gap: 1rem;
            margin-bottom: 2.5rem;
        }

        .social-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            color: #fff;
            transition: transform 0.3s ease, opacity 0.3s ease;
        }

        .social-icon:hover {
            transform: translateY(-3px);
            opacity: 0.9;
        }

        .social-icon svg {
            width: 24px;
            height: 24px;
        }

        .social-icon--facebook { background-color: #1877F2; }
        .social-icon--instagram { background: #d6249f; }
        .social-icon--youtube { background-color: #FF0000; }
        .social-icon--strava { background-color: #FC4C02; }
        .social-icon--tiktok { background-color: #252525; border: 1px solid #444; }

        .footer-logo {
            margin-top: 1rem;
        }

        .footer-logo img {
            width: 180px;
            height: auto;
        }

        /* Responsive Footer */
        @media (max-width: 900px) {
            .footer-container {
                grid-template-columns: 1fr 1fr;
            }
            .footer-column:last-child {
                grid-column: 1 / -1; /* Span full width */
            }
        }
        
        @media (max-width: 640px) {
            .site-footer {
                padding: 4rem 1.5rem;
            }
            .footer-container {
                grid-template-columns: 1fr;
                gap: 3rem;
            }
            .footer-heading {
                text-align: left;
            }
            .footer-column {
                align-items: flex-start;
            }
        }

        /* --- Estilos para CTA antes del Footer --- */
        .cta-before-footer {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 60px 20px; /* Ajusta el padding si necesitas más o menos espacio vertical */
            background-color: #000; /* Fondo oscuro para que el botón resalte */
            text-align: center;
            margin-bottom: 300px;
        }

        .boton-cta-footer {
            background-color: #e50000; /* Rojo vibrante */
            color: #fff;
            padding: 18px 40px;
            font-size: 1.6em; /* Un poco más grande para que sea notorio */
            font-weight: bold;
            text-decoration: none;
            border-radius: 50px; /* Bordes ligeramente redondeados */
            transition: background-color 0.3s ease;
            display: inline-block; /* Para que padding y width funcionen bien */
            margin-bottom: 15px; /* Espacio entre el botón y el texto */
            box-shadow: 0 4px 15px rgba(229, 0, 0, 0.4); /* Sombra para darle profundidad */
        }

        .boton-cta-footer:hover {
            background-color: #e80000;
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
        }

        .cta-subtext-footer {
            color: #bbb; /* Un gris claro para el texto secundario */
            font-size: 1.1em;
            margin: 0;
            margin-bottom: 200px;
            line-height: 1.4;
        }

        /* Media Queries para responsividad (opcional pero recomendado) */
        @media (max-width: 768px) {
            .boton-cta-footer {
                padding: 15px 30px;
                font-size: 1.4em;
            }
            .cta-subtext-footer {
                font-size: 1em;
            }
            .cta-before-footer {
                padding: 40px 15px;
            }
            
            /* CTA Container responsive para tablets */
            .cta-container {
                gap: 2.5vh;
                max-width: 320px;
            }
        }

        @media (max-width: 480px) {
            .boton-cta-footer {
                padding: 12px 25px;
                font-size: 1.2em;
            }
            .cta-subtext-footer {
                font-size: 0.9em;
            }
            
            /* CTA Container responsive para móviles */
            .cta-container {
                gap: 3vh;
                max-width: 280px;
                padding: 0 15px;
            }
            
            .cta-before-footer {
                padding: 30px 10px;
            }
        }
