/* =========================================
   header.css | VARIABLES GLOBALES Y NAVEGACIÓN
   ========================================= */

:root {
    --bg-color: #080a0f; 
    --card-bg: rgba(20, 24, 34, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #8b949e;
    --neon-blue: #00f2ff;
    --neon-blue-glow: rgba(0, 242, 255, 0.4);
    --neon-pink: #ff0055;
    --neon-pink-glow: rgba(255, 0, 85, 0.4);
    --border-dark: #1f2430;
    --neon-yellow-green: #ccff00; 
    --neon-yellow-green-glow: rgba(204, 255, 0, 0.5); 
}

/* 1. Dejamos el body súper ligero, solo con el color sólido */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden; 
}

/* 2. Creamos una capa fantasma fija solo para el gradiente */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: radial-gradient(circle at top, #111827 0%, var(--bg-color) 70%);
    z-index: -1; /* Lo manda al fondo del todo */
    pointer-events: none; /* Para que no estorbe al hacer clics */
    transform: translateZ(0); /* Aceleración por GPU directa */
}

body.no-scroll { 
    overflow: hidden; 
}

/* =========================================
   GLOBAL HEADER
   ========================================= */
.global-header {
    background-color: rgba(10, 14, 23, 0.98); /* Lo subimos casi a 1 (opaco) para que no se note la falta de cristal */
    /* backdrop-filter: blur(10px);  <-- BORRAR O COMENTAR */
    /* -webkit-backdrop-filter: blur(10px); <-- BORRAR O COMENTAR */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 75px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.brand-logo-central {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    letter-spacing: -1.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

.brand-logo-central:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 30px var(--neon-blue-glow);
    transform: scale(1.05);
}

.hamburger-btn {
    position: absolute;
    left: 2rem; 
    top: 50%;
    transform: translateY(-50%) translateZ(0); /* <-- AÑADIDO TRANSLATE Z */
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;  
    height: 22px; 
    padding: 0;
    z-index: 1010;
    will-change: transform; /* <-- AVISA AL NAVEGADOR */
}

.hamburger-btn .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ffffff; 
    border-radius: 3px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* <-- ESPECÍFICO */
    will-change: background-color, box-shadow; /* <-- OPTIMIZADO */
}

.hamburger-btn:hover .bar {
    background-color: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue-glow);
}

/* =========================================
   SIDEBAR DRAWER (Panel Lateral)
   ========================================= */
.sidebar-drawer {
    position: fixed;
    top: 0;
    left: -320px; 
    width: 320px;
    height: 100%;
    background-color: #0d121c; 
    border-right: 1px solid rgba(255, 255, 255, 0.05); 
    box-shadow: 10px 0 30px rgba(0,0,0,0.8); 
    z-index: 2000; 
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.sidebar-drawer.active {
    transform: translateX(320px); 
}

.sidebar-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--neon-blue);
    letter-spacing: 1px;
}

.close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover { color: var(--neon-pink); }

.sidebar-links {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}

.sidebar-links li a {
    display: flex;
    align-items: center;
    padding: 1.2rem 2rem;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.sidebar-links li a .icon {
    margin-right: 15px;
    font-size: 1.4rem;
}

.sidebar-links li a:hover {
    background-color: rgba(0, 242, 255, 0.05);
    color: var(--neon-blue);
    border-left-color: var(--neon-blue);
}

@media (max-width: 600px) {
    .brand-logo-central { font-size: 1.6rem; }
    .hamburger-btn { left: 1rem; }
}