/* =========================================================
   HADES ONE E'SPORTS — Tema competitivo
   Negro · Morado · Rojo · Blanco
   Optimizado: solo animaciones de opacity/transform, sin blur pesado
   ========================================================= */
:root {
  --bg: #09090d;
  --bg-2: #0e0e14;
  --surface: #14141c;
  --surface-2: #1b1b26;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);

  --purple: #7c3aed;
  --purple-2: #a78bfa;
  --purple-dark: #4c1d95;
  --red: #e11d48;
  --red-2: #ff4d6d;
  --red-dark: #9f1239;
  --white: #ffffff;
  --text: #ecebf2;
  --muted: #9b99ab;

  --light: #f2f0f6;        /* blanco suave, no lastima la vista */
  --light-card: #fbfafd;
  --ink: #16141f;
  --ink-muted: #5d5a6b;

  --ok: #22c55e; --warn: #f59e0b; --bad: #ef4444; --gold: #fbbf24;
  --exp: #f97316; --jungla: #22c55e; --mid: #a78bfa; --gold-lane: #facc15; --roam: #38bdf8;

  --grad: linear-gradient(120deg, var(--purple) 0%, var(--red) 100%);
  --font-h: 'Chakra Petch', 'Segoe UI', system-ui, sans-serif;
  --font-b: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --cut: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  --cut-sm: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  --radius: 6px;
  --nav-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: var(--bg); color: var(--text);
  font-family: var(--font-b); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before { /* luz ambiental fija y estática (sin costo al hacer scroll) */
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(124, 58, 237, .16), transparent 60%),
    radial-gradient(700px 500px at -5% 105%, rgba(225, 29, 72, .10), transparent 60%);
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--purple-2); text-decoration: none; }
a:hover { color: var(--white); }
h1, h2, h3, h4 { font-family: var(--font-h); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; color: var(--white); letter-spacing: .01em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; background: var(--white); color: var(--ink); font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--red-2); outline-offset: 3px; }

/* ---------- Transición entre páginas (nativa del navegador, costo cero) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .18s ease both; }
::view-transition-new(root) { animation: vt-in .28s ease both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Layout ---------- */
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 96px) 0; position: relative; }
.section-light { background: var(--light); color: var(--ink); }
.section-light h2, .section-light h3 { color: var(--ink); }
.section-light .muted { color: var(--ink-muted); }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.page-head { padding: calc(var(--nav-h) + 56px) 0 36px; text-align: center; }
.page-head p { max-width: 620px; margin: 0 auto; color: var(--muted); font-size: 1.05rem; }
.sec-head { margin-bottom: 36px; }
.sec-head.center p { max-width: 620px; margin-inline: auto; }
.sec-head p { color: var(--muted); }
.section-light .sec-head p { color: var(--ink-muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px;
  font-family: var(--font-h); font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--red-2);
}
.eyebrow::before { content: ''; width: 18px; height: 3px; background: var(--grad); }
.section-light .eyebrow { color: var(--red); }
.title-xl { font-size: clamp(1.9rem, 4.2vw, 3rem); text-transform: uppercase; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.red { color: var(--red-2); }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  background: rgba(9, 9, 13, .72); border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s;
}
.nav.scrolled { background: rgba(9, 9, 13, .96); border-color: var(--line); }
.nav-inner { height: 100%; width: min(1240px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); }
.brand:hover { color: var(--white); }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--font-h); font-weight: 700; font-size: 1.05rem; letter-spacing: .08em; line-height: 1.05; }
.brand em { display: block; font-style: normal; font-size: .66rem; letter-spacing: .42em; color: var(--red-2); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a:not(.btn) {
  position: relative; padding: 8px 14px; color: #c9c7d4; font-weight: 600; font-size: .95rem; border-radius: var(--radius);
  transition: color .2s, background .2s;
}
.nav-links a:not(.btn):hover { color: var(--white); background: rgba(255, 255, 255, .05); }
.nav-links a.active { color: var(--white); }
.nav-links a.active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--grad); }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 11px 9px; background: none; border: 1px solid var(--line-2); border-radius: var(--radius); cursor: pointer; }
.nav-toggle span { display: block; height: 2px; margin: 4px 0; background: var(--white); transition: transform .25s, opacity .2s; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px 16px 22px; background: var(--bg-2); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .22s, opacity .22s, visibility .22s;
  }
  .nav-links a:not(.btn) { padding: 13px 14px; font-size: 1.05rem; }
  .nav-links a.active { background: rgba(124, 58, 237, .16); }
  .nav-links a.active::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; }
  .nav-cta { margin: 8px 0 0; }
  body.menu-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  body.menu-open .nav { background: var(--bg-2); }
  body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 24px; border: 0; cursor: pointer; clip-path: var(--cut-sm);
  font-family: var(--font-h); font-size: .9rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--white); background: var(--grad); transition: transform .15s, filter .15s;
}
.btn:hover { color: var(--white); filter: brightness(1.12); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-red { background: var(--red); }
.btn-red:hover { background: var(--red-2); filter: none; }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { color: var(--ink); }
.btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--white); filter: none; }
.section-light .btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(22, 20, 31, .25); }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: .78rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg { flex: none; }

