/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

:root {
    /* Dark Theme - Colores principales oscuros */
    --primary-color: #0a0a0f;
    --secondary-color: #121212;
    --accent-color: #1a1a1a;
    --card-bg-color: #181812;
    --menu-bg-color: rgb(24, 24, 27);
    --menu-bg-rgb: 24, 24, 27;
    
    /* Colores de texto */
    --text-primary: #e0e0e0;
    --text-secondary: #9e9e9e;
    --text-dark: #000000;
    
    /* Colores de borde */
    --border-color: #1f1f1f;
    --border-light: rgba(255, 255, 255, 0.1);
    --border-medium: rgba(255, 255, 255, 0.3);
    
    /* Colores cyan (reemplazando gold) */
    --gold-color: #00d4ff;
    --gold-dark: #0099cc;
    --gold-light: #5ce1ff;
    --gold-rgb: 0, 212, 255;
    
    /* Colores azules (Blue) */
    --blue-color: #00d4ff;
    --blue-dark: #0099cc;
    --blue-light: #33dfff;
    --blue-rgb: 0, 212, 255;
    
    /* Colores de fondo con transparencia */
    --overlay-dark: rgba(10, 10, 15, 0.8);
    --overlay-dark-60: rgba(10, 10, 15, 0.6);
    --overlay-dark-70: rgba(10, 10, 15, 0.7);
    --overlay-dark-85: rgba(10, 10, 15, 0.85);
    --overlay-dark-90: rgba(10, 10, 15, 0.9);
    --overlay-medium: rgba(18, 18, 18, 0.8);
    --overlay-medium-60: rgba(18, 18, 18, 0.6);
    --overlay-medium-70: rgba(18, 18, 18, 0.7);
    --overlay-medium-85: rgba(18, 18, 18, 0.85);
    --overlay-medium-90: rgba(18, 18, 18, 0.9);
    --overlay-medium-95: rgba(18, 18, 18, 0.95);
    --overlay-light: rgba(26, 26, 26, 0.8);
    --overlay-light-70: rgba(26, 26, 26, 0.2);
    --overlay-light-85: rgba(26, 26, 26, 0.85);
    --overlay-light-90: rgba(26, 26, 26, 0.9);
    --overlay-card: rgba(18, 18, 18, 0.85);
    --overlay-card-strong: rgba(18, 18, 18, 0.95);
    --overlay-white-light: rgba(255, 255, 255, 0.05);
    --overlay-white-medium: rgba(255, 255, 255, 0.1);
    --overlay-white-strong: rgba(255, 255, 255, 0.3);
    --overlay-gold-light: rgba(0, 212, 255, 0.1);
    --overlay-gold-medium: rgba(0, 212, 255, 0.3);
    --overlay-gold-strong: rgba(0, 212, 255, 0.6);
    --overlay-gold-bright: rgba(0, 212, 255, 0.8);
    --overlay-blue-light: rgba(0, 212, 255, 0.15);
    --overlay-blue-medium: rgba(0, 212, 255, 0.3);
    --overlay-blue-strong: rgba(0, 212, 255, 0.5);
    --overlay-black: rgba(0, 0, 0, 0.2);
    --overlay-black-medium: rgba(0, 0, 0, 0.5);
    --overlay-black-strong: rgba(0, 0, 0, 0.9);
    
    /* Degradados principales */
    --gradient-body-overlay: linear-gradient(135deg, var(--overlay-dark) 0%, var(--overlay-medium) 50%, var(--overlay-light) 100%);
    --gradient-body-overlay-70: linear-gradient(135deg, var(--overlay-dark-70) 0%, var(--overlay-medium-70) 50%, var(--overlay-light-70) 100%);
    --gradient-body-overlay-85: linear-gradient(135deg, var(--overlay-dark-85) 0%, var(--overlay-medium-85) 50%, var(--overlay-light-85) 100%);
    --gradient-body-overlay-90: linear-gradient(135deg, var(--overlay-dark-90) 0%, var(--overlay-medium-90) 50%, var(--overlay-light-90) 100%);
    --gradient-gold-horizontal: linear-gradient(90deg, var(--overlay-gold-bright) 0%, var(--overlay-gold-medium) 100%);
    --gradient-gold-vertical: linear-gradient(135deg, var(--gold-color) 0%, var(--gold-light) 100%);
    --gradient-gold-reverse: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-color) 100%);
    --gradient-gold-button: linear-gradient(135deg, var(--gold-color) 0%, var(--gold-dark) 100%);
    --gradient-gold-button-hover: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-color) 100%);
    --gradient-gold-blue: linear-gradient(135deg, var(--overlay-blue-light), var(--overlay-blue-light));
    --gradient-white-shimmer: linear-gradient(90deg, transparent, var(--overlay-white-strong), transparent);
    
    /* Sombras */
    --shadow-gold-sm: 0 0 10px rgba(var(--gold-rgb), 0.3);
    --shadow-gold-md: 0 0 20px rgba(var(--gold-rgb), 0.5);
    --shadow-gold-lg: 0 0 30px rgba(var(--gold-rgb), 0.8);
    --shadow-blue-sm: 0 5px 20px rgba(var(--blue-rgb), 0.3);
    --shadow-blue-md: 0 10px 30px rgba(var(--blue-rgb), 0.2);
    --shadow-white-sm: 0 4px 15px rgba(255, 255, 255, 0.1);
    --shadow-black-sm: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-black-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-gold-button: 0 4px 15px rgba(var(--gold-rgb), 0.3);
    --shadow-gold-button-hover: 0 6px 20px rgba(var(--gold-rgb), 0.5);
    --shadow-gold-button-active: 0 0 25px rgba(var(--gold-rgb), 0.6), 0 5px 20px rgba(var(--gold-rgb), 0.4);
    
    /* Text shadows */
    --text-shadow-gold-sm: 0 0 20px rgba(var(--gold-rgb), 0.5);
    --text-shadow-gold-md: 0 0 20px rgba(var(--gold-rgb), 0.8), 0 0 40px rgba(var(--gold-rgb), 0.4);
    --text-shadow-blue-sm: 0 0 20px rgba(var(--blue-rgb), 0.5);
    --text-shadow-blue-md: 0 0 20px rgba(var(--blue-rgb), 0.8), 0 0 40px rgba(var(--blue-rgb), 0.4);
    
    /* Colores de estados */
    --stat-strength: #00ff00;
    --stat-strength-rgb: 76, 175, 80;
    --stat-strength-dark: #4caf50;
    --stat-strength-medium: #66bb6a;
    --stat-strength-light: #81c784;
    --stat-agility: #4169e1;
    --stat-agility-rgb: 0, 212, 255;
    --stat-agility-dark: #00d4ff;
    --stat-agility-medium: #00e5ff;
    --stat-agility-light: #40e0ff;
    --stat-vitality: #ff0000;
    --stat-vitality-rgb: 255, 77, 77;
    --stat-vitality-dark: #ff4d4d;
    --stat-vitality-medium: #ff6b6b;
    --stat-vitality-light: #ff8787;
    --stat-energy: #9370db;
    --stat-energy-rgb: 156, 39, 176;
    --stat-energy-dark: #9c27b0;
    --stat-energy-medium: #ab47bc;
    --stat-energy-light: #ba68c8;
    
    /* Colores de ranking */
    --rank-1-color: #00d4ff;
    --rank-2-color: #c0c0c0;
    --rank-2-light: #e8e8e8;
    --rank-3-color: #cd7f32;
    --rank-3-light: #e6a85c;
    
    /* Gradientes antiguos (mantener compatibilidad) */
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.admincp-button {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #ffffff !important;
	border: 2px solid #000000 !important;
	color: #000000 !important;
	font-weight: bold !important;
    z-index: 1000;
}

