/* ============================================================
   VARIABLES GLOBALES Y CONFIGURACIÓN BASE
   ============================================================ */

:root {
    --color-texto-apagado: #aa8888;           /* Gris rojizo para navegación */
    --color-tooltip-bg: rgba(20, 5, 5, 0.96); /* Fondo oscuro rojizo */
    --color-tooltip-text: #ff5555;            /* Rojo brillante en tooltip */
    --color-neon-activo: #ff3333;             /* Rojo neon activo/hover */
    --color-azul-perfil: #ff6b35;             /* Naranja para nombre de perfil */
    --logo-icon-size: 38px;      
    --logo-text-size: 1.4em;    
}

body {
    background-color: var(--color-fondo-pagina);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 90px; 
}

/* ============================================================
   HEADER PRINCIPAL - SIEMPRE ARRIBA Y ANCHO COMPLETO
   ============================================================ */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #0a0000;           /* Fondo negro con toque rojo */
    background: linear-gradient(180deg, #1a0505 0%, #0a0000 100%);
    box-shadow: 0 4px 20px rgba(204, 0, 0, 0.3);
}

/* ============================================================
   ANIMACIONES DEL LOGO
   ============================================================ */

header .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: var(--logo-text-size);
    font-weight: 700;
    flex-shrink: 0;
}

.header-top { 
    padding: 12px 0px 30px 0px; 
}

