/* Identidad visual: e-sports competitivo en azul y celeste, tomada del logo oficial.
   Los colores estan centralizados en :root. Sin animaciones continuas: solo
   transiciones cortas, que se anulan con prefers-reduced-motion. */
:root {
  --bg: #040816;
  --bg-2: #07112b;
  --surface: #0a1838;
  --surface-2: #0e2250;
  --border: #1b3a7a;
  --text: #ffffff;
  --muted: #bfd0ec;

  --blue: #1767d8;
  --blue-deep: #0b3f9a;
  --cyan: #22d3ee;
  --cyan-soft: #7be9fb;
  --on-accent: #03112b;

  --amber-bg: #3a2a05;
  --amber-text: #ffd27a;
  --amber-border: #5c4410;

  --display: "Bahnschrift", "DIN Alternate", "Eurostile", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --cut: 16px;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  position: relative;
  margin: 0;
  min-width: 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
  background-color: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

a { color: inherit; }

img { max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 8px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--text);
  color: var(--on-accent);
  font-weight: 700;
}

.skip-link:focus { top: 8px; }

/* El atributo hidden debe ganar a cualquier display de componente. */
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Banner DEMO */
.demo-banner {
  padding: 8px 16px;
  background: var(--amber-bg);
  color: var(--amber-text);
  font-size: 0.85rem;
  text-align: center;
  border-bottom: 1px solid var(--amber-border);
}

/* Cabecera: logo a la izquierda; en pantallas angostas el menu es desplegable. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(4, 8, 22, 0.97);
  border-bottom: 1px solid var(--border);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan) 30%, var(--blue) 70%, transparent);
  opacity: 0.7;
  pointer-events: none;
}

.header-inner {
  max-width: 1320px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  min-height: var(--header-h);
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}

/* Resplandor cian sutil con CSS: el recurso conserva su nitidez. El trazo fino
   de 1 px separa las letras azul oscuro del fondo; el halo es solo ambiental. */
.brand img,
.hero-emblem {
  filter: drop-shadow(0 0 1px rgba(123, 233, 251, 0.85)) drop-shadow(0 0 8px rgba(34, 211, 238, 0.35));
}

.brand img {
  display: block;
  width: auto;
  height: 44px;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--cyan);
  border-radius: 4px;
  cursor: pointer;
}

.menu-toggle:hover { background: var(--surface-2); }

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--cyan);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.menu-icon { position: relative; }
.menu-icon::before,
.menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }

.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  /* 120 px cubre la cabecera aunque se reparta en dos filas con texto ampliado. */
  max-height: calc(100vh - 120px);
  max-height: calc(100dvh - 120px);
  overflow-y: auto;
  padding: 8px 16px 20px;
  background: #060e26;
  border-bottom: 2px solid var(--cyan);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

.site-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 4px;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.nav-link:hover { color: var(--cyan-soft); }
.nav-link[aria-current="location"] { color: var(--cyan); }

.nav-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.nav-actions .btn { flex: 1 1 0; }

/* Botones de esquinas recortadas. El resplandor va en el contenedor (filter) para que
   siga la forma recortada; el foco quita el recorte para que el contorno se vea entero. */
.btn {
  --btn-cut: 14px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 28px;
  background: linear-gradient(135deg, #7ff0ff, #25aef5);
  color: var(--on-accent);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(var(--btn-cut) 0, 100% 0, 100% calc(100% - var(--btn-cut)), calc(100% - var(--btn-cut)) 100%, 0 100%, 0 var(--btn-cut));
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.btn:hover { filter: brightness(1.12); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { clip-path: none; outline: 3px solid var(--text); outline-offset: 3px; }

.btn-small { --btn-cut: 10px; min-height: 44px; padding: 8px 16px; font-size: 0.85rem; }

.btn-ghost {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--text);
}

.btn-ghost::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  background: #061333;
  clip-path: polygon(calc(var(--btn-cut) - 1px) 0, 100% 0, 100% calc(100% - var(--btn-cut) + 1px), calc(100% - var(--btn-cut) + 1px) 100%, 0 100%, 0 calc(var(--btn-cut) - 1px));
  transition: background-color 0.15s ease;
}

.btn-ghost:hover { filter: none; }
.btn-ghost:hover::before { background: #0b2150; }
.btn-ghost:focus-visible::before { clip-path: none; }

.btn[aria-disabled="true"] {
  background: var(--surface-2);
  color: var(--muted);
  cursor: not-allowed;
  pointer-events: none;
  filter: none;
}

.btn[aria-disabled="true"]::before { display: none; }

.actions .btn { flex: 1 1 220px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.3));
}