body {
    font-family: 'Cinzel', serif !important;
    background: var(--primary-color);
    background-image: url('../img/1920_3.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-body-overlay);
    z-index: 0;
    pointer-events: none;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    width: 100%;
    max-width: 500px;
    padding: 2rem;
}

.preloader-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    display: block;
    animation: preloaderPulse 2s ease-in-out infinite;
}

@keyframes preloaderPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.preloader-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #a8b2c1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: none;
}

.preloader-percentage {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--blue-color);
    margin-bottom: 1.5rem;
    text-shadow: var(--text-shadow-blue-sm);
}

.preloader-bar {
    width: 100%;
    height: 4px;
    background: rgba(168, 178, 193, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
    border: none;
}

.preloader-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--blue-color) 0%, #00a8e8 100%);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 212, 255, 0.6);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    backdrop-filter: none;
    z-index: 1002;
    border-bottom: none;
    pointer-events: none;
    transition: transform 0.3s ease-in-out;
}

.header.hidden {
    transform: translateY(-100%);
}

.navbar {
    padding: 1.5rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    pointer-events: auto;
    margin-top: 50px;
}

/* Logo movido dentro del custom-menu-wrapper - estilos aplicados allí */

/* Estilos del menú personalizado flotante - Aislados con clase contenedora */
.custom-menu-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo flotando sobre el menú */
.custom-menu-wrapper .logo-overlay {
    position: absolute;
    top: 50%;
    left: -100px;
    transform: translateY(-50%);
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: none;
    pointer-events: auto;
}

.custom-menu-wrapper .logo-overlay .logo-image {
    height: 200px;
    width: auto;
    object-fit: contain;
    transform: translateZ(0) translateY(-15px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1003;
    cursor: pointer;
    padding-top: 40px;
    padding-right: 50px;
}

.custom-menu-wrapper .logo-overlay:hover .logo-image {
    transform: translateY(-20px) scale(1.1) translateZ(0);
    filter: drop-shadow(0 16px 32px var(--overlay-black-strong))
            drop-shadow(0 -8px 20px var(--overlay-black-medium));
}


/* Menú flotante con efecto glassmorphism */
.custom-menu-wrapper .custom-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    background: var(--overlay-dark-90);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--overlay-blue-medium);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 var(--overlay-white-medium);
    position: relative;
    overflow: hidden;
    margin: 0;
    z-index: 1001;
}

.custom-menu-wrapper .custom-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-gold-blue);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-menu-wrapper .custom-menu:hover::before {
    opacity: 1;
}

.custom-menu-wrapper .custom-nav-item {
    position: relative;
}

/* Enlaces del menú flotante */
.custom-menu-wrapper .custom-nav-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 1.2rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background-color: var(--menu-bg-color);
    border: 2px solid var(--border-light);
    font-weight: 500;
    white-space: nowrap;
    z-index: 1;
}

.custom-menu-wrapper .custom-nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--overlay-white-medium);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.custom-menu-wrapper .custom-nav-link::after {
    display: none;
}

.custom-menu-wrapper .custom-nav-link:hover::before {
    width: 300px;
    height: 300px;
}

.custom-menu-wrapper .custom-nav-link:hover,
.custom-menu-wrapper .custom-nav-link.active {
    color: var(--text-primary);
    background-color: var(--menu-bg-color);
    border-color: var(--border-medium);
    transform: translateY(-2px);
    box-shadow: var(--shadow-white-sm);
}

.custom-menu-wrapper .custom-nav-link.active::before {
    opacity: 1;
}

.custom-menu-wrapper .custom-nav-link i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.custom-menu-wrapper .custom-nav-link:hover i,
.custom-menu-wrapper .custom-nav-link.active i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px var(--overlay-black));
}

.custom-menu-wrapper .custom-nav-link span {
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Efecto de partículas flotantes */
.custom-menu-wrapper .custom-nav-item::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--gold-color);
    border-radius: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px var(--gold-color);
}

.custom-menu-wrapper .custom-nav-link:hover + .custom-nav-item::before,
.custom-menu-wrapper .custom-nav-item:hover::before {
    opacity: 1;
    animation: floatParticle 2s ease-in-out infinite;
}

@keyframes floatParticle {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-10px); }
}


/* Botones de autenticación flotantes */
.custom-menu-wrapper .custom-menu-auth {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.custom-menu-wrapper .custom-btn-auth {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.custom-menu-wrapper .custom-btn-login {
    color: var(--text-primary);
    background: var(--overlay-white-light);
    border: 2px solid var(--border-light);
}

.custom-menu-wrapper .custom-btn-login::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--overlay-white-medium);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.custom-menu-wrapper .custom-btn-login:hover {
    color: var(--text-primary);
    background: var(--overlay-white-medium);
    border-color: var(--border-medium);
    transform: translateY(-2px);
    box-shadow: var(--shadow-white-sm);
}

.custom-menu-wrapper .custom-btn-login:hover::before {
    width: 300px;
    height: 300px;
}

.custom-menu-wrapper .custom-btn-register {
    color: var(--text-dark);
    background: var(--gradient-gold-button);
    border: 2px solid transparent;
    box-shadow: var(--shadow-gold-button);
}

.custom-menu-wrapper .custom-btn-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-white-shimmer);
    transition: left 0.5s ease;
}

.custom-menu-wrapper .custom-btn-register:hover {
    background: var(--gradient-gold-button-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-button-hover);
}

.custom-menu-wrapper .custom-btn-register:hover::before {
    left: 100%;
}

.custom-menu-wrapper .custom-btn-auth i {
    font-size: 1rem;
}

/* Panel button - Highlighted style */
.custom-menu-wrapper .custom-btn-panel {
    color: var(--text-dark);
    background: var(--gradient-gold-button);
    border: 2px solid transparent;
    box-shadow: var(--shadow-gold-button);
}

.custom-menu-wrapper .custom-btn-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-white-shimmer);
    transition: left 0.5s ease;
}

.custom-menu-wrapper .custom-btn-panel:hover {
    background: var(--gradient-gold-button-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-button-hover);
}