header .EstiloIcono {
    width: var(--logo-icon-size);
    height: var(--logo-icon-size);
    margin-right: 8px;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-text.cabina { 
    color: #ffffff; 
    transition: color 0.3s ease;
}

.logo-text.roja { 
    color: #ff0033; 
    transition: all 0.3s ease;
}

header .logo:hover .EstiloIcono {
    transform: scale(1.1) rotate(8deg);
}

header .logo:hover .logo-text.roja {
    color: #ff5555;
    text-shadow: 0 0 15px #ff0033, 0 0 30px #ff0033;
}

header .logo:hover .logo-text.cabina {
    color: #f0d0d0;
}

/* ============================================================
   ANIMACIONES DEL PERFIL (rojo/naranja)
   ============================================================ */

.profile-container {
    display: flex;
    align-items: center;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.profile-name {
    color: var(--color-azul-perfil); /* naranja */
    font-weight: 700;
    font-size: 1.2em;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.avatar-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    padding: 2.5px; 
    background: linear-gradient(135deg, #ff3333, #ff6b35);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(255, 50, 50, 0.5);
    animation: avatarPulse 3s infinite alternate ease-in-out;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: #222;
}

.profile-link:hover .profile-name {
    color: #ffa07a;
    text-shadow: 0 0 12px #ff6b35, 0 0 20px rgba(255, 107, 53, 0.6);
}

.profile-link:hover .avatar-wrapper {
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(255, 50, 50, 0.9), 0 0 40px rgba(255, 107, 53, 0.6);
    background: linear-gradient(135deg, #ff6b35, #ff3333);
}

/* ============================================================
   CONTENEDOR MENÚ Y PACK
   ============================================================ */

.menu-wrapper {
    position: relative;
    width: 100%;
    background-color: #0a0000;
    border-top: 1px solid rgba(255, 50, 50, 0.2);
    padding-top: 16px; 
}

.pack-badge {
    position: absolute;
    top: -14px; 
    left: 50%;
    transform: translateX(-50%);
    background-color: #330000;
    padding: 6px 22px;
    border-radius: 50px;
    border: 0.5px solid #ff3333;
    font-size: 1.08em;
    font-weight: 700;
    white-space: nowrap;
    z-index: 5;
    box-shadow: 0 0 20px rgba(255, 20, 20, 0.6);
}

.pack-label { color: #ffffff; }
.pack-titulo { color: #ff6b35; margin-left: 4px; }

/* ============================================================
   TOOLTIPS FLOTANTES (rojo/naranja)
   ============================================================ */

.nav-tooltip {
    position: absolute;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-tooltip-bg); 
    color: var(--color-tooltip-text);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85em;
    border: 1px solid rgba(255, 50, 50, 0.7); 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.9), 0 0 15px rgba(255, 50, 50, 0.3);
    z-index: 2000;
    pointer-events: none;
    text-align: center;
    white-space: nowrap;
    backdrop-filter: blur(6px);
    transition: all 0.25s ease;
    min-width: 160px;
}

/* Flecha del tooltip */
.nav-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #ff3333 transparent transparent transparent; 
}

/* Ajustes para bordes de pantalla */
.nav-tooltip.left-edge {
    left: 20px;
    transform: translateX(0);
}

.nav-tooltip.right-edge {
    left: auto;
    right: 20px;
    transform: translateX(0);
}

/* ============================================================
   NAVEGACIÓN - HOVER Y TOOLTIPS (rojo/naranja)
   ============================================================ */

header nav a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    padding: 8px 0;
    text-decoration: none;
    color: #aa8888;                    /* Gris rojizo base */
    transition: all 0.25s ease;
}

header nav a:hover {
    color: #ffd755;
}

/* Iluminación del icono y texto en hover */
header nav a:hover .nav-icon {
    color: #ffd255;
    filter: drop-shadow(0 0 8px #ffcf33);
    transform: scale(1.12);
}

header nav a:hover .nav-label {
    color: #ffc935;
    text-shadow: 0 0 8px #ffc933;
}

/* Estado activo */
header nav a.active { 
    color: #ffbe33 !important; 
}

header nav a.active .nav-icon {
    filter: drop-shadow(0 0 8px #ffad33);
}

/* ============================================================
   LINEA DE COLORES INFERIOR (rojo/naranja/dorado)
   ============================================================ */

header::after {
    content: "";
    position: absolute;
    bottom: 0;               
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #cc0000, #ff3333, #ff6b35, #f4a261, #ff6b35, #ff3333, #cc0000);
    background-size: 300% 100%;
    animation: rainbowShift 5s linear infinite;
    z-index: 1005;
}

@keyframes rainbowShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .header-top { padding: 12px 0px 30px 0px; }
    header .logo { font-size: 1em; }
    :root { --logo-icon-size: 40px; }
    .profile-name { font-size: 1em; }
    .avatar-wrapper { width: 40px; height: 40px; }
    .pack-badge { font-size: .92em; padding: 1px 12px; }
    .nav-icon { font-size: 1.3em; }
    .nav-label { font-size: .72em; }
}

@media (max-width: 480px) {
    .header-top { padding: 12px 0px 30px 0px; }
    header .logo { font-size: 1em; }
    :root { --logo-icon-size: 40px; }
    .profile-name { font-size: 1em; }
    .avatar-wrapper { width: 40px; height: 40px; }
    .pack-badge { font-size: .92em; padding: 1px 12px; }
    .nav-icon { font-size: 1.3em; }
    .nav-label { font-size: .72em; }
}

/* ============================================================
   CONTENEDOR GENERAL
   ============================================================ */

.container {
    padding: 0px 6% !important;
    background: #000000;
}

.header-top {
    display: flex;
}

nav {
    display: flex;
    padding-top: 12px;
}


/* ==================== FIX HEADER + SCROLL
necesario para que el contenido aparezca de bajo del header   ==================== */

header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    background: #000;           /* o el color que uses en tu header */
    width: 100% !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

/* Espacio para que el contenido no quede debajo del header */
body {
    padding-top: 0;   /* importante */
}

section[id] {
    scroll-margin-top: 130px;
    padding-top: 30px;
}


/* Forzar que el header esté arriba siempre */
.header-top, .menu-wrapper {
    width: 100%;
}

/* ==================== EFECTO FADE PARA NAV ==================== */
.scroll-fade-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    opacity: 0;
    pointer-events: none;
    z-index: 99999;
    transition: opacity 0.6s ease;
}

.scroll-fade-overlay.active {
    opacity: 1;
}

.nav-link.active {
    color: #ff6600;
    font-weight: bold;
    border-bottom: 2px solid #ff6600;
}

