:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --accent-primary: #3b82f6; /* Azul brillante */
    --accent-secondary: #8b5cf6; /* Violeta */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass: rgba(255, 255, 255, 0.05);
    --transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.bg-alt {
    background-color: rgba(255, 255, 255, 0.02);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    user-select: none;
    -webkit-user-select: none;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    /* El cursor personalizado se gestiona con JS, el cursor por defecto se oculta */
}

input, textarea {
    user-select: text !important;
    -webkit-user-select: text !important;
}

/* Estilos para el cursor personalizado con transición suave */
.custom-cursor {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    position: fixed;
    pointer-events: none; /* Importante para que no interfiera con los clicks */
    z-index: 20000;
    transform: translate(-50%, -50%);
    transition: background-color 0.3s ease, transform 0.2s ease, opacity 0.3s ease; /* Mantener para hover y visibilidad */
    opacity: 0;
}
/*  */
/* Desactivar cursor personalizado en dispositivos táctiles para evitar interferencias */
@media (pointer: coarse) {
    .custom-cursor, .cursor-dot {
        display: none !important;
    }
    body.custom-cursor-active, 
    body.custom-cursor-active * {
        cursor: auto !important;
    }
}

/* Ocultar el cursor real solo cuando el sistema personalizado esté listo (vía JS) */
body.custom-cursor-active,
body.custom-cursor-active * {
    cursor: none !important;
}

/* Estado de hover con suavizado */
.custom-cursor.hover {
    background-color: var(--accent-primary);
    transform: translate(-50%, -50%) scale(1.6);
    box-shadow: 0 0 15px var(--accent-primary);
}

/* Estilos para los puntos de la estela */
.cursor-dot {
    position: fixed;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 19999;
    transform: translate(-50%, -50%);
    transition: background-color 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.cursor-dot.hover {
    background-color: var(--accent-primary);
    box-shadow: 0 0 5px var(--accent-primary);
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    nav ul {
        display: none; /* Ocultar la navegación si ya no hay elementos */
      }

    .rank-title {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .staff-card {
        padding: 30px 15px 20px;
        max-width: 240px;
    }
}

.logo {
    display: none;
    align-items: center;
    text-decoration: none;
    color: white;
    gap: 12px;
}

.server-logo {
    height: 45px;
    width: auto;
    max-width: 180px;
    border-radius: 0;
    object-fit: contain;
    filter: drop-shadow(0 0 8px var(--accent-primary));
    transition: filter 0.3s ease;
}

.server-logo:hover {
    filter: drop-shadow(0 0 15px var(--accent-primary));
}

.logo h1 {
    font-size: 1.4rem;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    display: none; /* Ocultar la navegación si ya no hay elementos */
}

.nav-discord {
    background: #5865F2;
    color: white !important;
    padding: 8px 15px;
    border-radius: 8px;
    animation: discordPulse 2s infinite;
    transition: var(--transition);
}

.nav-discord:hover {
    background: #4752c4 !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

nav a:not(.nav-discord) {
    position: relative;
    display: none;
}

nav a:not(.nav-discord)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-primary);
    transition: width 0.3s ease;
}

nav a:not(.nav-discord):hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--accent-primary);
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background-color: var(--bg-dark); /* Fondo oscuro mientras carga la imagen */
}

.video-foreground,
.video-foreground .background-image { /* Apuntamos directamente a la imagen */
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra todo el contenedor */
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.5; /* Hace que la imagen sea menos agresiva visualmente */
    /* Eliminar las propiedades de tamaño de video, ya que object-fit: cover lo maneja */
    min-height: auto;
    min-width: auto;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: rgba(15, 23, 42, 0.75); /* Oscurece más la imagen para maximizar la legibilidad */
    backdrop-filter: blur(10px); /* Desenfoque más suave para un efecto ambiental */
}

/* Hero Section */
#hero {
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: transparent; /* Quitamos el gradiente para ver el video */
    overflow-y: auto; /* Permitir scroll si el contenido excede la pantalla en móviles */
}

#hero .container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px; /* Padding uniforme para centrado real */
    gap: 40px; /* Espacio aumentado entre logo y botones al no haber frase */
}

.hero-logo-container {
    opacity: 0;
    animation: logoEntrance 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.logo-shine-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 0; /* Eliminado para usar el gap del contenedor */
    animation: float 4s ease-in-out infinite;
    will-change: transform, filter;
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
    filter: brightness(0.9);
}

.logo-shine-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 70%
        transparent 35%,
        rgba(203, 213, 225, 0.15) 42%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(203, 213, 225, 0.15) 58%,
        transparent 65%
    );
    background-size: 300% 100%;
    background-repeat: no-repeat;
    /* Usamos el logo como máscara para que el brillo solo afecte al logo y no al fondo */
    -webkit-mask-image: url('assets/img/Logo.png');
    mask-image: url('assets/img/Logo.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    pointer-events: none;
    /* Animación de escaneo cada 6 segundos */
    animation: shine-sweep 6s infinite running;
    z-index: 2;
}

.hero-logo {
    width: 100%;
    max-width: 450px;
    height: auto;
    display: block;
    transition: filter 0.5s ease, transform 0.5s ease;
    filter: contrast(1.1) brightness(1.1);
}

.logo-shine-wrapper:hover {
    filter: brightness(1.2);
}

.logo-shine-wrapper:hover .hero-logo {
    --glow-min: 30px;
    --glow-max: 70px;
    --logo-scale: 1.05;
    filter: brightness(1.2);
}

@keyframes shine-sweep {
    0% {
        background-position: -200% 0;
    }
    25% {
        background-position: 200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes logoEntrance {
    from {
        opacity: 0;
        transform: scale(0.6);
        filter: blur(15px);
    }
    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) scale(var(--logo-scale, 1));
        filter: drop-shadow(0 0 var(--glow-min, 20px) var(--accent-primary)) 
                drop-shadow(0 0 45px rgba(59, 130, 246, 0.4));
    }
    50% { 
        transform: translateY(-10px) scale(var(--logo-scale, 1));
        filter: drop-shadow(0 0 var(--glow-max, 55px) var(--accent-secondary)) 
                drop-shadow(0 0 70px rgba(139, 92, 246, 0.4));
    }
}

/* Optimizaciones para Móviles y Rendimiento */
@media (max-width: 768px) {
    .logo-shine-wrapper::after {
        display: none; /* Eliminar efecto de escaneo con máscara */
    }

    .logo-shine-wrapper {
        animation: floatMobile 4s ease-in-out infinite; /* Animación simplificada */
    }

    #hero h2 {
        font-size: 2.2rem;
    }

    @keyframes floatMobile {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-10px); }
    }
    
    .hero-logo {
        max-width: 280px; /* Logo más pequeño en móviles para asegurar espacio */
        filter: drop-shadow(0 5px 15px var(--accent-primary)); /* Sombra estática */
    }
}
.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: none;
    font-style: italic;
    display: inline-block;
    min-height: 1.5em; /* Evita saltos de layout mientras escribe */
    padding: 0 15px;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
    /* La opacidad se maneja ahora por JS al iniciar el efecto */
}

.hero-tagline::after {
    content: '|';
    font-style: normal;
    color: var(--accent-primary);
    margin-left: 4px;
    animation: blink-cursor 0.8s infinite;
    font-weight: bold;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes taglineLoop {
    /* El efecto ocurre solo al final de los 10 segundos (entre el 90% y 100%) */
    0%, 90%, 100% { 
        filter: brightness(1);
        transform: scale(1);
    }
    95% { 
        filter: brightness(1.5); /* Un pequeño brillo */
        transform: scale(1.03); /* Un pulso muy suave */
    }
}

#hero h2 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 0;
    flex-wrap: wrap;
    padding: 0 10px;
}

@media (max-width: 480px) {
    .hero-buttons {
        gap: 12px;
    }
    .btn {
        width: 100%; /* Botones de ancho completo en móviles muy pequeños para mejor click */
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

.hero-buttons .btn {
    /* Eliminamos opacity: 0 de aquí para evitar que se queden invisibles si la animación falla */
    animation: fadeInTab 0.8s cubic-bezier(0.16, 1, 0.3, 1) both, glitch-btn 6s infinite;
}

.hero-buttons .btn:nth-child(1) { animation-delay: 0.2s, 3.5s; }
.hero-buttons .btn:nth-child(2) { animation-delay: 0.4s, 7.2s; } /* Información General */
.hero-buttons .btn:nth-child(3) { 
    animation: fadeInTab 0.8s cubic-bezier(0.16, 1, 0.3, 1) both, glitch-btn 6s infinite, goldShine 4s linear infinite;
    animation-delay: 0.5s, 5.1s, 0.5s;
} /* Catálogo de Vehículos */
.hero-buttons .btn:nth-child(4) { animation-delay: 0.6s, 1.8s; } /* Administración */
.hero-buttons .btn:nth-child(5) { animation-delay: 0.7s, 4.2s; } /* Discord */

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--accent-primary);
    color: white;
    text-decoration: none;
    border-radius: 0;
    clip-path: polygon(15% 0, 100% 0, 100% 70%, 85% 100%, 0 100%, 0 30%);
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(59, 130, 246, 0.4);
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    clip-path: polygon(0 0, 85% 0, 100% 30%, 100% 100%, 15% 100%, 0 70%);
}