/* ---------- Paneles ---------- */
.panel {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  clip-path: var(--cut); padding: clamp(20px, 3vw, 32px);
}
.neon-border::before { /* línea de acento morado→rojo arriba (estática, sin animar) */
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad);
}

/* ---------- Reveal (solo si hay JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.js [data-reveal="left"] { transform: translateX(-28px); }
.js [data-reveal="right"] { transform: translateX(28px); }
.js [data-reveal="zoom"] { transform: scale(.96); }
.js [data-reveal].in { opacity: 1; transform: none; }
[data-tilt] { transition: transform .2s ease-out; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: min(100vh, 900px); display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 60px; overflow: hidden; isolation: isolate; }
.hero::after { /* rejilla sutil */
  content: ''; position: absolute; inset: 0; z-index: -2; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}
#embers { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.live-chip {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-bottom: 22px; padding: 7px 14px 7px 10px;
  background: rgba(225, 29, 72, .12); border: 1px solid rgba(255, 77, 109, .35); border-radius: 40px;
  color: #ffd3dc; font-size: .88rem; font-weight: 600;
}
.live-chip:hover { color: var(--white); background: rgba(225, 29, 72, .2); }
.live-chip b { font-family: var(--font-h); letter-spacing: .12em; color: var(--red-2); font-size: .75rem; }
.live-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--red-2); box-shadow: 0 0 0 0 rgba(255, 77, 109, .6); animation: ping 1.8s infinite; }
.dot.ok { background: var(--ok); animation: none; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(255, 77, 109, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 109, 0); } }
.hero h1 { font-size: clamp(2.9rem, 8vw, 6rem); line-height: .95; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 .l2 { display: block; font-size: .42em; letter-spacing: .48em; margin-top: 14px; color: var(--red-2); }
.hero-text { max-width: 520px; font-size: 1.15rem; color: #cfcdd9; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 0; margin-top: 44px; border: 1px solid var(--line); background: rgba(20, 20, 28, .7); width: fit-content; max-width: 100%; clip-path: var(--cut-sm); }
.hero-stats > div { padding: 14px 26px; border-right: 1px solid var(--line); }
.hero-stats > div:last-child { border-right: 0; }
.hero-stats b { display: block; font-family: var(--font-h); font-size: 1.9rem; line-height: 1.1; color: var(--white); }
.hero-stats span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-visual { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; }
.hero-glow { position: absolute; inset: 16%; border-radius: 50%; background: radial-gradient(circle, rgba(124, 58, 237, .5), rgba(225, 29, 72, .18) 45%, transparent 70%); }
.hero-ring { position: absolute; inset: 4%; border-radius: 50%; border: 1px dashed rgba(167, 139, 250, .3); animation: rot 60s linear infinite; }
.hero-ring.r2 { inset: 15%; border: 1px solid rgba(255, 77, 109, .22); animation-duration: 40s; animation-direction: reverse; }
.hero-ring::before { content: ''; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--red-2); }
.hero-ring.r2::before { background: var(--purple-2); }
.hero-emblem { position: absolute; inset: 22%; display: grid; place-items: center; animation: float 6s ease-in-out infinite; }
.hero-emblem img { width: 82%; }
@keyframes rot { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-12px); } }
@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 24px); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 10px; }
  .hero-visual { max-width: 220px; order: -1; }
  .hero-text { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { margin-inline: auto; }
  .hero-stats > div { padding: 12px 18px; }
}

/* ---------- Accesos rápidos ---------- */
.quick { margin-top: -30px; position: relative; z-index: 2; }
.q-card {
  display: flex; flex-direction: column; gap: 6px; padding: 22px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); clip-path: var(--cut-sm);
  transition: transform .2s, border-color .2s, background .2s;
}
.q-card:hover { transform: translateY(-4px); border-color: rgba(255, 77, 109, .45); background: var(--surface-2); color: var(--text); }
.q-ico { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 8px; background: var(--grad); clip-path: var(--cut-sm); }
.q-card h3 { font-size: 1.1rem; margin: 0; }
.q-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.q-card .go { margin-top: auto; padding-top: 8px; color: var(--red-2); font-weight: 700; font-size: .88rem; }

/* ---------- Galería (slider ligero con scroll-snap) ---------- */
.slider { position: relative; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; clip-path: var(--cut); }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; aspect-ratio: 16 / 7; scroll-snap-align: start; background: var(--surface); overflow: hidden; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-ph { width: 100%; height: 100%; display: grid; place-items: center;
  background: radial-gradient(circle at 25% 30%, rgba(225, 29, 72, .35), transparent 45%), radial-gradient(circle at 75% 70%, rgba(124, 58, 237, .45), transparent 50%), var(--bg-2); }
.slide-ph img { width: 18%; opacity: .9; }
.slide-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px clamp(18px, 4vw, 40px) clamp(18px, 3vw, 30px); background: linear-gradient(transparent, rgba(9, 9, 13, .92)); }
.slide-cap h3 { font-size: clamp(1.15rem, 2.8vw, 2rem); text-transform: uppercase; margin: 0 0 4px; }
.slide-cap p { margin: 0; color: #d4d2dd; }
.slider-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.dots { display: flex; gap: 8px; flex-wrap: wrap; }
.dots button { width: 28px; height: 4px; padding: 0; border: 0; background: var(--line-2); cursor: pointer; transition: width .25s, background .25s; }
.dots button.on { width: 48px; background: var(--red-2); }
.arrows { display: flex; gap: 8px; }
.arrow { width: 44px; height: 44px; display: grid; place-items: center; color: var(--white); background: var(--surface); border: 1px solid var(--line-2); cursor: pointer; clip-path: var(--cut-sm); transition: background .2s; }
.arrow:hover { background: var(--purple); }
@media (max-width: 600px) { .slide { aspect-ratio: 4 / 3; } }

/* ---------- Misión / Visión (sección clara) ---------- */
.mv-card {
  position: relative; padding: 34px 30px; background: var(--light-card); color: var(--ink);
  border: 1px solid rgba(22, 20, 31, .08); clip-path: var(--cut); box-shadow: 0 10px 30px rgba(22, 20, 31, .06);
}
.mv-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); }
.mv-card h3 { font-size: 1.4rem; text-transform: uppercase; margin-bottom: 10px; }
.mv-card p { font-size: 1.08rem; color: #3b3848; margin: 0; }
.mv-ico { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 18px; background: var(--grad); clip-path: var(--cut-sm); }
.mv-num { position: absolute; right: 20px; top: 10px; font-family: var(--font-h); font-size: 4.5rem; font-weight: 700; line-height: 1; color: rgba(124, 58, 237, .08); }
.values { margin-top: 26px; }
.value { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--light-card); border: 1px solid rgba(22, 20, 31, .07); clip-path: var(--cut-sm); }
.value b { display: block; font-family: var(--font-h); color: var(--ink); font-size: 1.02rem; }
.value span { color: var(--ink-muted); font-size: .92rem; }
.value i { flex: none; width: 10px; height: 10px; margin-top: 7px; background: var(--red); transform: rotate(45deg); }
.value:nth-child(2) i { background: var(--purple); }

/* ---------- Tarjeta de jugador ---------- */
.players { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 22px; }
.player {
  --rc: var(--purple-2);
  position: relative; background: var(--surface); border: 1px solid var(--line); clip-path: var(--cut); overflow: hidden;
  transition: border-color .2s;
}
.player:hover { border-color: color-mix(in srgb, var(--rc) 55%, transparent); }
.player[data-rol="exp"] { --rc: var(--exp); }
.player[data-rol="jungla"] { --rc: var(--jungla); }
.player[data-rol="mid"] { --rc: var(--mid); }
.player[data-rol="gold"] { --rc: var(--gold-lane); }
.player[data-rol="roam"] { --rc: var(--roam); }
.player-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); }
.player-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.player:hover .player-photo img { transform: scale(1.05); }
.player-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, var(--surface) 98%); }
.scanline { display: none; }
.player-ph { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--rc) 30%, transparent), var(--bg-2) 70%); }
.player-ph span { font-family: var(--font-h); font-size: 5rem; font-weight: 700; color: rgba(255, 255, 255, .14); }
.player-role {
  position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(9, 9, 13, .82); border: 1px solid var(--rc); color: var(--white); border-radius: 4px;
}
.player-role i { width: 7px; height: 7px; background: var(--rc); transform: rotate(45deg); }
.player-cargo { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 4px 9px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--red); color: var(--white); border-radius: 4px; }
.player-body { position: relative; z-index: 2; padding: 0 18px 18px; margin-top: -56px; }
.player-nick { font-family: var(--font-h); font-size: 1.4rem; font-weight: 700; color: var(--white); text-transform: uppercase; word-break: break-word; line-height: 1.1; }
.player-name { color: var(--muted); font-size: .9rem; min-height: 1.4em; margin-bottom: 12px; }
.player-rank { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.player-rank small { display: block; font-size: .68rem; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.player-rank b { color: var(--white); font-size: .98rem; }
.player-hero { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.player-hero b { color: var(--purple-2); }

/* ---------- Formularios ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 600; color: #dcdbe5; }
.field label .opt { color: var(--muted); font-weight: 400; }
input[type=text], input[type=number], input[type=date], input[type=time], input[type=datetime-local],
input[type=password], input[type=url], input[type=tel], select, textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; font: inherit; font-size: 1rem; color: var(--white);
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #6f6d7e; }
input:focus, select:focus, textarea:focus { border-color: var(--purple-2); box-shadow: 0 0 0 3px rgba(124, 58, 237, .25); }
input:user-invalid, select:user-invalid { border-color: var(--red-2); }
select option { background: var(--surface); }
input[type=date]::-webkit-calendar-picker-indicator, input[type=time]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .7; cursor: pointer; }
textarea { min-height: 110px; resize: vertical; }
.file-drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; cursor: pointer; border: 1.5px dashed var(--line-2); border-radius: var(--radius); background: var(--bg-2); transition: border-color .2s, background .2s; }
.file-drop:hover, .file-drop:focus-within { border-color: var(--purple-2); background: rgba(124, 58, 237, .08); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop .fd-name { color: var(--muted); font-size: .95rem; }
.file-drop img.fd-prev { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; display: none; margin-left: auto; }
.form-actions { margin-top: 24px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0 0 16px; background: rgba(255, 255, 255, .015); }
.fs-title { font-family: var(--font-h); font-size: .95rem; color: var(--white); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fs-title .tag { font-family: var(--font-b); font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 3px; background: rgba(124, 58, 237, .25); color: #ddd6fe; letter-spacing: .06em; }
.form-steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; padding: 0; list-style: none; counter-reset: st; }
.form-steps li { counter-increment: st; display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--muted); }
.form-steps li::before { content: counter(st); width: 22px; height: 22px; display: grid; place-items: center; font-weight: 700; font-size: .75rem; border-radius: 50%; background: var(--surface-2); color: var(--white); }
.form-steps li + li::after { order: -1; content: ''; width: 18px; height: 1px; background: var(--line-2); }

.alert { padding: 13px 16px; margin-bottom: 16px; border-radius: var(--radius); border-left: 4px solid; font-weight: 500; }
.alert-ok { background: rgba(34, 197, 94, .1); border-color: var(--ok); color: #bbf7d0; }
.alert-error { background: rgba(239, 68, 68, .1); border-color: var(--bad); color: #fecaca; }
.alert-info { background: rgba(124, 58, 237, .12); border-color: var(--purple-2); color: #e9e3ff; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 4px; background: rgba(255, 255, 255, .08); color: #e4e2ec; }
.badge.ok, .badge.free { background: rgba(34, 197, 94, .15); color: #86efac; }
.badge.warn, .badge.paid { background: rgba(245, 158, 11, .16); color: #fcd34d; }
.badge.bad { background: rgba(239, 68, 68, .16); color: #fca5a5; }
.badge.live { background: var(--red); color: var(--white); }
.badge.mode { background: var(--purple); color: var(--white); }

/* ---------- Agenda de scrims ---------- */
.agenda { display: flex; flex-direction: column; gap: 10px; }
.agenda-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s; }
.agenda-item:hover { border-color: rgba(255, 77, 109, .4); }
.agenda-date { text-align: center; font-family: var(--font-h); line-height: 1; padding: 8px 0; background: var(--grad); color: var(--white); border-radius: 4px; }
.agenda-date b { display: block; font-size: 1.45rem; }
.agenda-date small { font-size: .62rem; letter-spacing: .16em; }
.agenda-team { font-weight: 700; color: var(--white); }
.agenda-time { font-family: var(--font-h); font-size: 1.1rem; color: var(--white); }
.vs-chip { font-family: var(--font-h); font-size: .72rem; color: var(--red-2); margin-right: 6px; }
.empty { text-align: center; padding: 32px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* ---------- Torneos ---------- */
.t-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; transition: transform .2s, border-color .2s; }
.t-card:hover { transform: translateY(-4px); border-color: rgba(255, 77, 109, .4); }
.t-banner { position: relative; aspect-ratio: 16 / 8; overflow: hidden; background: radial-gradient(circle at 80% 20%, rgba(225, 29, 72, .35), transparent 50%), linear-gradient(135deg, #2a1258, var(--bg-2)); }
.t-banner img { width: 100%; height: 100%; object-fit: cover; }
.t-mode { position: absolute; right: 14px; bottom: 10px; font-family: var(--font-h); font-weight: 700; font-size: 1.6rem; color: var(--white); }
.t-banner .ph-mode { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-h); font-size: 3.4rem; font-weight: 700; color: rgba(255, 255, 255, .1); }
.t-badges { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.t-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.t-body h3 { font-size: 1.2rem; margin: 0; }
.t-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; font-size: .95rem; }
.t-meta div small { display: block; font-size: .7rem; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.t-meta b { color: var(--white); font-weight: 600; }
.progress { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.progress i { display: block; height: 100%; background: var(--grad); border-radius: 3px; }
.t-body .btn { margin-top: auto; }
.t-detail-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .t-detail-head { grid-template-columns: 1fr; } }
.qr-box { display: grid; grid-template-columns: 160px 1fr; gap: 18px; align-items: center; padding: 18px; background: rgba(245, 158, 11, .06); border: 1px solid rgba(245, 158, 11, .3); border-radius: var(--radius); margin-bottom: 18px; }
.qr-box img { background: #fff; padding: 6px; border-radius: 4px; }
@media (max-width: 560px) { .qr-box { grid-template-columns: 1fr; text-align: center; } .qr-box img { margin: 0 auto; max-width: 200px; } }
.team-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.team-chip { padding: 10px 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; color: var(--white); display: flex; justify-content: space-between; gap: 8px; }
.prose { white-space: pre-line; color: #d0cfda; }

/* ---------- Brackets ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.tabs a { padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 40px; color: #cfcdd9; font-weight: 600; font-size: .92rem; transition: background .2s, color .2s; }
.tabs a:hover { color: var(--white); border-color: var(--white); }
.tabs a.on { background: var(--white); color: var(--ink); border-color: var(--white); }
.standings { width: 100%; border-collapse: collapse; font-size: .95rem; }
.standings th { font-size: .7rem; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; text-align: center; padding: 8px 6px; border-bottom: 1px solid var(--line-2); font-weight: 600; }
.standings th:nth-child(2), .standings td:nth-child(2) { text-align: left; }
.standings td { padding: 10px 6px; text-align: center; border-bottom: 1px solid var(--line); }
.standings tr.qual td:first-child { color: var(--white); font-weight: 700; box-shadow: inset 3px 0 var(--red); }
.standings td.pts { font-family: var(--font-h); font-weight: 700; color: var(--white); }
.legend { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .8rem; color: var(--muted); }
.legend i { width: 3px; height: 14px; background: var(--red); }
.matches { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.match-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; padding: 8px 12px; background: var(--bg-2); border-radius: 4px; font-weight: 500; font-size: .95rem; }
.match-row .a { text-align: right; }
.match-row .score { font-family: var(--font-h); font-weight: 700; color: var(--white); min-width: 64px; text-align: center; padding: 2px 8px; background: var(--surface-2); border-radius: 3px; }
.match-row .w { color: var(--white); font-weight: 700; }
.match-row .l { color: var(--muted); }
.bracket-scroll { overflow-x: auto; padding-bottom: 10px; }
.bracket { display: flex; gap: 40px; min-width: max-content; padding: 6px 2px; }
.b-round { display: flex; flex-direction: column; min-width: 220px; }
.b-round h4 { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red-2); text-align: center; margin-bottom: 14px; }
.b-col { display: flex; flex-direction: column; justify-content: space-around; flex: 1; gap: 16px; }
.b-match { position: relative; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius); }
.b-match.done { border-color: rgba(167, 139, 250, .45); }
.b-team { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; font-weight: 600; font-size: .95rem; }
.b-team + .b-team { border-top: 1px solid var(--line); }
.b-team.win { background: linear-gradient(90deg, rgba(124, 58, 237, .4), rgba(225, 29, 72, .12)); color: var(--white); }
.b-team.lose { color: var(--muted); }
.b-team.tbd { color: #6f6d7e; font-style: italic; font-weight: 400; }
.b-team b { font-family: var(--font-h); }
.b-round:not(:last-child) .b-match::after { content: ''; position: absolute; right: -21px; top: 50%; width: 20px; height: 1px; background: var(--line-2); }
.champion { text-align: center; padding: 30px 24px; margin: 0 auto 30px; max-width: 520px; }
.champion .crown { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 10px; background: rgba(251, 191, 36, .12); border-radius: 50%; color: var(--gold); }
.champion h3 { font-size: 1.9rem; color: var(--gold); margin-bottom: 4px; }

/* ---------- CTA ---------- */
.cta-band { text-align: center; padding: clamp(34px, 5vw, 56px) 24px; }
.cta-band h2 { font-size: clamp(1.4rem, 3.2vw, 2.1rem); text-transform: uppercase; }
.cta-band p { color: var(--muted); max-width: 440px; margin-inline: auto; }
.cta-red { background: linear-gradient(120deg, var(--red-dark), var(--red) 60%, #ff5f7e); border: 0; }
.cta-red p { color: #ffe4ea; }
.cta-red .eyebrow { color: var(--white); }
.cta-red .eyebrow::before { background: var(--white); }
.cta-purple { background: linear-gradient(120deg, var(--purple-dark), var(--purple)); border: 0; }
.cta-purple p { color: #ede9fe; }
.cta-purple .eyebrow { color: var(--white); }
.cta-purple .eyebrow::before { background: var(--white); }

/* ---------- Footer ---------- */
.footer { margin-top: 60px; background: #060609; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; padding: 48px 0 36px; }
.footer-brand p { color: var(--muted); max-width: 320px; margin-top: 14px; font-size: .95rem; }
.footer h4 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--white); margin-bottom: 12px; }
.footer-grid > div > a { display: block; color: var(--muted); padding: 4px 0; font-size: .95rem; }
.footer-grid > div > a:hover { color: var(--white); }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: background .2s, border-color .2s; }
.socials a:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 18px 0 28px; border-top: 1px solid var(--line); font-size: .82rem; color: #6f6d7e; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Datos de jugador en una sola fila en pantallas anchas */
.fieldset .form-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
