@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700;900&family=Cinzel:wght@500;600;700;800;900&family=Montserrat:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   🌋 PARAGON-WOW DESIGN SYSTEM — BASALTO, ORO & FUEGO (v5.0 HD)
   ========================================================================== */

:root {
    /* ----------------------------------------------------------------------
       🌑 1. PALETA BASÁLTICA (Roca Volcánica, Obsidiana y Cristal Oscuro)
       ---------------------------------------------------------------------- */
    --basalt-950: #060202;
    --basalt-900: #0b0404;
    --basalt-850: #120707;
    --basalt-800: #1a0b0b;
    --basalt-750: #240f0f;
    --basalt-700: #2e1414;
    --basalt-600: #421c1c;

    /* Superficies Glassmorphic Basálticas */
    --surface-basalt: rgba(12, 4, 4, 0.85);
    --surface-basalt-elevated: rgba(22, 7, 7, 0.92);
    --surface-basalt-hover: rgba(34, 11, 11, 0.96);
    --glass-bg: rgba(18, 6, 6, 0.80);
    --glass-bg-hover: rgba(36, 12, 12, 0.92);
    --bg-dark-overlay: rgba(8, 2, 2, 0.90);

    /* ----------------------------------------------------------------------
       👑 2. PALETA DE ORO (Metálico, Sunwell y Oro Ancestral)
       ---------------------------------------------------------------------- */
    --gold-primary: #e2b714;
    --gold-bright: #ffd700;
    --gold-light: #ffe875;
    --gold-dark: #b8860b;
    --gold-ancient: #8c6800;
    --gold-glow: rgba(226, 183, 20, 0.45);
    --gold-glow-intense: rgba(255, 215, 0, 0.70);
    --gold-glow-subtle: rgba(226, 183, 20, 0.18);

    /* Bordes de Oro y Cristal */
    --glass-border: rgba(226, 183, 20, 0.24);
    --glass-border-bright: rgba(255, 215, 0, 0.65);
    --glass-border-gold: rgba(226, 183, 20, 0.45);

    /* Degradados de Oro */
    --gold-gradient: linear-gradient(135deg, #ffe875 0%, #ffd700 35%, #e2b714 70%, #9e7305 100%);
    --gold-metallic-gradient: linear-gradient(180deg, #ffffff 0%, #ffd700 35%, #e2b714 70%, #9b7107 100%);
    --gold-subtle-gradient: linear-gradient(180deg, rgba(226, 183, 20, 0.15) 0%, rgba(184, 134, 11, 0.04) 100%);

    /* ----------------------------------------------------------------------
       🔥 3. PALETA DE FUEGO & MAGMA (Tierras de Fuego, Brasas y Ragnaros)
       ---------------------------------------------------------------------- */
    --fire-flame: #ff6a00;
    --fire-bright: #ff8c00;
    --fire-light: #ffa726;
    --fire-ember: #ff3d00;
    --fire-magma: #dc2626;
    --fire-crimson: #8b0000;
    --fire-deep: #2a0404;
    --fire-glow: rgba(255, 106, 0, 0.45);
    --fire-glow-intense: rgba(255, 61, 0, 0.75);
    --fire-glow-subtle: rgba(255, 106, 0, 0.18);

    /* Degradados de Fuego */
    --fire-gradient: linear-gradient(135deg, #ff8c00 0%, #ff5500 40%, #dc2626 80%, #7f1d1d 100%);
    --fire-magma-gradient: linear-gradient(180deg, #ff5500 0%, #dc2626 50%, #4a0404 100%);
    --orange-flame: #ff6a00;
    --crimson-dark: #8b0000;
    --crimson-deep: #1a0303;

    /* ----------------------------------------------------------------------
       📜 4. TIPOGRAFÍA
       ---------------------------------------------------------------------- */
    --font-heading: 'Cinzel', 'Morpheus', serif;
    --font-title: 'Cinzel Decorative', 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-sans: 'Outfit', sans-serif;

    /* ----------------------------------------------------------------------
       ✨ 5. SOMBRAS, PROFUNDIDAD Y ELEVACIONES
       ---------------------------------------------------------------------- */
    --shadow-basalt: 0 10px 35px rgba(0, 0, 0, 0.9), 0 0 20px rgba(18, 5, 5, 0.8);
    --shadow-gold: 0 0 25px rgba(226, 183, 20, 0.35);
    --shadow-fire: 0 0 30px rgba(255, 106, 0, 0.4);
    --shadow-heavy: 0 12px 40px rgba(0, 0, 0, 0.92), 0 0 25px rgba(139, 0, 0, 0.4);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 215, 0, 0.15);
    --shadow-card-hover: 0 18px 45px rgba(0, 0, 0, 0.95), 0 0 30px var(--gold-glow), inset 0 1px 0 rgba(255, 215, 0, 0.4);

    /* Transiciones fluidas */
    --ease-epic: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: all 0.3s var(--ease-epic);
    --transition-fast: all 0.2s ease;
}

/* ==========================================================================
   🌐 RESET Y CONFIGURACIÓN BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    font-family: var(--font-body);
    background-color: var(--basalt-950);
    color: #e2e8f0;
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar — Basalto con Llama de Oro */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--basalt-950);
    border-left: 1px solid rgba(226, 183, 20, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold-primary) 0%, var(--fire-flame) 100%);
    border-radius: 5px;
    border: 2px solid var(--basalt-950);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--gold-bright) 0%, var(--fire-ember) 100%);
    box-shadow: 0 0 10px var(--fire-glow);
}

