/* =========================================
   1. VARIABLES (Tema Dark TecBus)
========================================= */
:root {
    --color-fondo: #0a0a0a;
    --color-superficie: #1f1f1f;
    --color-primario: #007bff;
    --color-primario-dark: #0056b3;
    --color-acento: #28a745; 
    
    --text-main: #f8f9fa;
    --text-light: #adb5bd;
    --text-muted: #6c757d;
    
    --bg-body: var(--color-fondo);
    --bg-card: var(--color-superficie);
    --bg-alt: #141414;
    
    --border-color: #333;
    --shadow-glow: 0 0 20px rgba(0, 123, 255, 0.3);
    --nav-height: 80px;
}

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

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden; /* Evita scroll horizontal en móviles */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* =========================================
   2. NAVBAR
========================================= */
.navbar {
    height: var(--nav-height);
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed; top: 0; width: 100%; z-index: 1000;
    transition: 0.3s;
}
.navbar.scrolled { background: rgba(10, 10, 10, 0.98); border-bottom: 1px solid var(--color-primario); }

.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center; height: 100%;
}

.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-symbol {
    width: 40px; height: 40px; background: var(--color-primario); color: white;
    border-radius: 8px; display: flex; justify-content: center; align-items: center; font-size: 1.2rem;
    box-shadow: var(--shadow-glow);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 1.2rem; color: var(--text-main); }
.brand-subtitle { font-size: 0.75rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }

/* Menú Escritorio */
.nav-menu { display: flex; gap: 30px; }
.nav-link { font-size: 0.95rem; font-weight: 500; color: var(--text-light); padding: 8px 0; position: relative; }
.nav-link:hover, .nav-link.active { color: var(--color-primario); }
.nav-link.active::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--color-primario);
}

/* Botones */
.btn { padding: 10px 24px; border-radius: 50px; font-weight: 600; border: none; cursor: pointer; transition: 0.3s; display: inline-block;}
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-primary { background: var(--color-primario); color: white; box-shadow: 0 4px 15px rgba(0,123,255,0.4); }
.btn-primary:hover { background: var(--color-primario-dark); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--text-main); border: 1px solid var(--border-color); }
.btn-secondary:hover { border-color: var(--color-primario); color: var(--color-primario); }

/* Clases de utilidad para móvil */
.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: white; }
.mobile-only { display: none; }

