/* ========================================= */
/* 1. VARIABLES Y CONFIGURACIÓN BASE         */
/* ========================================= */
:root {
    --primary: #FFD700;
    --primary-hover: #e6c200;
    --dark-bg: #000000;
    --text-white: #ffffff;
    --text-gray: #b3b3b3;
    --font-main: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { 
    font-family: var(--font-main); 
    background-color: var(--dark-bg); 
    color: var(--text-white); 
    overflow-x: hidden; 
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.highlight { color: var(--primary); }

/* ========================================= */
/* 2. COMPONENTES UI                         */
/* ========================================= */
.btn { display: inline-block; padding: 12px 30px; border-radius: 50px; text-decoration: none; font-weight: 700; transition: all 0.3s ease; text-transform: uppercase; font-size: 0.9rem; cursor: pointer; }
.btn-primary { background-color: var(--primary); color: #000; box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2); }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4); }
.btn-outline { border: 2px solid var(--text-white); color: var(--text-white); margin-left: 10px; }
.btn-outline:hover { background-color: var(--text-white); color: #000; }

.navbar { padding: 20px 0; position: fixed; width: 100%; top: 0; background: rgba(0, 0, 0, 0.95); backdrop-filter: blur(10px); z-index: 1000; border-bottom: 1px solid rgba(255,255,255,0.05); }
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 900; letter-spacing: 1px; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text-white); text-decoration: none; font-weight: 500; transition: color 0.3s; font-size: 0.9rem; }
.nav-links a:hover { color: var(--primary); }
.btn-nav { background: var(--primary); color: #000 !important; padding: 8px 20px; border-radius: 20px; }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

.reveal { opacity: 0; transform: translateY(60px); filter: blur(10px); transition: all 1s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); filter: blur(0); }

/* ========================================= */
/* 3. SECCIONES GENERALES                    */
/* ========================================= */
.hero { padding-top: 140px; padding-bottom: 80px; min-height: 100vh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 50px; }
.hero-text h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; }
.hero-text p { color: var(--text-gray); font-size: 1.1rem; margin-bottom: 30px; max-width: 500px; }

.phone-frame { width: 300px; height: auto; margin: 0 auto; border: 12px solid #1a1a1a; border-radius: 40px; overflow: hidden; box-shadow: 0 0 0 2px #333, 0 20px 50px rgba(0,0,0,0.8), 0 0 60px rgba(255, 215, 0, 0.1); position: relative; background: #000; transition: transform 0.5s ease; }
.phone-frame::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 40%; height: 25px; background: #1a1a1a; border-bottom-left-radius: 15px; border-bottom-right-radius: 15px; z-index: 2; }
.app-screenshot { width: 100%; height: auto; display: block; object-fit: cover; }

.trust-bar { background: #050505; padding: 40px 0; text-align: center; border-top: 1px solid #111; border-bottom: 1px solid #111; }
.trust-bar p { color: var(--text-gray); margin-bottom: 20px; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 2px; }
.logos-container { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; color: #444; font-weight: 900; font-size: 1.5rem; }

/* ========================================= */
/* 4. EXPERIENCIA (ESTILO PC: STICKY FADE)   */
/* ========================================= */
/* En PC, las slides son absolutas y se manejan con opacidad */
.sticky-container { height: 350vh; position: relative; background: #000; }
.sticky-window { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; justify-content: center; }

.sticky-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(0.9); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); pointer-events: none; }
.sticky-slide.active { opacity: 1; transform: scale(1); pointer-events: all; z-index: 2; }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; width: 100%; }
.reverse-layout .feature-text { order: 1; }
.reverse-layout .feature-image { order: 2; }
.feature-image { order: 1; }
.feature-text { order: 2; }

.feature-image .phone-frame { transform: perspective(1000px) rotateY(5deg); box-shadow: -10px 10px 30px rgba(0,0,0,0.5); opacity: 0.95; }
.reverse-layout .feature-image .phone-frame { transform: perspective(1000px) rotateY(-5deg); }
.feature-image .phone-frame:hover { transform: perspective(1000px) rotateY(0deg) scale(1.02); opacity: 1; }

.slide-tag { display: inline-block; color: var(--primary); border: 1px solid var(--primary); padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; margin-bottom: 15px; text-transform: uppercase; }
.feature-text h2 { font-size: 3rem; margin-bottom: 15px; line-height: 1.1; }
.section-desc { color: var(--text-gray); font-size: 1.1rem; margin-bottom: 30px; line-height: 1.6; }

.feature-list { list-style: none; margin-bottom: 40px; }
.feature-list li { display: flex; gap: 20px; margin-bottom: 30px; }
.feature-list .icon { font-size: 2rem; }
.feature-list strong { display: block; font-size: 1.2rem; margin-bottom: 5px; color: var(--text-white); }
.feature-list p { color: var(--text-gray); }

.timeline { position: relative; border-left: 2px solid #333; margin-left: 20px; padding-left: 30px; margin-top: 20px; }
.timeline-item { position: relative; margin-bottom: 30px; }
.timeline-number { position: absolute; left: -46px; top: 0; width: 32px; height: 32px; background: #000; border: 2px solid var(--primary); border-radius: 50%; color: var(--primary); font-weight: bold; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; z-index: 2; }
.timeline-content strong { display: block; color: #fff; font-size: 1.1rem; margin-bottom: 5px; }
.timeline-content p { color: var(--text-gray); font-size: 0.95rem; margin: 0; }
.highlight-item .timeline-number { background: var(--primary); color: #000; }

/* ========================================= */
/* 5. TESTIMONIOS (ESTILO PC: SCROLL H)      */
/* ========================================= */
.testimonials { background: #050505; text-align: center; border-top: 1px solid #111; height: 500vh; position: relative; }
.section-title { font-size: 2.5rem; margin-bottom: 40px; color: var(--primary); }
.sticky-wrapper { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: hidden; }
.testimonial-window { width: 100%; max-width: 1400px; overflow: hidden; padding: 20px 0; }
.testimonial-track-scroll { display: flex; gap: 40px; width: max-content; will-change: transform; padding-left: calc(50vw - 200px); padding-right: calc(50vw - 200px); }
.testimonial-card-scroll { background: #111; border: 1px solid #222; padding: 30px; border-radius: 20px; width: 400px; flex-shrink: 0; text-align: left; transition: transform 0.3s ease; }
.testimonial-card-scroll:hover { transform: translateY(-10px); border-color: var(--primary); }
.testimonial-card-scroll h3 { font-size: 1.2rem; margin: 15px 0; color: #fff; }
.testimonial-card-scroll p { color: var(--text-gray); font-style: italic; font-size: 0.95rem; margin-bottom: 20px; }
.stars { color: var(--primary); font-size: 1.2rem; }
.user-info { display: flex; align-items: center; gap: 15px; }
.user-info img { width: 45px; height: 45px; border-radius: 50%; border: 2px solid var(--primary); object-fit: cover; }
.user-info span { font-weight: bold; font-size: 0.9rem; color: #fff; }
.scroll-hint { margin-top: 20px; font-size: 0.8rem; color: #555; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 40% {transform: translateY(-10px);} 60% {transform: translateY(-5px);} }

/* ========================================= */
/* 6. CTA FINAL                              */
/* ========================================= */
.cta-section { position: relative; height: 600px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; z-index: 10; background-color: #000; }
.cta-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; filter: brightness(0.2) grayscale(100%); z-index: 1; }
.cta-overlay { position: relative; z-index: 2; }
.cta-overlay h2 { font-size: 3rem; margin-bottom: 15px; }
.btn-large { margin-top: 35px; margin-bottom: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 15px; padding-left: 30px; padding-right: 30px; }
.apk-icon { width: 36px; height: 36px; fill: #000; }
.store-buttons { margin-top: 25px; display: flex; justify-content: center; gap: 20px; }
.btn-store { display: flex; align-items: center; background-color: #000; border: 2px solid #333; border-radius: 12px; padding: 8px 20px; text-decoration: none; transition: all 0.3s ease; min-width: 180px; }
.store-icon { width: 30px; height: 30px; margin-right: 12px; }
.store-text { display: flex; flex-direction: column; text-align: left; }
.small-text { font-size: 0.65rem; color: #fff; text-transform: uppercase; letter-spacing: 0.5px; }
.big-text { font-size: 1.1rem; font-weight: 700; color: #fff; line-height: 1.1; }
.btn-store:hover { border-color: var(--primary); background-color: #111; transform: translateY(-3px); box-shadow: 0 5px 20px rgba(255, 215, 0, 0.15); }

/* FOOTER (CENTRADO) */
footer { background: #000; border-top: 1px solid #111; padding: 60px 0 40px; width: 100%; position: relative; z-index: 10; text-align: center; }
.footer-content { display: flex; flex-direction: column; align-items: center !important; justify-content: center; gap: 25px; width: 100%; margin: 0 auto; }
.footer-content p { color: var(--text-gray); font-size: 0.9rem; max-width: 400px; margin: 0 auto; }
.socials { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 10px; width: 100%; }
.socials a { color: var(--text-white); text-decoration: none; font-size: 1rem; font-weight: 500; transition: color 0.3s ease, transform 0.2s; }
.socials a:hover { color: var(--primary); transform: translateY(-3px); }

/* ========================================= */
/* 7. VERSIÓN MÓVIL (EFECTOS NAIPES + SNAP)  */
/* ========================================= */
@media (max-width: 768px) {
    
    .menu-toggle { display: block; }
    .nav-links { display: none; }
    
    /* Hero */
    .hero { min-height: auto; height: auto; padding-top: 120px; padding-bottom: 60px; overflow: visible; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-image { order: -1; margin-bottom: 40px; }

    /* --- EFECTO NAIPES (STACKING CARDS) PARA MÓVIL --- */
    .sticky-container { height: auto; padding-bottom: 50px; }
    .sticky-window { position: relative; height: auto; top: 0; display: block; overflow: visible; }
    
    /* ACTIVAMOS STICKY PARA EL EFECTO DE APILADO */
    .sticky-slide {
        position: sticky !important; /* Se pega al scrollear */
        top: 80px; /* Se detiene debajo del menú */
        left: 0 !important;
        height: auto;
        min-height: 85vh; /* Ocupa casi toda la pantalla */
        background: #000; /* Fondo negro sólido para tapar el anterior */
        
        /* FORZAMOS VISIBILIDAD (Ignoramos JS en móvil) */
        opacity: 1 !important;
        transform: none !important;
        pointer-events: all;
        display: block;
        
        padding: 40px 0 60px 0;
        z-index: 1; /* Nivel base */
        
        /* Borde y sombra para efecto tarjeta */
        border-top: 1px solid #222;
        box-shadow: 0 -10px 20px rgba(0,0,0,0.8);
    }

    .feature-grid { display: flex; flex-direction: column; gap: 20px; }
    .feature-image { order: 2; margin-bottom: 20px; transform: scale(0.9); }
    .feature-text { order: 1; padding: 0 10px; }
    .feature-text h2 { font-size: 1.8rem; }
    .phone-frame { width: 220px; margin: 0 auto; transform: none !important; }

    /* --- EFECTO SNAP SCROLL (TESTIMONIOS) --- */
    .testimonials { height: auto !important; background: #000; padding-bottom: 40px; }
    
    .testimonials .sticky-wrapper { 
        position: relative !important; 
        top: 0 !important; 
        height: auto !important; 
        display: block !important; 
        padding-top: 80px !important;
        overflow: hidden; 
    }
    
    .section-title { font-size: 1.6rem !important; margin-bottom: 30px; display: block; padding: 0 15px; }
    
    .testimonial-window {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 30px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        display: block;
    }
    .testimonial-window::-webkit-scrollbar { display: none; }

    .testimonial-track-scroll {
        display: flex;
        gap: 20px;
        width: max-content;
        padding: 0 5vw;
        
        transform: none !important; /* Desactiva JS desktop */
        animation: none;
        
        /* SNAP ACTIVO */
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
    }
    
    .testimonial-card-scroll {
        width: 85vw;
        max-width: 320px;
        white-space: normal;
        background: #111;
        
        /* SNAP CHILD */
        scroll-snap-align: center;
        scroll-margin: 0 20px;
    }
    
    .scroll-hint { display: none; }
}