/* ==========================================================================
   1. VARIABLES Y RESET
   ========================================================================== */
html {
    scroll-behavior: smooth !important;
}

:root {
    --gold: #d4af37;
    --gold-bright: #ffefad;
	--gold-light: #f1d571;
    --dark-bg: #0a0a0a;
    --dark-accent: #151515;
    --glass: rgba(255, 255, 255, 0.03);
    
    --font-header: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--dark-bg);
    color: white;
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gold-text { color: var(--gold); }

/* ==========================================================================
   2. HEADER (SOUL LAND STYLE)
   ========================================================================== */
#main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    transition: var(--transition);
}

.header-solid {
    background: rgba(5, 5, 5, 0.98);
    padding: 12px 0 !important;
    backdrop-filter: blur(10px);
}

#main-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    box-shadow: 0 0 15px var(--gold);
}

#main-header::before {
    content: '◆';
    position: absolute;
    bottom: -6px; left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-size: 10px;
    text-shadow: 0 0 10px var(--gold);
    z-index: 11;
}

.header-flex { display: flex; justify-content: space-between; align-items: center; }

.logo img { max-height: 55px; display: block; }

.nav-menu ul { display: flex; list-style: none; gap: 35px; }

.nav-menu a {
    color: white;
    text-decoration: none;
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--gold);
    text-shadow: 0 0 8px var(--gold);
}

/* ==========================================================================
   BOTÓN JUGAR AHORA - ESTILO ÉPICO AZTECA (CORREGIDO)
   ========================================================================== */
.btn-cta {
    position: relative;
    /* Degradado dorado metálico base */
    background: linear-gradient(135deg, #d4af37 0%, #f1d571 50%, #7a5c12 100%);
    color: #000 !important; /* Texto negro para contraste */
    padding: 12px 35px;
    border-radius: 3px;
    font-family: var(--font-header);
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    /* Resplandor dorado externo e interno */
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    overflow: hidden; /* CRUCIAL: Mantiene el brillo dentro del botón */
    display: inline-block; /* Asegura el comportamiento correcto del overflow */
    cursor: pointer;
}

/* --- Efecto "Swipe" de Brillo Refinado --- */
.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%; /* Empieza bien afuera a la izquierda */
    width: 100%; /* Ancho completo del botón */
    height: 100%;
    /* Degradado lineal suave: Transparente -> Blanco Suave -> Transparente */
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.1) 20%, /* Un toque sutil al principio */
        rgba(255, 255, 255, 0.6) 50%, /* El punto más brillante, pero no 100% blanco */
        rgba(255, 255, 255, 0.1) 80%, /* Se desvanece sutilmente */
        rgba(255, 255, 255, 0) 100%
    );
    /* Inclinación para que no sea una línea vertical sosa */
    transform: skewX(-25deg); 
    transition: none; /* Sin transición por defecto */
    pointer-events: none; /* No interfiere con los clics */
}

/* --- Animación del Brillo al hacer Hover --- */
.btn-cta:hover::before {
    left: 150%; /* Cruza hasta quedar bien afuera a la derecha */
    transition: all 0.7s ease-in-out; /* Velocidad y suavidad del barrido */
}

/* --- Otros Efectos de Hover --- */
.btn-cta:hover {
    transform: scale(1.05) translateY(-2px); /* Lieve aumento y subida */
    box-shadow: 0 5px 25px rgba(212, 175, 55, 0.6); /* Aumenta el glow externo */
    filter: brightness(1.05); /* Un ligero aumento de brillo general */
}

/* --- Efecto al hacer Clic --- */
.btn-cta:active {
    transform: scale(0.98) translateY(0);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero-container {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at 80% 50%, rgba(212, 175, 55, 0.08), transparent 50%);
}

.hero-content { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.hero-text-block { flex: 1; z-index: 5; }

.hero-subtitle { color: var(--gold); letter-spacing: 5px; font-size: 0.9rem; font-weight: 700; }

.hero-title {
    font-family: var(--font-header);
    font-size: 4.5rem;
    line-height: 1;
    margin: 15px 0 30px;
    text-shadow: 0 0 30px rgba(0,0,0,0.8);
}

.glass-box {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 25px;
    width: 320px;
    border-radius: 5px;
}

.ranking-title {
    font-family: var(--font-header);
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 10px;
}

.ranking-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.hero-character-block { flex: 1; display: flex; justify-content: flex-end; }

.character-image {
    max-height: 85vh;
    width: auto;
    filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.4));
}