.custom-menu-wrapper .custom-btn-panel:hover::before {
    left: 100%;
}

/* Logout button - Light red tone */
.custom-menu-wrapper .custom-btn-logout {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.8) 0%, rgba(200, 35, 51, 0.9) 100%);
    border: 2px solid rgba(220, 53, 69, 0.5);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.custom-menu-wrapper .custom-btn-logout::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.custom-menu-wrapper .custom-btn-logout:hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.9) 0%, rgba(200, 35, 51, 1) 100%);
    border-color: rgba(220, 53, 69, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.custom-menu-wrapper .custom-btn-logout:hover::before {
    width: 300px;
    height: 300px;
}

/* Hamburger menu */
.custom-menu-wrapper .custom-hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1002;
}

.custom-menu-wrapper .custom-bar {
    width: 25px;
    height: 3px;
    background: var(--gold-color);
    transition: 0.3s;
    border-radius: 2px;
}

/* Separador con degradado entre secciones */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 212, 255, 0.5) 50%, transparent 100%);
    margin: 0;
    width: 100%;
}

/* Hero Section - Nuevo diseño moderno */
.hero {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 1s ease;
    margin-top: 80px;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo {
    margin-bottom: 0.8rem;
}

.hero-logo-img {
    max-width: 280px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 212, 255, 0.3));
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-main-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #a8b2c1 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-event-text {
    font-size: 1rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Hero Stats Grid */
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stat-card {
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 0.7rem 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--blue-color);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.hero-stat-icon {
    font-size: 1.5rem;
    color: #00d4ff;
    margin-bottom: 0.4rem;
}

.hero-stat-label {
    font-size: 0.65rem;
    color: #9e9e9e;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.hero-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--blue-color);
    margin-bottom: 0;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-hero-primary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
}

.btn-hero-secondary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: transparent;
    color: #a8b2c1;
    border: 2px solid rgba(0, 212, 255, 0.6) !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00d4ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    letter-spacing: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll-indicator i {
    font-size: 1.5rem;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* Hero Compact para páginas internas */
.hero-compact {
    min-height: 25vh;
    height: auto;
    padding: 2rem 0;
    margin-top: 80px;
}

.hero-compact .hero-content {
    margin-top: 3rem;
    padding-bottom: 1rem;
}

.hero-compact .hero-logo {
    margin-bottom: 0;
}

.hero-compact .hero-logo-img {
    max-width: 200px;
}

/* Estilos antiguos para compatibilidad */
.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn:hover i {
    transform: scale(1.1);
}

.btn-primary {
    background: var(--gradient-gold-vertical);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--overlay-gold-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--blue-color);
}

.btn-secondary:hover {
    background: var(--blue-color);
    transform: translateY(-2px);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--blue-color);
}

/* Rankings Title Rework */
.rankings-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
    isolation: isolate;
}

.rankings-title {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.625rem;
    font-weight: 800;
    text-align: center;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 11;
    animation: titleGlow 3s ease-in-out infinite;
    width: 100%;
}

@keyframes titleGlow {
    0%, 100% {
        filter: brightness(1);
        transform: scale(1);
    }
    50% {
        filter: brightness(1.2);
        transform: scale(1.02);
    }
}

.title-icon {
    font-size: 3rem;
    animation: iconFloat 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px var(--overlay-gold-strong));
    z-index: 12;
    position: relative;
}

.title-icon:first-child {
    animation-delay: 0s;
}

.title-icon:last-child {
    animation-delay: 1s;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(10deg);
    }
}

.title-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    position: relative;
    z-index: 12;
}

.title-main {
    font-size: 2.625rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #a8b2c1;
    position: relative;
    text-shadow: none;
    z-index: 12;
}

.title-main::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--blue-color);
    animation: none;
}

@keyframes lineExpand {
    0%, 100% {
        transform: scaleX(1);
        opacity: 1;
    }
    50% {
        transform: scaleX(1);
        opacity: 1;
    }
}

.title-sub {
    font-size: 1.875rem;
    font-weight: 500;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--blue-color);
    margin-top: 10px;
    text-shadow: none;
    animation: none;
    z-index: 12;
    position: relative;
}

@keyframes subTitlePulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.title-decoration {
    flex: 1;
    height: 2px;
    position: relative;
    max-width: 150px;
}

.title-decoration::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-color), transparent);
    animation: decorationFlow 3s ease-in-out infinite;
}

.title-decoration.left::before {
    background: var(--gradient-white-shimmer);
}

.title-decoration.right::before {
    background: var(--gradient-white-shimmer);
}

@keyframes decorationFlow {
    0%, 100% {
        opacity: 0.5;
        transform: scaleX(0.8);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

.title-decoration::after {
    content: '⚔';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--gold-color);
    animation: decorationSpin 4s linear infinite;
    filter: drop-shadow(0 0 5px var(--overlay-gold-bright));
}

.title-decoration.left::after {
    right: 0;
}

.title-decoration.right::after {
    left: 0;
}

@keyframes decorationSpin {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }
    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Estadísticas */
.stats {
    padding: 5rem 0;
    background: var(--secondary-color);
    background-image: url('../img/bg1.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    z-index: 10;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-body-overlay-85);
    z-index: -1;
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--blue-color);
    box-shadow: var(--shadow-blue-md);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--blue-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Noticias */
.news {
    padding: 5rem 0;
    position: relative;
    z-index: 10;
    background-image: url('../img/banner_mobile.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-body-overlay-85);
    z-index: -1;
    pointer-events: none;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--card-bg);
    background-image: url('../img/asdad.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-body-overlay-85);
    z-index: 0;
    pointer-events: none;
}

.news-card > * {
    position: relative;
    z-index: 1;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--blue-color);
    box-shadow: var(--shadow-blue-md);
}

.news-date {
    color: var(--gold-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.news-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.news-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    background: rgba(var(--menu-bg-rgb), 0.8);
    border: 2px solid var(--border-light);
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.news-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--overlay-white-medium);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.news-link span,
.news-link i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.news-link i {
    font-size: 0.9rem;
}

.news-link:hover {
    color: var(--text-primary);
    background: var(--overlay-white-medium);
    border-color: var(--border-medium);
    transform: translateY(-2px);
    box-shadow: var(--shadow-white-sm);
}

.news-link:hover::before {
    width: 300px;
    height: 300px;
}

.news-link:hover i {
    transform: translateX(5px);
}

/* Rankings */
.rankings {
    padding: 5rem 0;
    background: var(--secondary-color);
    background-image: url('../img/bg2.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    z-index: 10;
}

.rankings::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-body-overlay-85);
    z-index: -1;
    pointer-events: none;
}

.rankings-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

/* Estilos específicos solo para botones del menú de rankings */
.rankings-tabs .tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.75rem;
    padding-left: 4rem;
    background: var(--overlay-dark-60);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 21px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Cinzel', serif;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
}

.rankings-tabs .tab-btn i {
    font-size: 0.8rem;
    transition: all 0.4s ease;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.rankings-tabs .tab-btn .ranking-tab-icon {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    transition: all 0.4s ease;
    z-index: 0;
    border-radius: 10px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.rankings-tabs .tab-btn span {
    position: relative;
    z-index: 1;
    margin-left: 0.5rem;
}

.rankings-tabs .tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--overlay-white-medium), transparent);
    transition: left 0.5s ease;
}