/* Selección de Texto Rúnica */
::selection {
    background: var(--fire-flame);
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   🌄 FONDO GLOBAL CINEMÁTICO & ATMÓSFERA VOLCÁNICA
   ========================================================================== */
.bg {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: url('../../img/inicio.jpg') center/cover no-repeat fixed;
    filter: brightness(0.68) contrast(1.15) saturate(1.1);
    z-index: -2;
    transform: scale(1.02);
    transition: transform 12s ease-out;
}

.bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 50% 30%, rgba(25, 8, 8, 0.25) 0%, rgba(10, 3, 3, 0.88) 70%, var(--basalt-950) 100%),
        linear-gradient(180deg, rgba(6, 2, 2, 0.75) 0%, rgba(35, 10, 10, 0.25) 45%, rgba(6, 2, 2, 0.98) 100%);
}

.overlay {
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(circle at 50% 10%, rgba(255, 106, 0, 0.07) 0%, transparent 60%),
        radial-gradient(circle at 80% 85%, rgba(226, 183, 20, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ==========================================================================
   🧭 HEADER DE CRISTAL BASÁLTICO & ORO
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 36px;
    background: linear-gradient(180deg, rgba(16, 5, 5, 0.96) 0%, rgba(9, 3, 3, 0.92) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1.5px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.92), 0 0 20px rgba(226, 183, 20, 0.12);
    z-index: 999;
    transition: var(--transition-smooth);
}

/* Línea Superior de Acento Fuego/Oro */
.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--fire-flame) 25%, var(--gold-bright) 50%, var(--fire-flame) 75%, transparent 100%);
    box-shadow: 0 0 10px var(--gold-glow);
}

/* 👤 PILL DE PERFIL DE USUARIO */
.user {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 14px;
    background: linear-gradient(135deg, rgba(30, 10, 10, 0.7) 0%, rgba(15, 5, 5, 0.85) 100%);
    padding: 7px 16px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 1px 0 rgba(255, 215, 0, 0.2), 0 4px 15px rgba(0, 0, 0, 0.6);
    transition: var(--transition-smooth);
}

.user:hover {
    border-color: var(--gold-primary);
    box-shadow: inset 0 1px 0 rgba(255, 215, 0, 0.35), 0 0 18px var(--gold-glow-subtle);
}

.user-avatar {
    color: var(--gold-primary);
    font-size: 1.35rem;
    filter: drop-shadow(0 0 8px var(--gold-glow));
    transition: transform 0.3s ease, color 0.3s ease;
}

.user:hover .user-avatar {
    transform: scale(1.1);
    color: var(--gold-bright);
}

.welcome-text {
    color: #94a3b8;
    font-size: 0.85rem;
}

.username {
    font-family: var(--font-heading);
    color: var(--gold-bright);
    font-weight: 700;
    letter-spacing: 0.8px;
    text-shadow: 0 0 12px var(--gold-glow);
}

/* 🔗 ENLACES DE MENÚ & DESPLEGABLES */
.menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu a, .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(226, 183, 20, 0.16);
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
}

.menu a i, .dropdown-toggle i {
    font-size: 13.5px;
    color: var(--gold-primary);
    transition: transform 0.25s ease, color 0.25s ease;
}

.menu a:hover, .dropdown-toggle:hover {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.5) 0%, rgba(45, 10, 10, 0.7) 100%);
    border-color: var(--gold-bright);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7), 0 0 14px var(--gold-glow);
}

.menu a:hover i, .dropdown-toggle:hover i {
    transform: scale(1.18);
    color: var(--gold-bright);
}