/* ==========================================================================
   4. SERVER STATUS
   ========================================================================== */
.server-status-float {
    position: absolute;
    right: 40px; bottom: 40px;
    background: rgba(0, 0, 0, 0.85);
    padding: 12px 25px;
    border-radius: 50px;
    border: 1px solid rgba(0, 255, 0, 0.2);
    display: flex; align-items: center; gap: 15px;
    z-index: 100;
}

.status-info { display: flex; align-items: center; gap: 10px; }

.pulse-icon { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

.pulse-icon.on {
    background-color: #00ff00;
    box-shadow: 0 0 10px #00ff00;
    animation: pulse-green 2s infinite;
}

.status-text.on { color: #00ff00; font-weight: bold; font-size: 0.8rem; text-transform: uppercase; }

/* ==========================================================================
   5. NOTICIAS
   ========================================================================== */
.news-section { padding: 100px 0; border-top: 1px solid rgba(212, 175, 55, 0.1); }

.section-title {
    font-family: var(--font-header);
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 60px;
    text-transform: uppercase;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
}

.news-img-placeholder {
    height: 160px;
    background: linear-gradient(45deg, #111, #1a1a1a);
}

.news-content { padding: 25px; flex-grow: 1; }

.news-content h3 { font-family: var(--font-header); color: var(--gold); margin-bottom: 15px; }

.btn-news {
    color: var(--gold);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-top: 15px;
    display: inline-block;
}

/* ==========================================================================
   6. GALERÍA (OPTIMIZADA)
   ========================================================================== */
.gallery-section {
    padding: 100px 0;
    background-color: #080808;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.glass-frame {
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.glass-frame img {
    width: 100%;
    height: 220px; /* Altura fija para que todas se vean iguales */
    object-fit: cover; /* Evita que la imagen se estire */
    display: block;
    transition: transform 0.8s ease;
    filter: brightness(0.8);
}

.glass-frame:hover img { transform: scale(1.1); filter: brightness(1.1); }

.glass-frame:hover {
    border-color: var(--gold);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
}

/* ==========================================================================
   7. FOOTER & SOCIAL LINKS
   ========================================================================== */
.main-footer {
    background: #050505;
    padding: 80px 0 0;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
    padding-bottom: 50px;
}

.footer-col { flex: 1; min-width: 250px; }

.footer-col h4 {
    color: var(--gold);
    font-family: var(--font-header);
    margin-bottom: 25px;
    text-transform: uppercase;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }

.footer-col a { color: #888; text-decoration: none; transition: 0.3s; }
.footer-col a:hover { color: white; padding-left: 5px; }

/* Estilo para los links de redes sociales */
.social-links { display: flex; flex-direction: column; gap: 10px; }

.social-link {
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 15px;
    border-radius: 3px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    font-weight: bold;
    color: var(--gold) !important;
    text-align: center;
}

.social-link:hover {
    background: var(--gold);
    color: black !important;
}

.footer-bottom {
    background: #000;
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #111;
    color: #444;
    font-size: 0.8rem;
}

/* ==========================================================================
   8. ANIMACIONES
   ========================================================================== */
.floating-anim { animation: float 5s ease-in-out infinite; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 255, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 0, 0); }
}

/* ==========================================================================
   9. RESPONSIVE (CELULARES Y TABLETS)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-content { flex-direction: column; text-align: center; }
    .hero-character-block { justify-content: center; margin-top: 40px; }
    .hero-title { font-size: 3rem; }
    .nav-menu { display: none; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .gallery-grid { grid-template-columns: 1fr; } /* Una sola imagen por fila en cel */
    .hero-title { font-size: 2.2rem; }
}

/* --- SECCIÓN DESCARGAS --- */
.downloads-section {
    padding: 150px 0 100px; /* Más espacio arriba para que no lo tape el header */
    min-height: 80vh;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.download-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 40px;
    text-align: center;
    border-radius: 5px;
    transition: var(--transition);
}

.download-card:hover {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
    transform: translateY(-5px);
}

.main-dl {
    grid-column: span 1; /* Puedes hacerlo destacar si quieres */
    border: 2px solid var(--gold);
}

.dl-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.file-info {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin: 15px 0;
}

.dl-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Botones específicos de descarga */
.btn-dl {
    display: block;
    padding: 12px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-radius: 3px;
    transition: 0.3s;
}

.mega { background: #d92d2d; color: white; }
.mediafire { background: #007bff; color: white; }
.drive { background: #34a853; color: white; }
.simple { border: 1px solid var(--gold); color: var(--gold); }

.btn-dl:hover {
    filter: brightness(1.2);
    transform: scale(1.02);
}

.req-list {
    text-align: left;
    font-size: 0.85rem;
    color: #ccc;
    margin-bottom: 20px;
    padding-left: 20px;
}

/* ==========================================================================
   SECCIÓN RANKINGS DUALES (ESTILO LEYENDA AZTECA)
   ========================================================================== */
.rankings-dual-section {
    padding: 100px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    /* Efecto de viñeta para centrar la atención en las tablas */
    background: radial-gradient(circle, rgba(212, 175, 55, 0.03) 0%, rgba(0, 0, 0, 0.9) 100%);
}

.rankings-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    width: 80%; /* 10% de margen a cada lado */
    max-width: 1400px;
}

.ranking-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ranking-subtitle {
    font-family: var(--font-header);
    color: var(--gold);
    text-align: center;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* --- CONTENEDOR DE CRISTAL --- */
.ranking-container-mini {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8), inset 0 0 20px rgba(212, 175, 55, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.ranking-container-mini:hover {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.1);
}

/* --- ESTILO DE TABLA --- */
.ranking-table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table th {
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0.2), transparent);
    padding: 22px;
    color: #fff;
    font-family: var(--font-header);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.4);
}

.ranking-table td {
    padding: 18px;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    color: #ccc;
    font-size: 0.95rem;
    transition: 0.3s;
}

.ranking-table tr:last-child td {
    border-bottom: none;
}

/* --- EFECTOS EN FILAS --- */
.ranking-table tr:hover td {
    background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.08), transparent);
    color: #fff;
}

