/* --- VARIABLES Y BASE --- */
:root {
    --bg: #ffffff;
    --text: #1d1d1f;
    --accent: #0071e3;
    --secondary-bg: #f5f5f7;
    --card-border: #e6e6e8;
    --text-muted: #86868b;
    --radius: 20px;
}

body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #000000;
        --text: #f5f5f7;
        --secondary-bg: #1d1d1f;
        --card-border: #333333;
        --text-muted: #a1a1a6;
    }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* --- NAVEGACIÓN --- */
nav {
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
}

@media (prefers-color-scheme: dark) { 
    nav { background: rgba(0, 0, 0, 0.7); } 
}

.nav-content { 
    max-width: 1100px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 20px; 
    width: 100%;
    position: relative;
    z-index: 10000;
}

.logo { 
    font-weight: 600; 
    font-size: 1.2rem; 
    text-decoration: none; 
    color: var(--text);
    pointer-events: auto !important;
}

.nav-links { display: flex; align-items: center; gap: 20px; }

.nav-link-secondary {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    pointer-events: auto !important;
}

.nav-link-secondary:hover { color: var(--text); }

.btn-small {
    background: var(--text);
    color: var(--bg) !important;
    padding: 8px 18px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    pointer-events: auto !important;
}

.btn-small:hover { transform: scale(1.05); opacity: 0.9; }


/* --- HERO SECTION --- */
.hero {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
    perspective: 1000px;
}

.hero-container {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 10;
}

.hero-left { flex: 1.2; text-align: left; }

.hero h1 {
    font-size: 5.5rem;
    font-weight: 700;
    letter-spacing: -4px;
    line-height: 0.95;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.3;
}

.hero-btns { display: flex; align-items: center; gap: 25px; }