.btn-green {
    background: linear-gradient(45deg, #10b981, #059669);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.btn-green:hover {
    box-shadow: 0 15px 25px rgba(16, 185, 129, 0.4);
    background: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
}

.btn-orange {
    background: linear-gradient(45deg, #f59e0b, #d97706);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.btn-orange:hover {
    box-shadow: 0 15px 25px rgba(245, 158, 11, 0.4);
    background: #f59e0b;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
}

.btn-gold {
    background: linear-gradient(90deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    background-size: 200% auto;
    border: none;
    color: #0f172a !important; /* Texto oscuro para contraste premium */
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.btn-gold:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.8);
    filter: brightness(1.2);
}

@keyframes goldPulse {
    0% {
        background-position: 0% 50%;
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        background-position: 100% 50%;
        transform: scale(1.02);
        filter: brightness(1.2);
    }
    100% {
        background-position: 0% 50%;
        transform: scale(1);
        filter: brightness(1);
    }
}

@keyframes goldShine {
    to { background-position: 200% center; }
}

/* Contact Items */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.contact-item {
    background: var(--glass);
    padding: 20px;
    border-radius: 15px;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: var(--transition);
}

.contact-item:hover {
    background: var(--accent-primary);
}

/* Sanctions Table Styles */
.table-wrapper {
    margin-top: 40px;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--glass);
    overflow-x: auto;
}

.table-wrapper h3 {
    color: var(--accent-primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 15px;
    border-bottom: 1px solid var(--glass);
}

th {
    color: var(--accent-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

footer {
    padding: 20px 0 10px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Wiki Layout */
.rules-wiki-container {
    display: none; /* Oculto por defecto */
    padding: 0;
    background: var(--bg-dark);
    scroll-padding-top: 100px;
}

/* Estilo GitBook: Imágenes animadas */
.wiki-img-animated {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 25px 0;
    border: 1px solid var(--glass);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease, filter 0.5s ease;
    animation: fadeInUp 0.8s ease-out both;
}

.wiki-img-animated:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(59, 130, 246, 0.3);
    filter: brightness(1.1);
}

/* Clase para banners que no deben parecer un "cuadro" o marco */
.wiki-img-transparent {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.wiki-img-transparent:hover {
    box-shadow: none !important;
    transform: scale(1.02) !important; /* Efecto de hover más sutil */
}

/* Animación de entrada para elementos de la Wiki */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rules-wiki-container .container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
    padding: 0 20px;
}

.wiki-sidebar {
    width: 320px;
    flex-shrink: 0;
    background: var(--bg-card);
    padding: 40px 15px;
    border-right: 1px solid var(--glass);
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

/* Scrollbar personalizado para la Wiki */
.wiki-sidebar::-webkit-scrollbar {
    width: 4px;
}

.wiki-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.wiki-sidebar::-webkit-scrollbar-thumb {
    background: var(--glass);
    border-radius: 10px;
}

.btn-close-wiki {
    width: 100%;
    padding: 14px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.btn-close-wiki i {
    transition: transform 0.4s ease;
}

.btn-close-wiki:hover {
    background: linear-gradient(45deg, #ef4444, #dc2626);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
}

.btn-close-wiki:hover i {
    transform: rotate(90deg);
}

/* Base style for mobile toggle */
.wiki-mobile-toggle {
    display: none;
}

/* Wiki Theme Toggle */
.theme-toggle-wrapper {
    margin-bottom: 25px;
}

.theme-btn {
    width: 100%;
    padding: 12px;
    background: var(--glass);
    border: 1px solid var(--glass);
    color: var(--text-main);
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.theme-btn:hover {
    border-color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Wiki Search Bar */
.wiki-search {
    position: relative;
    border-left: 1px solid var(--glass);
}

/* Light Theme Overrides (Exclusive for Wiki) */
.rules-wiki-container.light-theme {
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --glass: rgba(15, 23, 42, 0.08);
}

.rules-wiki-container.light-theme .wiki-sidebar {
    border-right-color: rgba(0, 0, 0, 0.1);
}

.rules-wiki-container.light-theme .wiki-content {
    border-left-color: rgba(0, 0, 0, 0.1);
}

.rules-wiki-container.light-theme .wiki-header-logo {
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.15));
}

.rules-wiki-container.light-theme tr:hover td {
    background: rgba(0, 0, 0, 0.03);
}

.wiki-article {
    max-width: 900px;
    margin: 0 auto;
}

.wiki-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.wiki-search input {
    width: 100%;
    background: var(--glass);
    border: 1px solid var(--glass);
    padding: 12px 15px 12px 40px;
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
}

.wiki-search input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.no-results-message {
    margin-top: 20px;
}

.wiki-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wiki-link {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 12px 15px;
    text-align: left;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.wiki-link:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
}

.wiki-link.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-primary);
    border-right: 3px solid var(--accent-primary);
    border-radius: 8px 0 0 8px;
}

.wiki-submenu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, margin 0.4s ease;
    flex-direction: column;
    padding-left: 42px;
    border-left: 1px solid var(--glass);
    margin-left: 22px;
    gap: 5px;
    display: flex;
    margin-top: 0;
    margin-bottom: 0;
}

.wiki-submenu {
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.wiki-submenu.open {
    max-height: 500px; /* Un valor lo suficientemente grande para el contenido */
    opacity: 1;
    margin-top: 5px;
    margin-bottom: 15px;
}

.wiki-sublink {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 12px;
    text-align: left;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-size: 0.9rem;
    width: 100%;
}

.wiki-sublink:hover, .wiki-sublink.active {
    color: var(--accent-primary);
    background: var(--glass);
}

/* Estilos para sub-enlaces deshabilitados */
.disabled-sublink {
    cursor: not-allowed !important;
    opacity: 0.6;
    pointer-events: none; /* Evita que el botón sea clickeable */
    background: transparent !important; /* Anula el hover */
    color: var(--text-muted) !important; /* Mantiene el color de texto muted */
}

.disabled-sublink:hover {
    background: transparent !important; /* Asegura que no haya cambio de fondo al pasar el ratón */
    color: var(--text-muted) !important; /* Asegura que no haya cambio de color de texto al pasar el ratón */
}

.soon-tag {
    font-size: 0.7em;
    background-color: var(--accent-secondary);
    color: white;
    padding: 2px 6px;
    border-radius: 5px;
    margin-left: 10px;
    text-transform: uppercase;
    font-weight: 700;
    white-space: nowrap; /* Evita que el texto se rompa en varias líneas */
}

.wiki-content {
    flex: 1;
    min-width: 0;
    padding: 60px 80px;
    background: var(--bg-dark);
    border-left: 1px solid var(--glass);
}

/* Light Theme Overrides (Exclusive for Wiki) */
.rules-wiki-container.light-theme {
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --glass: rgba(15, 23, 42, 0.08);
    color: var(--text-main);
}

.rules-wiki-container.light-theme .wiki-sidebar {
    border-right-color: rgba(0, 0, 0, 0.1);
}

.rules-wiki-container.light-theme .wiki-content {
    border-left-color: rgba(0, 0, 0, 0.1);
}

.rules-wiki-container.light-theme .wiki-header-logo {
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.1));
    mix-blend-mode: normal; /* Desactiva el efecto de fusión en el modo claro */
}

.rules-wiki-container.light-theme tr:hover td {
    background: rgba(0, 0, 0, 0.03);
}

/* Wiki Light Mode Cursor Overrides */
.wiki-light-mode .custom-cursor {
    background-color: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(15, 23, 42, 0.2);
}

.wiki-light-mode .cursor-dot {
    background-color: rgba(15, 23, 42, 0.35);
}

.wiki-article {
    max-width: 900px;
    margin: 0 auto;
}

.wiki-section {
    display: none;
    animation: fadeInTab 0.4s ease-out forwards;
}

.wiki-section.active {
    display: block;
}

.wiki-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--glass);
    padding-bottom: 15px;
}

.wiki-header-logo {
    height: 1.8em;
    width: auto;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.3)) contrast(1.2) saturate(1.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: contain;
    vertical-align: middle;
    mix-blend-mode: screen; /* Elimina fondos negros y fusiona con el fondo oscuro */
    animation: silver-glint 8s infinite;
}

