/* ===============================
   RESETEO Y CONFIGURACIONES BASE
   =============================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

:root {
  /* Paleta TierList Hispana */
  --bg-color: #0a0a14;
  --card-color: #16161d;
  --accent-color: #ff5bff;
  --secondary-color: #ffd700;
  --tertiary-color: #00f5ff;
  --text-color: #e0e0e6;
  --text-muted: #9a9a9a;
  --primary-font: 'Orbitron', sans-serif;
  --secondary-font: 'Exo 2', sans-serif;
  --transition-speed: 0.3s;
  --border-radius: 12px;
  --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.6);
  --glow: 0 0 15px var(--accent-color);
  --gradient-bg: linear-gradient(135deg, #0a0a14, #16161d, #0a0a14);
  
  /* Colores de Tiers */
  --ht1-color: #ff0000;
  --lt1-color: #ff4444;
  --ht2-color: #ff8800;
  --lt2-color: #ffaa44;
  --ht3-color: #ffff00;
  --lt3-color: #ffff88;
  --ht4-color: #00ff00;
  --lt4-color: #88ff88;
  --ht5-color: #0088ff;
  --lt5-color: #88ccff;
}

/* ===============================
          BODY & FONDOS
   =============================== */
body {
  background: var(--bg-color);
  color: var(--text-color);
  font-family: var(--primary-font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Fondo Galáctico Premium con Animación */
body.galactic {
  background: var(--gradient-bg);
  background-size: 200% 200%;
  animation: pulseGradient 30s ease infinite;
}

@keyframes pulseGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===============================
        HERO SECTION
   =============================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(10, 10, 20, 0.9), rgba(22, 22, 29, 0.9));
}

.hero-content {
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  background: linear-gradient(45deg, var(--accent-color), var(--secondary-color), var(--tertiary-color));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease infinite;
  margin-bottom: 2rem;
}

.hero-slogan {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 3rem 0;
  perspective: 1000px;
  white-space: nowrap;
}

.slogan-word {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  font-family: var(--secondary-font);
  color: #ff5bff;
  opacity: 0;
  transform: translateY(80px) rotateX(90deg) scale(0.5);
  transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  text-shadow: 0 0 20px rgba(255, 91, 255, 0.5);
  animation: professionalColorShift 3s ease infinite;
}

.slogan-word.animate {
  opacity: 1;
  transform: translateY(0) rotateX(0deg) scale(1);
}

/* Animación profesional con cambio de colores */
@keyframes professionalColorShift {
  0% { 
    color: #ff5bff;
    text-shadow: 0 0 20px rgba(255, 91, 255, 0.5);
  }
  50% { 
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  }
  100% { 
    color: #ff5bff;
    text-shadow: 0 0 20px rgba(255, 91, 255, 0.5);
  }
}

/* Efectos hover sutiles y profesionales */
.slogan-word:hover {
  transform: translateY(-5px) scale(1.05);
  color: #ffd700;
  text-shadow: 0 5px 25px rgba(255, 215, 0, 0.6);
}

.slogan-word:nth-child(1) {
  animation-delay: 0.2s;
}

.slogan-word:nth-child(2) {
  animation-delay: 0.4s;
}

.slogan-word:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===============================
        ESTADÍSTICAS
   =============================== */
.stats-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 4rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.stat-item {
  background: rgba(22, 22, 29, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 91, 255, 0.3);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition-speed) ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow);
  border-color: var(--accent-color);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  font-family: var(--primary-font);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--secondary-font);
}

/* ===============================
        PARTÍCULAS FLOTANTES
   =============================== */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 50%;
  animation: float linear infinite;
  opacity: 0.6;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* ===============================
        NAVBAR MEJORADA
   =============================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 20, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 91, 255, 0.2);
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-speed) ease;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.logo-text {
  color: var(--text-color);
}

.logo-accent {
  color: var(--accent-color);
  text-shadow: 0 0 10px var(--accent-color);
}

.navbar-center ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.navbar-center a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: all var(--transition-speed) ease;
  position: relative;
}

.navbar-center a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width var(--transition-speed) ease;
}

.navbar-center a:hover::after {
  width: 100%;
}

.navbar-center a:hover {
  color: var(--accent-color);
  text-shadow: 0 0 10px var(--accent-color);
}

/* ===============================
        EFECTOS ADICIONALES
   =============================== */
body.galactic::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 150%;
  height: 150%;
  background: url("https://www.transparenttextures.com/patterns/stardust.png");
  opacity: 0.2;
  animation: drift 60s linear infinite;
  z-index: -2;
}

@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-25%, -25%); }
}

/* ===============================
        ERROR MESSAGES
   =============================== */
.error-message {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.3);
  border-radius: var(--border-radius);
  color: #ff6b6b;
  font-size: 1.1rem;
  margin: 2rem 0;
}

/* ===============================
            IMÁGENES
   =============================== */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Aseguramos que los íconos (rango y Discord) se muestren en línea */
.rank-icon,
.discord-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 8px;
}

/* ===============================
        PLAYER CARDS MEJORADAS
   =============================== */
.player-card {
  display: grid;
  grid-template-columns: 60px 1fr 80px;
  align-items: center;
  background: rgba(22, 22, 29, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 91, 255, 0.2);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin: 0.5rem 0;
  transition: all var(--transition-speed) ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.player-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 91, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.player-card:hover::before {
  left: 100%;
}

.player-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-color);
  box-shadow: 0 8px 25px rgba(255, 91, 255, 0.3);
}

.player-rank {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--secondary-color);
  text-align: center;
}

.player-info {
  padding: 0 1rem;
}

.player-name {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.player-title {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.player-points {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.player-region {
  text-align: center;
  font-weight: 600;
  color: var(--tertiary-color);
  background: rgba(0, 245, 255, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
}

.no-players {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-size: 1.2rem;
  background: rgba(22, 22, 29, 0.5);
  border-radius: var(--border-radius);
  border: 1px dashed rgba(255, 91, 255, 0.3);
}

/* ===============================
        MODALITIES BAR MEJORADA
   =============================== */
.modalities-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 2rem;
  background: rgba(22, 22, 29, 0.9);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 91, 255, 0.2);
  margin-top: 80px; /* Para el navbar fijo */
}

.modality-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  background: rgba(10, 10, 20, 0.6);
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  min-width: 120px;
  position: relative;
}

.modality-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, var(--accent-color), var(--tertiary-color));
  border-radius: var(--border-radius);
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  z-index: -1;
}

.modality-icon.active::before,
.modality-icon:hover::before {
  opacity: 0.2;
}

.modality-icon.active {
  border-color: var(--accent-color);
  transform: scale(1.05);
}

.modality-icon:hover {
  transform: translateY(-5px);
  border-color: var(--tertiary-color);
}

.modality-icon img {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(255, 91, 255, 0.3));
}

.modality-icon span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
  text-align: center;
}

/* ===============================
        REGION FILTERS MEJORADOS
   =============================== */
.region-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(16, 16, 23, 0.8);
  backdrop-filter: blur(10px);
}

.region-filter-btn {
  padding: 0.8rem 1.5rem;
  background: rgba(22, 22, 29, 0.8);
  border: 1px solid rgba(255, 91, 255, 0.3);
  border-radius: 20px;
  color: var(--text-color);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  font-family: var(--primary-font);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.region-filter-btn:hover {
  background: rgba(255, 91, 255, 0.2);
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.region-filter-btn.active {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(255, 91, 255, 0.5);
}

/* ===============================
        RANKING CONTAINER
   =============================== */
.ranking-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.ranking-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}

.ranking-header img {
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 0 15px var(--accent-color));
}

.ranking-header h2 {
  font-size: 2rem;
  color: var(--secondary-color);
  text-shadow: 0 0 10px var(--secondary-color);
}

/* ===============================
           BOTÓN VER KIT
   =============================== */
.kit-btn {
  background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: var(--border-radius);
  font-family: var(--primary-font);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255, 91, 255, 0.3);
}

.kit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 91, 255, 0.5);
  background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
}