.play-store-btn {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.play-store-btn img {
    height: 55px; 
    width: auto;
    display: block;
    border-radius: 8px;
    border: 2px solid #ffffff; 
    padding: 2px;
}

.play-store-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-text {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 12px 24px;
    border-radius: 12px;
    background: var(--secondary-bg);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-text:hover {
    background: var(--bg);
    border-color: var(--card-border);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.hero-mockup { flex: 0.8; display: flex; justify-content: flex-end; }

.hero-mockup img {
    width: 100%;
    max-width: 320px;
    border-radius: 45px;
    border: 12px solid #1d1d1f;
    box-shadow: 0 50px 100px rgba(0,0,0,0.2);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.6s ease;
    cursor: pointer;
}

.hero-mockup img:hover {
    transform: scale(1.05) translateY(-15px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 0 70px 120px rgba(0,0,0,0.3);
}

.floating-logo {
    position: absolute;
    pointer-events: none;
    user-select: none;
    z-index: 1; 
    filter: blur(0.5px);
}


/* --- SECCIONES DE HIGHLIGHT (ZIGZAG / PANELES) --- */
.feature-highlight {
    padding: 100px 0;
    display: flex;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bg); /* Arreglado: Se adapta al modo */
}

.alt-bg {
    background-color: var(--secondary-bg); /* Arreglado: Se adapta al modo */
}

.container-highlight {
    max-width: 1100px;
    width: 90%;
    display: flex;
    align-items: center;
    gap: 80px;
    text-align: left;
}

.container-highlight.reverse { flex-direction: row-reverse; }

.highlight-text { flex: 1; }
.highlight-visual { flex: 1; display: flex; justify-content: center; position: relative; }

.section-divider {
    border: 0;
    height: 1px;
    background: var(--card-border); /* Arreglado para que se vea en ambos modos */
    margin: 0 auto;
    width: 80%;
}

.badge-alt {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}

/* ANIMACIONES Y MOCKUPS */
.mockup-vertical {
    max-width: 300px;
    border-radius: 40px;
    border: 8px solid #1d1d1f;
    box-shadow: 0 50px 100px rgba(0,0,0,0.15);
}

.float-anim { animation: floating 4s ease-in-out infinite; }

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.perspective-view { perspective: 1200px; }

.mockup-3d {
    max-width: 300px;
    border-radius: 40px;
    border: 8px solid #1d1d1f;
    transform: rotateY(-25deg) rotateX(5deg);
    box-shadow: 25px 40px 100px rgba(0,0,0,0.15);
    transition: transform 0.5s ease;
}

.mockup-3d:hover { transform: rotateY(-15deg) rotateX(2deg); }

/* LISTAS DENTRO DE LOS PANELES */
.feature-list-minimal {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.feature-list-minimal li {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.feature-list-minimal li::before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.feature-list-minimal li strong {
    color: var(--text);
    display: block;
    margin-bottom: 2px;
}


/* --- GRID DE CARACTERÍSTICAS --- */
.grid-features {
    padding: 120px 20px;
    max-width: 1100px;
    margin: 0 auto;
    border-top: 1px solid var(--card-border);
}

.grid-header { text-align: center; margin-bottom: 80px; }
.grid-header h2 { font-size: 3.5rem; letter-spacing: -2px; margin-bottom: 20px; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.feature-card {
    background: var(--bg);
    border: 1px solid var(--card-border);
    padding: 40px;
    border-radius: 28px;
    transition: all 0.3s ease;
}

.feature-card:hover { 
    transform: translateY(-5px); 
    border-color: var(--accent);
}

.feature-card h3 { margin-bottom: 10px; font-size: 1.4rem; }
.feature-card p { color: var(--text-muted); line-height: 1.5; }

/* --- LEGAL --- */
.legal-container {
    padding: 140px 20px 80px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.legal-header h1 { font-size: 3rem; margin-bottom: 10px; letter-spacing: -1.5px; }
.last-updated { color: var(--text-muted); margin-bottom: 40px; font-size: 0.9rem; }
.legal-section { margin-bottom: 40px; }
.legal-section h2 { font-size: 1.5rem; margin-bottom: 15px; }
.legal-section p { line-height: 1.6; color: var(--text); margin-bottom: 15px; }
.legal-section ul { margin-left: 20px; color: var(--text-muted); margin-bottom: 15px; }
.legal-section li { margin-bottom: 8px; line-height: 1.5; }

/* --- FOOTER --- */
footer {
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid var(--card-border);
}

.social-links { display: flex; justify-content: center; gap: 30px; margin-top: 20px; }
.social-links a { 
    color: var(--text-muted); 
    text-decoration: none; 
    font-size: 0.9rem;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.social-links a:hover { color: var(--text); }
.social-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent); 
    transition: width 0.3s ease;
}
.social-links a:hover::after { width: 100%; }

.reveal { opacity: 0; transform: translateY(30px); transition: 1s all ease; }
.reveal.active { opacity: 1; transform: translateY(0); }


/* --- RESPONSIVIDAD (Unificada) --- */
@media (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; padding-top: 50px; }
    .hero-left { text-align: center; }
    .hero h1 { font-size: 3.5rem; letter-spacing: -2px; }
    .hero-btns { justify-content: center; flex-direction: column; }
    .hero-mockup { justify-content: center; margin-top: 40px; }
    .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; letter-spacing: -1.5px; line-height: 1.1; }
    .hero-subtitle { font-size: 1.1rem; padding: 0 10px; }
    .hero-btns { flex-direction: column; width: 100%; gap: 15px; }
    .btn-text { width: 100%; text-align: center; padding: 16px; }
    .hero-mockup img { max-width: 260px; border-width: 8px; }
    .nav-content { padding: 0 15px; }
    .logo { font-size: 1.1rem; }
    .legal-container { padding: 100px 20px 40px; }
    .legal-header h1 { font-size: 2.2rem; }
    
    .feature-highlight { padding: 60px 0; }
    
    .container-highlight, 
    .container-highlight.reverse {
        flex-direction: column !important; 
        text-align: center;
        gap: 40px;
    }

    .feature-list-minimal li {
        text-align: left; 
        display: inline-block;
        max-width: 300px;
    }
    
    .mockup-3d {
        transform: rotateY(-15deg);
        max-width: 250px;
    }

    .mockup-vertical {
        max-width: 250px;
    }
}

/* --- DOBLE MOCKUP EN SECCIONES HIGHLIGHT --- */
.dual-mockup {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.dual-mockup .mockup-vertical {
    max-width: 210px;
}

.mockup-offset {
    margin-top: 50px;
    margin-left: -30px;
}

@media (max-width: 768px) {
    .dual-mockup {
        justify-content: center;
    }
    .dual-mockup .mockup-vertical {
        max-width: 165px;
    }
    .mockup-offset {
        margin-top: 30px;
        margin-left: -20px;
    }
}

.download-counter {
    margin-top: 30px;
    text-align: left;
}

#counter-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    display: inline-block;
}



/* Badge Versión 2.0 — debajo de los botones */
.version-badge {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 100px;
    padding: 4px 12px;
}

/* Texto del contador — siempre visible */
.download-counter p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 1 !important;
}

/* Sección instrucciones de descarga */
.download-note-section {
    padding: 50px 20px;
    display: flex;
    justify-content: center;
    background: var(--secondary-bg);
    border-top: 1px solid var(--card-border);
}

.download-note-inner {
    max-width: 700px;
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: var(--bg);
    border: 1px solid rgba(255, 200, 0, 0.3);
    border-radius: 20px;
    padding: 28px 32px;
}

.download-note-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.download-note-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.download-note-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.download-note-text strong {
    color: var(--text);
}

@media (max-width: 768px) {
    .download-note-inner {
        flex-direction: column;
        gap: 10px;
        padding: 20px;
    }
}

/* Contenedor para que no se amontonen */
.download-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 25px 0;
}

/* ESTILO EXCLUSIVO PARA EL BOTÓN DE APTOIDE */
.boton-tienda-aptoide {
    background-color: #222 !important; /* Fondo oscuro independiente */
    border: 1px solid #ff7e00 !important; /* Borde naranja de Aptoide */
    padding: 8px 18px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    min-width: 160px;
}

.boton-tienda-aptoide:hover {
    background-color: #ff7e00 !important; /* Se pone naranja al pasar el mouse */
    transform: translateY(-3px);
}

.aptoide-icon {
    width: 25px;
    height: 25px;
    margin-right: 12px;
}

.aptoide-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    color: white;
}

.aptoide-text span {
    font-size: 9px;
    text-transform: uppercase;
    line-height: 1;
}

.aptoide-text strong {
    font-size: 15px;
    font-weight: bold;
}