.wiki-header-logo:hover {
    transform: translateY(-5px);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5)) contrast(1.3) brightness(1.1);
}

.wiki-section .section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.rule-category {
    background: var(--bg-card);
    padding: 35px 45px;
    border-radius: 15px;
    border: 1px solid var(--glass);
    margin-bottom: 30px;
    transition: border-color 0.3s ease;
}

.rule-category:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.rule-category h3 {
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.rule-category h4 {
    margin-top: 25px;
    font-size: 1.3rem;
    border-left: 3px solid var(--accent-secondary);
    padding-left: 15px;
}

.rule-category ul {
    list-style: none;
}

.rule-category li {
    margin-bottom: 15px;
    color: var(--text-main);
}

.rule-category li:last-child {
    margin-bottom: 0;
}

/* Admin View Styles */
.admin-view-container {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 80px 0;
    background: var(--bg-dark);
    animation: fadeInTab 0.6s ease-out forwards;
}

.admin-view-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, 
        rgba(59, 130, 246, 0.15) 0%, 
        rgba(139, 92, 246, 0.15) 30%, 
        rgba(245, 158, 11, 0.1) 60%, 
        transparent 80%);
    filter: blur(100px);
    z-index: -1;
    animation: ambientRotate 25s infinite linear;
    pointer-events: none;
    transform-origin: center;
}

@keyframes ambientRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
    50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.1); }
    100% { transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--glass);
    padding-bottom: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.admin-header h2 {
    font-size: 2.5rem;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rank-section {
    margin-bottom: 45px;
}

.management-tier {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.management-tier .rank-section {
    margin-bottom: 0;
    flex: 0 1 auto;
}

.staff-divider {
    display: none;
}

.rank-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 700;
}

.rank-title::before,
.rank-title::after {
    content: '';
    flex: 1;
    height: 1px;
    max-width: 150px;
    background: linear-gradient(to var(--direction, right), transparent, var(--rank-color, var(--accent-primary)));
}

.rank-title::before { --direction: right; }
.rank-title::after { --direction: left; }

.rank-title.fundador { --rank-color: #ef4444; --rank-glow: 239, 68, 68; color: #ef4444; }
.rank-title.ceo { --rank-color: #f59e0b; --rank-glow: 245, 158, 11; color: #f59e0b; }
.rank-title.administracion { --rank-color: #10b981; --rank-glow: 16, 185, 129; color: #10b981; }

.staff-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.staff-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--glass);
    border-left: 5px solid var(--rank-color, var(--accent-primary));
    padding: 20px;
    border-radius: 20px;
    text-align: left;
    width: 100%;
    max-width: 380px;
    display: grid;
    grid-template-columns: 85px 1fr;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.staff-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        to right, 
        transparent, 
        rgba(255, 255, 255, 0.05) 10%, 
        rgba(255, 255, 255, 0.2) 20%, 
        transparent 30%,
        rgba(255, 255, 255, 0.15) 40%,
        transparent
    );
    transform: skewX(-25deg);
    pointer-events: none;
    border-radius: 30px;
    will-change: left, opacity;
    opacity: 0;
    z-index: 5;
}

.staff-img-wrapper {
    width: 85px;
    height: 85px;
    margin: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-img-wrapper::before {
    content: "";
    position: absolute;
    inset: -5px; 
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent,
        var(--rank-color, var(--accent-primary)),
        transparent 30%,
        var(--rank-color, var(--accent-primary)) 50%,
        transparent 70%,
        var(--rank-color, var(--accent-primary))
    );
    animation: rgbRotate 3s linear infinite paused;
    z-index: 0;
    opacity: 0; /* Oculto por defecto */
    transition: opacity 0.4s ease, transform 0.4s ease;
    will-change: transform, opacity;
}

/* Variaciones para que las animaciones no estén sincronizadas */
.staff-card:nth-child(even) .staff-img-wrapper::before {
    animation-duration: 4.2s;
    animation-direction: reverse;
    animation-delay: -1.2s;
}

.staff-card:nth-child(3n) .staff-img-wrapper::before {
    animation-duration: 2.8s;
    animation-delay: -0.5s;
}

.staff-card:nth-child(3n+1) .staff-img-wrapper::before {
    animation-duration: 3.5s;
    animation-delay: -2.1s;
}

.staff-card:nth-child(4n) .staff-img-wrapper::before {
    animation-duration: 5.5s;
    animation-delay: -3.7s;
}

.staff-card:hover .staff-img-wrapper::before {
    opacity: 1; /* Se activa al pasar el mouse sobre la tarjeta */
    transform: scale(1.02);
    animation-play-state: running;
}

@keyframes rgbRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.staff-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #0f172a;
    transition: var(--transition);
}

