/* ===== estilo_nav.css ===== */
    
/* ===== NAVEGACIÓN MODERNA ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-logo {
    height: 44px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--navy);
    padding: 0.5rem;
    flex-shrink: 0;
}

#menu {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

#menu li a {
    display: block;
    padding: 0.5rem 0.875rem;
    color: #4a5568;
    font-weight: 500;
    text-decoration: none;
    border-radius: 9999px;
    transition: all 0.2s;
    font-size: 0.85rem;
    white-space: nowrap;
}

#menu li a i { margin-right: 0.35rem; }
#menu li a:hover { background: var(--muted); color: var(--foreground); }
#menu li a.active {
    background: color-mix(in oklab, var(--gold) 15%, transparent);
    color: var(--gold) !important;
}

.nav-btn-gold {
    background: var(--gradient-gold);
    color: var(--gold-foreground);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.nav-btn-gold:hover { 
    transform: translateY(-2px); 
    filter: brightness(1.05); 
}

/* ===== RESPONSIVE MÓVIL ===== */
@media (max-width: 768px) {
    body { 
        padding-top: 64px; 
    }
    
    .menu-toggle { 
        display: block; 
    }
    
    nav { 
        padding: 0 1rem; 
        height: 64px; 
    }
    
    #menu {
        position: fixed;
        top: 64px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 64px);
        background: white;
        flex-direction: column;
        padding: 1rem 0;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        gap: 0;
    }
    
    #menu.active { 
        right: 0; 
    }
    
    #menu li a { 
        padding: 1rem 1.5rem; 
        border-radius: 0; 
    }
    
    .nav-btn-gold { 
        margin: 0.5rem 1rem; 
        justify-content: center; 
    }
}

/* ===== CORRECCIÓN DE MÁRGENES PARA TODAS LAS PÁGINAS ===== */
/* Estas reglas deben ir FUERA del @media para que se apliquen correctamente */

.hero-section,
.sim-hero,
.dashboard-hero,
.kpi-empresa-hero,
.llantas-hero,
.amort-hero,
.kpi-flota-hero,
.renting-hero,
.page-hero {
    margin-top: 72px;
}

/* Sobrescribir para móvil */
@media (max-width: 768px) {
    .hero-section,
    .sim-hero,
    .dashboard-hero,
    .kpi-empresa-hero,
    .llantas-hero,
    .amort-hero,
    .kpi-flota-hero,
    .renting-hero,
    .page-hero {
        margin-top: 64px !important;
    }
}