html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important; /* Desactiva el scroll nativo para que Lenis tome el control */
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* --- RESET & BASICS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    /* CAMBIO: Fondo BLANCO puro para toda la web */
    background-color: #ffffff; 
    color: #111; /* Texto base oscuro */
    overflow-x: hidden;
    /* CAMBIO: Quitamos el padding del body para el estilo clásico en secciones inferiores */
    padding: 10px 10px 0 10px; 
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

/* --- HERO SECTION (TARJETA DE VIDEO) --- */
.hero-section {
    position: relative;
    width: 100%;
    /* Altura calculada para dejar ver el marco blanco arriba y a los lados */
    height: calc(100vh - 20px); 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    /* Mantenemos borde redondeado SOLO en el Hero (Video) */
    border-radius: 30px; 
    overflow: hidden; 
    margin: 0 auto;
    
    /* Sombra suave para que destaque sobre el blanco */
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* --- VIDEO BACKGROUND --- */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#heroVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Overlay un poco más claro para que se sienta fresco, pero que deje leer el texto blanco */
    background: radial-gradient(circle, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%), 
                linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
}

/* --- FLOATING NAV (ESTILO BLANCO) --- */
.floating-nav {
    position: absolute;
    top: 25px;
    width: 92%;
    max-width: 1200px;
    
    /* CAMBIO: Barra BLANCA con alta opacidad */
    background: rgba(255, 255, 255, 0.9); 
    backdrop-filter: blur(15px);
    border-radius: 100px;
    padding: 0.8rem 2rem;
    z-index: 100;
    
    /* Sombra elegante */
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    /* CAMBIO: Logo en NEGRO */
    color: #000; 
}

.desktop-menu a {
    /* CAMBIO: Enlaces en gris oscuro */
    color: #444; 
    font-size: 0.95rem;
    margin: 0 18px;
    font-weight: 500;
}

.desktop-menu a:hover {
    color: #000; /* Hover negro */
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.login-link {
    font-size: 0.95rem;
    color: #444; /* Link contacto oscuro */
    font-weight: 500;
}

.btn-primary-small {
    background-color: #000; /* Botón negro para contraste máximo */
    color: white;
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary-small:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #000; /* Hamburguesa negra */
}

/* --- HERO CONTENT --- */
.hero-content {
    text-align: center;
    padding: 0 20px;
    z-index: 10;
    max-width: 950px;
    margin-top: 80px;
    color: white; /* Texto sobre video sigue siendo blanco para leerse */
}

.hero-title {
    font-size: 4.5rem; 
    line-height: 1;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ff5a2d; 
    color: white;
    padding: 18px 50px;
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
}

.btn-hero:hover {
    background-color: #ff4515;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 90, 45, 0.4);
}

.trust-badge {
    margin-top: 20px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* =========================================
   SECCIÓN 2: PROGRAMAS (ESTILO CLÁSICO)
   ========================================= */
.programs-section {
    position: relative;
    background-color: #ffffff; /* Fondo blanco */
    width: 100%;
    
    /* CAMBIO: CLÁSICO - Sin bordes redondeados, pegado a los lados */
    border-radius: 0; 
    margin: 0; 
    
    padding: 120px 20px;
    color: #111;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(3rem, 8vw, 6rem); /* Grande y responsive */
    font-weight: 800;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -2px;
    color: #000;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #666;
    font-weight: 400;
}

/* --- GRID --- */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px; /* Un poco más de espacio */
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- TARJETAS --- */
.program-card {
    position: relative;
    height: 600px; /* Tarjetas altas */
    border-radius: 0; /* Opcional: Si quieres las tarjetas cuadradas pon 0, si quieres suave pon 12px */
    border-radius: 16px; /* Mantengo un radio pequeño para elegancia en las cards */
    overflow: hidden;
    background-color: #f0f0f0;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card-video-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.program-card:hover .card-video {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Degradado sutil para leer texto sobre video */
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 60%);
}

.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    color: white;
}

.card-text h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.card-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-weight: 400;
}

.btn-card {
    background-color: white;
    color: #000;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s ease;
}

