html {
    scroll-behavior: smooth;
}

/* =========================================
   1. VARIABLES GLOBALES Y RESETEO
========================================= */
:root {
    --azul-levalier: #2b3245;
    --azul-oscuro: #1a1e29;
    --rojo-levalier: #e32627;
    --blanco-fondo: #f8f9fc;
    --texto-gris: #555555;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, sans-serif; }
body { background-color: var(--blanco-fondo); color: var(--azul-levalier); overflow-x: hidden; }

/* =========================================
   2. ELEMENTOS COMPARTIDOS
========================================= */
/* Barra de Navegación */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 50px; 
    background-color: white; box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 1000;
}
.logo img { height: 50px; width: auto; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 35px; }
.nav-links li a { text-decoration: none; color: var(--azul-levalier); font-weight: 600; font-size: 15px; transition: color 0.3s; }
.nav-links li a:hover { color: var(--rojo-levalier); }
.nav-links li a.activo {
    color: var(--rojo-levalier);
    border-bottom: 2px solid var(--rojo-levalier);
    padding-bottom: 4px;
    transition: all 0.3s ease;
}
.btn-nav-borde {
    border: 2px solid var(--azul-levalier);
    padding: 8px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}
.btn-nav-borde:hover { background-color: var(--azul-levalier); color: white !important; }