/* Resaltado especial para el Top 1 */
.ranking-table tr:first-child td {
    background: rgba(212, 175, 55, 0.03);
}

.col-hero {
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- MEDALLAS / RANGOS --- */
.rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-header);
    font-size: 0.85rem;
    font-weight: bold;
}

.rank-num.gold {
    background: linear-gradient(135deg, #d4af37 0%, #f1d571 50%, #7a5c12 100%);
    color: #000;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.7);
    border: none;
}

.rank-num.silver {
    background: linear-gradient(135deg, #bdc3c7, #ecf0f1);
    color: #000;
    border: none;
}

.rank-num.bronze {
    background: linear-gradient(135deg, #a0522d, #cd7f32);
    color: #fff;
    border: none;
}

/* --- BOTÓN VER MÁS --- */
.btn-view-more {
    margin-top: 15px;
    align-self: flex-end;
    color: var(--gold);
    text-decoration: none;
    font-size: 0.75rem;
    font-family: var(--font-header);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    opacity: 0.6;
}

.btn-view-more:hover {
    opacity: 1;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
    transform: translateX(-5px);
}

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
    .rankings-wrapper {
        flex-direction: column;
        width: 90%;
        gap: 50px;
    }
    
    .btn-view-more {
        align-self: center;
    }
}

/* ==========================================================================
   REGISTRO: ESTILO PERGAMINO DE CRISTAL
   ========================================================================== */
.register-box {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.9) 0%, rgba(30, 30, 30, 0.85) 50%, rgba(15, 15, 15, 0.9) 100%);
    backdrop-filter: blur(25px);
    padding: 50px 40px;
    border-radius: 2px;
    /* Doble borde: uno dorado fino y un resplandor interno */
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 
        inset 0 0 30px rgba(212, 175, 55, 0.05), /* Brillo interno */
        0 20px 60px rgba(0,0,0,0.9);            /* Sombra profunda */
    text-align: center;
    overflow: hidden;
}

/* ==========================================================================
   VENTANA FLOTANTE: ESTILO CRISTAL Y DIAMANTES (CORREGIDO)
   ========================================================================== */