.menu a.active, .dropdown.active .dropdown-toggle {
    background: var(--gold-gradient);
    border-color: #ffffff;
    color: var(--basalt-950);
    font-weight: 800;
    box-shadow: 0 0 22px rgba(226, 183, 20, 0.7), 0 4px 15px rgba(0, 0, 0, 0.6);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.menu a.active i, .dropdown.active .dropdown-toggle i {
    color: var(--basalt-950);
}

/* 📦 MENÚ DESPLEGABLE (DROPDOWN) */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    background: linear-gradient(180deg, rgba(22, 7, 7, 0.98) 0%, rgba(11, 3, 3, 0.98) 100%);
    border: 1px solid var(--glass-border-bright);
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.95), 0 0 20px rgba(226, 183, 20, 0.22), inset 0 1px 0 rgba(255, 215, 0, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.98);
    transition: all 0.25s var(--ease-epic);
    z-index: 1000;
}

.dropdown:hover .dropdown-menu, .dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    color: var(--gold-primary);
    transition: transform 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(139, 0, 0, 0.65) 0%, rgba(50, 10, 10, 0.4) 100%);
    color: #ffffff;
    transform: translateX(5px);
    box-shadow: inset 0 0 10px rgba(255, 106, 0, 0.2);
}

.dropdown-item:hover i {
    color: var(--gold-bright);
    transform: scale(1.2);
}

.dropdown-item.active {
    background: rgba(226, 183, 20, 0.18);
    color: var(--gold-bright);
    border-left: 3.5px solid var(--gold-primary);
    box-shadow: 0 0 12px var(--gold-glow-subtle);
}

.arrow-icon {
    font-size: 11px !important;
    margin-left: 4px;
    transition: transform 0.3s ease !important;
}

.dropdown:hover .arrow-icon, .dropdown.open .arrow-icon {
    transform: rotate(180deg) !important;
    color: var(--gold-bright) !important;
}

/* 🚪 BOTÓN SALIR / LOGOUT */
.logout a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.8) 0%, rgba(70, 0, 0, 0.9) 100%);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #fca5a5;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    transition: var(--transition-smooth);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
}

.logout a:hover {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: #ffffff;
    border-color: #f87171;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.65), 0 4px 15px rgba(0, 0, 0, 0.8);
    transform: translateY(-2px);
}

/* 🍔 BOTÓN DE MENÚ PARA MÓVILES */
.menu-toggle {
    display: none;
    background: rgba(25, 8, 8, 0.85);
    border: 1.5px solid var(--gold-primary);
    color: var(--gold-bright);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 0 12px var(--gold-glow-subtle);
}

.menu-toggle:hover {
    background: var(--gold-primary);
    color: var(--basalt-950);
}

/* ==========================================================================
   ⚡ UTILIDADES Y COMPONENTES GLOBALES DEL SISTEMA DE DISEÑO
   ========================================================================== */

/* Badges & Pills */
.badge-gold {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(226, 183, 20, 0.14);
    color: var(--gold-bright);
    border: 1px solid var(--glass-border-gold);
    box-shadow: 0 0 14px var(--gold-glow-subtle);
}

.badge-fire {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(255, 106, 0, 0.15);
    color: #ff9d66;
    border: 1px solid rgba(255, 106, 0, 0.4);
    box-shadow: 0 0 14px var(--fire-glow-subtle);
}

.badge-basalt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.6);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Separadores Ornamentales */
.gold-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    margin: 25px auto;
    border-radius: 2px;
}

.fire-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--fire-flame), transparent);
    margin: 25px auto;
    border-radius: 2px;
}

/* Textos Especiales */
.text-gold {
    color: var(--gold-bright);
    text-shadow: 0 0 12px var(--gold-glow);
}

.text-fire {
    color: var(--fire-flame);
    text-shadow: 0 0 12px var(--fire-glow);
}

.text-gold-gradient {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-fire-gradient {
    background: var(--fire-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   📱 MEDIA QUERIES RESPONSIVAS
   ========================================================================== */
@media (max-width: 1100px) {
    .header {
        padding: 10px 20px;
    }
    .menu a, .dropdown-toggle {
        padding: 8px 12px;
        font-size: 12.8px;
    }
}

@media (max-width: 850px) {
    .header {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 12px 20px;
    }
    .menu-toggle {
        display: block;
    }
    .menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 8px;
        padding-top: 14px;
    }
    .menu.show {
        display: flex;
    }
    .menu a, .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 11px 16px;
    }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.45);
        display: none;
        width: 100%;
        margin-top: 4px;
        border-radius: 8px;
    }
    .dropdown.open .dropdown-menu {
        display: flex;
        flex-direction: column;
    }
}