/* ============================================================
   VARIABLES GLOBALES - LATINOX RZ
   ============================================================ */
:root {
    --bg: #050505;
    --accent: #8b5cf6; /* Morado Nexus/Latinox */
    --accent-rgb: 139, 92, 246;
    --red-latinox: #ff0000; /* Rojo para acentos tipo Volt */
    --text: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.5);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.07);
    --font-main: 'Montserrat', sans-serif;
    --font-title: 'Syncopate', sans-serif;
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.5;
}

/* Fondo de Rejilla sutil */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(var(--glass-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ============================================================
   LOADER (Pre-carga)
   ============================================================ */
.loader-wrapper {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease;
}

.loader-text {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 5px;
    display: block;
    margin-bottom: 15px;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: var(--glass-border);
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: loading 2s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ============================================================
   NAVBAR SUPERIOR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    height: 80px;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-brand {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -1px;
    cursor: pointer;
}

.accent { color: var(--accent); }

.nav-right-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Perfil de Usuario (Discord) */
#user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--glass);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
}

.user-status-hidden { display: none !important; }

#user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #222;
}

#user-name {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Botón disparador del menú */
.menu-trigger {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text);
}

.trigger-label {
    font-family: var(--font-title);
    font-size: 0.75rem;
    letter-spacing: 3px;
    opacity: 0.6;
}

.trigger-icon {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.trigger-icon span {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

.trigger-icon span:last-child { width: 20px; align-self: flex-end; background: var(--accent); }

/* ============================================================
   CONTENEDOR PRINCIPAL
   ============================================================ */
#main-content {
    min-height: 100vh;
}

/* Animación de entrada de página */
.page-fade-in {
    animation: pageIn 0.6s forwards;
}

@keyframes pageIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   FOOTER GLOBAL
   ============================================================ */
.main-footer {
    padding: 60px 50px;
    border-top: 1px solid var(--glass-border);
    margin-top: 100px;
}

.footer-wrap {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info p {
    font-size: 0.75rem;
    letter-spacing: 1px;
    opacity: 0.4;
    margin-bottom: 5px;
}

.dev-tag { font-weight: 700; }
.dev-tag a { color: var(--accent); }

/* ============================================================
   SCROLLBAR PERSONALIZADA
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { 
    background: var(--glass-border); 
    border-radius: 10px;
    transition: var(--transition);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }