/* =========================================================
   HispanoMU - Global Design Tokens & Master Theme (:root)
   Basado en la paleta verde mística extraída de background.png
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after,
html, body,
h1, h2, h3, h4, h5, h6,
p, span, a, em, strong, small, b, i,
div, section, article, aside, header, footer, nav,
table, th, td, tr, thead, tbody, tfoot,
input, button, select, textarea, label,
.btn, .badge, .item-name, .item-info, .item-box,
.rankings-table, .inv-table, .usercp-wrapper,
.sidebar, .navbar, .site-header, .site-footer {
    font-family: Rajdhani, Arial, sans-serif !important;
}

/* Preservar tipografía de íconos Font Awesome */
.fa, .fas, .far, .fal, .fad, .fab,
.fa-solid, .fa-regular, .fa-light, .fa-thin, .fa-duotone,
[class*="fa-"], [class*="fa-"]::before, [class*="fa-"]::after {
    font-family: var(--fa-style-family, "Font Awesome 6 Free") !important;
}
.fab, .fa-brands, .fa-brands::before, .fa-brands::after,
[class*="fa-brands"], [class*="fa-brands"]::before, [class*="fa-brands"]::after {
    font-family: "Font Awesome 6 Brands" !important;
}

:root {
  /* --- Colores Base Extraídos de background.png --- */
  --primary: #38bdf8;
  --primary-hover: #0ea5e9;
  --primary-active: #0284c7;
  --primary-light: #7dd3fc;
  --primary-dark: #0369a1;
  --primary-rgb: 56, 189, 248;
  --primary-glow: rgba(56, 189, 248, 0.40);
  --primary-glow-subtle: rgba(56, 189, 248, 0.14);
  --primary-glow-intense: rgba(0, 210, 255, 0.70);

  /* --- Colores Secundarios y Acentos --- */
  --secondary: #1e40af;
  --secondary-dark: #0f172a;
  --secondary-rgb: 30, 64, 175;
  --accent-gold: #cbd5e1;
  --accent-silver: #cbd5e1;
  --accent-gold-rgb: 203, 213, 225;
  --accent-silver-rgb: 203, 213, 225;
  --accent-gold-light: #f1f5f9;
  --accent-silver-light: #f1f5f9;
  --accent-cyan: #38bdf8;
  --accent-blue: #38bdf8;
  --accent-purple: #a855f7;
  --accent-red: #ff334b;
  
  /* Alias de compatibilidad */
  --gold: #cbd5e1;
  --silver: #cbd5e1;
  --gold2: #f1f5f9;
  --silver2: #f1f5f9;
  --cyan: #38bdf8;
  --blue: #38bdf8;
  --green: #38bdf8;
  --purple: #a855f7;

  /* --- Fondos y Superficies (Verde Bosque Profundo / Ambient) --- */
  --bg: #060c18;
  --bg2: #0a1424;
  --bg-main: #060c18;
  --bg-secondary: #08101e;
  --bg-tertiary: #0c182b;
  --bg-header: rgba(6, 12, 24, 0.90);
  --bg-footer: #040810;

  /* --- Paneles y Tarjetas (Glassmorphism) --- */
  --panel: #0a172c;
  --panel2: #0e203c;
  --panel-glass: rgba(10, 23, 44, 0.85);
  --panel-glass-hover: rgba(14, 32, 60, 0.92);
  --panel-card: linear-gradient(180deg, rgba(12, 26, 48, 0.96), rgba(7, 15, 28, 0.98));

  /* --- Bordes y Separadores --- */
  --line: rgba(56, 189, 248, 0.18);
  --border-line: rgba(56, 189, 248, 0.18);
  --border-hover: rgba(56, 189, 248, 0.50);
  --border-active: rgba(56, 189, 248, 0.85);

  /* --- Tipografía --- */
  --text: #e2e8f0;
  --text-main: #e2e8f0;
  --text-bright: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-accent: #38bdf8;
  --text-gold: #f1f5f9;

  /* --- Sombras --- */
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.65);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.30);
  --shadow-glow-intense: 0 0 35px rgba(0, 210, 255, 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  position: relative;
  background:
    radial-gradient(circle at 50% 12%, rgba(var(--primary-rgb), 0.12), transparent 30%),
    radial-gradient(circle at 85% 35%, rgba(var(--secondary-rgb), 0.18), transparent 25%),
    linear-gradient(180deg, #040810 0%, var(--bg) 30%, #070e1c 70%, #040810 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: Rajdhani, Arial, sans-serif;
  font-size: 17px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  background:
    linear-gradient(rgba(6, 12, 24, 0.82), rgba(6, 12, 24, 0.94)),
    url('../img/background.png') center top / 100% auto no-repeat;
  filter: saturate(1.1) contrast(1.05);
  opacity: 0.42;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.035) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: linear-gradient(to bottom, transparent 0, black 12%, black 88%, transparent 100%);
}

#ambient-particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.65;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: auto; }

/* Ticker Superior de Estado */
.server-ticker {
  height: 35px;
  background: #040810;
  border-bottom: 1px solid var(--border-line);
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 50;
}
.server-ticker:before, .server-ticker:after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
}
.server-ticker:before { left: 0; background: linear-gradient(90deg, #040810, transparent); }
.server-ticker:after { right: 0; background: linear-gradient(-90deg, #040810, transparent); }
.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  min-width: max-content;
  animation: ticker 36s linear infinite;
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ticker-track span { display: inline-flex; gap: 6px; }
.ticker-track b { color: var(--primary); text-shadow: 0 0 10px var(--primary-glow); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Cabecera / Navbar */
.site-header {
  height: 82px;
  padding: 0 max(24px, calc((100vw - 1180px)/2));
  display: flex;
  align-items: center;
  gap: 35px;
  border-bottom: 1px solid var(--border-line);
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}
.brand {
  display: flex;
  align-items: center;
}
.brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px var(--primary-glow));
  transition: transform 0.25s ease, filter 0.25s ease;
}
.brand:hover img {
  transform: scale(1.04);
  filter: drop-shadow(0 0 18px var(--primary-glow-intense));
}
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--text-muted);
  transition: 0.2s;
  position: relative;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--text-bright);
  text-shadow: 0 0 12px var(--primary-glow);
}
.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Contenedor de Auth Móvil oculto en Desktop */
.mobile-nav-auth {
  display: none;
}

/* Botón Hamburguesa Móvil */
.menu-toggle {
  display: none;
  background: rgba(10, 26, 50, 0.7);
  border: 1px solid var(--border-line);
  color: var(--primary);
  font-size: 22px;
  line-height: 1;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle:hover, .menu-toggle:focus {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
  outline: none;
}

/* Botones del Sistema */
.btn {
  border: 1px solid var(--border-line);
  padding: 11px 20px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}
.btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 8px 25px var(--primary-glow);
}
.btn.gold, .btn.primary {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 35%, #94a3b8 70%, #e2e8f0 100%);
  border-color: #e2e8f0;
  color: #050e1a !important;
  font-weight: 800;
  letter-spacing: 1.2px;
  box-shadow: 0 4px 18px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn.gold:hover, .btn.primary:hover {
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #cbd5e1 100%);
  box-shadow: 0 8px 28px var(--primary-glow-intense), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  color: #000 !important;
  transform: translateY(-2px) scale(1.02);
}
.btn.gold::after, .btn.primary::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: 0.5s;
}
.btn.gold:hover::after, .btn.primary:hover::after {
  left: 150%;
}
.btn.blue {
  background: linear-gradient(180deg, #38bdf8, #0284c7);
  border-color: #7dd3fc;
  color: #030a16;
  font-weight: 800;
  box-shadow: 0 10px 26px var(--primary-glow);
}
.btn.blue:hover {
  background: linear-gradient(180deg, #7dd3fc, #0ea5e9);
  box-shadow: 0 12px 30px var(--primary-glow-intense);
}
.btn.ghost, .btn.glass {
  background: rgba(10, 23, 44, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #eefbf4;
  backdrop-filter: blur(8px);
}
.btn.ghost:hover, .btn.glass:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 16px var(--primary-glow);
}
.btn.large { padding: 15px 25px; font-size: 15px; }

/* Botones específicos de Header Nav */
.nav-actions .btn {
  padding: 9px 18px;
  font-size: 12.5px;
  letter-spacing: 1.2px;
}
.menu-toggle { display: none; background: none; border: 0; color: #fff; font-size: 25px; }

/* Hero Section Clásico */
.hero {
  min-height: 780px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(var(--primary-rgb), 0.22), transparent 35%),
    linear-gradient(180deg, #070e1c 0%, #070e1c 55%, var(--bg) 100%);
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 12, 24, 0.5), transparent 30%, transparent 70%, rgba(6, 12, 24, 0.5)),
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(56, 189, 248, 0.02) 120px),
    repeating-linear-gradient(0deg, transparent 0 119px, rgba(56, 189, 248, 0.02) 120px);
  mask-image: linear-gradient(to bottom, black, transparent 95%);
}
.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 780px;
  padding: 50px 20px;
}
.hero-logo {
  width: 130px;
  height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 0 25px var(--primary-glow));
  margin-bottom: -20px;
}
.eyebrow {
  display: block;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 4px;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 12px;
  text-shadow: 0 0 12px var(--primary-glow);
}
.hero h1, .section h2 { font-family: Rajdhani, Arial, sans-serif; margin: 0; }
.hero h1 {
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.98;
  text-shadow: 0 8px 35px #000;
}
.hero h1 strong {
  color: var(--primary);
  text-shadow: 0 0 30px var(--primary-glow);
}
.hero-content > p {
  max-width: 650px;
  margin: 24px auto;
  color: var(--text-muted);
  font-size: 19px;
  line-height: 1.6;
}
.hero-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 14px;
}
.online-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  box-shadow: 0 0 12px var(--primary);
}
.hero-char {
  position: absolute;
  bottom: 0;
  height: 68%;
  max-width: 36vw;
  object-fit: contain;
  filter: drop-shadow(0 20px 35px #000);
  opacity: 0.8;
  z-index: 2;
}
.hero-char-left { left: -1%; transform: scaleX(-1); }
.hero-char-right { right: -1%; }
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.35;
}
.orb-one {
  width: 320px;
  height: 320px;
  background: #0e3864;
  left: 8%;
  top: 16%;
  box-shadow: 0 0 120px var(--primary);
}
.orb-two {
  width: 260px;
  height: 260px;
  background: #0a2645;
  right: 9%;
  top: 22%;
  box-shadow: 0 0 110px #38bdf8;
}
.scroll-cue {
  position: absolute;
  bottom: 24px;
  z-index: 5;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-dim);
}

/* Hero Compacto (Home Principal) */
.hero.hero-compact {
  height: 490px;
  min-height: 490px;
  display: block;
  position: relative;
  overflow: hidden;
  background: #060c18;
  border-bottom: 1px solid var(--border-line);
}
.hero.hero-compact::before {
  display: none;
}
.hero.hero-compact::after {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 60% 45%, rgba(var(--primary-rgb), 0.15), transparent 45%);
  mix-blend-mode: screen;
  animation: heroGlow 7s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  from { opacity: 0.45; transform: scale(1); }
  to { opacity: 0.75; transform: scale(1.025); }
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: saturate(1.15) brightness(1.06);
}
.hero-backdrop:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 8, 16, 0.72) 0%, rgba(3, 8, 16, 0.35) 42%, transparent 70%),
    linear-gradient(180deg, transparent 75%, rgba(3, 8, 16, 0.90) 100%);
  pointer-events: none;
}
.hero-backdrop:after {
  display: none;
}
.hero-layout {
  height: 100%;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  align-items: center;
  gap: 38px;
  padding-block: 45px;
}
.hero-copy { max-width: 460px; padding-top: 4px; position: relative; z-index: 5; }
.hero-copy .eyebrow { color: var(--primary); letter-spacing: 0.4px; font-size: 14px; margin-bottom: 10px; text-shadow: 0 0 10px rgba(0, 0, 0, 0.8); }
.hero-copy h1 {
  font-family: Rajdhani, Arial, sans-serif;
  font-size: 58px;
  line-height: 0.86;
  letter-spacing: -2px;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9), 0 8px 30px #000;
  font-weight: 700;
}
.hero-copy h1 strong {
  color: var(--primary);
  text-shadow: 0 0 28px var(--primary-glow), 0 4px 15px rgba(0, 0, 0, 0.9);
}
.hero-copy > p { max-width: 430px; margin: 22px 0 20px; color: #e2e8f0; font-size: 17px; line-height: 1.45; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95); }
.hero-copy .hero-buttons { justify-content: flex-start; }
.hero-community { display: flex; align-items: center; gap: 12px; margin-top: 21px; color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.4px; }
.hero-community a {
  width: 28px; height: 28px;
  border: 1px solid var(--border-line);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  background: rgba(8, 20, 38, 0.7);
  transition: all 0.25s ease;
  text-decoration: none;
}
.hero-community a i {
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.hero-community a:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
  transform: translateY(-2px);
}
.hero-community a:hover i {
  transform: scale(1.1);
}
.hero-main-character {
  position: absolute;
  z-index: 2;
  height: 104%;
  max-width: 48vw;
  object-fit: contain;
  bottom: -4%;
  left: 57%;
  transform: translateX(-50%);
  filter: drop-shadow(0 24px 38px rgba(0, 0, 0, 0.88)) drop-shadow(0 0 28px rgba(var(--primary-rgb), 0.24));
  opacity: 0.96;
  animation: floatCharacter 5s ease-in-out infinite;
}
@keyframes floatCharacter {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-7px); }
}

/* Card de Estado del Servidor en Hero */
.server-status-card {
  position: relative;
  z-index: 6;
  background: linear-gradient(180deg, rgba(10, 26, 50, 0.96), rgba(6, 14, 28, 0.95));
  border: 1px solid var(--border-active);
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 20px var(--primary-glow-subtle);
  backdrop-filter: blur(10px);
  max-width: 260px;
}
.status-label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 14px; }
.status-online { color: var(--primary); font-size: 12px; font-weight: 700; margin-bottom: 3px; text-shadow: 0 0 10px var(--primary-glow); }
.online-count { display: block; font-size: 48px; line-height: 1; margin-top: 8px; font-family: Rajdhani, Arial, sans-serif; color: var(--text-bright); text-shadow: 0 0 20px var(--primary-glow); }
.server-status-card > small { font-size: 10px; color: var(--text-muted); font-weight: 700; }
.server-status-card dl { margin: 15px 0 12px; border-top: 1px solid var(--border-line); }
.server-status-card dl div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--border-line); font-size: 11px; }
.server-status-card dt { color: var(--text-muted); }
.server-status-card dd { margin: 0; font-weight: 700; color: var(--text-bright); }
.server-detail-link {
  display: block;
  border: 1px solid var(--border-line);
  padding: 10px 8px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.05);
  transition: 0.2s;
}
.server-detail-link:hover {
  border-color: var(--primary);
  background: rgba(56, 189, 248, 0.15);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* Secciones Generales */
.section { padding: 95px 0; position: relative; }
.section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(1180px, calc(100% - 40px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.28), transparent);
}
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.section h2 { font-size: clamp(28px, 4vw, 44px); color: var(--text-bright); text-shadow: 0 0 15px rgba(var(--primary-rgb), 0.2); }
.section-head > a { color: var(--primary); font-size: 14px; font-weight: 700; }
.compact-head { margin-bottom: 22px; }
.compact-head h2 { font-size: 34px; }
.head-actions { display: flex; align-items: center; gap: 18px; }
.head-actions > a { font-size: 12px; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

/* Grid y Cards de Eventos */
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.event-card {
  background: linear-gradient(135deg, var(--panel), #071324);
  border: 1px solid var(--border-line);
  padding: 22px;
  display: grid;
  grid-template-columns: 65px 1fr auto;
  gap: 18px;
  align-items: center;
  box-shadow: var(--shadow);
  border-radius: 6px;
  backdrop-filter: blur(10px);
  transition: 0.25s ease;
}
.event-card.active {
  border-color: var(--border-active);
  background: linear-gradient(135deg, #0f2746, #071324);
  box-shadow: 0 0 25px var(--primary-glow-subtle);
}
.event-time { font-family: Rajdhani, Arial, sans-serif; color: var(--primary); font-size: 20px; text-shadow: 0 0 10px var(--primary-glow); }
.event-card small, .news-card small, .market-card small, .character-card small {
  color: var(--primary);
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
}
.event-card h3 { margin: 3px 0; font-family: Rajdhani, Arial, sans-serif; font-size: 17px; color: var(--text-bright); }
.event-card p { margin: 0; color: var(--text-muted); font-size: 14px; }
.event-card > b { color: var(--text); font-size: 13px; }

/* Grid de Noticias */
.news-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; }
.news-card {
  background: var(--panel);
  border: 1px solid var(--border-line);
  overflow: hidden;
  border-radius: 6px;
  backdrop-filter: blur(10px);
  transition: 0.25s ease;
}
.news-art { height: 190px; display: flex; align-items: flex-end; padding: 20px; background-size: cover; position: relative; }
.news-card.featured .news-art { height: 280px; }
.news-art:before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #070e1c, transparent); }
.news-art span { position: relative; font-family: Rajdhani, Arial, sans-serif; color: #fff; font-size: 22px; text-shadow: 0 2px 10px #000; }
.art-one { background: radial-gradient(circle at 30% 30%, #143d68, #091c32 60%, #040810); }
.art-two { background: radial-gradient(circle at 70% 30%, #103358, #081628 60%, #040810); }
.art-three { background: radial-gradient(circle at 50% 20%, #174878, #051c0e 60%, #040810); }
.news-body { padding: 22px; }
.news-body h3 { font-family: Rajdhani, Arial, sans-serif; margin: 8px 0; font-size: 20px; color: var(--text-bright); }
.news-body p { color: var(--text-muted); margin: 0 0 14px; }
.news-body a { color: var(--primary); font-weight: 700; transition: 0.2s; }
.news-body a:hover { color: var(--primary-light); text-shadow: 0 0 10px var(--primary-glow); }

/* Rankings Section (Home) */
.rankings-section {
  padding: 42px 0 54px;
  background:
    radial-gradient(circle at 18% 40%, rgba(var(--primary-rgb), 0.08), transparent 28%),
    radial-gradient(circle at 82% 35%, rgba(var(--secondary-rgb), 0.12), transparent 24%),
    linear-gradient(180deg, rgba(8, 20, 38, 0.96), rgba(6, 12, 24, 0.98));
  border-block: 1px solid var(--border-line);
}
.rank-four-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rank-panel {
  background: linear-gradient(180deg, rgba(11, 26, 48, 0.98), rgba(6, 12, 24, 0.98));
  border: 1px solid var(--border-line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}
.rank-panel header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 14px 14px;
  border-bottom: 1px solid var(--border-line);
  background: rgba(255, 255, 255, 0.025);
}
.rank-panel header h3 { margin: 0; font: 700 14px Rajdhani, sans-serif; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-bright); }
.rank-panel header a { font-size: 9px; color: var(--primary); text-transform: uppercase; font-weight: 700; }
.rank-panel ol { list-style: none; padding: 8px; margin: 0; }
.rank-panel li {
  display: grid;
  grid-template-columns: 20px 28px 1fr auto;
  align-items: center;
  gap: 7px;
  min-height: 52px;
  padding: 7px 6px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.08);
}
.rank-panel li:last-child { border: 0; }
.rank-panel li.winner {
  border: 1px solid currentColor;
  background: rgba(56, 189, 248, 0.04);
  border-radius: 4px;
}
.rank-panel li b { font-size: 11px; }
.rank-panel li strong { display: block; font-size: 12px; color: var(--text-bright); }
.rank-panel li small { display: block; color: var(--text-muted); font-size: 9px; }
.rank-panel li em { font-style: normal; font-weight: 800; font-size: 11px; }
.rank-avatar {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #0f2746;
  color: var(--primary);
  border: 1px solid var(--border-line);
}
.rank-panel.purple { color: #c084fc; }
.rank-panel.blue { color: var(--primary); }
.rank-panel.gold { color: #facc15; }
.rank-panel.green { color: var(--primary); }

/* Podio Clásico (Ranking Alternativo) */
.rank-tabs button, .slider-controls button {
  background: var(--panel);
  border: 1px solid var(--border-line);
  color: var(--text-muted);
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 4px;
  transition: 0.2s;
}
.rank-tabs button.active { color: #030a16; background: var(--primary); font-weight: 800; border-color: var(--primary); box-shadow: 0 0 15px var(--primary-glow); }
.ranking-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 25px; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 12px; }
.podium article {
  height: 270px;
  background: var(--panel);
  border: 1px solid var(--border-line);
  text-align: center;
  padding: 20px;
  position: relative;
  border-radius: 6px;
}
.podium article.first {
  height: 320px;
  border-color: var(--border-active);
  background: linear-gradient(180deg, #0f2d4f, var(--panel));
  box-shadow: 0 0 25px var(--primary-glow-subtle);
}
.podium span { position: absolute; top: 12px; left: 14px; font-family: Rajdhani, Arial, sans-serif; color: var(--primary); font-size: 24px; font-weight: 800; }
.podium img { height: 150px; max-width: 100%; object-fit: contain; }
.podium h3 { font-family: Rajdhani, Arial, sans-serif; margin: 4px; color: var(--text-bright); }
.podium p { color: var(--text-muted); margin: 0; }
.rank-list { background: var(--panel); border: 1px solid var(--border-line); border-radius: 6px; }
.rank-list div { display: grid; grid-template-columns: 36px 1fr 1fr 50px; padding: 20px; border-bottom: 1px solid var(--border-line); }
.rank-list em { color: var(--text-muted); font-style: normal; }
.rank-list strong { color: var(--primary); text-align: right; }

/* Carrusel y Mercado */
.market-section { padding-top: 48px; padding-bottom: 48px; }
.market-slider, .character-slider { overflow: hidden; position: relative; }
.market-slider:after, .character-slider:after {
  content: "AUTO";
  position: absolute;
  right: 10px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 12px;
  background: rgba(4, 22, 11, 0.88);
  border: 1px solid var(--border-active);
  color: var(--primary);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  pointer-events: none;
}
.market-slider .slider-track, .character-slider .slider-track { display: flex; gap: 14px; width: max-content; }
.market-card {
  flex: 0 0 210px;
  min-height: 300px;
  padding: 14px;
  background: linear-gradient(180deg, #0e203c, #071324);
  border: 1px solid var(--border-line);
  border-radius: 6px;
  transition: transform 0.28s, border-color 0.28s, box-shadow 0.28s;
}
.market-card .item-visual {
  height: 145px;
  display: grid;
  place-items: center;
  font-size: 64px;
  background: radial-gradient(circle at 50% 45%, rgba(var(--primary-rgb), 0.16), transparent 48%), linear-gradient(135deg, #122c4f, #081628);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--primary);
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.item-visual::after {
  content: "";
  position: absolute;
  inset: -60% -20%;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.12) 50%, transparent 65%);
  transform: translateX(-70%);
  animation: itemShine 5s linear infinite;
}
@keyframes itemShine { to { transform: translateX(70%); } }
.market-card h3 { font-size: 17px; margin: 8px 0 5px; color: var(--text-bright); }
.market-card small { color: var(--primary); letter-spacing: 0.14em; }
.market-card p { color: var(--text-muted); margin: 0 0 18px; }
.market-card footer, .character-card footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-line);
  display: flex;
  justify-content: space-between;
}
.market-card footer b, .character-card footer b { color: var(--primary); font-weight: 800; text-shadow: 0 0 10px var(--primary-glow); }

.character-card {
  flex: 0 0 390px;
  display: grid;
  grid-template-columns: 46% 54%;
  min-height: 235px;
  background: linear-gradient(135deg, #0f2746, #071324);
  border: 1px solid var(--border-line);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.28s, border-color 0.28s, box-shadow 0.28s;
}
.character-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  background: radial-gradient(circle at 50% 40%, rgba(var(--primary-rgb), 0.16), transparent 52%);
}
.character-card > div { padding: 30px 22px; }
.character-card small { color: var(--primary); letter-spacing: 0.14em; }
.character-card h3 { font-size: 28px; margin: 8px 0; color: var(--text-bright); font-family: Rajdhani, Arial, sans-serif; }
.character-card p { color: var(--text-muted); min-height: 70px; }

.market-card:hover, .character-card:hover, .streamer-card:hover, .news-card:hover, .event-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-active);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5), 0 0 25px var(--primary-glow);
}

.slider-controls { display: flex; gap: 7px; }
.slider-controls button {
  width: 40px;
  height: 36px;
  border: 1px solid var(--border-line);
  background: #0c182b;
  color: var(--text-bright);
  cursor: pointer;
}
.slider-controls button:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

/* Video & Streamers Section */
.video-section {
  background:
    linear-gradient(rgba(6, 12, 24, 0.94), rgba(6, 12, 24, 0.97)),
    radial-gradient(circle at 50% 0%, rgba(var(--primary-rgb), 0.14), transparent 42%);
  border-block: 1px solid var(--border-line);
}
.video-slider, .streamer-slider {
  overflow: hidden !important;
  position: relative !important;
  width: 100% !important;
}
.video-slider .slider-track, .streamer-slider .slider-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 16px !important;
  width: max-content !important;
  align-items: stretch !important;
}
.video-card {
  flex: 0 0 283px !important;
  width: 283px !important;
  min-width: 283px !important;
  max-width: 283px !important;
  background: linear-gradient(135deg, rgba(10, 23, 44, 0.92), rgba(6, 12, 24, 0.96));
  border: 1px solid var(--border-line);
  border-radius: 8px;
  overflow: hidden;
  padding: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(8px);
}
.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 30px var(--primary-glow);
}
.video-frame {
  aspect-ratio: 16/9;
  width: 100%;
  background: #000;
  border: 1px solid var(--border-line);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-card h3 {
  font-family: Rajdhani, Arial, sans-serif;
  font-size: 15px !important;
  font-weight: 700;
  color: var(--text-bright);
  margin: 10px 0 4px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.video-card p {
  font-family: Rajdhani, Arial, sans-serif;
  font-size: 13.5px !important;
  color: var(--text-muted);
  margin: 0 !important;
  line-height: 1.35;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.streamer-card {
  flex: 0 0 230px;
  width: 280px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--border-line);
  text-align: center;
  position: relative;
  border-radius: 6px;
}
.streamer-avatar {
  width: 90px;
  height: 90px;
  margin: auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #102d52, #081628);
  font-family: Rajdhani, Arial, sans-serif;
  font-size: 36px;
  border: 3px solid var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
}
.streamer-card h3 { font-family: Rajdhani, Arial, sans-serif; margin: 15px 0 5px; color: var(--text-bright); }
.streamer-card p { color: var(--text-muted); }
.streamer-card a { color: var(--primary); font-weight: 700; }
.live, .offline { position: absolute; top: 13px; right: 13px; font-size: 9px; font-weight: 700; letter-spacing: 1px; padding: 5px 8px; border-radius: 4px; }
.live { background: #ff2a4b; color: #fff; box-shadow: 0 0 12px rgba(255, 42, 75, 0.4); }
.offline { background: #0e203c; color: var(--text-muted); border: 1px solid var(--border-line); }

/* Widgets Flotantes Laterales */
.floating-widget {
  position: fixed;
  z-index: 45;
  background: linear-gradient(180deg, rgba(10, 23, 44, 0.96), rgba(6, 12, 24, 0.97));
  border: 1px solid var(--border-active);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.65), 0 0 30px var(--primary-glow-subtle), inset 0 1px 0 rgba(56, 189, 248, 0.12);
  backdrop-filter: blur(13px);
}
.floating-events { left: 18px; bottom: 18px; top: auto; width: 260px; padding: 12px; border-radius: 15px; transform: none; }
.floating-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 10px;
  color: var(--primary);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-line);
}
.floating-title span { display: flex; align-items: center; gap: 7px; }
.floating-minimize {
  width: 23px;
  height: 23px;
  border: 1px solid var(--border-line);
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.1);
  color: var(--primary);
  cursor: pointer;
}
.floating-event {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  padding: 9px;
  border: 1px solid var(--border-line);
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(14, 34, 62, 0.25), rgba(6, 12, 24, 0.45));
  transition: 0.22s;
}
.floating-event:hover { border-color: var(--primary); transform: translateX(3px); }
.floating-event.active {
  border-color: var(--primary);
  background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.22), rgba(7, 15, 28, 0.72));
  box-shadow: 0 0 18px var(--primary-glow);
}
.floating-event .event-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  background: linear-gradient(145deg, #103056, #081628);
  color: var(--primary);
  border: 1px solid var(--border-line);
}
.floating-event b { font-size: 11px; }
.floating-event em { font-style: normal; color: #fff; }
.floating-event time { font-size: 11px; font-weight: 800; color: var(--primary); }
.floating-event.active time, .floating-event.active b { color: var(--primary-light); }

.floating-social {
  right: 18px;
  top: calc(50% - 70px);
  width: 170px;
  padding: 10px;
  border-radius: 15px;
  transform: none;
  background: rgba(6, 16, 30, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.floating-social-primary a {
  margin: 0 !important;
}

.floating-social a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 9px;
  align-items: center;
  padding: 8px 7px;
  border: 1px solid var(--border-line);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(14, 32, 60, 0.45), rgba(6, 12, 24, 0.75));
  margin: 7px 0;
  transition: 0.22s;
  text-decoration: none;
}
.floating-social a:hover {
  border-color: var(--primary);
  transform: translateX(-4px);
  box-shadow: 0 0 18px var(--primary-glow);
}

/* Botón de gatillo para expandir hacia abajo */
.floating-social-expand-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 10px;
  margin-top: 8px;
  background: rgba(10, 26, 50, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 9px;
  color: #7dd3fc;
  font-family: Rajdhani, Arial, sans-serif !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.floating-social-expand-trigger:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 12px var(--primary-glow);
  transform: translateY(1px);
}

.floating-social-expand-trigger .expand-chevron {
  font-size: 10px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-social.expanded .floating-social-expand-trigger {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.5);
  color: #ffffff;
}

.floating-social.expanded .floating-social-expand-trigger .expand-chevron {
  transform: rotate(180deg);
}

/* Menú desplegable hacia abajo */
.floating-social-dropdown {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin-top 0.3s ease;
  margin-top: 0;
}

.floating-social.expanded .floating-social-dropdown {
  max-height: 500px;
  opacity: 1;
  pointer-events: auto;
  margin-top: 6px;
}

.floating-social-dropdown a {
  margin: 7px 0;
}
.floating-social a > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 800;
  color: white;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 0 13px rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}
.floating-social a > span i {
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.floating-social a:hover > span i {
  transform: scale(1.12);
}
.floating-social b { display: block; font-size: 11px; text-transform: uppercase; color: var(--text-bright); }
.floating-social small { display: block; color: var(--primary); text-transform: uppercase; font-size: 9px; font-weight: 700; }
.social-fb > span { background: linear-gradient(#56a1ff, #0c57bf); }
.social-discord > span { background: linear-gradient(#766cff, #4938ad); }
.social-whatsapp > span { background: linear-gradient(#62f986, #17b949); }
.social-youtube > span { background: linear-gradient(#ff4a4a, #c80000); }
.social-tiktok > span { background: linear-gradient(#333, #050505); }
.social-instagram > span { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-twitch > span { background: linear-gradient(#9146ff, #6441a5); }
.social-telegram > span { background: linear-gradient(#2aabee, #229ed9); }
.social-twitter > span, .social-x > span { background: linear-gradient(#242b33, #0f1419); }

.floating-widget.collapsed > *:not(.floating-title) { display: none; }
.floating-widget.collapsed { width: auto; }
.floating-widget.collapsed .floating-title { padding: 0; }

/* Pie de Página */
.site-footer { background: var(--bg-footer); border-top: 1px solid var(--border-line); padding-top: 65px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 45px; }
.footer-brand { font-size: 20px; }
.footer-brand img { width: 54px; height: 54px; }
.footer-grid p { color: var(--text-muted); }
.footer-grid h4 { font-family: Rajdhani, Arial, sans-serif; color: var(--primary); text-shadow: 0 0 10px var(--primary-glow); }
.footer-grid > div > a:not(.brand) { display: block; color: var(--text-muted); margin: 10px 0; transition: 0.2s; }
.footer-grid > div > a:not(.brand):hover { color: var(--primary); }
.copyright { text-align: center; border-top: 1px solid var(--border-line); margin-top: 50px; padding: 22px; color: var(--text-dim); font-size: 13px; }

.reveal { opacity: 0; transform: translateY(25px); transition: 0.7s; }
.reveal-visible { opacity: 1; transform: none; }
.include-error { padding: 20px; background: #38141a; color: #fff; border-radius: 6px; }

/* Responsive Media Queries */
@media (max-width: 1500px) {
  .floating-social { right: 8px; width: 148px; }
  .floating-events { left: 8px; width: 225px; }
  .floating-social a { grid-template-columns: 34px 1fr; padding: 6px; }
  .floating-social a > span { width: 31px; height: 31px; font-size: 16px; }
}
@media (max-width: 1280px) {
  .floating-social, .floating-events { display: none; }
}
@media (max-width: 1100px) {
  .rank-four-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-main-character { left: 62%; }
  .server-status-card { max-width: 240px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .rank-four-grid { grid-template-columns: 1fr; }
  .hero.hero-compact { height: auto; min-height: 560px; }
  .hero-layout { min-height: 560px; grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 48px; }
  .market-card { flex-basis: 76vw; }
  .character-card { flex-basis: 88vw; grid-template-columns: 42% 58%; }
  .compact-head h2 { font-size: 28px; }
  .head-actions > a { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
