/* Variables y Tipografía */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --whatsapp: #25D366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    color: var(--dark);
    background-color: #ffffff;
}

/* Navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo { font-size: 1.5rem; }
.nav-links a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
}
.btn-nav {
    background: var(--primary);
    color: white !important;
    padding: 10px 20px;
    border-radius: 6px;
}

/* Hero Section con Video */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 5% 50px;
    overflow: hidden;
}

.back-video {
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -2;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85); /* Fondo oscuro transparente para que lea el texto */
    z-index: -1;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.hero-text {
    flex: 1;
    color: white;
}

.badge {
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin: 20px 0;
    font-weight: 800;
}

.hero p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 30px;
    max-width: 90%;
}

/* Botones / CTAs */
.cta-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.btn-primary, .btn-secondary, .btn-whatsapp {
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }

.btn-secondary { background: transparent; color: white; border: 2px solid white; }
.btn-secondary:hover { background: white; color: var(--dark); }

.micro-copy { font-size: 0.85rem !important; color: #94a3b8 !important; }

/* Mockup Celular (AJUSTADO: Más pequeño y elegante) */
.hero-mockup {
    flex: 1;
    display: flex;
    justify-content: center;
}

.phone-mockup-small {
    width: 280px; /* Tamaño reducido */
    height: 580px; /* Tamaño reducido */
    border: 10px solid #1e293b;
    border-radius: 35px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
}

.phone-mockup-small iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

/* Secciones Generales */
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.5rem; color: var(--dark); }
.section-title p { color: var(--gray); font-size: 1.1rem; margin-top: 10px; }

/* Prueba Social */
.social-proof {
    background: var(--light);
    text-align: center;
    padding: 30px 20px;
    color: var(--gray);
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
}