.rankings-tabs .tab-btn:hover::before {
    left: 100%;
}

.rankings-tabs .tab-icon {
    font-size: 0.9rem;
    transition: all 0.4s ease;
    display: inline-block;
}

.rankings-tabs .tab-text {
    position: relative;
    z-index: 1;
}

.rankings-tabs .tab-btn:hover {
    transform: translateY(-3px);
    border-color: #00d4ff;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
}

.rankings-tabs .tab-btn:hover i {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.8));
}

.rankings-tabs .tab-btn:hover .ranking-tab-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.8));
}

.rankings-tabs .tab-btn.active {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #ffffff;
    border-color: #00d4ff;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

.rankings-tabs .tab-btn.active i {
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px var(--overlay-dark-60));
    animation: iconPulse 2s ease-in-out infinite;
}

.rankings-tabs .tab-btn.active .ranking-tab-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px var(--overlay-dark-60));
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1.15);
    }
    50% {
        transform: scale(1.25);
    }
}

.rankings-content {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    overflow-x: auto;
    overflow-y: visible;
    position: relative;
    z-index: 1;
}

.ranking-table {
    overflow-x: auto;
    overflow-y: visible;
    display: none;
    padding: 10px 0;
}

.ranking-table.active {
    display: block;
}

/* Table-based ranking styles (for level.php) - DEPRECATED - Now using rankings.css */
/* table.rankings-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    background: transparent;
    margin: 0;
}

table.rankings-table thead {
    background: var(--overlay-gold-light);
    border-radius: 10px;
}

table.rankings-table thead tr {
    border-radius: 10px;
}

table.rankings-table thead th {
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    color: var(--gold-color);
    font-size: 0.85rem;
    text-align: left;
    border: none;
} */

table.rankings-table thead th:first-child {
    border-top-left-radius: 10px;
    width: 50px;
    text-align: center;
}

table.rankings-table thead th:last-child {
    border-top-right-radius: 10px;
}

table.rankings-table thead th:nth-child(2) {
    text-align: center;
}

table.rankings-table thead th:nth-child(3),
table.rankings-table thead th:nth-child(4),
table.rankings-table thead th:nth-child(5) {
    text-align: center;
}

table.rankings-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

table.rankings-table tbody tr:hover {
    background: rgba(var(--gold-rgb), 0.05);
}

table.rankings-table tbody td {
    padding: 0.5rem 0.5rem;
    vertical-align: middle;
    border: none;
}

table.rankings-table tbody td:first-child {
    width: 50px;
    text-align: center;
    padding-left: 0.75rem;
}

table.rankings-table tbody td:nth-child(2) {
    text-align: center;
    font-weight: 500;
}

table.rankings-table tbody td:nth-child(3),
table.rankings-table tbody td:nth-child(4),
table.rankings-table tbody td:nth-child(5) {
    text-align: center;
    color: var(--blue-color);
    font-weight: 600;
    font-size: 0.85rem;
}

table.rankings-table tbody td:last-child {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    white-space: nowrap;
    vertical-align: middle;
}

/* Character avatar in table */
table.rankings-table .character-avatar {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    overflow: visible;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    display: inline-block;
    margin: 0 auto;
}

table.rankings-table .character-avatar:hover {
    transform: scale(1.1);
    border-color: var(--gold-color);
    box-shadow: var(--shadow-gold-button);
}

table.rankings-table .character-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    margin: 0 !important;
}

/* Rank badge in table */
table.rankings-table .rank-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid var(--gold-color);
    color: var(--gold-color);
    font-weight: 700;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Online dot in table */
table.rankings-table .online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--online-color);
    box-shadow: 0 0 8px var(--online-color);
    margin-left: 0.5rem;
    vertical-align: middle;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Guild logo in table */
table.rankings-table .guild-logo {
    vertical-align: middle;
    display: inline-block;
}

/* Player profile link in table */
table.rankings-table .player-profile-link {
    color: var(--blue-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

table.rankings-table .player-profile-link:hover {
    color: #00d4ff;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
    transform: translateY(-1px);
}

.ranking-header {
    display: grid;
    grid-template-columns: 60px 1fr 1fr 1fr 1fr 1fr;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #00d4ff;
    font-size: 0.9rem;
}

.ranking-row {
    display: grid;
    grid-template-columns: 60px 1fr 1fr 1fr 1fr 1fr;
    gap: 0.75rem;
    padding: 0.75rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-right: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    align-items: center;
    position: relative;
    margin-top: 4px;
    margin-bottom: 4px;
}

/* Logo de Guild */
.guild-logo {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: visible;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.guild-logo:hover {
    transform: scale(1.1);
    border-color: #00d4ff;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.guild-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    overflow: hidden;
}

/* Avatar del Master */
.master-avatar-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.master-avatar {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.master-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.master-avatar-wrapper span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Ranking de Guilds con logo */
#rankingGuilds .ranking-header,
#rankingGuilds .ranking-row {
    grid-template-columns: 60px 1fr 1fr 1fr;
}

/* Ranking de Killers - 5 columnas (sin ubicación) */
#rankingKillers .ranking-header,
#rankingKillers .ranking-row {
    grid-template-columns: 60px 1fr 1fr 1fr 1fr auto;
}

/* Ranking de Killers - 6 columnas (con ubicación) */
#rankingKillers .ranking-header .location-col,
#rankingKillers .ranking-row .location-col {
    display: block;
}

#rankingKillers:has(.location-col) .ranking-header,
#rankingKillers:has(.location-col) .ranking-row {
    grid-template-columns: 60px 1fr 1fr 1fr 1fr 1fr auto;
}

/* Ranking de Gens - 5 columnas (sin ubicación) */
#rankingGens .ranking-header,
#rankingGens .ranking-row {
    grid-template-columns: 60px 1fr 1fr 1fr 1fr auto;
}

/* Ranking de Gens - 6 columnas (con ubicación) */
#rankingGens:has(.location-col) .ranking-header,
#rankingGens:has(.location-col) .ranking-row {
    grid-template-columns: 60px 1fr 1fr 1fr 1fr 1fr auto;
}

/* Event Rankings (Blood Castle, Chaos Castle, Devil Square) - 3 columnas */
#rankingBloodCastle .ranking-header,
#rankingBloodCastle .ranking-row,
#rankingChaosCastle .ranking-header,
#rankingChaosCastle .ranking-row,
#rankingDevilSquare .ranking-header,
#rankingDevilSquare .ranking-row {
    grid-template-columns: 60px 2fr 1fr;
    max-width: 800px;
    margin: 0 auto;
}