.staff-card:hover .staff-img {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.staff-card h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 700;
}

.staff-rank {
    font-size: 0.65rem;
    color: #fff;
    background: var(--rank-color, var(--accent-primary));
    padding: 2px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Ajuste de espaciado cuando hay múltiples rangos */
.staff-card .staff-rank:not(:last-of-type) {
    margin-bottom: 8px;
}

/* Oculta el punto decorativo en rangos secundarios para mayor limpieza */
.staff-rank + .staff-rank::before {
    display: none;
}

.staff-rank::before {
    display: none;
}

.rank-section.fundador .staff-card { --rank-color: #ef4444; --rank-glow: 239, 68, 68; }
.rank-section.ceo .staff-card { --rank-color: #f59e0b; --rank-glow: 245, 158, 11; }
.rank-section.administracion .staff-card { --rank-color: #10b981; --rank-glow: 16, 185, 129; }

.staff-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--glass);
}

.staff-socials a {
    color: var(--text-muted);
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
    transition: var(--transition);
}

.staff-socials a:hover {
    color: var(--accent-primary);
    transform: scale(1.2);
    transform: translateY(-3px);
    text-shadow: 0 0 10px var(--accent-primary);
}

/* Especial: Tarjeta del Fundador */
.staff-card.card-fundador {
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-top: 8px solid #ef4444;
    border-top: 5px solid #ef4444;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.15);
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.15), rgba(15, 23, 42, 0.98));
}

/* Especial: Tarjeta del CEO */
.staff-card.card-ceo {
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-top: 8px solid #f59e0b;
    border-top: 5px solid #f59e0b;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.15);
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.12), rgba(15, 23, 42, 0.98));
}

.card-fundador .staff-img-wrapper::before {
    opacity: 1; /* Brillo dorado constante */
    opacity: 0; 
    background: conic-gradient(
        #f59e0b, #fbbf24, #fef3c7, #fbbf24, #f59e0b
    );
    animation: rgbRotate 4s linear infinite; /* Rotación más pausada y elegante */
}

.staff-card.card-fundador:hover {
    transform: translateY(-15px) scale(1.05);
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.3);
}

/* Corona flotante para el Fundador */
.card-fundador .staff-img-wrapper::after {
    content: "\f521"; /* Código del icono de corona en FontAwesome */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: -35px;
    left: 50%;
    font-size: 2.2rem;
    color: #fbbf24;
    z-index: 10;
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.8);
    animation: crownFloat 3s ease-in-out infinite;
    pointer-events: none;
    will-change: transform;
    display: none;
}

@keyframes crownFloat {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(-10deg); }
    50% { transform: translateX(-50%) translateY(-12px) rotate(10deg); }
}

.rule-category h4 {
    color: var(--accent-secondary);
    font-size: 1.2rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rule-category p {
    color: var(--text-muted);
    padding-left: 0;
    font-size: 1rem;
    line-height: 1.7;
}

.wiki-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--glass);
}

/* Developer Credit Styles */
.developer-credit {
    margin-top: 10px;
    padding-top: 10px;
}

.developer-credit a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition);
}

.developer-credit a:hover {
    color: var(--accent-primary);
}

.dev-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    object-fit: cover;
    transition: var(--transition);
}

.developer-credit a:hover .dev-avatar {
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--accent-primary);
}

/* Tab System Styles */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
}

.tab-btn {
    padding: 14px 28px;
    background: var(--bg-card);
    border: 1px solid var(--glass);
    color: var(--text-muted);
    border-radius: 15px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.tab-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-main);
}

.tab-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6), 0 10px 20px rgba(59, 130, 246, 0.3);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.tab-group {
    display: none;
}

.tab-group.active-tab {
    display: block;
    animation: fadeInTab 0.4s ease-out forwards;
}

.tab-group.searching {
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilo exclusivo para elkishu - Efecto de Fuego */
.card-elkishu {
    border-color: rgba(139, 92, 246, 0.4) !important;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.9) 100%),
                radial-gradient(circle at center, rgba(139, 92, 246, 0.15), transparent 80%) !important;
    --rank-color: #8b5cf6 !important;
    --rank-glow: 139, 92, 246 !important;
}

.card-elkishu h4 {
    color: #fff;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
    animation: violetNameGlow 2s infinite alternate ease-in-out;
}

@keyframes violetNameGlow {
    from {
        text-shadow: 0 0 10px rgba(139, 92, 246, 0.6), 0 0 20px rgba(139, 92, 246, 0.2);
    }
    to {
        text-shadow: 0 0 15px rgba(139, 92, 246, 1), 0 0 30px rgba(139, 92, 246, 0.6);
        color: #e9d5ff; /* Tono lila muy claro para resaltar el brillo */
    }
}

.card-elkishu::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px; /* Grosor del borde de fuego */
    border-radius: 20px;
    background: linear-gradient(
        45deg,
        #8b5cf6, #3b82f6, #06b6d4, #a855f7, #8b5cf6
    );
    background-size: 400% 400%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 10;
    animation: fireMove 3s ease infinite, fireFlicker 2s infinite alternate;
}