/* Beneficios */
.features { padding: 100px 5%; background: white; }
.grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.feature-card {
    padding: 40px 30px;
    background: var(--light);
    border-radius: 16px;
    transition: transform 0.3s ease;
    border: 1px solid #e2e8f0;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.icon { font-size: 2.5rem; margin-bottom: 20px; }
.feature-card h3 { margin-bottom: 15px; }
.feature-card p { color: var(--gray); }

/* Cómo Funciona */
.steps-section { padding: 100px 5%; background: var(--light); }
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.step {
    text-align: center;
    padding: 30px;
}
.step-number {
    width: 60px; height: 60px;
    background: var(--primary);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}

/* CTA Final */
.final-cta { padding: 100px 5%; text-align: center; background: white; }
.cta-box {
    background: var(--dark);
    color: white;
    padding: 60px 40px;
    border-radius: 24px;
    max-width: 900px;
    margin: 0 auto;
}
.cta-box h2 { font-size: 2.5rem; margin-bottom: 20px; }
.cta-box p { margin-bottom: 40px; color: #cbd5e1; font-size: 1.1rem; }
.btn-whatsapp { background: var(--whatsapp); color: white; display: inline-block; }
.btn-whatsapp:hover { background: #1ea952; transform: translateY(-2px); }

/* Responsive para celulares */
@media (max-width: 900px) {
    .hero-container { flex-direction: column; text-align: center; padding-top: 50px; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { margin: 0 auto 30px; }
    .cta-group { flex-direction: column; }
    .phone-mockup-small { width: 250px; height: 500px; margin-top: 30px; }
    .nav-links { display: none; /* En móvil se puede agregar un menú hamburguesa luego */ }
} /* =========================================
   TOP BANNER (Cinta de precio superior)
========================================= */
.top-banner {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.9rem;
    position: relative;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.top-banner a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.top-banner a:hover {
    color: #cbd5e1;
}

/* Ajuste para que la barra de navegación no tape el banner */
.navbar {
    top: 40px; /* Baja la navbar el alto aproximado del banner */
}

/* =========================================
   SECCIÓN DE PRECIO (Pricing Card)
========================================= */
.pricing-section {
    padding: 100px 5%;
    background: var(--light); /* Fondo clarito para que resalte la tarjeta blanca */
}

.pricing-card {
    background: white;
    max-width: 450px;
    margin: 0 auto;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.pricing-header h3 {
    color: var(--primary);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    margin-right: 5px;
    align-self: flex-start;
    margin-top: 10px;
}

.period {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 400;
    margin-left: 5px;
    align-self: flex-end;
    margin-bottom: 12px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 40px;
}

.pricing-features li {
    padding: 12px 0;
    color: var(--gray);
    font-size: 1.05rem;
    border-bottom: 1px solid #f1f5f9;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li strong {
    color: var(--dark);
}

.btn-block {
    display: block;
    width: 100%;
}
/* =========================================
   ESTILOS DE PRECIO PSICOLÓGICO Y ANCLAJE
========================================= */

.price-anchor {
    color: #94a3b8; /* Gris sutil */
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: -10px; /* Lo acerca al precio principal */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-anchor del {
    color: #ef4444; /* Rojo para el precio viejo, genera sentido de urgencia/oferta */
}

/* Modificamos un poco el precio principal para que encaje con el anclaje */
.price {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

.price-hook {
    background-color: #dcfce7; /* Fondo verde muy clarito (color de dinero/éxito) */
    color: #166534; /* Texto verde oscuro */
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 15px;
    display: inline-block;
}

/* Pequeño ajuste para el texto debajo del botón del precio */
.text-center { text-align: center; }
.mt-3 { margin-top: 15px; }

/* Para que el tachado del top banner se vea bien */
.top-banner del {
    opacity: 0.7;
    margin-right: 5px;
} 
/* =========================================
   POP-UP DE OFERTA IRRESISTIBLE (CON EFECTOS CRO)
========================================= */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75); /* Fondo oscuro semitransparente */
    backdrop-filter: blur(8px); /* 1. EFECTO CAPA DE ENFOQUE */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.popup-overlay.show-popup {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    opacity: 0; /* Arranca invisible para la animación */
}

/* 2. ANIMACIÓN DE ENTRADA "POP" (Se activa solo al mostrarse) */
@keyframes popupEntrada {
    0% { transform: scale(0.7); opacity: 0; }
    70% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.popup-overlay.show-popup .popup-content {
    animation: popupEntrada 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-popup:hover {
    color: var(--dark);
}

.popup-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.popup-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.2;
}

.popup-subtitle {
    color: var(--gray);
    font-size: 1.05rem;
    margin-bottom: 25px;
}

.popup-pricing-block {
    background: var(--light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

/* 3. EFECTO "TACHADO" DINÁMICO */
.popup-old-price del {
    text-decoration: none; 
}

.popup-old-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 5px;
    position: relative;
    display: inline-block;
}

.popup-old-price::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background-color: #ef4444; /* Rojo urgencia */
    transform: rotate(-10deg);
    transform-origin: left center;
}

/* La línea se dibuja 0.6s después de que el popup se abre */
.popup-overlay.show-popup .popup-old-price::after {
    animation: tachar 0.5s ease-in-out 0.6s forwards;
}

@keyframes tachar {
    to { width: 100%; }
}

.popup-new-price {
    font-size: 3rem;
    font-weight: 900;
    color: #16a34a;
    line-height: 1;
}

.popup-new-price span {
    font-size: 1.2rem;
    color: var(--gray);
    font-weight: 600;
}

.popup-cancel-text {
    font-weight: 700;
    color: var(--dark);
    margin-top: 10px;
    font-size: 0.95rem;
}

.popup-hook {
    background-color: #fffbeb;
    color: #b45309;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 25px;
}

/* 4 y 5. PULSACIÓN Y BRILLO METÁLICO EN EL BOTÓN */
@keyframes latido {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); }
    50% { transform: scale(1.03); box-shadow: 0 0 20px 10px rgba(245, 158, 11, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

@keyframes brillo {
    0% { left: -100%; }
    30% { left: 150%; }
    100% { left: 150%; }
}

.btn-popup-cta {
    display: block;
    width: 100%;
    background: #f59e0b; /* Naranja llamativo original */
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    padding: 18px 20px;
    border-radius: 12px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    
    /* Efecto de latido */
    animation: latido 2.5s infinite ease-in-out;
}

/* Efecto de rayo de luz */
.btn-popup-cta::before {
    content: '';
    position: absolute;
    top: 0; 
    left: -100%;
    width: 50%; 
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: brillo 4s infinite linear;
}

.btn-popup-cta:hover {
    background: #d97706;
}
/* =========================================
   STICKY BOTTOM BANNER (CTA Persistente)
========================================= */
.bottom-banner {
    position: fixed;
    bottom: -150px; /* Arranca oculto por debajo de la pantalla */
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.15); /* Sombra hacia arriba */
    padding: 15px 20px;
    z-index: 9998; /* Justo un nivel abajo del pop-up central */
    border-top: 3px solid var(--primary); /* Línea de color de marca */
    
    /* Animación elástica idéntica a la del pop-up */
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Esta clase se agrega con JavaScript para subir el banner */
.bottom-banner.show-banner {
    bottom: 0;
}

.bottom-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.bottom-banner-content p {
    margin: 0;
    font-size: 1.05rem;
    color: var(--dark);
}

.btn-bottom-cta {
    background: #f59e0b; /* Naranja llamativo */
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap; /* Evita que el texto del botón se parta en dos renglones */
    transition: transform 0.3s ease, background 0.3s;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-bottom-cta:hover {
    background: #d97706;
    transform: translateY(-2px);
}

/* Ajustes para celulares (se apila uno arriba del otro) */
@media (max-width: 768px) {
    .bottom-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .bottom-banner-content p {
        font-size: 0.95rem;
    }
    .btn-bottom-cta {
        width: 100%;
        text-align: center;
    }
}
/* =========================================
   FOOTER (Pie de página)
========================================= */
.footer {
    background-color: var(--dark); /* Usa el fondo oscuro de tu paleta */
    color: #94a3b8; /* Texto gris claro para no competir con el CTA */
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #1e293b;
    padding-bottom: 100px; /* IMPORTANTE: Da espacio extra para que el sticky banner no tape el footer al final */
}

.footer-content p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.developer-credit a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.developer-credit a:hover {
    color: var(--primary);
}
/* =========================================
   AJUSTE DE FOOTER PARA CELULARES
========================================= */
@media (max-width: 768px) {
    .footer {
        padding-bottom: 200px; /* Le damos el doble de espacio porque el banner es más alto en móvil */
    }
}