/* Hunt Player Ranking - 4 columnas */
#rankingHunt .ranking-header,
#rankingHunt .ranking-row {
    grid-template-columns: 60px 2fr 1fr 2fr;
}

/* Hunt Guild Ranking - 4 columnas */
#rankingHuntGuild .ranking-header,
#rankingHuntGuild .ranking-row {
    grid-template-columns: 60px 2fr 1fr 2fr;
}

/* Grid layout para rankings de hunt: rankings (7 cols) y monstruos (5 cols) */
.hunt-rankings-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 2rem;
    margin-top: 1rem;
}

.hunt-rankings-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hunt-monsters-col {
    display: flex;
    flex-direction: column;
}

.hunt-monsters-modern {
    position: sticky;
    top: 1rem;
    height: fit-content;
}

/* Monsters Modern Design */
.hunt-monsters-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: var(--overlay-blue-light);
    border-radius: 12px;
    border: 1px solid rgba(var(--blue-rgb), 0.2);
}

.hunt-monsters-title-icon {
    font-size: 1.75rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    flex-shrink: 0;
}

.hunt-monsters-title-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hunt-monsters-title-main {
    margin: 0;
    padding: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hunt-monsters-title-sub {
    margin: 0;
    padding: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.4;
}

.monsters-container {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

.monsters-container::-webkit-scrollbar {
    width: 8px;
}

.monsters-container::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}

.monsters-container::-webkit-scrollbar-thumb {
    background: var(--blue-color);
    border-radius: 4px;
}

.monsters-container::-webkit-scrollbar-thumb:hover {
    background: var(--blue-dark);
}

.monsters-header {
    display: grid;
    grid-template-columns: 60px 1.5fr 2fr 1fr;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--overlay-blue-light);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--blue-color);
    font-size: 0.85rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.monster-row {
    display: grid;
    grid-template-columns: 60px 1.5fr 2fr 1fr;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    align-items: center;
    margin-top: 4px;
    margin-bottom: 4px;
}

.monster-row:hover {
    background: rgba(var(--blue-rgb), 0.05);
    border-radius: 8px;
    transform: translateX(4px);
}