.btn-card:hover {
    background-color: #ff5a2d;
    color: white;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    body {
        padding: 0; /* En móvil quitamos el marco blanco para aprovechar espacio */
    }
    
    .hero-section {
        border-radius: 0; /* Hero cuadrado en móvil */
        height: 100vh;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .programs-section {
        padding: 80px 10px;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .desktop-menu, .nav-actions {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }

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

/* =========================================
   SECCIONES SPLIT (ESTILO REFERENCIA)
   ========================================= */

.split-section {
    display: flex;
    width: 100%;
    height: 100vh; /* Altura completa de pantalla para impacto */
    min-height: 600px;
    position: relative;
    overflow: hidden;
    background-color: #F3F0EA; /* El color crema de la referencia */
}

/* CLASE PARA INVERTIR EL ORDEN (Imagen a la izquierda) */
.split-section.reversed {
    flex-direction: row-reverse;
}

/* --- COLUMNA DE TEXTO --- */
.split-content {
    width: 50%;
    padding: 60px 5%; /* Espaciado generoso */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Título arriba, botón abajo */
    z-index: 2;
}

.content-top {
    margin-top: 40px;
}

.section-tag {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.split-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Grande y legible */
    font-weight: 500; /* Medium, estilo editorial */
    line-height: 1.1;
    color: #1A1A1A; /* Negro suave */
    max-width: 90%;
}

.content-bottom {
    margin-bottom: 40px;
}

.split-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    max-width: 480px;
    margin-bottom: 40px;
}

/* BOTÓN ESTILO PÍLDORA (Como en la referencia "En savoir plus") */
.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #8DA9C4; /* Azul suave de la referencia */
    color: #fff;
    padding: 14px 30px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.btn-pill:hover {
    background-color: #111; /* Se vuelve negro al pasar el mouse */
    transform: translateX(5px);
}

/* --- COLUMNA DE IMAGEN/VIDEO (PARALLAX) --- */
.split-image-wrap {
    width: 50%;
    height: 100%;
    position: relative;
    overflow: hidden; /* Importante para recortar el video */
    background-color: #ccc;
}

.parallax-media {
    position: absolute;
    top: -10%; /* Comienza desplazado hacia arriba */
    left: 0;
    width: 100%;
    height: 120%; /* 120% de altura para tener espacio para moverse */
    object-fit: cover;
    will-change: transform;
}

/* --- RESPONSIVE (MÓVIL) --- */
@media (max-width: 900px) {
    .split-section, 
    .split-section.reversed {
        flex-direction: column; /* Apilados en vertical */
        height: auto;
        min-height: auto;
    }

    .split-content {
        width: 100%;
        padding: 60px 25px;
        min-height: auto;
    }

    .split-image-wrap {
        width: 100%;
        height: 50vh; /* Media pantalla en móvil */
    }
    
    .split-title {
        font-size: 2.2rem;
    }
}

/* =========================================
   SECCIÓN 6: FORMULARIO
   ========================================= */
.form-section {
    background-color: #ffffff;
    padding: 100px 20px;
    display: flex;
    justify-content: center;
}

.form-container {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.form-title {
    font-size: 3rem;
    color: #111;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.form-subtitle {
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group input {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid #ccc; /* Línea minimalista */
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s;
    border-radius: 0; /* Evita bordes redondeados por defecto en móviles */
}

.input-group input:focus {
    border-bottom-color: #000; /* Se pone negro al escribir */
}

.input-group input::placeholder {
    color: #999;
}

.btn-submit {
    margin-top: 20px;
    background-color: #000;
    color: white;
    padding: 18px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    background-color: #25D366; /* Verde WhatsApp al hover */
    transform: translateY(-2px);
}

/* =========================================
   SECCIÓN 7: FOOTER (ESTILO DARK IOH)
   ========================================= */
.main-footer {
    background-color: #1A1A1A; /* Negro suave de la referencia */
    color: white;
    padding: 80px 5% 40px;
    font-family: 'Inter', sans-serif;
}

.footer-content {
    display: grid;
    /* Grid de 4 columnas: Logo grande | Links | Links | Iconos */
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Línea divisoria */
}

/* LOGO */
.logo-col {
    display: flex;
    align-items: flex-start;
}

.footer-logo {
    font-family: 'Times New Roman', serif; /* Serif como en la referencia IOH */
    font-size: 3rem;
    letter-spacing: 2px;
    font-weight: 400;
}

/* TEXTOS Y LINKS */
.footer-col h4 {
    color: #888; /* Gris para los títulos */
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #fff;
    font-size: 0.95rem;
    text-decoration: none;
    font-weight: 400;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #ccc;
}

/* REDES SOCIALES (CÍRCULOS BLANCOS) */
.social-col {
    display: flex;
    justify-content: flex-end; /* Iconos a la derecha */
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #fff; /* Círculo blanco */
    color: #000; /* Icono negro */
    border-radius: 50%;
    font-size: 1.1rem;
    transition: 0.3s;
}

.social-circle:hover {
    background-color: #ccc;
    transform: scale(1.1);
}

/* PARTE INFERIOR (CONTACTO) */
.footer-bottom {
    padding-top: 40px;
    display: flex;
    justify-content: flex-start; /* Alineado a la izquierda */
}

.footer-contact-info h4 {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 400;
}

.footer-contact-info p {
    color: #fff;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 5px;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .form-title {
        font-size: 2.2rem;
    }

    .footer-content {
        grid-template-columns: 1fr; /* Una columna en móvil */
        text-align: left;
        gap: 40px;
    }

    .social-col {
        justify-content: flex-start; /* Iconos a la izquierda en móvil */
    }
}