.floating-window {
    position: fixed;
    top: 180px;
    left: 40px;
    width: 290px; /* Un poco más ancha para que respire el contenido */
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 15px 45px rgba(0,0,0,0.9);
    z-index: 9999;
    border-radius: 4px;
    user-select: none;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

/* Cabecera de la Ventana */
.floating-header {
    background: linear-gradient(to bottom, #1a1a1a, #000);
    padding: 12px 18px;
    cursor: move;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.window-icon { color: #d4af37; margin-right: 12px; font-size: 0.9rem; }
.window-title { 
    font-family: 'Cinzel', serif; 
    font-size: 0.75rem; 
    color: #fff; 
    letter-spacing: 1.5px;
    flex-grow: 1;
    text-transform: uppercase;
}

.close-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    transition: 0.3s;
}
.close-btn:hover { color: #ff4444; }

/* --- LISTA DE ESTADÍSTICAS (ZONA DE SEGURIDAD CORREGIDA) --- */
.server-stats-list {
    padding: 20px 25px 15px 38px; /* 38px a la izquierda para que los diamantes entren */
    list-style: none;
    margin: 0;
}

.server-stats-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    position: relative; /* Base para el diamante */
}

.server-stats-list li:last-child {
    border-bottom: none;
}

/* El Diamante Indicador (Sustituye a los puntos que se salían) */
.server-stats-list li::before {
    content: '♦'; 
    position: absolute;
    left: -22px; /* Posición exacta dentro del padding de 38px */
    color: rgba(212, 175, 55, 0.8);
    font-size: 0.65rem;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.4);
}

.stat-label {
    font-family: 'Cinzel', serif;
    color: #aaa;
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.stat-value {
    font-weight: bold;
    color: #fff;
    font-size: 0.88rem;
    text-align: right;
    font-family: 'Montserrat', sans-serif;
}

/* Estilo especial para el Reloj */
#server-clock {
    color: var(--gold-light);
    font-family: 'monospace';
    letter-spacing: 1px;
    min-width: 85px;
    display: inline-block;
}

/* Colores Dinámicos */
.gold-text { color: #d4af37; }
.glow-green { 
    color: #2ecc71; 
    text-shadow: 0 0 8px rgba(46, 204, 113, 0.3); 
}

/* Barra de Carga inferior */
.server-load-container { padding: 0 25px 20px 25px; }
.server-load-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}
.load-fill {
    height: 100%;
    background: linear-gradient(to right, #8a6d1d, #d4af37);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.server-version-tag {
    text-align: center;
    font-size: 0.55rem;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: bold;
}

/* Contenedor del botón superior */
.floating-action-btn {
    padding: 20px 25px 5px 25px;
    text-align: center;
}

/* Versión pequeña del botón dorado */
.btn-small-gold {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 0.7rem;
    text-align: center;
    border-radius: 2px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: 0.3s;
}

.btn-small-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.2);
}

/* ==========================================================================
   10. EXTENSIONES AZTEZAN (FORMULARIOS Y DETALLES FINALES)
   ========================================================================== */

/* Estilos para Inputs y Formas en Registro/Login */
.form-control, 
input[type="text"], 
input[type="password"], 
input[type="email"], 
select {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    color: #fff !important;
    font-family: var(--font-body);
    padding: 12px 15px !important;
    border-radius: 2px !important;
    transition: var(--transition);
}

.form-control:focus {
    background: rgba(212, 175, 55, 0.05) !important;
    border-color: var(--gold) !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2) !important;
    outline: none;
}

/* Labels con estilo Cinzel (Dorado Suave) */
label.control-label, .form-group label {
    font-family: var(--font-header);
    color: var(--gold-light);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

/* Aura mística para personajes (Elfa/BK/etc) */
.character-aura {
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.3)) brightness(1.1);
    animation: aura-glow 4s ease-in-out infinite alternate;
}

@keyframes aura-glow {
    from { filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.2)) brightness(1); }
    to { filter: drop-shadow(0 0 50px rgba(212, 175, 55, 0.5)) brightness(1.2); }
}

/* Ajuste para mensajes de error de WebEngine */
.alert-danger, .alert-error {
    background: rgba(255, 0, 0, 0.1) !important;
    border: 1px solid rgba(255, 0, 0, 0.3) !important;
    color: #ff9999 !important;
    font-size: 0.85rem;
    border-radius: 2px;
}

.alert-success {
    background: rgba(0, 255, 0, 0.1) !important;
    border: 1px solid rgba(0, 255, 0, 0.3) !important;
    color: #99ff99 !important;
    font-size: 0.85rem;
}

/* Ranking de Reset/Duelo (Versión Mini para Barras Laterales) */
.mini-ranking-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.mini-ranking-row:hover {
    background: rgba(212, 175, 55, 0.05);
}

/* Estilo para los Checkboxes de Términos y Condiciones */
input[type="checkbox"] {
    accent-color: var(--gold);
    cursor: pointer;
}