/* Portada */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 40px 0 88px;
  background:
    radial-gradient(60% 70% at 78% 30%, rgba(23, 103, 216, 0.38), transparent 70%),
    radial-gradient(50% 50% at 5% 100%, rgba(34, 211, 238, 0.16), transparent 70%),
    linear-gradient(180deg, #050b1f, var(--bg));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hatch {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(118deg, rgba(34, 211, 238, 0.06) 0 1px, transparent 1px 18px);
  -webkit-mask-image: radial-gradient(70% 80% at 70% 40%, #000, transparent 75%);
  mask-image: radial-gradient(70% 80% at 70% 40%, #000, transparent 75%);
}

.shard { position: absolute; }

.shard-a {
  left: -14%;
  bottom: -4%;
  width: 52%;
  height: 58%;
  background: linear-gradient(200deg, rgba(23, 103, 216, 0.55), rgba(23, 103, 216, 0.04));
  clip-path: polygon(26% 0, 100% 0, 74% 100%, 0 100%);
}

.shard-b {
  left: 4%;
  bottom: -4%;
  width: 34%;
  height: 40%;
  background: linear-gradient(200deg, rgba(34, 211, 238, 0.4), rgba(34, 211, 238, 0.03));
  clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%);
}

.shard-c {
  right: -14%;
  bottom: -4%;
  width: 46%;
  height: 52%;
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.4), rgba(23, 103, 216, 0.03));
  clip-path: polygon(0 0, 74% 0, 100% 100%, 26% 100%);
}

.shard-d {
  right: 2%;
  bottom: -4%;
  width: 28%;
  height: 30%;
  background: linear-gradient(160deg, rgba(23, 103, 216, 0.5), rgba(23, 103, 216, 0.03));
  clip-path: polygon(0 0, 70% 0, 100% 100%, 30% 100%);
}

.hero-grid {
  display: grid;
  gap: 24px;
  align-items: center;
}

.hero-copy { position: relative; }

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding-left: 14px;
  color: var(--cyan-soft);
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.85rem;
  border-left: 4px solid var(--cyan);
}

