/* =========================================
   VARIABLES GLOBALES: TEMA CLARO (Blanco / Morado)
   ========================================= */
:root {
    --bg-main: #f8fafc;           
    --bg-card: #ffffff;           
    --primary: #7c3aed;           
    --primary-light: #8b5cf6;     
    --primary-soft: #f5f3ff;      
    --text-main: #0f172a;         
    --text-muted: #64748b;        
    --border-color: #e2e8f0;      
    --shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-purple {
    color: var(--primary);
}

/* =========================================
   HEADER & NAVBAR RESPONSIVE
   ========================================= */
.velo-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.logo-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.brand-logo-img {
    height: 40px; /* Ajusta la altura de tu logo según necesites */
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary);
}

.desktop-cta .velo-btn-primary, .velo-btn-primary {
    background: var(--primary);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.25);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.velo-btn-primary:hover {
    background: #6d28d9;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-cta {
    display: none;
}

/* =========================================
   SECCIONES & SPA LOGIC
   ========================================= */
.main-content {
    padding-top: 100px;
    min-height: 80vh;
}

.page-section {
    display: none;
    padding: 40px 0;
}

.page-section.active-section {
    display: block;
}

/* =========================================
   HERO AVANZADO CON KPIS A LA DERECHA
   ========================================= */
.hero-impact-section {
    position: relative;
    background: radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.04) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 40%);
    padding-top: 20px;
    padding-bottom: 60px;
}

.hero-advanced-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 35px;
    align-items: start;
}

.hero-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-soft);
    border: 1px solid #ddd6fe;
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.06);
}

.hero-left-col h1 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 15px 0;
    color: var(--text-main);
}

.hero-left-col p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Panel de KPIs Derecho (Telemetría) */
.hero-right-kpis {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.kpi-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.live-pulse-badge {
    font-size: 11px;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.kpi-stack-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kpi-mini-card {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #fdfdfd;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-mini-card:hover {
    transform: translateX(-3px);
    box-shadow: 0 6px 15px rgba(124, 58, 237, 0.08);
    border-color: var(--primary-light);
}

.kpi-icon-box {
    background: var(--primary-soft);
    color: var(--primary);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

/* =========================================
   TARJETAS Y FORMULARIOS
   ========================================= */
.velo-hud-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.velo-hud-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.hud-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--primary-soft);
}

.velo-badge-tech {
    background: #ede9fe;
    color: var(--primary);
    border: 1px solid #ddd6fe;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.velo-pulse-dot {
    width: 7px;
    height: 7px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
}

.status-text {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tracking-form .input-group {
    display: flex;
    gap: 8px;
}

.tracking-form input {
    flex: 1;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    width: 100%;
}

.tracking-form input:focus {
    border-color: var(--primary);
    background: #ffffff;
}

/* =========================================
   FOOTER
   ========================================= */
.velo-footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 50px 0 20px 0;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding-bottom: 30px;
}

.footer-col h4 {
    color: var(--text-main);
    font-size: 15px;
    margin-bottom: 15px;
}

.footer-tech-badge {
    background: var(--primary-soft);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-tech-badge i {
    font-size: 22px;
    color: var(--primary);
}

.footer-tech-badge span {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
}

.footer-tech-badge a {
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* =========================================
   MEDIA QUERIES (ADAPTABILIDAD DISPOSITIVOS)
   ========================================= */

@media (max-width: 992px) {
    .hero-advanced-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 20px;
    }
    
    .hero-left-col h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero-advanced-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .desktop-cta {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background: #ffffff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-cta {
        display: inline-flex;
        margin-top: 15px;
    }

    .tracking-form .input-group {
        flex-direction: column;
    }

    .hero-left-col h1 {
        font-size: 1.9rem;
        text-align: center;
    }

    .hero-left-col p {
        text-align: center;
    }

    .hero-status-pill {
        display: flex;
        justify-content: center;
        margin: 0 auto 15px auto;
        max-width: 290px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-left-col h1 {
        font-size: 1.6rem;
    }

    .tracking-body {
        padding: 15px;
    }
}

/* =========================================
   LOGO AJUSTADO (MÁS GRANDE)
   ========================================= */
.logo-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.brand-logo-img {
    height: 60px; /* Tamaño ampliado para que destaque perfectamente */
    width: auto;
    object-fit: contain;
}

#trackingResult {
    display: none; /* Se oculta inicialmente hasta que el usuario consulta */
    margin-top: 20px;
}

.hud-panel-advanced:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.12);
}
/* --- ESTILOS DE IMPACTO PARA EL HERO --- */