/* Redes Flotantes */
.redes-flotantes { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 15px; z-index: 1000; }
.btn-social {
    width: 55px; height: 55px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 28px; text-decoration: none; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: transform 0.3s;
}
.btn-social:hover { transform: scale(1.1); }
.whatsapp { background-color: #25D366; }
.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

/* =========================================
   3. SECCIONES DE LA PÁGINA (Por orden visual)
========================================= */

/* --- Inicio (Hero) --- */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px 120px 20px;
    background: linear-gradient(135deg, rgba(43, 50, 69, 0.9) 0%, rgba(227, 38, 39, 0.7) 100%), url('../imagenes/fondo_deporte.jpg') center/cover no-repeat;
}
.hero-content { max-width: 850px; z-index: 2; position: relative; }
.hero-content h1 { font-size: 4.5rem; color: white; margin-bottom: 20px; line-height: 1.1; font-weight: 800; }
.hero-content h1 span { color: transparent; -webkit-text-stroke: 2px white; } 
.hero-content p { font-size: 1.2rem; color: rgba(255,255,255,0.9); margin-bottom: 40px; font-weight: 300; }
.btn-principal-whatsapp {
    display: inline-flex; align-items: center; gap: 10px;
    background-color: #25D366; color: white;
    padding: 18px 45px; font-size: 1.3rem; font-weight: bold;
    text-decoration: none; border-radius: 50px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease; animation: latido 2s infinite;
}
.btn-principal-whatsapp:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6); }
@keyframes latido {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.subtexto-hero { display: block; margin-top: 15px; font-size: 0.9rem; color: #ccc; letter-spacing: 1px; text-transform: uppercase; }

/* --- Configurador Superpuesto --- */
.seccion-configurador {
    max-width: 1100px;
    margin: -80px auto 80px auto; 
    background: linear-gradient(135deg, var(--azul-levalier) 0%, #3a435c 100%);
    padding: 60px 40px;
    border-radius: 24px;
    text-align: center;
    color: white;
    position: relative;
    z-index: 10;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.contenido-config { max-width: 700px; margin: 0 auto; }
.contenido-config h2 { font-size: 2.2rem; margin-bottom: 15px; font-weight: 700; }
.contenido-config p { font-size: 1.1rem; margin-bottom: 30px; color: #cbd0d8; line-height: 1.6; }
.btn-configurador {
    display: inline-block; background-color: var(--rojo-levalier); color: white;
    padding: 15px 35px; border-radius: 12px; font-weight: bold; text-decoration: none; font-size: 1.1rem;
    transition: transform 0.3s, background 0.3s;
}
.btn-configurador:hover { background-color: white; color: var(--rojo-levalier); transform: translateY(-3px); }

/* --- Vista de Productos --- */
.seccion-vista-productos {
    padding: 80px 20px 100px 20px;
    /* Gradiente diagonal usando un 4% del Azul Levalier fusionado con blanco */
    background: linear-gradient(135deg, rgba(43, 50, 69, 0.04) 0%, #ffffff 100%); 
    overflow: hidden; 
}
.contenedor-vista-productos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    width: 90%; /* Se adapta al 90% de cualquier monitor */
    max-width: 1600px; /* Límite máximo para pantallas gigantes/ultrawide */
    margin: 0 auto;
}
.vista-productos-texto { flex: 1; }
.vista-productos-texto h2 { font-size: 2.8rem; color: var(--azul-levalier); font-weight: 800; margin-bottom: 10px; }
.vista-productos-texto p { font-size: 1.1rem; color: var(--texto-gris); line-height: 1.7; margin-bottom: 20px; }
.btn-rojo-levalier {
    display: inline-flex; align-items: center; gap: 10px; background-color: var(--rojo-levalier);
    color: white; padding: 15px 30px; border-radius: 8px; text-decoration: none;
    font-weight: bold; font-size: 1.1rem; transition: transform 0.3s, background-color 0.3s; margin-top: 15px;
}
.btn-rojo-levalier:hover { background-color: var(--azul-levalier); transform: translateX(5px); }

/* Animación de la Imagen */
.vista-productos-imagen { flex: 1.2; display: flex; justify-content: flex-end; }
.imagen-desplazable {
    width: 100%; max-width: 600px; height: auto; border-radius: 12px;
    opacity: 0; transform: translateX(-150px); transition: all 1s ease-out; 
}
.imagen-desplazable.aparecer { opacity: 1; transform: translateX(0); }

/* --- Nosotros y Contacto --- */
.seccion-nosotros {
    padding: 80px 20px 120px 20px;
    background-color: white; 
    position: relative;
}
.contenedor-nosotros {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    width: 90%; /* Se adapta al 90% de cualquier monitor */
    max-width: 1600px; /* Límite máximo para pantallas gigantes/ultrawide */
    margin: 0 auto;
}
.nosotros-texto { flex: 1; }
.nosotros-texto h2 { font-size: 2.8rem; color: var(--azul-levalier); font-weight: 800; margin-bottom: 10px; letter-spacing: -1px; }
.destaque-rojo { color: var(--rojo-levalier); }
.linea-separadora-roja { width: 60px; height: 5px; background-color: var(--rojo-levalier); margin-bottom: 30px; border-radius: 3px; }
.nosotros-texto p { font-size: 1.1rem; color: var(--texto-gris); line-height: 1.7; margin-bottom: 20px; }
.nosotros-texto strong { color: var(--azul-levalier); }

.nosotros-contacto { flex: 1; }
.tarjeta-oscura-contacto {
    background: linear-gradient(135deg, var(--azul-levalier) 0%, var(--azul-oscuro) 100%);
    padding: 40px; border-radius: 20px; color: white;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15); border-left: 5px solid var(--rojo-levalier); 
}
.tarjeta-oscura-contacto h3 { font-size: 1.6rem; margin-bottom: 30px; letter-spacing: 1px; }
.lista-contacto { list-style: none; margin-bottom: 30px; }
.lista-contacto li { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; }
.lista-contacto li i {
    font-size: 24px; color: var(--rojo-levalier); background: rgba(227, 38, 39, 0.1);
    width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 50%;
}
.lista-contacto li div { display: flex; flex-direction: column; }
.lista-contacto li strong { font-size: 0.9rem; color: #cbd0d8; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.lista-contacto li span { font-size: 1.1rem; font-weight: bold; }
.mapa-ubicacion { border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* --- Nuestro Método --- */
.proceso-levalier { padding: 40px 20px 100px 20px; background-color: var(--blanco-fondo); }
.titulo-seccion { text-align: center; color: var(--azul-levalier); font-size: 2.2rem; margin-bottom: 50px; font-weight: 800; }
.contenedor-proceso { max-width: 1100px; margin: 0 auto; display: flex; gap: 40px; }
.tarjeta-flotante {
    flex: 1; background: white; padding: 40px 30px; border-radius: 20px;
    text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: all 0.4s ease; border-bottom: 4px solid transparent;
}
.tarjeta-flotante:hover { transform: translateY(-10px); border-bottom-color: var(--rojo-levalier); box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.icono-paso {
    width: 80px; height: 80px; margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--azul-levalier), var(--azul-oscuro));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; display: flex; align-items: center; justify-content: center;
    font-size: 30px; color: white; transition: border-radius 0.3s ease;
}
.tarjeta-flotante:hover .icono-paso { border-radius: 50%; background: var(--rojo-levalier); }
.tarjeta-flotante h3 { font-size: 1.4rem; margin-bottom: 15px; color: var(--azul-levalier); }
.tarjeta-flotante p { color: var(--texto-gris); line-height: 1.6; }

/* =========================================
   TRANSICIONES DE PÁGINA TIPO APP
========================================= */
#contenedor-animado {
    /* Esta transición es para la salida */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
    width: 100%;
}

/* --- Clases de SALIDA (Se activan con el clic) --- */
.salir-hacia-izquierda {
    transform: translateX(-50px);
    opacity: 0;
}

.salir-hacia-derecha {
    transform: translateX(50px);
    opacity: 0;
}

/* --- Clases de ENTRADA (Se activan al cargar la página) --- */
.entrar-desde-derecha {
    animation: deslizarDesdeDerecha 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.entrar-desde-izquierda {
    animation: deslizarDesdeIzquierda 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes deslizarDesdeDerecha {
    0% { transform: translateX(50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes deslizarDesdeIzquierda {
    0% { transform: translateX(-50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}
/* =========================================
   4. ADAPTACIONES RESPONSIVE (MEDIA QUERIES)
========================================= */

/* --- Celulares y Tablets pequeñas (< 768px) --- */
@media (max-width: 768px) {
    /* 1. Barra de navegación y botones horizontales */
    .navbar { padding: 15px 10px; flex-direction: column; gap: 15px; }
    .nav-links { 
        display: flex;
        flex-direction: row; /* Mantiene los botones a lo largo */
        flex-wrap: wrap; /* Si la pantalla es muy finita, se acomodan solos */
        justify-content: center; 
        gap: 12px; 
    }
    .nav-links li { margin: 0; }
    
    /* 2. Frenamos el scroll SOLO en celulares porque la barra es más alta */
    section[id], header[id] { scroll-margin-top: 60px; }

    /* 3. El resto de las adaptaciones que ya tenías */
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content h1 span {
        -webkit-text-stroke: 0 !important; 
        color: var(--rojo-levalier) !important; 
        text-shadow: 2px 2px 8px rgba(0,0,0,0.5) !important; 
        letter-spacing: normal !important; 
        font-weight: 800 !important; 
    }
    .hero-content p { font-size: 1rem; }
    .btn-principal-whatsapp { padding: 15px 30px; font-size: 1.1rem; }

    .seccion-configurador { padding: 40px 20px; margin: -40px 20px 60px 20px; }
    .contenido-config h2 { font-size: 1.8rem; }

    .contenedor-proceso { flex-direction: column; gap: 25px; }
    
    .nosotros-texto h2 { font-size: 2.2rem; }
    .tarjeta-oscura-contacto { padding: 25px; }

    .redes-flotantes { bottom: 15px; right: 15px; transform: scale(0.85); transform-origin: bottom right; }
}
/* --- Tablets y pantallas medias (< 900px) --- */
@media (max-width: 900px) {
    .contenedor-vista-productos { flex-direction: column; text-align: center; gap: 40px; }
    .vista-productos-texto h2 { font-size: 2.2rem; }
    .linea-separadora-roja { margin: 0 auto 25px auto; }
    
    .contenedor-nosotros { flex-direction: column; gap: 40px; }
}

/* --- Pantallas Grandes (> 1440px) --- */
@media (min-width: 1440px) {
    .seccion-configurador, .contenedor-proceso, .contenedor-nosotros, .contenedor-vista-productos { max-width: 1400px; }
    .hero-content h1 { font-size: 5.5rem; }
}

/* --- Monitores Muy Grandes (> 1900px) --- */
@media (min-width: 1900px) {
    html { font-size: 20px; }
    .seccion-configurador, .contenedor-proceso, .contenedor-nosotros, .contenedor-vista-productos { max-width: 1600px; }
    .navbar { padding: 20px 80px; }
    .nav-links li a { font-size: 20px; }
    .logo img { height: 70px; }
}

/* --- Pantallas 4K y Ultra Wide (> 2500px) --- */
@media (min-width: 2500px) {
    .seccion-configurador, .contenedor-proceso, .contenedor-nosotros, .contenedor-vista-productos { max-width: 80vw !important; padding: 4vw !important; }
    
    .navbar { padding: 1.5vw 4vw; }
    .logo img { height: 3.5vw; }
    .nav-links { gap: 3vw; }
    .nav-links li a { font-size: 1.2vw; }
    .btn-nav-borde { padding: 0.8vw 2vw; border-radius: 2vw; border-width: 0.2vw; }

    .hero-content { max-width: 60vw; }
    .hero-content h1 { font-size: 5vw; margin-bottom: 1.5vw; -webkit-text-stroke: 0.1vw white; }
    .hero-content p { font-size: 1.5vw; margin-bottom: 2.5vw; }
    .btn-principal-whatsapp { font-size: 1.2vw; padding: 1.2vw 3vw; gap: 0.8vw; border-radius: 3vw; }
    .subtexto-hero { font-size: 0.8vw; margin-top: 1vw; }

    .contenido-config { max-width: 50vw !important; } 
    .seccion-configurador { margin-top: -6vw; margin-bottom: 6vw; border-radius: 1.5vw; }
    .contenido-config h2 { font-size: 3vw; margin-bottom: 1.5vw; }
    .contenido-config p { font-size: 1.4vw; margin-bottom: 2.5vw; }
    .btn-configurador { font-size: 1.4vw; padding: 1.5vw 3vw; border-radius: 0.8vw; }

    /* NUEVO: Escala proporcional para la sección productos */
    .contenedor-vista-productos { gap: 6vw; }
    .vista-productos-texto h2 { font-size: 3.5vw; margin-bottom: 1vw; }
    .vista-productos-texto p { font-size: 1.3vw; margin-bottom: 1.5vw; line-height: 1.6; }
    .btn-rojo-levalier { font-size: 1.2vw; padding: 1.2vw 3vw; border-radius: 3vw; }
    
    
/* --- Imagen de la sección productos en pantallas gigantes --- */
    .vista-productos-imagen { 
        width: 45vw !important; 
        max-width: none !important; /* Destruye el límite anterior de píxeles */
    }
    .imagen-desplazable { 
        width: 100% !important; 
        max-width: none !important; /* Destruye el límite anterior de píxeles */
        height: auto !important; 
    }

    .proceso-levalier { padding: 4vw 2vw 8vw 2vw; }
    .titulo-seccion { font-size: 3.5vw; margin-bottom: 4vw; }
    .contenedor-proceso { gap: 4vw; }
    .tarjeta-flotante { padding: 4vw 3vw; border-radius: 1.5vw; }
    .icono-paso { width: 8vw; height: 8vw; font-size: 3vw; margin-bottom: 2vw; }
    .tarjeta-flotante h3 { font-size: 2vw; margin-bottom: 1vw; }
    .tarjeta-flotante p { font-size: 1.2vw; line-height: 1.6; }

    .seccion-nosotros { padding: 6vw 2vw 8vw 2vw; }
    .contenedor-nosotros { gap: 6vw; }
    .nosotros-texto h2 { font-size: 3.5vw; margin-bottom: 1vw; }
    .linea-separadora-roja { width: 6vw; height: 0.5vw; margin-bottom: 2.5vw; }
    .nosotros-texto p { font-size: 1.3vw; margin-bottom: 1.5vw; line-height: 1.6; }
    
    .tarjeta-oscura-contacto { padding: 4vw; border-radius: 1.5vw; border-left-width: 0.5vw; }
    .tarjeta-oscura-contacto h3 { font-size: 2.2vw; margin-bottom: 2.5vw; }
    .lista-contacto li { gap: 1.5vw; margin-bottom: 2vw; }
    .lista-contacto li i { width: 4.5vw; height: 4.5vw; font-size: 2vw; }
    .lista-contacto li strong { font-size: 1vw; margin-bottom: 0.4vw; }
    .lista-contacto li span { font-size: 1.3vw; }
    
    .mapa-ubicacion iframe { width: 100% !important; height: auto !important; aspect-ratio: 21 / 9 !important; min-height: 500px !important; }
    .redes-flotantes { bottom: 3vw; right: 3vw; gap: 1vw; }
    .btn-social { width: 4.5vw; height: 4.5vw; font-size: 2.2vw; }
}

/* Animación para el menú inteligente */
.navbar {
    transition: transform 0.3s ease-in-out;
}
.navbar.oculta {
    transform: translateY(-100%);
}

/* =========================================
   BOTONES DESTACADOS (Lanzamiento y Modal)
========================================= */
#btn-lanzamiento, 
#btn-entendido {
    display: inline-block;
    background-color: #d92525 !important; /* Rojo de la marca */
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 50px !important; /* Bordes completamente redondeados */
    border: none;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(217, 37, 37, 0.3); /* Sombra roja sutil para resaltar */
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#btn-lanzamiento:hover, 
#btn-entendido:hover {
    background-color: #b81f1f !important; /* Rojo ligeramente más oscuro */
    transform: translateY(-3px); /* Pequeño salto hacia arriba */
    box-shadow: 0 10px 20px rgba(217, 37, 37, 0.5);
    color: #ffffff !important;
}

/* --- Adaptación para Monitores Gigantes / 4K (> 1900px) --- */
@media (min-width: 1900px) {
    #btn-lanzamiento, 
    #btn-entendido {
        font-size: 1.2vw;
        padding: 1vw 2.5vw;
        border-radius: 3vw !important;
        box-shadow: 0 0.4vw 1vw rgba(217, 37, 37, 0.3);
        letter-spacing: 0.1vw;
    }
    
    #btn-lanzamiento:hover, 
    #btn-entendido:hover {
        transform: translateY(-0.2vw);
        box-shadow: 0 0.8vw 1.5vw rgba(217, 37, 37, 0.5);
    }
}

/* =========================================
   MODAL "EN CONSTRUCCIÓN"
========================================= */
.modal-oculto {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 17, 17, 0.85); /* Fondo oscuro difuminado */
    z-index: 9999; /* Por encima de la barra de navegación */
    align-items: center;
    justify-content: center;
}

.modal-oculto.activo {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

.modal-contenido {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 90%;
    width: 450px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-top: 5px solid #d92525; /* Detalle rojo marca */
}

.btn-cerrar-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-cerrar-modal:hover { color: #d92525; }

.icono-modal {
    font-size: 50px;
    color: #d92525;
    margin-bottom: 20px;
}

.modal-contenido h3 {
    font-size: 24px;
    color: #111111;
    margin-bottom: 15px;
}

.modal-contenido p {
    font-size: 16px;
    color: #555555;
    margin-bottom: 25px;
    line-height: 1.5;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Adaptación para Monitores Gigantes / 4K (> 1900px) --- */
@media (min-width: 1900px) {
    .modal-contenido { 
        width: 25vw; 
        padding: 2.5vw; 
        border-radius: 0.8vw; 
        border-top-width: 0.3vw;
    }
    .btn-cerrar-modal { font-size: 1.5vw; top: 1vw; right: 1vw; }
    .icono-modal { font-size: 3vw; margin-bottom: 1vw; }
    .modal-contenido h3 { font-size: 1.5vw; margin-bottom: 1vw; }
    .modal-contenido p { font-size: 0.9vw; margin-bottom: 1.5vw; }
    #btn-entendido { font-size: 0.9vw; padding: 0.8vw 2vw; border-radius: 2vw; }
}