h1 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(2.3rem, 9vw, 4.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.accent { color: var(--cyan); }

.lead {
  max-width: 560px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Conjunto grafico: escudo al frente y personaje detras, desplazado a la derecha. Todo se
   dimensiona en porcentajes de la caja, asi escala igual en celular y en escritorio. */
.hero-visual {
  position: relative;
  isolation: isolate;
  justify-self: center;
  width: min(100%, 440px);
  aspect-ratio: 1 / 0.98;
}

.hero-rings {
  position: absolute;
  left: -7%;
  top: 50%;
  z-index: 0;
  width: 72%;
  height: auto;
  aspect-ratio: 1;
  transform: translateY(-50%);
  overflow: visible;
}

.ring { fill: none; stroke: rgba(34, 211, 238, 0.35); stroke-width: 1.5; }
.ring-dash { stroke: rgba(34, 211, 238, 0.5); stroke-width: 6; stroke-dasharray: 2 12; }
.ring-dash-fine { stroke: rgba(23, 103, 216, 0.7); stroke-width: 3; stroke-dasharray: 40 8; }

/* Luz ambiental detras del personaje (degradado estatico, sin desenfoque costoso). */
.hero-aura {
  position: absolute;
  right: 0;
  bottom: -2%;
  z-index: 0;
  width: 76%;
  height: 100%;
  background: radial-gradient(closest-side, rgba(34, 211, 238, 0.28), rgba(23, 103, 216, 0.16) 55%, transparent 100%);
}

.hero-fighter {
  position: absolute;
  right: -1%;
  bottom: 0;
  z-index: 1;
  height: 100%;
  aspect-ratio: 444 / 795;
}

.hero-fighter img {
  display: block;
  width: 100%;
  height: 100%;
  filter: brightness(0.92) drop-shadow(0 0 1px rgba(123, 233, 251, 0.6)) drop-shadow(0 0 16px rgba(34, 211, 238, 0.32));
  /* Los pies se disuelven en el fondo para dar profundidad. */
  -webkit-mask-image: linear-gradient(#000 86%, transparent);
  mask-image: linear-gradient(#000 86%, transparent);
}

/* Resplandor de energia sobre la mano abierta del personaje (CSS propio). */
.fighter-orb {
  position: absolute;
  left: 78%;
  top: 16%;
  width: 24%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(123, 233, 251, 0.75) 22%, rgba(34, 211, 238, 0.28) 55%, transparent 100%);
  pointer-events: none;
}

.hero-emblem {
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 2;
  display: block;
  width: 58%;
  height: auto;
  transform: translateY(-50%);
  filter: drop-shadow(0 0 1px rgba(123, 233, 251, 0.85)) drop-shadow(0 0 20px rgba(34, 211, 238, 0.4)) drop-shadow(8px 6px 14px rgba(2, 6, 18, 0.7));
}

/* Secciones */
.section {
  padding: 56px 0;
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.section-tournaments,
.section-rules { background: linear-gradient(180deg, transparent, rgba(14, 34, 80, 0.35), transparent); }

h2 {
  position: relative;
  margin: 0 0 24px;
  padding-bottom: 14px;
  font-family: var(--display);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 5px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.note { margin: 0; color: var(--muted); }

.badge-demo {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  color: var(--amber-text);
  border: 1px solid var(--amber-border);
  border-radius: 999px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  vertical-align: middle;
}

/* Tarjetas de esquinas recortadas: el borde es el fondo del elemento y el relleno
   va en ::before, ambos con el mismo recorte. */
.tournament,
.notice,
.tier,
.panel,
.champ,
.team {
  --card-cut: 22px;
  position: relative;
  isolation: isolate;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.85), rgba(23, 103, 216, 0.35));
  clip-path: polygon(0 0, calc(100% - var(--card-cut)) 0, 100% var(--card-cut), 100% 100%, var(--card-cut) 100%, 0 calc(100% - var(--card-cut)));
}

.tournament::before,
.notice::before,
.tier::before,
.panel::before,
.champ::before,
.team::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: linear-gradient(160deg, var(--surface-2), var(--surface) 60%);
  clip-path: polygon(0 0, calc(100% - var(--card-cut) + 0.6px) 0, 100% calc(var(--card-cut) - 0.6px), 100% 100%, calc(var(--card-cut) - 0.6px) 100%, 0 calc(100% - var(--card-cut) + 0.6px));
}

/* Torneos */
.tournaments {
  display: grid;
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

/* Tarjeta de torneo: portada arriba y la informacion (texto HTML) debajo. */
.tournament {
  display: flex;
  flex-direction: column;
}

.tournament.empty {
  display: block;
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

.t-body {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: auto 1fr;
  align-content: start;
  align-items: center;
  gap: 8px 16px;
  padding: 22px 28px 24px 20px;
}

/* Portadas: misma proporcion en ambas tarjetas, asi las dos miden lo mismo. */
.t-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 1px 1px 0;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(23, 103, 216, 0.45), transparent 75%),
    linear-gradient(180deg, #071235, #040a1c);
}

/* Marco de esquinas recortadas: el borde es el fondo del contenedor y la imagen va 1 px adentro. */
.map,
.duel-frame {
  --cut: 14px;
  position: absolute;
  padding: 1px;
  background: linear-gradient(135deg, #7be9fb, var(--blue));
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

.map img,
.duel-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(0 0, calc(100% - var(--cut) + 0.6px) 0, 100% calc(var(--cut) - 0.6px), 100% 100%, calc(var(--cut) - 0.6px) 100%, 0 calc(100% - var(--cut) + 0.6px));
}

/* Tres mapas en piramide: el segundo arriba y centrado; el primero y el tercero abajo. */
.t-cover-maps { filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.35)); }

.map { width: 38%; aspect-ratio: 1; }
.map-top { z-index: 1; left: 31%; top: 1%; }
.map-left { z-index: 2; left: 9%; top: 48.5%; }
.map-right { z-index: 2; right: 9%; top: 48.5%; }

/* Duelo 4 VS 4: imagen vertical completa, centrada, con margenes oscuros que recuerdan el azul
   (rayos) y el naranja (llamas) de la propia ilustracion. */
.t-cover-duel {
  background:
    radial-gradient(60% 70% at 0% 50%, rgba(23, 103, 216, 0.6), transparent 70%),
    radial-gradient(60% 70% at 100% 50%, rgba(255, 106, 0, 0.35), transparent 70%),
    linear-gradient(180deg, #071235, #040a1c);
}

.duel-frame {
  --cut: 16px;
  top: 3%;
  bottom: 3%;
  left: 50%;
  aspect-ratio: 765 / 1024;
  transform: translateX(-50%);
  filter: none;
}

.t-cover-duel { filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.3)); }

.t-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 8px;
  background: var(--bg);
  border: 1px solid var(--cyan);
  text-align: center;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.t-day { font-family: var(--display); font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.t-month { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; }

.t-info h3 { margin: 0; font-family: var(--display); font-size: 1.2rem; letter-spacing: 0.02em; text-transform: uppercase; }
.t-info p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.t-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  grid-column: 1 / -1;
  gap: 8px;
}

.t-demo { margin-left: 0; }

.t-caption {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.t-status {
  padding: 2px 12px;
  color: var(--cyan-soft);
  border: 1px solid rgba(34, 211, 238, 0.6);
  border-radius: 999px;
  font-size: 0.85rem;
}

/* Precio e inscripcion dentro de la tarjeta de torneo: el precio grande y, debajo, «Registrarse». */
.t-price {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 9vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
}

.t-action {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
  margin-top: 6px;
}

.t-action .btn { width: 100%; }

/* Avisos */
.notices {
  display: grid;
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.notice { padding: 22px 30px 22px 22px; }
.notice.empty { color: var(--muted); text-align: center; }
.notice h3 { margin: 0 0 8px; font-family: var(--display); font-size: 1.2rem; letter-spacing: 0.02em; text-transform: uppercase; }
.notice p { margin: 0; color: var(--muted); }
.notice .notice-date { margin: 0 0 6px; color: var(--cyan-soft); font-size: 0.85rem; }

/* Membresia */
/* Tarjetas de precios: la membresia va resaltada en azul; ambas con esquinas recortadas. */
.tiers {
  display: grid;
  gap: 20px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.tier { display: flex; flex-direction: column; padding: 28px 30px 28px 24px; }

.tier-featured {
  background: linear-gradient(135deg, #7be9fb, var(--blue));
  box-shadow: none;
}

.tier-featured::before { background: linear-gradient(160deg, #0f3f9a, #0a2a68 70%); }

.tier h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tier-sub { margin: 0 0 16px; color: var(--cyan-soft); font-size: 0.95rem; }

.tier-price {
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: clamp(3rem, 10vw, 4rem);
  font-weight: 800;
  line-height: 1;
}

.tier-cur { font-size: 0.5em; color: var(--cyan); }

.tier-per {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.tier-list { margin: 0 0 24px; padding: 0; list-style: none; color: var(--muted); }

.tier-list li { position: relative; margin-bottom: 10px; padding-left: 28px; }

.tier-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--cyan);
  border-bottom: 3px solid var(--cyan);
  transform: rotate(-45deg);
}

.tier .btn { width: 100%; margin-top: auto; }

.panel { padding: 22px 30px 22px 22px; }

.plan {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.plan li { margin-bottom: 8px; }
.plan li:last-child { margin-bottom: 0; }

/* Archivo historico: Campeones y Equipos */
.section-archive h2 { margin-bottom: 16px; }

.badge-archive {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  color: var(--cyan-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  vertical-align: middle;
}

.section-archive .note { max-width: 70ch; }

.champions,
.teams {
  display: grid;
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.champions { grid-template-columns: minmax(0, 1fr); }
.teams { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.champ.empty,
.team.empty { grid-column: 1 / -1; padding: 22px; color: var(--muted); text-align: center; }

/* Tarjeta de campeon: imagen completa (sin recortes) y datos debajo. */
.champ { display: flex; flex-direction: column; }

.champ-media {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 1px 1px 0;
  background: #02060f;
  cursor: pointer;
}

/* El marco es siempre 4:5; la imagen se ve completa (contain), sin recortes. */
.champ-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

.champ-body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 4px; padding: 16px 20px 22px 18px; }

.champ-ed {
  margin: 0;
  color: var(--cyan-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.champ-body h3 { margin: 0; font-family: var(--display); font-size: 1.35rem; letter-spacing: 0.02em; line-height: 1.2; text-transform: uppercase; }
.champ-result { margin: 0; color: var(--text); font-size: 0.95rem; }
.champ-date { margin: 0; color: var(--muted); font-size: 0.85rem; }
.champ-open { align-self: flex-start; margin-top: auto; }
.champ-result + .champ-date { margin-bottom: 12px; }

/* Tarjeta de equipo: logo cuadrado (o nombre en tipografia), nombre y participaciones. */
.team {
  --card-cut: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 12px 16px;
  text-align: center;
}

.team-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
}

.team-logo img { width: 100%; height: 100%; object-fit: contain; }

.team-logo-text {
  padding: 10px;
  background: linear-gradient(160deg, var(--surface-2), var(--bg));
  color: var(--cyan-soft);
  font-family: var(--display);
  font-size: clamp(0.95rem, 4.2vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.team-name { margin: 10px 0 6px; font-family: var(--display); font-size: 0.95rem; letter-spacing: 0.02em; line-height: 1.2; text-transform: uppercase; }

.team-parts { width: 100%; margin: 0; padding: 0; list-style: none; font-size: 0.8rem; }
.team-parts li { display: flex; flex-direction: column; margin-top: 4px; }
.team-ed { color: var(--muted); }
.team-stage { color: var(--text); font-weight: 600; }
.team-parts .is-champion .team-stage { color: var(--cyan); }

/* Visor de imagenes y videos (dialog modal) */
.viewer {
  width: min(96vw, 960px);
  max-width: 96vw;
  max-height: 96dvh;
  margin: auto;
  padding: 0;
  overflow: visible;
  color: var(--text);
  background: transparent;
  border: 0;
}

.viewer::backdrop { background: rgba(2, 6, 18, 0.88); }

html.viewer-open { overflow: hidden; }

.viewer-box {
  --card-cut: 18px;
  display: grid;
  gap: 10px;
  max-height: 96dvh;
  padding: 14px 16px 16px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface) 60%);
  border: 1px solid var(--border);
  clip-path: polygon(0 0, calc(100% - var(--card-cut)) 0, 100% var(--card-cut), 100% 100%, var(--card-cut) 100%, 0 calc(100% - var(--card-cut)));
}

.viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.viewer-title {
  margin: 0;
  padding: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.viewer-title::after { display: none; }

.viewer-stage { display: flex; align-items: center; justify-content: center; min-height: 0; background: #02060f; }

.viewer-media {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 210px);
  max-height: calc(100dvh - 210px);
}

.viewer-caption { margin: 0; color: var(--muted); font-size: 0.9rem; }

.viewer-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.viewer-count { color: var(--muted); font-size: 0.9rem; }

/* CTA */
.cta {
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(23, 103, 216, 0.22));
  border-top: 1px solid var(--border);
}

.cta h2::after { left: 50%; transform: translateX(-50%); }
.cta .lead { margin-left: auto; margin-right: auto; }
.cta .actions { justify-content: center; }

/* Redes sociales: enlaces de fondo azul oscuro, borde celeste y brillo cian suave al pasar el cursor. */
.social-list,
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  background: #061333;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid rgba(34, 211, 238, 0.6);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.social-link:hover {
  background: #0a2150;
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.45);
}

.social-icon { width: 22px; height: 22px; flex: 0 0 auto; color: var(--cyan); }

/* Fila discreta de la portada: solo iconos, todos del mismo tamano. */
.social-row { margin-top: 24px; gap: 10px; }
.social-link-icon { width: 44px; min-height: 44px; padding: 0; border-color: rgba(34, 211, 238, 0.4); }

/* Bloque principal de la comunidad, bajo el boton de WhatsApp. */
.social { margin-top: 48px; }
.social-title { margin: 0 0 16px; color: var(--muted); }
.social-list { justify-content: center; }

/* Footer */
.site-footer {
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.site-footer p { margin: 0 0 4px; }

/* Tablet */
@media (min-width: 600px) {
  .brand img { height: 50px; }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 0; }
  .champions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teams { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .hero { padding: 64px 0 112px; }
  .hero-visual { width: min(100%, 480px); }
  .actions .btn { flex: 0 0 auto; }
}

/* Las dos tarjetas de torneo van lado a lado desde 900 px. */
@media (min-width: 900px) {
  .tournaments { grid-template-columns: repeat(2, 1fr); }
  .teams { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
  .champions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Escritorio: navegacion en la misma fila que el logo. */
@media (min-width: 1200px) {
  :root { --header-h: 84px; --cut: 20px; }

  .brand img { height: 56px; }
  .menu-toggle { display: none; }

  .site-nav {
    position: static;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: transparent;
    border-bottom: 0;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav-list { display: flex; gap: 2px; }

  .nav-link {
    min-height: 44px;
    padding: 0 10px;
    font-size: 0.95rem;
    border-bottom: 3px solid transparent;
  }

  .nav-link[aria-current="location"] { border-bottom-color: var(--cyan); }

  .nav-actions { margin: 0 0 0 8px; white-space: nowrap; }
  .nav-actions .btn { flex: 0 0 auto; }

  .hero { padding: 72px 0 128px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%); }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 32px; }
  .hero-visual { width: min(100%, 520px); }
  .actions .btn { flex: 0 0 auto; }
  .teams { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn-ghost::before, .social-link, .menu-icon, .menu-icon::before, .menu-icon::after,
  .site-nav, .site-nav.is-open { transition: none; }
  .btn:active { transform: none; }
}