/* =========================================
   3. HERO & MOCKUP
========================================= */
.hero {
    padding-top: calc(var(--nav-height) + 60px); padding-bottom: 80px;
    background: radial-gradient(circle at top right, #151515 0%, var(--bg-body) 60%);
    overflow: hidden;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.tagline {
    display: inline-block; background: rgba(0,123,255,0.1); color: var(--color-primario);
    padding: 6px 12px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; margin-bottom: 20px;
    border: 1px solid rgba(0,123,255,0.2);
}
.hero-text h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; font-weight: 800; }
.hero-description { font-size: 1.15rem; color: var(--text-light); margin-bottom: 35px; max-width: 540px; }
.cta-group { display: flex; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.trust-badges { display: flex; gap: 20px; border-top: 1px solid var(--border-color); padding-top: 20px; flex-wrap: wrap; }
.badge-item { font-size: 0.9rem; color: var(--text-light); display: flex; align-items: center; gap: 8px; }
.badge-item i { color: var(--color-acento); }

/* Mockup Celular */
.mockup-container { position: relative; display: flex; justify-content: center; perspective: 1000px; }
.mockup-frame {
    width: 280px; height: 580px; background: #000; border-radius: 40px; border: 8px solid #2a2a2a;
    position: relative; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.7);
    transform: rotateY(-10deg) rotateX(5deg); transition: transform 0.5s ease; z-index: 2;
}
.mockup-container:hover .mockup-frame { transform: rotateY(0) rotateX(0); }
.notch {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 120px; height: 25px;
    background: #2a2a2a; border-bottom-left-radius: 15px; border-bottom-right-radius: 15px; z-index: 10;
}
.screen-content { width: 100%; height: 100%; background: #121212; display: flex; flex-direction: column; }
.app-bar {
    height: 60px; background: var(--color-primario); display: flex; justify-content: space-between;
    align-items: center; padding: 25px 20px 0 20px; color: white; font-weight: 600; font-size: 0.9rem;
}
.map-view {
    flex: 1; position: relative;
    background-image: url('https://cartodb-basemaps-a.global.ssl.fastly.net/dark_all/13/1334/3385.png'); 
    background-size: cover; background-position: center;
}
.map-pin {
    position: absolute; width: 30px; height: 30px; background: var(--color-primario);
    border: 3px solid white; border-radius: 50%; display: flex; justify-content: center; align-items: center;
    color: white; box-shadow: 0 4px 10px rgba(0,0,0,0.5); transform: translate(-50%, -50%);
}
.bus-pin { top: 50%; left: 60%; z-index: 2; }
.stop-pin { background: var(--color-acento); width: 24px; height: 24px; font-size: 0.8rem; }
.pin-pulse {
    position: absolute; width: 100%; height: 100%; border-radius: 50%;
    border: 2px solid var(--color-primario); animation: ping 2s infinite; opacity: 0;
}
@keyframes ping { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2.5); opacity: 0; } }
.info-card-float {
    position: absolute; bottom: 20px; left: 15px; right: 15px;
    background: rgba(30,30,30, 0.95); backdrop-filter: blur(5px); padding: 12px;
    border-radius: 12px; border-left: 4px solid var(--color-primario);
}
.info-header { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 4px; }
.time-badge { background: var(--color-acento); color: white; padding: 1px 6px; border-radius: 8px; font-size: 0.7rem; }
.info-details { font-size: 0.75rem; color: #ccc; }
.floating-element {
    position: absolute; width: 50px; height: 50px; background: var(--color-superficie);
    border: 1px solid var(--border-color); border-radius: 15px; display: flex; justify-content: center;
    align-items: center; color: var(--color-primario); font-size: 1.2rem; box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    animation: float 4s ease-in-out infinite;
}
.icon-1 { top: 100px; left: -30px; animation-delay: 0s; }
.icon-2 { bottom: 100px; right: -30px; animation-delay: 2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* =========================================
   4. DATA BANNER
========================================= */
.data-banner { padding: 40px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); background: var(--bg-alt); }
.data-grid { display: flex; justify-content: center; gap: 80px; text-align: center; flex-wrap: wrap; }
.data-number { display: block; font-size: 2.5rem; font-weight: 700; color: var(--color-primario); }
.data-label { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
.data-divider { width: 1px; background: var(--border-color); }

/* =========================================
   5. FEATURES
========================================= */
.section-padding { padding: 100px 0; }
.bg-alt { background-color: var(--bg-alt); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-header h2 { font-size: 2.2rem; font-weight: 700; margin-bottom: 15px; color: var(--text-main); }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-box {
    background: var(--bg-card); padding: 40px 30px; border-radius: 16px; border: 1px solid var(--border-color);
    transition: 0.3s;
}

/* EFECTO HOVER */
.feature-box:hover { transform: translateY(-5px); border-color: var(--color-primario); }
.feature-box:hover .icon-wrapper { background: var(--color-primario); color: white; box-shadow: var(--shadow-glow); }

.icon-wrapper {
    width: 60px; height: 60px; background: rgba(0,123,255,0.1); color: var(--color-primario);
    border-radius: 12px; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; margin-bottom: 20px;
    transition: all 0.3s ease;
}
.feature-box h3 { margin-bottom: 15px; font-size: 1.2rem; color: var(--text-main); }
.feature-box p { color: var(--text-light); }

/* =========================================
   6. CREADORES
========================================= */
.creators-section { position: relative; }
.creators-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.creator-card {
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px;
    padding: 30px; text-align: center; transition: 0.3s;
}
.creator-card:hover { border-color: var(--color-primario); transform: translateY(-10px); }
.creator-img-box {
    width: 120px; height: 120px; margin: 0 auto 20px; border-radius: 50%; padding: 4px;
    background: linear-gradient(45deg, var(--color-primario), var(--color-acento));
}
.creator-img-box img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid var(--bg-card); }
.creator-info h3 { margin-bottom: 5px; font-size: 1.2rem; color: var(--text-main); }
.creator-role { font-size: 0.85rem; color: var(--color-primario); font-weight: 600; text-transform: uppercase; }

/* =========================================
   7. FAQ / AYUDA
========================================= */
.narrow-container { max-width: 800px; margin: 0 auto; padding: 0 24px; }

.accordion { display: flex; flex-direction: column; gap: 15px; }

.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s;
}
.accordion-item:hover { border-color: var(--color-primario); }
.accordion-item.active { border-color: var(--color-primario); }

.accordion-header {
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    background: transparent;
    transition: background 0.3s;
}
.accordion-header:hover { background: rgba(0, 123, 255, 0.05); }
.accordion-header i { transition: transform 0.3s; color: var(--color-primario); }

/* Rotación del icono al abrir */
.accordion-item.active .accordion-header i { transform: rotate(180deg); }

.accordion-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    color: var(--text-light);
    font-size: 0.95rem;
    transition: all 0.3s ease-out;
    border-top: 1px solid transparent;
}