.kit-btn:active {
  transform: translateY(0);
}

.search-container {
  margin: 2rem 0;
  text-align: center;
}

.search-container input {
  width: 100%;
  max-width: 500px;
  padding: 1rem 1.5rem;
  background: rgba(22, 22, 29, 0.9);
  border: 2px solid rgba(255, 91, 255, 0.3);
  border-radius: 25px;
  color: var(--text-color);
  font-size: 1rem;
  font-family: var(--primary-font);
  transition: all var(--transition-speed) ease;
}

.search-container input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(255, 91, 255, 0.3);
}

.search-container input::placeholder {
  color: var(--text-muted);
}

/* ===============================
        MODALES MEJORADOS
   =============================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--card-color);
  border: 1px solid var(--accent-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-speed) ease;
}

.close-btn:hover {
  color: var(--accent-color);
}

/* ===============================
        MODAL DE KIT
   =============================== */
.kit-modal-content {
  max-width: 500px;
  text-align: center;
  padding: 1.5rem;
}

.kit-modal-content img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(255, 91, 255, 0.3);
  transition: transform 0.3s ease;
}

.kit-modal-content img:hover {
  transform: scale(1.05);
}

.player-avatar-detail {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: block;
  border: 3px solid var(--accent-color);
}

.modality-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(10, 10, 20, 0.5);
  border-radius: var(--border-radius);
  margin: 0.5rem 0;
}

.modality-detail img {
  width: 40px;
  height: 40px;
}

.modality-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.tier-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-weight: 700;
  font-size: 0.8rem;
  text-align: center;
  min-width: 50px;
}

.tier-badge.tier-ht1 { background: var(--ht1-color); color: white; }
.tier-badge.tier-lt1 { background: var(--lt1-color); color: white; }
.tier-badge.tier-ht2 { background: var(--ht2-color); color: white; }
.tier-badge.tier-lt2 { background: var(--lt2-color); color: white; }
.tier-badge.tier-ht3 { background: var(--ht3-color); color: black; }
.tier-badge.tier-lt3 { background: var(--lt3-color); color: black; }
.tier-badge.tier-ht4 { background: var(--ht4-color); color: black; }
.tier-badge.tier-lt4 { background: var(--lt4-color); color: black; }
.tier-badge.tier-ht5 { background: var(--ht5-color); color: white; }
.tier-badge.tier-lt5 { background: var(--lt5-color); color: black; }

/* ===============================
        FOOTER MEJORADO
   =============================== */
.footer {
  text-align: center;
  padding: 2rem;
  background: rgba(10, 10, 20, 0.9);
  border-top: 1px solid rgba(255, 91, 255, 0.2);
  margin-top: 4rem;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* ===============================
        RESPONSIVE DESIGN
   =============================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-slogan {
    gap: 1rem;
  }
  
  .slogan-word {
    font-size: 1.5rem;
  }
  
  .stats-container {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 400px;
  }
  
  .navbar {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }
  
  .navbar-center ul {
    gap: 1rem;
  }
  
  .modalities-bar {
    gap: 1rem;
    padding: 1rem;
  }
  
  .modality-icon {
    min-width: 100px;
    padding: 1rem 0.5rem;
  }
  
  .region-filters {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
  }
  
  .player-card {
    grid-template-columns: 50px 1fr 60px;
    padding: 0.8rem;
  }
  
  .player-rank {
    font-size: 1.2rem;
  }
  
  .player-name {
    font-size: 1rem;
  }
  
  .tier-items {
    gap: 0.3rem;
  }
  
  .tier-item {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }
}
.icon {
  display: inline-block;
  vertical-align: middle;
}

/* ===============================
          UTILIDADES DE ESPACIADO
   =============================== */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.m-0 { margin: 0 !important; }
.p-0 { padding: 0 !important; }

/* ===============================
         HEADINGS Y TEXTOS
   =============================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: var(--glow);
}
h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.9rem; }
h4 { font-size: 1.6rem; }
h5 { font-size: 1.3rem; }
h6 { font-size: 1.1rem; }
p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* ===============================
              LINKS
   =============================== */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-speed), text-shadow var(--transition-speed);
}
a:hover {
  color: var(--accent-color);
  text-shadow: 0 0 8px var(--accent-color);
}