@keyframes fireMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fireFlicker {
    0% { opacity: 0.7; filter: brightness(1) drop-shadow(0 0 5px #8b5cf6); }
    100% { opacity: 1; filter: brightness(1.4) drop-shadow(0 0 12px #3b82f6); }
}

@keyframes cyanFireFlicker {
    0% { opacity: 0.7; filter: brightness(1) drop-shadow(0 0 5px #06b6d4); }
    100% { opacity: 1; filter: brightness(1.4) drop-shadow(0 0 12px #22d3ee); }
}

/* Colores personalizados para Nevetz y Flavia */
.card-nevetz {
    border-color: rgba(6, 182, 212, 0.4) !important;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.9) 100%),
                radial-gradient(circle at center, rgba(6, 182, 212, 0.15), transparent 80%) !important;
    --rank-color: #06b6d4 !important;
    --rank-glow: 6, 182, 212 !important;
}

.card-nevetz h4 {
    color: #fff;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.8);
    animation: cyanNameGlow 2s infinite alternate ease-in-out;
}

@keyframes cyanNameGlow {
    from {
        text-shadow: 0 0 10px rgba(6, 182, 212, 0.6), 0 0 20px rgba(6, 182, 212, 0.2);
    }
    to {
        text-shadow: 0 0 15px rgba(6, 182, 212, 1), 0 0 30px rgba(6, 182, 212, 0.6);
        color: #e0f2fe; /* Tono cian muy claro para resaltar el brillo */
    }
}

.card-nevetz::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px; /* Grosor del borde de fuego */
    border-radius: 20px;
    background: linear-gradient(
        45deg,
        #06b6d4, #22d3ee, #0891b2, #67e8f9, #06b6d4
    );
    background-size: 400% 400%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 10;
    animation: fireMove 3s ease infinite, cyanFireFlicker 2s infinite alternate;
}

.card-flavia {
    --rank-color: #f472b6 !important; /* Rosa/Magenta */
    --rank-glow: 244, 114, 182 !important;
}

.gold-text {
    background: linear-gradient(
        90deg,
        #bf953f 0%, 
        #fcf6ba 15%, 
        #b38728 30%, 
        #fbf5b7 45%, 
        #aa771c 60%, 
        #fcf6ba 75%, 
        #b38728 90%, 
        #bf953f 100%
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent !important;
    font-weight: 800;
    animation: goldFlow 2s linear infinite;
    display: inline-flex;
    align-items: center;
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.6));
}

/* Estilo de Badge de Oro para Rangos Especiales */
.staff-rank.gold-rank {
    background: linear-gradient(90deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c) !important;
    background-size: 200% auto !important;
    animation: goldFlow 3s linear infinite !important;
    background: linear-gradient(90deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c, #fcf6ba, #bf953f) !important;
    background-size: 300% auto !important;
    animation: goldFlow 2s linear infinite !important;
    color: #0f172a !important;
    font-weight: 800;
    text-shadow: none !important;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4) !important;
}

.staff-rank.gold-rank .icon-code {
    background: none !important;
    -webkit-text-fill-color: #0f172a !important;
    background: linear-gradient(90deg, #0f172a, #475569, #0f172a) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: goldFlow 3s linear infinite, codeIconPulse 2s infinite ease-in-out !important;
}

@keyframes goldFlow {
    from { background-position: 0% center; }
    to { background-position: 200% center; }
}

.icon-code {
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    animation: codeIconPulse 2s infinite ease-in-out;
    background: inherit; /* Hereda el degradado animado del padre */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent !important;
    font-size: 1.1em;
}

@keyframes codeIconPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(212, 175, 55, 0.4)); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.8)); }
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.4)); }
    50% { transform: scale(1.2); filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.6)); }
}

/* Estilos para bloques de información (GitBook hints) */
.wiki-hint {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 5px solid;
    font-size: 0.95rem;
}
.hint-info { background: rgba(59, 130, 246, 0.1); border-color: var(--accent-primary); }
.hint-success { background: rgba(34, 197, 94, 0.1); border-color: #22c55e; }
.hint-warning { background: rgba(234, 179, 8, 0.1); border-color: #eab308; }
.hint-danger { background: rgba(239, 68, 68, 0.1); border-color: #ef4444; }

.rule-list-detailed li {
    margin-bottom: 15px !important;
}

.mark-tag {
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 4px;
}

.text-warning {
    color: #fbbf24 !important; /* Amarillo ámbar legible */
    font-weight: 600;
}

.text-danger {
    color: #f87171 !important; /* Rojo suave legible */
    font-weight: 600;
}

@keyframes discordPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(88, 101, 242, 0.4);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(88, 101, 242, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(88, 101, 242, 0);
    }
}

@keyframes glitch-btn {
    0%, 94%, 96%, 100% {
        transform: none;
        filter: none;
    }
    95% {
        transform: translate(-3px, 1px) skewX(2deg);
        filter: drop-shadow(3px 0 var(--accent-secondary)) drop-shadow(-3px 0 var(--accent-primary)) contrast(1.2);
    }
    97% {
        transform: translate(3px, -1px) skewX(-2deg);
        filter: drop-shadow(-3px 0 var(--accent-secondary)) drop-shadow(3px 0 var(--accent-primary)) contrast(1.2);
    }
}

/* Estilos para Información General */
.general-info-container {
    padding: 100px 0;
    background: var(--bg-dark);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.general-info-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 40%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    animation: ambientRotate 30s infinite linear;
}

/* Fondo exclusivo para el Catálogo de Vehículos */
#vehicle-catalog-section {
    background-color: #000000 !important; /* Negro absoluto para mayor exclusividad */
}

/* Eliminar efectos de fondo para el Catálogo de Vehículos */
#vehicle-catalog-section::before,
#vehicle-catalog-section::after {
    content: none !important;
    display: none !important;
}