.monster-image-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.monster-image-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    background: var(--overlay-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.monster-row:hover .monster-image-wrapper {
    border-color: var(--blue-color);
    box-shadow: 0 0 15px rgba(var(--blue-rgb), 0.3);
    transform: scale(1.1);
}

.monster-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.monster-name-col {
    display: flex;
    align-items: center;
}

.monster-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.monster-row:hover .monster-name {
    color: var(--blue-color);
}

.monster-location-col {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.monster-maps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.map-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, rgba(var(--blue-rgb), 0.2), rgba(var(--blue-rgb), 0.1));
    border: 1px solid rgba(var(--blue-rgb), 0.3);
    border-radius: 6px;
    color: var(--blue-color);
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.monster-row:hover .map-badge {
    background: linear-gradient(135deg, rgba(var(--blue-rgb), 0.3), rgba(var(--blue-rgb), 0.2));
    border-color: var(--blue-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(var(--blue-rgb), 0.2);
}

.no-location {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.monster-points-col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.points-badge {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    background: var(--overlay-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.monster-row:hover .points-badge {
    transform: scale(1.1);
    background: var(--overlay-medium);
    border-color: var(--gold-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.monsters-count {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* DataTables Filter/Search Styles */
.dataTables_filter {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.dataTables_filter label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.dataTables_filter input[type="search"] {
    width: 250px;
    padding: 0.75rem 1rem;
    background: var(--overlay-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
}

.dataTables_filter input[type="search"]:focus {
    background: var(--overlay-medium);
    border-color: var(--gold-color);
    box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.2);
    color: var(--text-primary);
}

.dataTables_filter input[type="search"]::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.dataTables_filter input[type="search"]::-webkit-search-cancel-button {
    cursor: pointer;
    filter: invert(1);
}

@media (max-width: 768px) {
    .dataTables_filter {
        justify-content: center;
    }
    
    .dataTables_filter input[type="search"] {
        width: 100%;
        max-width: 300px;
    }
}

/* DataTables Pagination Styles */
.dataTables_paginate {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.dataTables_paginate .pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.dataTables_paginate .pagination li {
    display: inline-block;
}

.dataTables_paginate .pagination .paginate_button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 8px;
    background: var(--overlay-dark);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dataTables_paginate .pagination .paginate_button:hover {
    background: var(--overlay-gold-light);
    border-color: var(--gold-color);
    color: var(--gold-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--gold-rgb), 0.3);
}

.dataTables_paginate .pagination .paginate_button.active {
    background: var(--gradient-gold-vertical);
    border-color: var(--gold-color);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(var(--gold-rgb), 0.4);
    cursor: default;
    font-weight: 700;
}

.dataTables_paginate .pagination .paginate_button.active:hover {
    transform: none;
}

.dataTables_paginate .pagination .paginate_button.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.dataTables_paginate .pagination .paginate_button.disabled:hover {
    background: var(--overlay-dark);
    border-color: var(--border-color);
    color: var(--text-primary);
    transform: none;
    box-shadow: none;
}

.dataTables_paginate .pagination .paginate_button a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dataTables_paginate .pagination .paginate_button a i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.dataTables_paginate .pagination .paginate_button:not(.disabled):hover a i {
    transform: scale(1.1);
}

.dataTables_paginate .pagination .paginate_button.previous,
.dataTables_paginate .pagination .paginate_button.next {
    min-width: 45px;
}

@media (max-width: 768px) {
    .dataTables_paginate .pagination {
        gap: 0.25rem;
    }
    
    .dataTables_paginate .pagination .paginate_button {
        min-width: 35px;
        height: 35px;
        padding: 0 0.5rem;
        font-size: 0.85rem;
    }
    
    .dataTables_paginate .pagination .paginate_button.previous,
    .dataTables_paginate .pagination .paginate_button.next {
        min-width: 40px;
    }
}

/* Level Ranking Pagination - twbs-pagination customization */
.level-ranking-pagination {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.level-ranking-pagination .pagination {
    margin: 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.level-ranking-pagination .pagination > li {
    display: inline-block;
}

.level-ranking-pagination .pagination > li > a,
.level-ranking-pagination .pagination > li > span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 8px;
    background: var(--overlay-dark);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.level-ranking-pagination .pagination > li > a:hover {
    background: var(--overlay-gold-light);
    border-color: var(--gold-color);
    color: var(--gold-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--gold-rgb), 0.3);
}

.level-ranking-pagination .pagination > .active > a,
.level-ranking-pagination .pagination > .active > span {
    background: var(--gradient-gold-vertical);
    border-color: var(--gold-color);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(var(--gold-rgb), 0.4);
    cursor: default;
}

.level-ranking-pagination .pagination > .active > a:hover {
    transform: none;
}

.level-ranking-pagination .pagination > .disabled > a,
.level-ranking-pagination .pagination > .disabled > span {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 768px) {
    .level-ranking-pagination .pagination {
        justify-content: center;
        gap: 0.25rem;
    }
    
    .level-ranking-pagination .pagination > li > a,
    .level-ranking-pagination .pagination > li > span {
        min-width: 35px;
        height: 35px;
        padding: 0 0.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 1024px) {
    .hunt-rankings-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hunt-monsters-modern {
        position: static;
    }
    
    .monsters-header,
    .monster-row {
        grid-template-columns: 50px 1fr 1.5fr 80px;
        font-size: 0.8rem;
        gap: 0.5rem;
    }
    
    .monster-image-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .points-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* Contenedor de rankings de eventos con ancho limitado */
#rankingBloodCastle,
#rankingChaosCastle,
#rankingDevilSquare {
    max-width: 900px;
    margin: 0 auto;
}

/* Top 3 Cards destacadas para Level Ranking */
.level-top3-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
    margin-left: 1rem;
    margin-right: 1rem;
    padding: 0.5rem 0;
}

.level-top3-card {
    position: relative;
    background: var(--overlay-card);
    border-radius: 16px;
    padding: 1.25rem;
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.level-top3-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold-horizontal);
    z-index: 1;
}

.level-top3-card-rank1 {
    border-color: var(--gold-color);
    box-shadow: 0 12px 32px rgba(255, 215, 0, 0.4);
    transform: scale(1.05);
}

.level-top3-card-rank1::before {
    background: linear-gradient(90deg, #00d4ff 0%, #5ce1ff 100%);
    height: 6px;
}

.level-top3-card-rank2 {
    border-color: #c0c0c0;
    box-shadow: 0 10px 28px rgba(192, 192, 192, 0.3);
}

.level-top3-card-rank2::before {
    background: linear-gradient(90deg, #c0c0c0 0%, #e8e8e8 100%);
}

.level-top3-card-rank3 {
    border-color: #cd7f32;
    box-shadow: 0 8px 24px rgba(205, 127, 50, 0.3);
}

.level-top3-card-rank3::before {
    background: linear-gradient(90deg, #cd7f32 0%, #e6a366 100%);
}

.level-top3-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.level-top3-card-rank1:hover {
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 16px 48px rgba(255, 215, 0, 0.5);
}

.level-top3-card-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.level-top3-medal-image {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 45px;
    height: 45px;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.level-top3-card:hover .level-top3-medal-image {
    transform: scale(1.1) rotate(5deg);
}

.level-top3-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.level-top3-avatar {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.level-top3-card-rank1 .level-top3-avatar {
    border-color: var(--gold-color);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
}

.level-top3-card-rank2 .level-top3-avatar {
    border-color: #c0c0c0;
    box-shadow: 0 8px 20px rgba(192, 192, 192, 0.4);
}

.level-top3-card-rank3 .level-top3-avatar {
    border-color: #cd7f32;
    box-shadow: 0 8px 20px rgba(205, 127, 50, 0.4);
}

.level-top3-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    position: relative;
    z-index: 0;
}

.level-top3-online-dot {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #00ff00;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
    animation: pulse 2s infinite;
}

.level-top3-info {
    width: 100%;
}

.level-top3-name {
    margin: 0 0 0.75rem 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--gold-color) 0%, rgba(var(--gold-rgb), 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.level-top3-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.level-top3-stat-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: var(--overlay-dark);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.level-top3-stat-item:hover {
    background: var(--overlay-medium);
    border-color: var(--border-medium);
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.3);
}

.level-top3-stat-item:not(:last-child)::after {
    display: none;
}

.level-top3-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.level-top3-stat-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--blue-color);
}

.level-top3-guild {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--overlay-gold-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 0.25rem;
}

.level-top3-guild-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.level-ranking-rest {
    margin-top: 2rem;
}

/* Responsive para Top 3 Cards */
@media (max-width: 768px) {
    .level-top3-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .level-top3-card-rank1 {
        transform: scale(1);
    }
    
    .level-top3-card-rank1:hover {
        transform: translateY(-4px) scale(1.02);
    }
    
    .level-top3-stats {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .level-top3-stat-item:not(:last-child)::after {
        display: none;
    }
}

.ranking-row:hover {
    background: rgba(var(--gold-rgb), 0.05);
}

.rank-col {
    font-weight: 600;
}

.masterlevel-col {
    text-align: center;
    font-weight: 500;
    color: var(--text-primary);
}

.guild-col {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    min-width: 0;
    white-space: nowrap;
}

.guild-col img {
    vertical-align: middle;
    display: inline-block;
}

.rank-1 {
    color: var(--gold-color);
    font-size: 1.2rem;
}

.rank-2 {
    color: var(--rank-2-color);
    font-size: 1.1rem;
}

.rank-3 {
    color: var(--rank-3-color);
    font-size: 1.1rem;
}

.name-col {
    font-weight: 500;
    text-align: center;
}

.player-profile-link,
.guild-profile-link {
    color: var(--blue-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.player-profile-link:hover,
.guild-profile-link:hover {
    color: var(--gold-color);
    text-shadow: 0 0 8px rgba(var(--gold-rgb), 0.5);
    transform: translateY(-1px);
}

.class-col {
    color: var(--text-secondary);
}

.level-col,
.resets-col,
.masterlevel-col,
.pklevel-col,
.pkkills-col,
.location-col,
.master-col,
.score-col,
.genstype-col,
.gensrank-col,
.genscontribution-col {
    text-align: center;
    color: var(--blue-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Gens type image styling */
.genstype-col img {
    max-width: 32px;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

/* Avatar de personaje */
.avatar-col {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.character-avatar {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    overflow: visible;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.character-avatar:hover {
    transform: scale(1.1);
    border-color: var(--gold-color);
    box-shadow: var(--shadow-gold-button);
}

.character-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 !important;
}

.rank-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid var(--gold-color);
    color: var(--gold-color);
    font-weight: 700;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.rank-badge.rank-1 {
    background: var(--gradient-gold-vertical);
    color: var(--primary-color);
    border-color: var(--gold-color);
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.rank-badge.rank-2 {
    background: linear-gradient(135deg, var(--rank-2-color) 0%, var(--rank-2-light) 100%);
    color: var(--primary-color);
    border-color: var(--rank-2-color);
    width: 19px;
    height: 19px;
    font-size: 0.7rem;
    box-shadow: 0 0 12px rgba(192, 192, 192, 0.5);
}

.rank-badge.rank-3 {
    background: linear-gradient(135deg, var(--rank-3-color) 0%, var(--rank-3-light) 100%);
    color: var(--text-primary);
    border-color: var(--rank-3-color);
    width: 19px;
    height: 19px;
    font-size: 0.7rem;
    box-shadow: 0 0 12px rgba(205, 127, 50, 0.5);
}

/* Clases de Personajes */
.characters {
    padding: 5rem 0;
    background: var(--secondary-color);
    background-image: url('../img/bg3.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    z-index: 10;
}

.characters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-body-overlay-85);
    z-index: -1;
    pointer-events: none;
}

.carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-container {
    overflow: hidden;
    border-radius: 20px;
    position: relative;
    min-height: 500px;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    opacity: 1;
    display: flex;
    align-items: stretch;
}

.character-class-card {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    background: var(--card-bg);
    background-image: url('../img/bg_main_class.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    width: 100%;
    min-height: 500px;
    position: relative;
    flex-shrink: 0;
}

.character-class-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-dark-70);
    z-index: 0;
}

.character-class-card > * {
    position: relative;
    z-index: 1;
}

.character-class-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-color);
    box-shadow: var(--shadow-gold-button);
}

.character-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    overflow: hidden;
}

.character-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.character-class-card:hover .character-bg-image {
    transform: scale(1.1);
}

.character-info {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.character-class-name {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--gold-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: var(--text-shadow-gold-sm);
}

.character-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    background: var(--overlay-dark-60);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.stat-progress-bar {
    width: 100%;
    height: 12px;
    background: var(--overlay-white-medium);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-progress {
    height: 100%;
    border-radius: 10px;
    position: relative;
    transition: width 0.8s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Colores para cada estadística */
.stat-strength .stat-progress-bar {
    background: rgba(var(--stat-strength-rgb), 0.2);
}

.stat-strength-progress {
    background: linear-gradient(90deg, var(--stat-strength-dark) 0%, var(--stat-strength-medium) 50%, var(--stat-strength-light) 100%);
    box-shadow: 0 0 15px rgba(var(--stat-strength-rgb), 0.6), inset 0 1px 0 var(--overlay-white-medium);
}

.stat-strength:hover .stat-progress-bar {
    box-shadow: inset 0 2px 4px var(--overlay-black), 0 0 20px rgba(var(--stat-strength-rgb), 0.4);
}

.stat-agility .stat-progress-bar {
    background: rgba(var(--stat-agility-rgb), 0.2);
}

.stat-agility-progress {
    background: linear-gradient(90deg, var(--stat-agility-dark) 0%, var(--stat-agility-medium) 50%, var(--stat-agility-light) 100%);
    box-shadow: 0 0 15px rgba(var(--stat-agility-rgb), 0.6), inset 0 1px 0 var(--overlay-white-medium);
}

.stat-agility:hover .stat-progress-bar {
    box-shadow: inset 0 2px 4px var(--overlay-black), 0 0 20px rgba(var(--stat-agility-rgb), 0.4);
}

.stat-vitality .stat-progress-bar {
    background: rgba(var(--stat-vitality-rgb), 0.2);
}

.stat-vitality-progress {
    background: linear-gradient(90deg, var(--stat-vitality-dark) 0%, var(--stat-vitality-medium) 50%, var(--stat-vitality-light) 100%);
    box-shadow: 0 0 15px rgba(var(--stat-vitality-rgb), 0.6), inset 0 1px 0 var(--overlay-white-medium);
}

.stat-vitality:hover .stat-progress-bar {
    box-shadow: inset 0 2px 4px var(--overlay-black), 0 0 20px rgba(var(--stat-vitality-rgb), 0.4);
}

.stat-energy .stat-progress-bar {
    background: rgba(var(--stat-energy-rgb), 0.2);
}

.stat-energy-progress {
    background: linear-gradient(90deg, var(--stat-energy-dark) 0%, var(--stat-energy-medium) 50%, var(--stat-energy-light) 100%);
    box-shadow: 0 0 15px rgba(var(--stat-energy-rgb), 0.6), inset 0 1px 0 var(--overlay-white-medium);
}

.stat-energy:hover .stat-progress-bar {
    box-shadow: inset 0 2px 4px var(--overlay-black), 0 0 20px rgba(var(--stat-energy-rgb), 0.4);
}

.character-desc {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--overlay-dark);
    border: 2px solid var(--gold-color);
    color: var(--gold-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--gold-color);
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: -70px;
}

.carousel-btn.next {
    right: -70px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
    padding-top: 1rem;
}

.dot {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
}

.dot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.dot.active,
.dot:hover {
    border-color: var(--gold-color);
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.dot.active {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

/* CMS Content Wrapper */
.cms-content-wrapper {
    min-height: calc(100vh - 200px);
    padding: 5rem 0;
    position: relative;
    z-index: 1;
    z-index: 10;
}

/* CMS Content Compact cuando está después de hero-compact */
.hero-compact + .cms-content-wrapper {
    padding: 2rem 0;
    min-height: auto;
}

.cms-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--overlay-medium-60);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.cms-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.cms-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gold-color);
}

/* Page Title - Estilo general para todos los módulos */
.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 1.5rem 0;
    position: relative;
    background: linear-gradient(135deg, var(--overlay-gold-light) 0%, transparent 100%);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.page-title span {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold-color) 0%, rgba(var(--gold-rgb), 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding: 0 1rem;
}

.page-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-gold-horizontal);
    border-radius: 0 0 3px 3px;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gold-color);
    border-radius: 2px 2px 0 0;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.breadcrumb-item:hover {
    color: var(--gold-color);
    background: var(--overlay-gold-light);
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 600;
    cursor: default;
}

.breadcrumb-item.active:hover {
    background: transparent;
    color: var(--text-primary);
}

.breadcrumb-item i {
    font-size: 0.85rem;
}

.breadcrumb-separator {
    color: var(--text-secondary);
    font-size: 0.75rem;
    opacity: 0.5;
    display: flex;
    align-items: center;
}

.cms-content h1,
.cms-content h2,
.cms-content h3,
.cms-content h4,
.cms-content h5,
.cms-content h6 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cms-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.cms-content a {
    color: var(--gold-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.cms-content a:hover {
    color: var(--blue-color);
}

.cms-content img:not(table.rankings-table img):not(.character-avatar img):not(.guild-logo img):not(.ranking-tab-icon):not(.form-input img):not(.profile-form-input img) {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5rem 0;
}

/* Add specific exclusion for images inside profile-form-input */
.cms-content .profile-form-input img {
    margin: 0;
    border-radius: 0;
}

/* Exclude images in specific components from cms-content img styles */
.cms-content .ranking-row img:not(.character-avatar img),
.cms-content .ranking-table img:not(.character-avatar img),
.cms-content .rankings-content img:not(.character-avatar img),
.cms-content .rankings-tabs img,
.cms-content .online-dot,
.cms-content .rank-badge img,
.cms-content .form-input img {
    margin: 0;
    border-radius: 0;
}

.cms-content .character-avatar img {
    margin: 0 !important;
    border-radius: 8px !important;
}

.cms-content ul,
.cms-content ol {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.cms-content li {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    background-image: url('../img/bg1.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-body-overlay-90);
    z-index: 0;
    pointer-events: none;
}

.footer > * {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--gold-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--gold-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        background-image: url('../img/banner_mobile.jpg');
    }

    .hero-overlay {
        background: 
            linear-gradient(135deg, rgba(10, 10, 15, 0.7) 0%, rgba(18, 18, 18, 0.7) 50%, rgba(26, 26, 26, 0.7) 100%);
    }

    .custom-menu-wrapper {
        flex-direction: row;
        justify-content: flex-end;
    }

    .custom-menu-wrapper .logo-overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 1002;
    }

    .custom-menu-wrapper .logo-overlay .logo-image {
        height: 120px;
        padding-top: 0;
        padding-right: 0;
        transform: translateZ(0) translateY(0);
    }

    .custom-menu-wrapper .custom-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--primary-color);
        width: 100%;
        height: calc(100vh - 70px);
        overflow-y: auto;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-top: 1px solid var(--border-color);
        gap: 0;
        align-items: stretch;
        box-shadow: var(--shadow-black-sm);
        border-radius: 0;
        border: none;
    }

    .custom-menu-wrapper .custom-menu.active {
        left: 0;
    }

    .custom-menu-wrapper .custom-menu > .custom-nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    }

    .custom-menu-wrapper .custom-nav-link {
        width: 100%;
        padding: 1.2rem 2rem;
        border-radius: 0;
        justify-content: space-between;
        border: none;
        transform: none !important;
    }

    .custom-menu-wrapper .custom-nav-link:hover {
        transform: translateX(10px) !important;
        background: var(--overlay-gold-light);
    }

    .custom-menu-wrapper .custom-nav-link::after {
        display: none;
    }


    /* Botones de autenticación en móvil */
    .custom-menu-wrapper .custom-menu-auth {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 1rem;
        background: var(--primary-color);
        border-top: 1px solid var(--border-color);
        flex-direction: column;
        gap: 0.75rem;
        z-index: 1001;
    }

    .custom-menu-wrapper .custom-btn-auth {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .custom-menu-wrapper .custom-hamburger {
        display: flex;
    }


    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .rankings-title-wrapper {
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .rankings-title {
        font-size: 1.5rem;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .title-icon {
        font-size: 1.35rem;
    }

    .title-main {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .title-sub {
        font-size: 0.975rem;
        letter-spacing: 3px;
    }

    .title-decoration {
        max-width: 60px;
    }

    .title-decoration::after {
        font-size: 0.9rem;
    }

    .ranking-header,
    .ranking-row {
        grid-template-columns: 50px 1fr 1fr 1fr 1fr 1fr;
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    #rankingGuilds .ranking-header,
    #rankingGuilds .ranking-row {
        grid-template-columns: 50px 1fr 120px 70px 60px;
    }

    /* Event Rankings responsive */
    #rankingBloodCastle .ranking-header,
    #rankingBloodCastle .ranking-row,
    #rankingChaosCastle .ranking-header,
    #rankingChaosCastle .ranking-row,
    #rankingDevilSquare .ranking-header,
    #rankingDevilSquare .ranking-row {
        grid-template-columns: 50px 2fr 1fr;
        max-width: 100%;
    }

    #rankingBloodCastle,
    #rankingChaosCastle,
    #rankingDevilSquare {
        max-width: 100%;
    }

    .master-avatar {
        width: 25px;
        height: 25px;
    }

    .master-avatar-wrapper span {
        font-size: 0.8rem;
    }

    .character-avatar {
        width: 40px;
        height: 40px;
    }

    .rank-badge {
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
        top: -8px;
        right: -8px;
    }

    .rank-badge.rank-1 {
        width: 20px;
        height: 20px;
        font-size: 0.75rem;
    }

    .rank-badge.rank-2,
    .rank-badge.rank-3 {
        width: 19px;
        height: 19px;
    }

    .avatar-col {
        grid-column: 1;
    }

    .name-col {
        grid-column: 2;
    }

    #rankingLevel .class-col,
    #rankingResets .class-col {
        display: none;
    }

    .level-col {
        grid-column: 3;
    }

    .resets-col {
        grid-column: 4;
    }

    .carousel-container {
        min-height: 400px;
    }

    .character-class-card {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: 400px;
    }

    .character-image-wrapper {
        min-height: 300px;
        width: 100%;
    }

    .character-info {
        padding: 2rem;
    }

    .character-class-name {
        font-size: 2rem;
    }

    .character-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-progress-bar {
        height: 10px;
    }

    .carousel-dots {
        margin-top: 2rem;
        padding-top: 0.5rem;
        gap: 0.5rem;
    }

    .dot {
        width: 50px;
        height: 50px;
    }
}

/* Responsive para tablets */
@media (max-width: 992px) {
    .hero-logo {
        margin-bottom: 1.5rem;
        margin-top: 2rem;
    }

    .hero-logo-img {
        max-width: 250px;
    }

    .hero-main-title {
        font-size: 2rem;
    }

    .hero-event-text {
        font-size: 1rem;
    }

    .hero-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 600px;
    }

    .hero-stat-card {
        padding: 0.9rem 0.7rem;
    }

    .hero-stat-icon {
        font-size: 1.3rem;
    }

    .hero-stat-value {
        font-size: 1.3rem;
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .hero-content {
        margin-top: 80px;
    }

    .hero-logo {
        margin-bottom: 1.2rem;
        margin-top: 1.5rem;
    }

    .hero-logo-img {
        max-width: 180px;
    }

    .hero-main-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .hero-event-text {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .hero-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        margin-bottom: 2rem;
    }

    .hero-stat-card {
        padding: 0.8rem 0.6rem;
    }

    .hero-stat-icon {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }

    .hero-stat-label {
        font-size: 0.7rem;
        margin-bottom: 0.2rem;
    }

    .hero-stat-value {
        font-size: 1.2rem;
        margin-bottom: 0.1rem;
    }

    .hero-stat-status {
        font-size: 0.65rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        margin-bottom: 2rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 300px;
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
        justify-content: center;
    }

    .hero-scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        margin-bottom: 1rem;
        margin-top: 1rem;
    }

    .hero-logo-img {
        max-width: 150px;
    }

    .hero-main-title {
        font-size: 1.2rem;
        letter-spacing: 0.5px;
    }

    .hero-event-text {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }

    .hero-stats-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
        margin-bottom: 1.5rem;
    }

    .hero-stat-card {
        padding: 0.7rem 0.5rem;
    }

    .hero-stat-icon {
        font-size: 1.1rem;
    }

    .hero-stat-label {
        font-size: 0.65rem;
    }

    .hero-stat-value {
        font-size: 1.1rem;
    }

    .hero-stat-status {
        font-size: 0.6rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
        justify-content: center;
    }
    
    .hero-scroll-indicator {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .stats-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .character-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-progress-bar {
        height: 10px;
    }

    .carousel-dots {
        gap: 0.4rem;
        flex-wrap: wrap;
    }

    .dot {
        width: 40px;
        height: 40px;
    }
}