/* Fondo general de la sección con un toque tecnológico moderno */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    overflow: hidden;
    padding: 40px 0;
}

/* Patrón de puntos decorativo de fondo */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.6;
    z-index: 0;
}

/* Asegurar que el contenido esté por encima del fondo */
.hero-section > * {
    position: relative;
    z-index: 1;
}

/* Título principal con mayor impacto y degradado de color */
.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.hero-title span.gradient-text {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Tarjeta de rastreo flotante con sombra profunda */
.tracking-card-hero {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(124, 58, 237, 0.15);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.tracking-card-hero:hover {
    box-shadow: 0 25px 30px -5px rgba(124, 58, 237, 0.15);
}

/* Panel lateral de Telemetría con efecto Glassmorphism mejorado */
.telemetry-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border-radius: 1.25rem;
}

/* Sub-tarjetas de telemetría con borde izquierdo iluminado */
.telemetry-item {
    background: #ffffff;
    border-left: 4px solid #7c3aed;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.telemetry-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.08);
}

/* Insignia de pulso en vivo */
.badge-pulse {
    position: relative;
}
.badge-pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --- ESTILOS AVANZADOS PARA EL HERO Y RADAR SATELITAL --- */

/* Contenedor del mapa de radar */
.interactive-map-container {
    background: #0f172a;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.map-radar-box {
    position: relative;
    width: 100%;
    height: 180px;
    background-color: #0f172a;
    overflow: hidden;
}

/* Ondas de radar animadas */
.radar-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 2px solid rgba(124, 58, 237, 0.6);
    border-radius: 50%;
    animation: radar-ping 3s infinite linear;
}

.radar-wave.delay-1 {
    animation-delay: 1.5s;
}

@keyframes radar-ping {
    0% {
        width: 20px;
        height: 20px;
        opacity: 1;
    }
    100% {
        width: 280px;
        height: 280px;
        opacity: 0;
    }
}

/* Nodos de ciudades en el mapa de radar */
.map-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #a855f7;
    border-radius: 50%;
    box-shadow: 0 0 10px #a855f7, 0 0 20px #a855f7;
    z-index: 3;
}

.map-node span {
    position: absolute;
    top: -18px;
    left: 12px;
    font-size: 9px;
    color: #f1f5f9;
    font-weight: 600;
    white-space: nowrap;
    background: rgba(15, 23, 42, 0.85);
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Coordenadas simuladas para las ciudades */
.node-medellin { top: 45%; left: 38%; }
.node-bogota { top: 62%; left: 52%; }
.node-cali { top: 75%; left: 30%; }
.node-barranquilla { top: 22%; left: 45%; }

/* Líneas de ruta animadas con SVG */
.routes-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.route-line {
    fill: none;
    stroke: rgba(168, 85, 247, 0.6);
    stroke-width: 2;
    stroke-dasharray: 5 5;
    animation: dash-animation 12s linear infinite;
}

.delay-line {
    animation-direction: reverse;
    stroke: rgba(59, 130, 246, 0.6);
}

@keyframes dash-animation {
    to {
        stroke-dashoffset: -100;
    }
}

/* Estilos para las tarjetas de KPIs y HUD */
.kpi-mini-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.1);
}

.kpi-icon-box {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary, #7c3aed);
    border-radius: 10px;
    font-size: 1rem;
}

/* Insignias y Puntos de Pulso */
.velo-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulse-dot-anim 2s infinite;
}

@keyframes pulse-dot-anim {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}
/* Oculta por defecto todas las secciones de la página */
.page-section {
    display: none;
}

/* Muestra únicamente la sección que contenga la clase active-section */
.page-section.active-section {
    display: block; /* o display: contents; / display: flex; según cómo manejes tus contenedores */
}

.kpi-mini-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.kpi-mini-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.12);
    border-color: var(--primary);
}