.general-info-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 10% 10%, #fff, transparent),
        radial-gradient(1px 1px at 20% 50%, #fff, transparent),
        radial-gradient(2px 2px at 40% 80%, #fff, transparent),
        radial-gradient(1px 1px at 60% 20%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 80% 60%, #fff, transparent),
        radial-gradient(1px 1px at 90% 90%, #fff, transparent);
    background-size: 400px 400px;
    width: 200%;
    height: 200%;
    opacity: 0.3;
    z-index: -1;
    animation: starsMovingSmooth 120s linear infinite;
    pointer-events: none;
    will-change: transform;
}

@keyframes starsMovingSmooth {
    from { transform: translate(0, 0); }
    to { transform: translate(-400px, -400px); }
}

.general-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    gap: 20px;
    flex-wrap: wrap;
}

.general-info-header h2 {
    font-size: 2.8rem;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.info-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass);
    padding: 50px;
    border-radius: 30px;
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.info-intro {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 20px;
}

.info-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    margin: 35px 0;
    border: 1px solid var(--glass);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.info-img:hover {
    transform: scale(1.02);
}

.gold-frame-img {
    border: 4px solid transparent !important;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                linear-gradient(90deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c) border-box !important;
    background-size: 200% auto !important;
    animation: goldFlow 4s linear infinite !important;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4), 0 15px 35px rgba(0,0,0,0.5) !important;
}

.info-layout-wrapper {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.info-main-content {
    flex: 2;
}

.hierarchy-sidebar {
    flex: 1;
    min-width: 280px;
    position: sticky;
    top: 20px;
}

.hierarchy-card {
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid #bf953f;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hierarchy-header {
    background: linear-gradient(90deg, #bf953f, #aa771c);
    padding: 12px;
    text-align: center;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.hierarchy-table {
    width: 100% !important;
    border-collapse: collapse;
}

.hierarchy-table td {
    padding: 12px 20px !important;
    border-bottom: 1px solid rgba(191, 149, 63, 0.2);
    font-size: 0.95rem;
    color: var(--text-main);
}

.hierarchy-table tr td:first-child {
    color: #ffd700;
    width: 40px;
    text-align: center;
}

@media (max-width: 768px) {
    .info-layout-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    .hierarchy-sidebar {
        width: 100%;
        position: static;
        min-width: unset;
    }
    .rules-wiki-container .container {
        flex-direction: column;
    }
    .wiki-sidebar {
        width: 100%;
        height: auto;
        position: sticky;
        top: 0;
        z-index: 100;
        padding: 15px;
    }

    .wiki-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        width: 100%;
        padding: 12px;
        background: rgba(59, 130, 246, 0.1);
        border: 1px solid var(--accent-primary);
        color: white;
        border-radius: 10px;
        font-family: inherit;
        font-weight: 700;
        margin-top: 10px;
        cursor: pointer;
        text-transform: uppercase;
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    .wiki-sidebar .theme-toggle-wrapper,
    .wiki-sidebar .wiki-search,
    .wiki-sidebar .wiki-nav {
        display: none;
    }

    .wiki-sidebar.mobile-open .theme-toggle-wrapper,
    .wiki-sidebar.mobile-open .wiki-search,
    .wiki-sidebar.mobile-open .wiki-nav {
        display: flex;
        flex-direction: column;
        animation: fadeInTab 0.3s ease-out forwards;
    }
    .wiki-content {
        padding: 30px 0; /* Eliminamos el exceso de padding lateral en móvil */
        border-left: none;
        border-top: 1px solid var(--glass);
    }
    .rule-category {
        padding: 25px 15px; /* Reducimos el padding interno de las tarjetas */
    }
    .wiki-section h2 {
        font-size: 1.8rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .btn-inscription {
        width: 100%;
        text-align: center;
    }
}

/* Botón Volver Arriba */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 2000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.6);
}

/* Estilos para el anillo de progreso en el botón Volver Arriba */
.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
    pointer-events: none;
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.1s linear;
    stroke: rgba(255, 255, 255, 0.9);
    stroke-linecap: round;
    stroke-dasharray: 138.23; /* Circunferencia para r=22 (2 * PI * r) */
    stroke-dashoffset: 138.23;
}

/* Estilos para el Catálogo de Vehículos */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 1300px;
    gap: 30px;
    margin: 40px auto;
    justify-content: center;
    align-items: start;
}

.vehicle-card {
    position: relative;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.vehicle-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        to right, 
        transparent, 
        rgba(255, 255, 255, 0.05) 10%, 
        rgba(255, 255, 255, 0.2) 20%, 
        transparent 30%,
        rgba(255, 255, 255, 0.15) 40%,
        transparent
    );
    transform: skewX(-25deg);
    pointer-events: none;
    border-radius: 25px;
    will-change: left, opacity;
    z-index: 5;
}

.vehicle-card:hover::before {
    animation: vehicleGlint 5s infinite;
}

.vehicle-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.vehicle-card.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 90vw;
    max-width: 850px;
    height: auto;
    max-height: 90vh;
    z-index: 10001;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: #0a0f1d;
    border-color: var(--accent-primary);
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.9), 0 0 40px rgba(59, 130, 246, 0.2);
    cursor: default;
    animation: vehiclePopup 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    overflow-y: auto;
}

/* Bloqueo de scroll cuando hay una carta expandida */
body.modal-open {
    overflow: hidden;
}

/* Ocultar el título cuando hay un vehículo expandido */
body.modal-open .general-info-header {
    display: none;
}