/* ===============================
         UTILIDADES DE TEXTO
   =============================== */
.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; }
.text-bold { font-weight: 700; }
.text-shadow { text-shadow: var(--glow); }
.text-lg { font-size: 1.25rem; }
.text-xl { font-size: 1.5rem; }
.text-xxl { font-size: 2rem; }

/* ===============================
             BOTONES PREMIUM
   =============================== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius);
  background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
  color: var(--bg-color);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 15px var(--accent-color);
}
.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--secondary-color);
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
  color: var(--bg-color);
}
.btn-secondary {
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
}
.btn-secondary:hover {
  background: var(--accent-color);
  color: var(--bg-color);
}

/* Estética adicional para los botones de interacción (por ejemplo, filtros de región) */
.region-filter-btn {
  padding: 5px 10px;
  border: none;
  background-color: #333;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s, box-shadow 0.3s;
}
.region-filter-btn:hover {
  background-color: #555;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.region-filter-btn.active {
  background-color: var(--accent-color);
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* ===============================
           NAVBAR CON GLASSMORPHISM
   =============================== */
.navbar {
  width: 100%;
  background: rgba(11, 12, 22, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 999;
}
.navbar-left { display: flex; align-items: center; }
.logo {
  height: 50px;
  width: auto;
  margin-right: 10px;
}
.site-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: 1px;
}
.navbar-center ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
.navbar-center ul li a {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-color);
  transition: color var(--transition-speed);
}
.navbar-center ul li a:hover {
  color: var(--accent-color);
}
.navbar-right { display: flex; align-items: center; }

/* ===============================
           BARRA DE MODALIDADES
   =============================== */
.modalities-bar {
  display: flex;
  align-items: center;
  background: rgba(11, 12, 22, 0.9);
  padding: 10px 40px;
  gap: 15px;
  border-bottom: 1px solid #1c1f26;
  flex-wrap: wrap;
}
.modality-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform var(--transition-speed), color var(--transition-speed);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.modality-icon img {
  width: 60px;
  height: auto;
  margin-bottom: 4px;
  object-fit: contain;
}
.modality-icon span {
  margin-top: 2px;
  font-weight: 500;
}
.modality-icon:hover {
  transform: scale(1.08);
  color: var(--accent-color);
}
.modality-icon.active {
  color: var(--accent-color);
}

/* ===============================
         CONTENEDOR DE BÚSQUEDA
   =============================== */
.search-container {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}
.search-container input[type="text"] {
  width: 80%;
  max-width: 400px;
  background: #1a1d24;
  border: none;
  padding: 12px 16px;
  border-radius: var(--border-radius);
  color: var(--text-color);
  font-size: 1.1rem;
  outline: none;
  transition: background var(--transition-speed), box-shadow var(--transition-speed);
}
.search-container input[type="text"]::placeholder {
  color: var(--text-muted);
}
.search-container input[type="text"]:focus {
  background: #2a2f3a;
  box-shadow: 0 0 10px var(--accent-color);
}

/* ===============================
         CONTENEDOR DE RANKING
   =============================== */
.ranking-container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}
.ranking-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #1c1f26;
  padding-bottom: 10px;
}
.ranking-header img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.ranking-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: 1px;
}

/* ===============================
            ICONO DE RANK
   =============================== */
.rank-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 4px;
  display: inline-block;
}

/* ===============================
          LISTADO DE RANKING
   =============================== */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ranking-row.header {
  background: transparent;
  display: grid;
  grid-template-columns: 50px 1fr 100px 1fr;
  padding: 10px 15px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
}
.header-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ranking-row.player-row {
  background: var(--card-color);
  border-radius: var(--border-radius);
  display: grid;
  grid-template-columns: 50px 1fr 100px 1fr;
  align-items: center;
  padding: 12px 15px;
  gap: 10px;
  transition: background var(--transition-speed), transform 0.15s;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.ranking-row.player-row:hover {
  background: #1a2230;
  transform: scale(1.01);
}
.rank-cell {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-color);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.player-cell {
  display: flex;
  align-items: center;
}
.region-cell {
  text-align: center;
  font-size: 0.9rem;
  color: var(--accent-color);
  font-weight: 600;
  background: rgba(255, 107, 255, 0.1);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}
.tiers-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}
.player-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.player-avatar {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
}
.player-details {
  display: flex;
  flex-direction: column;
}
.player-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-color);
}
.player-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===============================
           ICONO DE TIER
   =============================== */
.tier-icon {
  background: #1c1f26;
  border-radius: var(--border-radius);
  padding: 4px 6px;
  font-size: 0.7rem;
  color: var(--text-color);
  min-width: 35px;
  text-align: center;
  transition: background 0.2s;
}
.tier-icon:hover {
  background: #2a2f3a;
}

/* ===============================
         DETALLES DEL PLAYER (MODAL)
   =============================== */
.player-info-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.player-avatar-detail {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-color);
}
.player-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.player-header h3 {
  margin-top: 10px;
}
.overall-info {
  font-size: 0.9rem;
  color: var(--secondary-color);
  margin-top: 5px;
}
.modalities-info p {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.modalities-info p img.modality-icon-small {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

/* ===============================
               FOOTER
   =============================== */
.footer {
  text-align: center;
  padding: 15px;
  background: #0b0c16;
  color: var(--text-muted);
  margin-top: 30px;
  font-size: 0.9rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 1rem;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: var(--accent-color);
}

/* ===============================
              MODALES
   =============================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
.modal-content {
  background: var(--bg-color);
  padding: 20px;
  border-radius: var(--border-radius);
  position: relative;
  max-width: 400px;
  width: 90%;
  box-shadow: var(--shadow-light);
  animation: slideDown 0.5s ease;
}
.close-btn {
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  position: absolute;
  right: 15px;
  top: 10px;
  cursor: pointer;
}

/* ===============================
             ANIMACIONES
   =============================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}
@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.slide-down {
  animation: slideDown 0.5s ease;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spin {
  animation: spin 2s linear infinite;
}
.bounce {
  animation: bounce 1s infinite;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* ===============================
      UTILIDADES FLEX & GRID
   =============================== */
.flex { display: flex; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-col { display: flex; flex-direction: column; }
.flex-gap { gap: 1rem; }
.flex-gap-lg { gap: 1.5rem; }
.flex-gap-sm { gap: 0.5rem; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
.grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.container-sm { max-width: 540px; margin: 0 auto; padding: 0 15px; }
.container-md { max-width: 720px; margin: 0 auto; padding: 0 15px; }
.container-lg { max-width: 960px; margin: 0 auto; padding: 0 15px; }
.container-xl { max-width: 1140px; margin: 0 auto; padding: 0 15px; }
.container-xxl { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.border { border: 1px solid var(--text-muted); }
.border-rounded { border-radius: var(--border-radius); }
.bg-accent { background: var(--accent-color); }
.bg-card { background: var(--card-color); }
.transition { transition: all var(--transition-speed) ease; }
.transition-delay { transition-delay: 0.2s; }
.transition-duration { transition-duration: 0.5s; }
.underline {
  position: relative;
  display: inline-block;
}
.underline::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--accent-color);
  left: 0;
  bottom: -5px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ===============================
         SCROLLBAR PERSONALIZADO
   =============================== */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 10px;
  border: 3px solid var(--bg-color);
}

/* ===============================
   ESTILOS PERSONALIZADOS (FILTROS Y MODAL PLAYER)
   =============================== */
.region-filters {
  display: flex;
  justify-content: center;
  margin: 10px 0;
  gap: 10px;
}
.region-filter-btn {
  padding: 5px 10px;
  border: none;
  background-color: #333;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s, box-shadow 0.3s;
}
.region-filter-btn:hover {
  background-color: #555;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.region-filter-btn.active {
  background-color: var(--accent-color);
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.player-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.player-header img {
  border-radius: 50%;
}
