/* =========================================
   header.css | NAVEGACIÓN LIIGA
   ========================================= */

:root {
    --bg-black: #050505; 
    --fin-blue: #002f6c;
    --fin-blue-dark: #001838;
    --fin-accent: #00A3E0;
    --fin-accent-glow: rgba(0, 163, 224, 0.6);
    --text-primary: #ffffff;
}

/* =========================================
   GLOBAL HEADER
   ========================================= */
.global-header {
    /* Fondo azul muy oscuro casi negro */
    background-color: var(--fin-blue-dark); 
    /* Borde inferior azul hielo */
    border-bottom: 3px solid var(--fin-accent);
    height: 75px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.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: var(--fin-accent); /* Logo azul hielo */
    text-decoration: none;
    letter-spacing: -1.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 163, 224, 0.3);
}

.brand-logo-central:hover {
    color: #fff;
    text-shadow: 0 0 20px var(--fin-blue);
    transform: scale(1.05);
}

.hamburger-btn {
    position: absolute;
    left: 2rem; 
    top: 50%;
    transform: translateY(-50%) translateZ(0); 
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;  
    height: 22px; 
    padding: 0;
    z-index: 1010;
}

.hamburger-btn .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--fin-accent); /* Hamburguesa hielo */
    border-radius: 3px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease; 
}

.hamburger-btn:hover .bar {
    background-color: #fff;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* =========================================
   SIDEBAR DRAWER (Panel Lateral)
   ========================================= */
.sidebar-drawer {
    position: fixed;
    top: 0;
    left: -320px; 
    width: 320px;
    height: 100%;
    /* Fondo azul marino/negro */
    background-color: var(--bg-black); 
    border-right: 2px solid var(--fin-blue); 
    box-shadow: 10px 0 30px rgba(0,0,0,0.9); 
    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.85);
    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 var(--fin-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--fin-blue-dark);
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--fin-accent);
    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(--fin-accent); }

.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: var(--fin-blue-dark);
    color: var(--fin-accent);
    border-left-color: var(--fin-accent);
}

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