/* --- Variables y Reset --- */
:root {
    --primary-color: #FF9EAA; /* Pastel Pink */
    --secondary-color: #93C5FD; /* Pastel Blue */
    --accent-color: #FCD34D; /* Pastel Yellow */
    --dark-color: #1F2937; /* Gray 800 */
    --text-color: #4B5563; /* Gray 600 */
    --light-bg: #F9FAFB; /* Gray 50 */
    --section-bg: #ffffff;
    --card-bg: #ffffff;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif; /* Inter para lectura limpia */
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    color: var(--text-color);
    line-height: 1.6;
    height: 100vh;
    height: 100dvh; /* Ajuste para móviles (Chrome/Safari) */
    overflow: hidden; /* Sin scroll global */
    display: flex;
    flex-direction: column;
}

/* --- Header & Hero --- */
header {
    padding: 10px 40px;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    position: absolute; /* Fijo al inicio del contenedor, inmune al teclado */
    width: 100%;
    top: 0;
    z-index: 1000;
    pointer-events: none; /* Permitir clicks a través del header */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
    cursor: pointer;
}

.logo img {
    height: 45px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
    align-items: center;
    pointer-events: auto;
}

.nav-links a {
    display: none; /* Ocultamos links tradicionales en este modo inmersivo */
}

/* Estilos para iconos de redes sociales */
.nav-links a.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.2s, color 0.2s;
    text-decoration: none;
}

.nav-links a.social-link.instagram {
    color: #E1306C; /* Color oficial Instagram */
}

.nav-links a.social-link.tiktok {
    color: #000000; /* Color oficial TikTok */
}

.nav-links a.social-link.facebook {
    color: #1877F2; /* Color oficial Facebook */
}

.nav-links a.social-link:hover {
    transform: scale(1.15);
    color: var(--secondary-color);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-cta {
    background: var(--primary-color);
    color: white !important;
    padding: 10px 20px;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s !important;
    display: block !important;
}

.nav-cta:hover {
    background-color: var(--primary-color); /* Mismo color (Rosa) */
    color: white !important;
    transform: none;
}

/* Header con fondo blanco al hacer scroll */
header.scrolled {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* --- MAIN CONTAINER (SLIDER) --- */
.main-funnel {
    position: relative;
    width: 100%;
    flex: 1;
}

/* --- SLIDES (PÁGINAS VIRTUALES) --- */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    display: flex;
    align-items: flex-start; /* Alineación superior para permitir scroll seguro */
    padding: 100px 20px 60px; /* Más padding arriba para librar el header absoluto */
    overflow-y: auto; /* Permitir scroll interno si el contenido es muy alto */
    z-index: 0;
}

.slide.active {
    opacity: 1;
    pointer-events: all;
    z-index: 10;
}

.slide.prev {
    opacity: 0;
}

/* --- CONTENIDO DE LAS SLIDES (TARJETAS FLOTANTES) --- */
.slide-content {
    max-width: 1000px;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden; /* Para decoraciones internas */
    margin: auto; /* Centrado vertical y horizontal automático (Magia Flexbox) */
}

/* Decoración de fondo en las tarjetas */
.slide-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37,99,235,0.05) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* --- TIPOGRAFÍA Y ELEMENTOS --- */
.slide h1 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--dark-color);
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.slide h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.slide p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.brand-text {
    color: #EC4899; /* Rosa Fuerte */
    font-weight: 900;
    font-family: 'Nunito', sans-serif;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 4px solid #EC4899; /* Cursor */
    width: 0;
    vertical-align: bottom;
}

.slide.active .brand-text {
    animation: typing 2s steps(30, end) forwards, blink-caret .75s step-end infinite;
    animation-delay: 0.3s; /* Pequeña pausa antes de empezar */
}

@keyframes typing {
    to { width: 9.6em; } /* Ancho ajustado */
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #EC4899; }
}

/* Icono Hero Grande */
.big-hero-icon {
    color: var(--primary-color);
}

/* --- BOTONES DE NAVEGACIÓN --- */
.nav-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 28px;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 158, 170, 0.5);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 158, 170, 0.7);
    background: var(--primary-color); /* Mismo color (Rosa) */
    color: white;
}

.nav-btn.secondary {
    background: white;
    color: var(--text-color);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    border: 1px solid #E5E7EB;
    margin-right: 15px;
}

.nav-btn.secondary:hover {
    background: #F9FAFB;
    color: var(--dark-color);
}

/* --- PROGRESS BAR (TOP) --- */
.funnel-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--primary-color);
    width: 0%;
    z-index: 2000;
    transition: width 0.5s ease;
}

/* --- INPUTS GIGANTES --- */
.big-input {
    width: 100%;
    max-width: 400px;
    padding: 20px 30px;
    font-size: 1.5rem;
    border: 2px solid #E5E7EB;
    border-radius: 15px;
    text-align: center;
    margin: 20px auto;
    display: block;
    transition: all 0.3s;
}

.big-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* --- CAJAS DE CARACTERÍSTICAS (Slide 3) --- */
.feature-box {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.slide.active .feature-box {
    opacity: 1;
    transform: translateY(0);
}

.slide.active .feature-box:nth-child(1) { transition-delay: 0.4s; }
.slide.active .feature-box:nth-child(2) { transition-delay: 0.6s; }
.slide.active .feature-box:nth-child(3) { transition-delay: 0.8s; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .slide {
        padding: 70px 15px; /* Padding balanceado para centrado perfecto */
    }
    .slide-content {
        padding: 30px 20px;
    }
    .slide h1 { font-size: 2rem; }
    .slide h2 { font-size: 1.5rem; }
    .nav-btn { width: 100%; justify-content: center; }
    .slide.active {
        top: 0;
    }
}

/* --- WhatsApp Flotante --- */
.whatsapp-float {
    position: fixed;
    bottom: 39px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    animation: vibrate 5s infinite;
}

@keyframes vibrate {
    0% { transform: scale(1) rotate(0deg); }
    5% { transform: scale(1.1) rotate(3deg); }
    10% { transform: scale(1.1) rotate(-3deg); }
    15% { transform: scale(1.1) rotate(3deg); }
    20% { transform: scale(1.1) rotate(-3deg); }
    25% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.whatsapp-float:hover {
    animation: none; /* Detiene la vibración al hacer hover */
    transform: scale(1.1);
}

/* --- BOTONES DE SELECCIÓN DE EDAD --- */
.age-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 30px 0;
    width: 100%;
}

.age-btn {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.age-btn:hover, .age-btn.selected {
    border-color: var(--primary-color);
    background: #FFF0F3;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* --- ANIMACIÓN DE ENTRADA DE ELEMENTOS (CASCADA) --- */
.slide-content > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.slide.active .slide-content > * {
    opacity: 1;
    transform: translateY(0);
}

.slide.active .slide-content > *:nth-child(1) { transition-delay: 0.1s; }
.slide.active .slide-content > *:nth-child(2) { transition-delay: 0.2s; }
.slide.active .slide-content > *:nth-child(3) { transition-delay: 0.3s; }
.slide.active .slide-content > *:nth-child(4) { transition-delay: 0.4s; }
.slide.active .slide-content > *:nth-child(5) { transition-delay: 0.5s; }
.slide.active .slide-content > *:nth-child(6) { transition-delay: 0.6s; }

/* --- Calendly Widget --- */
.calendly-inline-widget {
    border-radius: 20px;
    overflow: hidden;
}