/* ========================================= */
/* VARIABLES GLOBALES Y RESET                */
/* ========================================= */
:root {
    --primary: #FFC107; 
    --primary-hover: #e0a800;
    --dark-bg: #030303;     
    --card-bg: #111111;     
    --card-bg-alt: #0a0a0a; 
    --text-white: #ffffff;
    --text-gray: #a3a3a3;
    --font-main: 'Poppins', sans-serif;
    --border-color: rgba(255, 255, 255, 0.08);
    --nav-height: 80px; 
    --transition-smooth: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { 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; 
    width: 100%;
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.highlight { color: var(--primary); }
.text-white { color: var(--text-white); }
.text-gray { color: var(--text-gray); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.break-mobile { display: inline; } 

.btn { 
    display: inline-flex; justify-content: center; align-items: center; 
    padding: 14px 32px; border-radius: 50px; text-decoration: none; 
    font-weight: 700; transition: var(--transition-smooth); 
    text-transform: uppercase; font-size: 0.95rem; cursor: pointer; border: none;
}
.btn-primary { background-color: var(--primary); color: #000; box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2); }
.btn-primary:hover, .btn-primary:focus-visible { 
    background-color: var(--primary-hover);
    transform: translateY(-3px); 
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4); 
    outline: none;
}

/* ========================================= */
/* NAVEGACIÓN Y MENÚ MÓVIL                   */
/* ========================================= */
.navbar { 
    height: var(--nav-height); display: flex; align-items: center; 
    position: fixed; width: 100%; top: 0; left: 0;
    background: rgba(3, 3, 3, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    z-index: 1000; border-bottom: 1px solid var(--border-color); 
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }

/* NUEVO: ESTILOS PARA EL LOGO INTEGRADO CON LA IMAGEN */
.logo { 
    display: flex; align-items: center; gap: 4px; /* <--- ESPACIADO REDUCIDO PARA MAYOR COHESIÓN */
    font-size: 1.6rem; font-weight: 900; letter-spacing: 1px; 
    color: var(--text-white); text-decoration: none;
}
.logo-icon { width: 36px; height: 36px; object-fit: contain; }

.nav-links { list-style: none; display: flex; align-items: center; gap: 32px; transition: var(--transition-smooth); }
.nav-links a { color: var(--text-white); text-decoration: none; font-weight: 500; font-size: 0.9rem; transition: color 0.3s; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--primary); outline: none;}
.btn-nav { background: var(--primary); color: #000 !important; padding: 10px 24px; border-radius: 20px; }
.menu-toggle { display: none; background: transparent; border: none; cursor: pointer; color: #fff; padding: 8px; }

.reveal { opacity: 0; transform: translateY(30px); filter: blur(4px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.8s ease; will-change: opacity, transform; }
.reveal.active { opacity: 1; transform: translateY(0); filter: blur(0); }

/* ========================================= */
/* HERO Y MAPA HÍBRIDO OPTIMIZADO            */
/* ========================================= */
.hero { 
    padding-top: calc(var(--nav-height) + 60px); padding-bottom: 80px; 
    min-height: 100vh; display: flex; align-items: center; justify-content: center; 
    position: relative; overflow: hidden;
}
.hero-content-centered { 
    display: flex; flex-direction: column; align-items: center; 
    text-align: center; width: 100%; position: relative; z-index: 2;
}

.map-hybrid-container { 
    position: relative; width: 100%; max-width: 700px; 
    margin: 0 auto 30px auto; 
    filter: drop-shadow(0px 20px 40px rgba(0, 0, 0, 0.8)); 
}
.map-3d-render { width: 100%; height: auto; display: block; pointer-events: none; }

.interactive-geo-pin { position: absolute; width: 30px; height: 30px; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; z-index: 10; }
.pin-radar-pulse { 
    position: absolute; width: 20px; height: 20px; 
    background-color: rgba(255, 193, 7, 0.6); border: 2px solid var(--primary); 
    border-radius: 50%; z-index: 1; 
    animation: radar-expansion 2.5s infinite cubic-bezier(0.2, 0.8, 0.2, 1); 
}
@keyframes radar-expansion { 
    0% { transform: scale(0.5); opacity: 1; } 
    100% { transform: scale(4); opacity: 0; } 
}

/* Texto Superpuesto anclado al mapa */
.map-overlay-text { 
    position: absolute; bottom: 0%; left: 0%; 
    text-align: left; z-index: 20; pointer-events: none; 
}
.map-overlay-text h1 { 
    font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 900; line-height: 1.05; 
    margin-bottom: 10px; text-shadow: 0 4px 20px rgba(0,0,0,0.9); text-transform: uppercase; 
}
.map-overlay-text h2 { 
    font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.1; 
    margin-bottom: 0; text-shadow: 0 4px 15px rgba(0,0,0,0.9); text-transform: uppercase; color: #f0f0f0;
}

.hero-bottom-text { max-width: 800px; margin: 0 auto; position: relative; z-index: 20; }
.description-text { font-size: clamp(1rem, 2vw, 1.15rem); color: var(--text-gray); margin-bottom: 40px; line-height: 1.6; }
.cta-buttons-centered { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

/* ========================================= */
/* MARQUESINA INFINITA                       */
/* ========================================= */
.trust-bar { background: var(--card-bg-alt); padding: 40px 0; text-align: center; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); overflow: hidden; }
.trust-bar p { color: #888; margin-bottom: 25px; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 3px; font-weight: 700;}
.marquee-wrapper { position: relative; width: 100%; max-width: 1200px; margin: 0 auto; overflow: hidden; display: flex; }
.marquee-wrapper::before, .marquee-wrapper::after { content: ''; position: absolute; top: 0; width: 120px; height: 100%; z-index: 2; pointer-events: none; }
.marquee-wrapper::before { left: 0; background: linear-gradient(to right, var(--card-bg-alt) 0%, transparent 100%); }
.marquee-wrapper::after { right: 0; background: linear-gradient(to left, var(--card-bg-alt) 0%, transparent 100%); }
.marquee-track { display: flex; width: max-content; animation: scroll-marquee 25s linear infinite; }
.marquee-wrapper:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; gap: 80px; padding-right: 80px; align-items: center;}
.marquee-group h3 { color: #444; font-weight: 900; font-size: 2.2rem; white-space: nowrap; transition: color 0.3s; cursor: default; }
.marquee-group h3:hover { color: var(--primary); }
@keyframes scroll-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ========================================= */
/* SOBRE LA APP (BENTO GRID MODERNO)         */
/* ========================================= */
.modern-about-section { padding: 120px 0; text-align: center; position: relative;}
.modern-about-section::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 80%; height: 500px; background: radial-gradient(circle, rgba(255,193,7,0.05) 0%, transparent 70%); pointer-events: none;
}
.about-header { max-width: 750px; margin: 0 auto 60px; position: relative; z-index: 2;}
.section-title { font-weight: 900; font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 20px; line-height: 1.1;}
.about-lead { font-size: 1.15rem; line-height: 1.7; color: #ddd; }

.bento-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 950px; margin: 0 auto; text-align: left; position: relative; z-index: 2;}
.bento-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 28px; padding: 40px; transition: transform 0.3s ease, border-color 0.3s ease; display: flex; flex-direction: column; }
.bento-card:hover { border-color: rgba(255, 193, 7, 0.3); transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.6); }
.bento-icon { width: 56px; height: 56px; background: #1a1a1a; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 24px; }
.bento-card h3 { font-size: 1.35rem; margin-bottom: 14px; font-weight: 700; color: #fff; }
.bento-card p { font-size: 0.95rem; color: var(--text-gray); line-height: 1.65; margin: 0; }
.bento-wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 35px; background: linear-gradient(145deg, var(--card-bg) 0%, #0d0d0d 100%);}
.bento-wide .bento-icon { margin-bottom: 0; flex-shrink: 0; width: 70px; height: 70px; }
.highlight-bg { background: rgba(255, 193, 7, 0.08); color: var(--primary); border: 1px solid rgba(255, 193, 7, 0.25); }
.glow-effect { box-shadow: 0 0 20px rgba(255, 193, 7, 0.2), inset 0 0 15px rgba(255, 193, 7, 0.05); animation: pulse-glow 3s infinite alternate; }
@keyframes pulse-glow { 0% { box-shadow: 0 0 10px rgba(255, 193, 7, 0.1); } 100% { box-shadow: 0 0 25px rgba(255, 193, 7, 0.3); } }
.google-badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #222; padding: 4px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; margin: 0 4px; box-shadow: 0 2px 10px rgba(0,0,0,0.3); vertical-align: baseline; }


/* ========================================= */
/* CÓMO FUNCIONA (SCROLL JACKING ESCRITORIO) */
/* ========================================= */
.sticky-container { height: 350vh; position: relative; background: var(--dark-bg); }
.sticky-window { position: sticky; top: var(--nav-height); height: calc(100vh - var(--nav-height)); 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.92); 
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; 
    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: 60px; width: 100%; }
.reverse-layout .feature-text { order: 1; }
.reverse-layout .feature-image { order: 2; }
.feature-image { order: 1; display: flex; justify-content: center; width: 100%;}
.feature-text { order: 2; }

.slide-tag { display: inline-block; color: var(--primary); border: 1px solid var(--primary); padding: 6px 16px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 20px; }
.feature-text h2 { margin-bottom: 20px; }
.section-desc { color: var(--text-gray); font-size: 1.15rem; margin-bottom: 35px; line-height: 1.6; }
.feature-list { list-style: none; margin-bottom: 35px;}
.feature-list li { display: flex; gap: 20px; margin-bottom: 25px; align-items: flex-start;}
.feature-list .icon { font-size: 2.2rem; line-height: 1; background: rgba(255,255,255,0.03); padding: 12px; border-radius: 16px; border: 1px solid var(--border-color);}
.feature-list strong { display: block; font-size: 1.1rem; margin-bottom: 6px; color: var(--text-white); }
.feature-list p { color: var(--text-gray); margin: 0; font-size: 0.95rem; line-height: 1.5; }

.timeline { border-left: 2px solid #333; margin-left: 24px; padding-left: 35px; margin-top: 15px; }
.timeline-item { position: relative; margin-bottom: 35px; }
.timeline-number { position: absolute; left: -52px; top: -2px; width: 32px; height: 32px; background: var(--dark-bg); border: 2px solid #555; border-radius: 50%; color: #999; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; transition: var(--transition-smooth);}
.timeline-content strong { display: block; color: #fff; font-size: 1.1rem; margin-bottom: 6px; }
.timeline-content p { color: var(--text-gray); font-size: 0.95rem; margin: 0; line-height: 1.5;}
.highlight-item .timeline-number { border-color: var(--primary); background: var(--primary); color: #000; box-shadow: 0 0 20px rgba(255,193,7,0.4); }

.phone-frame { 
    width: 300px; height: 620px; border: 14px solid #1a1a1a; 
    border-radius: 40px; background: #000; position: relative; 
    overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.8), inset 0 0 0 2px #333; 
}
.phone-frame::after { 
    content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); 
    width: 30%; height: 26px; background: #1a1a1a; border-radius: 20px; z-index: 50; 
}
.real-image-mockup { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block;}

/* ========================================= */
/* TESTIMONIOS (SCROLL HORIZONTAL WEB)       */
/* ========================================= */
.testimonials { background: #080808; text-align: center; border-top: 1px solid var(--border-color); height: 400vh; position: relative; padding: 0; }
.testimonials .section-title { margin-bottom: 50px; }
.sticky-wrapper { position: sticky; top: var(--nav-height); height: calc(100vh - var(--nav-height)); 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: 30px; width: max-content; padding-left: calc(50vw - 215px); padding-right: calc(50vw - 215px); }
.testimonial-card-scroll { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 24px; padding: 40px; width: 430px; flex-shrink: 0; text-align: left; transition: transform 0.3s ease, border-color 0.3s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.3);}
.testimonial-card-scroll:hover { transform: translateY(-8px); border-color: rgba(255,193,7,0.5); }
.stars { color: var(--primary); font-size: 1.4rem; margin-bottom: 15px; letter-spacing: 2px;}
.testimonial-card-scroll h3 { font-size: 1.25rem; margin-bottom: 12px; color: #fff; font-weight: 700;}
.testimonial-card-scroll p { color: #ccc; font-style: italic; font-size: 1rem; line-height: 1.6; }
.user-info { display: flex; align-items: center; gap: 16px; margin-top: 30px; }
.user-info img { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--primary); object-fit: cover; }
.user-info span { font-weight: 700; color: #fff; font-size: 0.95rem;}

.scroll-hint { font-size: 0.85rem; color: #666; text-align: center; margin-top: 30px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;}
.scroll-hint-desktop { animation: bounceY 2s infinite; }
.scroll-hint-mobile { display: none; }
@keyframes bounceY { 0%, 100% {transform: translateY(0);} 50% {transform: translateY(6px);} }

/* ========================================= */
/* CTA Y FOOTER                              */
/* ========================================= */
.cta-section { position: relative; padding: 100px 0; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; background-color: #000; min-height: 450px; }
.cta-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%); z-index: 1; }
.cta-overlay { position: relative; z-index: 2; width: 100%; max-width: 800px; margin: 0 auto; padding: 0 20px;}
.cta-overlay h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 20px; font-weight: 900;}
.cta-overlay p { font-size: 1.1rem; color: var(--text-gray); margin-bottom: 40px; line-height: 1.6;}
.download-grid { display: flex; justify-content: center; }

.btn-icon-apk { display: flex; align-items: center; gap: 1.2rem; padding: 1rem 2.5rem; border-radius: 16px; }
.apk-icon { width: 36px; height: 36px; }
.apk-btn-text { display: flex; flex-direction: column; text-align: left; }
.apk-btn-text strong { font-size: 1.25rem; line-height: 1.2; }
.apk-btn-text span { font-size: 0.85rem; font-weight: 400; opacity: 0.9; }

footer { background: #000; border-top: 1px solid var(--border-color); padding: 60px 0 30px; text-align: center; }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.footer-google-disclosure { max-width: 700px; margin: 0 auto; font-size: 0.8rem; color: #555; line-height: 1.6; }
.footer-links { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; justify-content: center;}
.footer-links a { color: var(--text-gray); text-decoration: none; font-size: 0.85rem; transition: color 0.3s;}
.footer-links a:hover { color: var(--text-white); }
.footer-divider { color: #333; font-size: 0.8rem; }
footer p { font-size: 0.85rem; color: #444; margin-top: 15px;}

/* ========================================= */
/* BOTONES FLOTANTES (FABs)                  */
/* ========================================= */
.floating-buttons { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 15px; z-index: 1000; }
.fab { width: 55px; height: 55px; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #000; text-decoration: none; box-shadow: 0 6px 15px rgba(0,0,0,0.6); transition: var(--transition-smooth); cursor: pointer; border: none; outline: none; }
.fab-top { background-color: var(--primary); opacity: 0; visibility: hidden; transform: translateY(20px); }
.fab-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.fab-top:hover { background-color: var(--primary-hover); transform: translateY(-3px); }
.fab-whatsapp { background-color: #25D366; color: #fff; animation: pulse-wa 2s infinite; }
.fab-whatsapp:hover { background-color: #128C7E; transform: scale(1.1); animation: none; }
@keyframes pulse-wa { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* ========================================= */
/* MEDIA QUERIES (MÓVIL RWD)                 */
/* ========================================= */
@media (max-width: 900px) {
    .menu-toggle { display: block; z-index: 1001; position: relative;}
    .nav-links { 
        position: fixed; top: 0; right: -100%; width: 85%; max-width: 320px; height: 100dvh;
        background: #050505; flex-direction: column; justify-content: center; gap: 40px;
        border-left: 1px solid var(--border-color); transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000; box-shadow: -20px 0 50px rgba(0,0,0,0.5);
    }
    .nav-links.nav-active { right: 0; }
    .nav-links a { font-size: 1.2rem; }
    .break-mobile { display: block; }

    /* Ajuste Hero y Mapa Mobile */
    .hero { padding-top: calc(var(--nav-height) + 20px); padding-bottom: 40px; min-height: auto;}
    .map-hybrid-container { max-width: 100%; height: auto; margin-bottom: 20px;}
    
    .map-overlay-text { 
        bottom: 0%; left: 0%; width: 100%; padding: 20px; 
        background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 70%, transparent 100%);
        backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
    }
    .map-overlay-text h1 { font-size: clamp(1.8rem, 7vw, 2.5rem); }

    .interactive-geo-pin { width: 24px; height: 24px; }
    .pin-radar-pulse { width: 16px; height: 16px; }

    .marquee-wrapper::before, .marquee-wrapper::after { width: 40px; } 
    .marquee-group { gap: 40px; padding-right: 40px; } 
    .marquee-group h3 { font-size: 1.5rem; } 

    .modern-about-section { padding: 80px 0; }
    .bento-grid { grid-template-columns: 1fr; gap: 20px; }
    .bento-wide { grid-column: span 1; flex-direction: column; align-items: flex-start; text-align: left; gap: 20px; }
    .bento-card { padding: 30px; }

    /* Flujo relativo para tarjetas de móviles (Eliminación de Sticky) */
    .sticky-container { height: auto !important; padding: 40px 0 80px 0; background: var(--dark-bg); }
    .sticky-window { position: relative; height: auto; display: flex; flex-direction: column; gap: 30px; overflow: visible; }
    
    .sticky-slide { 
        position: relative !important; 
        top: auto !important; 
        opacity: 1 !important; 
        transform: none !important; 
        pointer-events: all; 
        padding: 40px 24px; 
        display: block; 
        height: auto;
        background: var(--card-bg); 
        border: 1px solid var(--border-color); 
        border-radius: 28px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.4); 
    }
    #slide-2 { background: #0a0a0a; }
    #slide-3 { background: #050505; }

    .feature-grid { grid-template-columns: 1fr; gap: 35px; }
    .feature-image { order: 1; }
    .feature-text { order: 2; padding: 0; }
    
    .phone-frame { width: 100%; max-width: 280px; height: 560px; border-width: 10px; margin: 0 auto; border-radius: 35px;}
    .phone-frame::after { top: 8px; width: 35%; height: 22px; }
    
    .feature-list, .timeline { text-align: left; display: inline-block; margin: 0 auto; }
    
    /* Carrusel Nativo para Testimonios Móvil */
    .testimonials { height: auto !important; padding: 80px 0; }
    .testimonials .sticky-wrapper { position: relative !important; height: auto !important; display: block !important; top: 0; }
    .testimonial-window { 
        width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; 
        padding: 20px 24px 40px 24px; scrollbar-width: none; 
        -ms-overflow-style: none; scroll-padding-inline: 24px; 
    }
    .testimonial-window::-webkit-scrollbar { display: none; } 
    .testimonial-track-scroll { transform: none !important; padding: 0; gap: 15px; width: max-content; display: flex;}
    
    .testimonial-card-scroll { 
        min-width: 85vw; 
        width: 85vw; 
        padding: 30px 24px; 
        scroll-snap-align: center; 
        white-space: normal;
    }
    
    .scroll-hint-desktop { display: none; }
    .scroll-hint-mobile { display: block; animation: pulseOpacity 2s infinite; font-size: 0.75rem;}
    
    .btn-icon-apk { flex-direction: column; text-align: center; padding: 1.5rem; }

    .floating-buttons { bottom: 20px; right: 20px; gap: 12px; }
    .fab { width: 50px; height: 50px; }
}

@keyframes pulseOpacity { 0%, 100% {opacity: 0.4;} 50% {opacity: 1;} }

@media (max-width: 380px) {
    .map-overlay-text h1 { font-size: 1.8rem; }
    .map-overlay-text h2 { font-size: 1.3rem; }
    .phone-frame { max-width: 240px; height: 480px;}
    .bento-card { padding: 24px; }
}