/* --- ESTILOS DEL HEADER MODULAR --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.logo-container { width: 180px; display: flex; align-items: center; }
.logo-container img { width: 100%; height: auto; }

nav ul { display: flex; list-style: none; gap: 10px; margin: 0; padding: 0;}

.nav-link {
    text-decoration: none;
    color: #aaa;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    padding: 2px 15px;
    position: relative;
    letter-spacing: 1px;
}

.nav-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    stroke: currentColor;
}

.nav-link:hover, .nav-link.active { color: white; }
.nav-link:hover svg, .nav-link.active svg { transform: translateY(-3px); color: var(--brand-purple); }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.3s ease;
    transform: translateX(-50%);
    border-radius: 4px;
}

.nav-link:hover::after, .nav-link.active::after { width: 70%; }

.nav-cta { 
    color: var(--brand-purple) !important; 
    border: 1px solid rgba(108, 42, 166, 0.3); 
    border-radius: 8px; 
}

.nav-cta:hover { 
    background: rgba(108, 42, 166, 0.1) !important; 
    box-shadow: 0 0 15px rgba(108, 42, 166, 0.4); 
}

/* --- MEDIA QUERIES HEADER --- */
@media (max-width: 768px) {
    header { 
        padding: 15px 20px; 
        flex-direction: column; 
        gap: 15px; 
        background: rgba(0, 0, 0, 0.95); 
    }
    .logo-container { width: 150px; justify-content: center; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 5px; }
    .nav-link span { display: none; }
    .nav-link { padding: 8px 10px; }
    .nav-link svg { width: 22px; height: 22px; }
}