/* Fondo oscuro semi-transparente (Backdrop) */
body.modal-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000; /* El fondo opaco debe estar por debajo del contenedor de la carta */
    animation: fadeInBackdrop 0.4s ease-out forwards;
}

/* Boost de z-index para los contenedores cuando hay un modal abierto para que no queden bajo el fondo */
body.modal-open .general-info-container,
body.modal-open .admin-view-container {
    z-index: 9999;
}

/* Efecto de enfoque: atenuamos y desenfocamos las tarjetas que NO están expandidas */
body.modal-open .vehicle-card:not(.expanded) {
    opacity: 0.2;
    filter: blur(4px) grayscale(0.5);
    pointer-events: none; /* Evita interacciones accidentales */
}

@keyframes vehiclePopup {
    from {
        opacity: 0;
        transform: translate(-50%, -40%) scale(0.85);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: blur(0);
    }
}

@keyframes fadeInBackdrop {
    from { opacity: 0; }
    to { opacity: 1; }
}

.close-card {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: rgba(15, 23, 42, 0.9);
    border: 2px solid var(--accent-primary);
    color: white;
    border-radius: 50%;
    display: none; /* Oculto por defecto */
    align-items: center;
    justify-content: center;
    z-index: 100;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.close-card:hover {
    background: var(--accent-primary);
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--accent-primary);
}

.vehicle-card.expanded .close-card {
    display: flex;
}

@media (max-width: 992px) {
    .vehicle-card.expanded {
        height: auto;
        max-height: 95vh;
    }
}

.vehicle-card.expanded .vehicle-img {
    transform: scale(1.05);
}

.vehicle-card.expanded .vehicle-img-wrapper {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vehicle-card.expanded .vehicle-info {
    flex: none;
    width: 100%;
    padding: 20px;
}

.vehicle-card.expanded .buy-btn {
    width: auto !important;
    padding: 10px 30px !important;
    font-size: 0.8rem !important;
    margin: 0 auto !important;
}

.vehicle-img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    /* height: auto; - Eliminado, ya que es redundante con aspect-ratio y width: 100% */
    overflow: hidden;
    position: relative;
}

@media (max-width: 768px) {
    .vehicle-img-wrapper {
        aspect-ratio: 4 / 3;
    }
}

.vehicle-img, .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto evita que la imagen se estire feo */
    display: block;
}

.vehicle-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Degradado sutil de oscuro a transparente desde abajo, para un efecto de viñeta */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 30%, transparent 70%);
    opacity: 0; /* Oculto por defecto */
    transition: opacity 0.3s ease;
    pointer-events: none; /* Permite que los clics pasen a través del pseudo-elemento */
}

.vehicle-card:hover .vehicle-img-wrapper::after {
    opacity: 1; /* Muestra el degradado al pasar el ratón */
}
.vehicle-card.expanded .vehicle-img-wrapper::after {
    opacity: 1; /* Siempre visible cuando la tarjeta está expandida */
}

.vehicle-card:hover .vehicle-img {
    transform: scale(1.12);
    filter: brightness(1.1); /* Añade un ligero brillo a la imagen al pasar el ratón */
}

.vehicle-info {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 25px;
    justify-content: space-between;
    flex: 1;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.4), transparent);
}

.buy-btn {
    width: 100% !important;
    padding: 12px !important;
    font-size: 0.85rem !important;
    margin: 0 !important;
    clip-path: none !important;
    border-radius: 10px !important;
}

@media (max-width: 768px) {
    .vehicle-grid {
        grid-template-columns: 1fr;
    }
}

/* Etiqueta de Nuevo para Vehículos */
.new-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #bf953f, #fcf6ba, #b38728);
    color: #0f172a;
    padding: 5px 14px;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 8px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
    animation: newTagPulse 2s infinite ease-in-out;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes newTagPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1) drop-shadow(0 0 0px rgba(212, 175, 55, 0));
    }
    50% {
        transform: scale(1.1);
        filter: brightness(1.2) drop-shadow(0 0 10px rgba(212, 175, 55, 0.8));
    }
}

@keyframes vehicleGlint {
    0% { left: -150%; opacity: 0; }
    15% { opacity: 0.8; }
    30% { left: 150%; opacity: 0; }
    100% { left: 150%; opacity: 0; }
}

/* Botón Volver al Inicio Estilizado y Posicionado */
.btn-back {
    position: fixed;
    top: 30px;
    left: 40px;
    z-index: 1000;
    padding: 12px 25px;
    background: rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent-primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%, 0 30%);
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.btn-back:hover {
    background: var(--accent-primary);
    transform: translateX(5px) scale(1.05);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
    clip-path: polygon(0 0, 85% 0, 100% 30%, 100% 100%, 15% 100%, 0 70%);
}

.btn-back i {
    transition: transform 0.3s ease;
}

.btn-back:hover i {
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .btn-back {
        top: 20px;
        left: 20px;
        padding: 10px 18px;
        font-size: 0.7rem;
    }
}

/* Efecto de brillo (glow) animado para el icono de streamers */
#wiki-streamers h2 i {
    color: #a855f7;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.8));
    animation: streamerIconPulse 2s infinite alternate ease-in-out;
}

@keyframes streamerIconPulse {
    from {
        filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.4));
    }
    to {
        filter: drop-shadow(0 0 20px rgba(168, 85, 247, 1));
        transform: scale(1.1);
    }
}

/* Reflejo plateado para logos secundarios (Wiki) */
@keyframes silver-glint {
    0%, 90%, 100% { filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.3)) contrast(1.2) saturate(1.1); }
    95% { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5)) contrast(1.4) brightness(1.3) saturate(1.3); }
}