.accordion-item.active .accordion-body {
    max-height: 1000px; /* Altura suficiente para el texto */
    padding: 0 25px 25px 25px;
    border-top-color: rgba(255,255,255,0.05);
}

/* =========================================
   8. FOOTER
========================================= */
.main-footer { background: #050505; border-top: 1px solid var(--border-color); padding: 20px 0; text-align: center; }
.footer-brand h5 { font-size: 1.4rem; margin-bottom: 10px; color: var(--text-main); }
.footer-copy { font-size: 0.9rem; color: var(--text-muted); }


/* =========================================
   9. RESPONSIVE (MÓVIL) - ¡NUEVO!
========================================= */
@media (max-width: 900px) {
    /* Navbar Móvil */
    .mobile-toggle { display: block; }
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background-color: rgba(10, 10, 10, 0.98);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 30px;
        gap: 25px;
        transform: translateX(100%); /* Oculto a la derecha */
        transition: transform 0.3s ease-in-out;
        height: calc(100vh - var(--nav-height));
        justify-content: flex-start;
        align-items: center;
        backdrop-filter: blur(15px);
    }
    .nav-menu.active {
        transform: translateX(0); /* Mostrar */
    }
    .nav-link { font-size: 1.2rem; }
    .desktop-only { display: none; } /* Ocultar botón escritorio */
    .mobile-only { display: block; width: 100%; text-align: center; }
    .mobile-only .btn { width: 100%; }

    /* Hero Text */
    .hero-content { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-text h1 { font-size: 2.5rem; } /* Título más pequeño */
    .hero-image { margin-bottom: 20px; }
    .cta-group { justify-content: center; }
    .trust-badges { justify-content: center; }
    
    /* Mockup Celular más pequeño */
    .mockup-frame { height: 450px; width: 240px; margin: 0 auto; }
    .icon-1 { top: 60px; left: -20px; }
    .icon-2 { bottom: 60px; right: -20px; }

    /* Data Banner */
    .data-grid { flex-direction: column; gap: 30px; }
    .data-divider { width: 50px; height: 1px; background: var(--border-color); }
    
    /* Features & Creators */
    .features-grid, .creators-grid { 
        grid-template-columns: 1fr; /* Una sola columna */
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* FAQ */
    .accordion-header { padding: 15px; font-size: 0.9rem; }
}