/* ==========================================================================
   11. ANTI-NAVIDAD (CORTESÍA DE WEBENGINE)
   ========================================================================== */
.register-box form, 
.register-box table, 
.register-box .form-group,
.register-box div[class*="form"] {
    background-image: none !important;
    background-color: transparent !important;
}

/* ==========================================================================
   12. ORDEN Y ALINEACIÓN PARA EL FORMULARIO DE REGISTRO
   ========================================================================== */
/* Forzar a que cada campo use el 100% del ancho del recuadro */
.register-box form, 
.register-box table {
    width: 100% !important;
}

/* Darle aire a cada fila para que las letras no se pisen */
.register-box tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px !important;
    text-align: left !important;
}

/* Estilo para los títulos de los campos (USERNAME, PASSWORD, etc.) */
.register-box td:first-child {
    font-family: var(--font-header) !important;
    color: var(--gold-light) !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 5px !important;
    font-weight: bold !important;
}

/* Estilo para los textos de ayuda (4 to 10 characters, etc.) */
.register-box td span, 
.register-box .text-muted,
.register-box small {
    display: block !important;
    color: #888 !important;
    font-size: 0.75rem !important;
    margin-top: 5px !important;
    font-family: var(--font-body) !important;
}

/* Estilo para que los Inputs ocupen todo el ancho disponible */
.register-box input[type="text"], 
.register-box input[type="password"], 
.register-box input[type="email"] {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Centrar el botón de registro al final */
.register-box input[type="submit"],
.register-box button {
    margin-top: 10px !important;
}

/* ==========================================================================
   13. BOTÓN DE REGISTRO ESTILO AZTEZAN
   ========================================================================== */
.register-box input[type="submit"],
.register-box button {
    /* Reseteo de estilos básicos */
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    outline: none !important;
    cursor: pointer !important;
    
    /* Aplicamos exactamente el diseño de tu botón CTA */
    background: linear-gradient(135deg, #d4af37 0%, #f1d571 50%, #7a5c12 100%) !important;
    color: #000 !important; /* Letras negras para que resalten */
    padding: 14px 35px !important;
    border-radius: 3px !important;
    font-family: var(--font-header) !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    letter-spacing: 1.5px !important;
    width: 100% !important; /* Para que ocupe todo el ancho del cuadro */
    
    /* Glow dorado */
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s ease !important;
}

/* Efecto hover (Al pasar el mouse) */
.register-box input[type="submit"]:hover,
.register-box button:hover {
    transform: scale(1.02) translateY(-2px) !important;
    box-shadow: 0 5px 25px rgba(212, 175, 55, 0.6) !important;
    filter: brightness(1.1) !important;
}

/* Efecto active (Al hacer clic) */
.register-box input[type="submit"]:active,
.register-box button:active {
    transform: scale(0.98) translateY(0) !important;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.4) !important;
}

/* ==========================================================================
   14. ESTILOS PARA LA TABLA DE RANKINGS (AUTO-DETECTADA)
   ========================================================================== */

/* Forzar que la tabla ocupe el ancho y se vea mística */
.rankings-container table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-family: var(--font-body);
    margin-top: 30px;
    background: rgba(15, 15, 15, 0.6);
}

/* Estilo para los encabezados (Country, Class, Character, etc.) */
.rankings-container th {
    background: rgba(212, 175, 55, 0.15) !important;
    color: var(--gold-light) !important;
    font-family: var(--font-header) !important;
    padding: 12px 15px !important;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--gold-color) !important;
}

/* Estilo para las celdas de datos */
.rankings-container td {
    padding: 12px 15px !important;
    color: #e0e0e0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
    text-align: center !important;
    vertical-align: middle !important;
    font-size: 0.9rem;
}

/* Efecto hover en las filas */
.rankings-container tr:hover td {
    background: rgba(212, 175, 55, 0.05) !important;
}

/* Hacer que las imágenes de banderas y razas se vean bien y uniformes */
.rankings-container td img {
    height: 20px !important;
    width: auto !important;
    vertical-align: middle;
    display: inline-block;
    border-radius: 2px;
}

/* Si la imagen de la raza sale rota y no la quieres mostrar:
   Descomenta las siguientes líneas para ocultar las imágenes rotas 
   y quedarte solo con el texto de la clase */
/*
.rankings-container td img[src*="class"] {
    display: none !important;
}
*/