/* ============================================================================
   PÁDEL XPERIENCE — Hoja de estilos
   Tema oscuro · verde lima de marca (#A8F955) · estética deporte + noche
   ========================================================================= */

/* --- Tipografía de marca: RoadRadio -------------------------------------- */
@font-face {
  font-family: "RoadRadio";
  src: url("../fonts/RoadRadio-Thin.woff2") format("woff2"),
       url("../fonts/RoadRadio-Thin.ttf") format("truetype");
  font-weight: 100; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "RoadRadio";
  src: url("../fonts/RoadRadio-Light.woff2") format("woff2"),
       url("../fonts/RoadRadio-Light.ttf") format("truetype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "RoadRadio";
  src: url("../fonts/RoadRadio.woff2") format("woff2"),
       url("../fonts/RoadRadio.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "RoadRadio";
  src: url("../fonts/RoadRadio-Bold.woff2") format("woff2"),
       url("../fonts/RoadRadio-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "RoadRadio";
  src: url("../fonts/RoadRadio-Black.woff2") format("woff2"),
       url("../fonts/RoadRadio-Black.ttf") format("truetype");
  font-weight: 900; font-style: normal; font-display: swap;
}

/* --- Tokens -------------------------------------------------------------- */
:root {
  /* Marca */
  --accent: #a8f955;
  --accent-600: #8fe024;
  --accent-700: #74c213;
  --accent-glow: rgba(168, 249, 85, 0.35);
  --accent-dim: rgba(168, 249, 85, 0.12);

  /* Acentos noche (solo afterparty) */
  --night: #8b5cff;
  --night-2: #ff3d9a;

  /* Neutros */
  --bg: #0c0c0e;
  --bg-soft: #131316;
  --surface: #17181c;
  --surface-2: #1e1f24;
  --surface-3: #25272d;
  --border: #2a2c33;
  --border-soft: #212329;

  --text: #f5f6f8;
  --muted: #a1a4ad;
  --muted-2: #71747d;

  --danger: #ff5a76;

  /* Tipografía */
  --font-display: "RoadRadio", system-ui, -apple-system, sans-serif;
  --font-body: "RoadRadio", system-ui, -apple-system, sans-serif;

  /* Radios */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Sombras */
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --glow: 0 0 0 1px var(--accent-glow), 0 12px 40px -12px var(--accent-glow);

  --maxw: 1200px;
  --nav-h: 72px;
}

/* --- Reset --------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

::selection { background: var(--accent); color: #0c0c0e; }

/* Textura de fondo sutil (puntos) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(168, 249, 85, 0.06), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(139, 92, 255, 0.05), transparent 60%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  pointer-events: none;
}

/* --- Layout -------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

.section {
  padding-block: clamp(56px, 9vw, 120px);
  position: relative;
}
.section--tight { padding-block: clamp(40px, 6vw, 72px); }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.center .eyebrow { justify-content: center; }

/* --- Tipografía ---------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

.display {
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--muted);
  margin-top: 18px;
}
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }

.gradient-text {
  background: linear-gradient(120deg, var(--accent) 0%, #e6ff9b 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Botones ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 13px 24px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--accent);
  color: #0c1003;
  box-shadow: 0 8px 24px -8px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-600);
  box-shadow: 0 14px 34px -10px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-night {
  background: linear-gradient(120deg, var(--night), var(--night-2));
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(139, 92, 255, 0.6);
}
.btn-night:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(139, 92, 255, 0.7); }

.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn[disabled], .btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(0.4);
}
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* --- Header / nav -------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(12, 12, 14, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--border-soft); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.98rem;
}
.brand img { height: 38px; width: auto; border-radius: 9px; }
.brand b { color: var(--accent); font-weight: 700; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  position: relative;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(60px, 11vw, 130px);
  overflow: hidden;
}
.hero-facets {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero-facets::before,
.hero-facets::after {
  content: "";
  position: absolute;
  border-radius: 40px;
  filter: blur(10px);
  opacity: 0.5;
}
.hero-facets::before {
  width: 460px; height: 460px;
  right: -120px; top: -120px;
  background: conic-gradient(from 120deg, transparent, var(--accent-dim), transparent 60%);
  transform: rotate(18deg);
}
.hero-facets::after {
  width: 380px; height: 380px;
  left: -120px; bottom: -140px;
  background: radial-gradient(circle, rgba(139, 92, 255, 0.14), transparent 65%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
  animation: pulse 2s infinite;
}
.hero-badge b { color: var(--text); font-weight: 600; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-dim); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

.hero h1 { margin-bottom: 6px; }
.hero h1 .line2 { color: var(--accent); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--border-soft);
}
.hero-meta .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--text);
  line-height: 1;
}
.hero-meta .stat span { font-size: 0.85rem; color: var(--muted); }

/* Tarjeta lateral del hero (próximo evento) */
.event-spotlight {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.event-spotlight::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.event-spotlight .es-label {
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.event-spotlight .es-date {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.event-spotlight .es-where {
  color: var(--muted);
  margin-top: 6px;
  font-size: 1rem;
}
.event-spotlight .es-where b { color: var(--text); font-weight: 600; }

/* Cuenta atrás */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 22px 0;
}
.countdown .cd-cell {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  padding: 12px 6px;
  text-align: center;
}
.countdown .cd-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown .cd-lab {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  margin-top: 6px;
}
.es-actions { display: grid; gap: 10px; margin-top: 18px; }
.es-note { font-size: 0.8rem; color: var(--muted-2); text-align: center; margin-top: 4px; }

/* --- Pills / badges ------------------------------------------------------ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  border: 1px solid var(--border);
  color: var(--muted);
}
.pill.green { color: var(--accent); border-color: rgba(168, 249, 85, 0.4); background: var(--accent-dim); }
.pill.violet { color: #c9b6ff; border-color: rgba(139, 92, 255, 0.4); background: rgba(139, 92, 255, 0.12); }
.pill.red { color: var(--danger); border-color: rgba(255, 90, 118, 0.35); background: rgba(255, 90, 118, 0.1); }
.pill.muted { opacity: 0.8; }

/* --- Tarjetas genéricas -------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.card .card-ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); }

/* --- Ligas: barra de experiencia (XP) ----------------------------------- */
.xp-panel {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  max-width: 560px;
}
.xp-panel .xp-top {
  display: flex; align-items: center; gap: 16px; margin-bottom: 22px;
}
.xp-panel .xp-avatar {
  width: 56px; height: 56px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--font-display); font-weight: 900; font-size: 1.25rem;
  color: var(--night);
  background: var(--accent);
}
.xp-panel .xp-who strong { display: block; font-size: 1.05rem; }
.xp-panel .xp-who span { color: var(--muted); font-size: 0.9rem; }
.xp-lvl {
  margin-left: auto; text-align: center; line-height: 1;
  padding: 8px 14px; border-radius: 12px;
  background: var(--accent-dim); border: 1px solid rgba(168, 249, 85, 0.4);
}
.xp-lvl b { display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--accent); }
.xp-lvl small { color: var(--muted); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.xp-bar {
  height: 14px; border-radius: 999px;
  background: var(--surface-3); overflow: hidden; border: 1px solid var(--border);
}
.xp-bar .xp-fill {
  display: block; height: 100%; width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-700), var(--accent));
  box-shadow: 0 0 16px var(--accent-glow);
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in .xp-bar .xp-fill { width: var(--xp, 68%); }
.xp-meta { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: 0.85rem; }
.xp-meta b { color: var(--text); }

/* Escalera de niveles */
.levels { display: flex; flex-wrap: wrap; gap: 10px; }
.level {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--surface);
  font-size: 0.9rem; color: var(--muted);
}
.level b { color: var(--text); font-family: var(--font-display); }
.level .dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }

/* Insignias / logros */
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.badge {
  text-align: center; padding: 22px 14px;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface);
}
.badge .medal {
  width: 54px; height: 54px; margin: 0 auto 12px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--accent-dim); color: var(--accent);
  border: 1px solid rgba(168, 249, 85, 0.35);
}
.badge strong { display: block; font-size: 0.95rem; margin-bottom: 3px; }
.badge span { color: var(--muted); font-size: 0.82rem; }

/* Tarjetas "dos planes" (home) */
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 32px;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.plan-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.plan-card .pc-bg {
  position: absolute; inset: 0; z-index: -1;
  opacity: 0.9;
}
.plan-card.tournament .pc-bg {
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(168, 249, 85, 0.16), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.plan-card.party .pc-bg {
  background:
    radial-gradient(600px 320px at 20% 0%, rgba(139, 92, 255, 0.22), transparent 60%),
    radial-gradient(500px 300px at 90% 100%, rgba(255, 61, 154, 0.16), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.plan-card h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 14px 0 10px; text-transform: uppercase; }
.plan-card p { color: var(--muted); margin-bottom: 20px; }
.plan-card .pc-price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 22px;
}
.plan-card .pc-price b { color: var(--accent); font-size: 1.5rem; }
.plan-card.party .pc-price b { color: #c9b6ff; }
.plan-card .pc-foot { margin-top: auto; }

/* Lista con checks */
.check-list { display: grid; gap: 13px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text);
}
.check-list li svg { flex: 0 0 auto; margin-top: 3px; color: var(--accent); }
.check-list.violet li svg { color: var(--night); }

/* --- Split de "dos planes" full ------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border); }
.split > div { padding: clamp(28px, 4vw, 48px); }
.split .s-tournament { background: linear-gradient(160deg, rgba(168, 249, 85, 0.08), transparent); }
.split .s-party { background: linear-gradient(160deg, rgba(139, 92, 255, 0.12), transparent); border-left: 1px solid var(--border); }

/* --- Pasos numerados ----------------------------------------------------- */
.steps { display: grid; gap: 18px; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.step .step-n {
  counter-increment: step;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
}
.step .step-n::before { content: counter(step); }
.step h4 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; margin-bottom: 2px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* --- Stats banda --------------------------------------------------------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat-band .sb {
  background: var(--surface);
  padding: 28px 22px;
  text-align: center;
}
.stat-band .sb strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--accent);
  line-height: 1;
}
.stat-band .sb span { color: var(--muted); font-size: 0.9rem; }

/* --- Eventos (calendario) ------------------------------------------------ */
.events-list { display: grid; gap: 14px; }
.event-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.event-row:hover { border-color: rgba(168, 249, 85, 0.35); transform: translateX(3px); }
.event-row.is-next {
  border-color: rgba(168, 249, 85, 0.5);
  background: linear-gradient(100deg, var(--accent-dim), var(--surface) 40%);
  box-shadow: 0 10px 40px -20px var(--accent-glow);
}
.event-row.is-cancelled { opacity: 0.5; }
.event-row.is-cancelled .er-city { text-decoration: line-through; }

.er-date {
  text-align: center;
  font-family: var(--font-display);
  line-height: 1;
}
.er-date .d { font-size: 1.9rem; font-weight: 700; }
/* Rango de días ("12-15"): más pequeño para que quepa en la columna de 96px */
.er-date .d.range { font-size: 1.25rem; letter-spacing: -0.02em; white-space: nowrap; }
.er-date .m { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.er-date .y { font-size: 0.72rem; color: var(--muted-2); }
.er-info .er-city { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.er-info .er-venue { color: var(--muted); font-size: 0.92rem; margin-top: 2px; }
.er-info .er-tags { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.er-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

/* --- FAQ acordeón -------------------------------------------------------- */
.faq { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 20px 22px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.faq-q .chev { transition: transform 0.25s ease; color: var(--accent); flex: 0 0 auto; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--muted); }

/* --- Galería ------------------------------------------------------------- */
.gallery-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.gallery-tab {
  padding: 10px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.gallery-tab:hover { color: var(--text); border-color: var(--accent); }
.gallery-tab.active { background: var(--accent); color: #0c1003; border-color: var(--accent); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.gphoto {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  border: 1px solid var(--border-soft);
}
.gphoto img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gphoto:hover img { transform: scale(1.06); }
.gphoto .gp-dl {
  position: absolute;
  right: 10px; bottom: 10px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(12, 12, 14, 0.7);
  backdrop-filter: blur(6px);
  color: var(--accent);
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.gphoto:hover .gp-dl { opacity: 1; transform: translateY(0); }
.gphoto .gp-dl:hover { background: var(--accent); color: #0c1003; }

.gallery-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.gallery-bar .gb-count { color: var(--muted); font-size: 0.92rem; }

.gallery-empty {
  text-align: center;
  padding: 70px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.gallery-empty svg { color: var(--muted-2); margin-bottom: 16px; }
.gallery-empty h3 { margin-bottom: 8px; }
.gallery-empty p { color: var(--muted); max-width: 420px; margin-inline: auto; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 6, 8, 0.92);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 82vh;
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
}
.lb-close, .lb-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: #fff;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background 0.2s ease;
}
.lb-close:hover, .lb-nav:hover { background: var(--accent); color: #0c1003; }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-actions { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); }

/* --- Formulario ---------------------------------------------------------- */
.form-grid { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 15px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.85rem; color: var(--muted); }
.form-status { font-size: 0.92rem; padding: 12px 16px; border-radius: var(--r-sm); display: none; }
.form-status.ok { display: block; background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(168, 249, 85, 0.3); }
.form-status.err { display: block; background: rgba(255, 90, 118, 0.1); color: var(--danger); border: 1px solid rgba(255, 90, 118, 0.3); }

/* --- Área de usuarios (acceso / registro) ------------------------------- */
.auth-wrap { max-width: 460px; margin-inline: auto; }
.auth-tabs {
  display: flex; gap: 6px; padding: 5px; margin-bottom: 24px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-pill);
}
.auth-tab {
  flex: 1; padding: 11px 10px; border: 0; cursor: pointer;
  background: transparent; color: var(--muted);
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em;
  border-radius: var(--r-pill); transition: background 0.18s ease, color 0.18s ease;
}
.auth-tab.active { background: var(--accent); color: var(--night); }
.auth-panel { display: none; }
.auth-panel.active { display: block; }
.field .field-err { color: var(--danger); font-size: 0.82rem; min-height: 1px; }
.field input.invalid, .field select.invalid { border-color: var(--danger); }
.auth-alt { text-align: center; margin-top: 18px; font-size: 0.9rem; color: var(--muted); }
.auth-alt button { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 0; }
.auth-user { text-align: center; }
.auth-user .xp-avatar { margin: 0 auto 16px; }
.check-inline {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.88rem; color: var(--muted); cursor: pointer; line-height: 1.45;
}
.check-inline input { margin-top: 3px; flex: 0 0 auto; width: 16px; height: 16px; accent-color: var(--accent); }
.check-inline a { color: var(--accent); }

/* Chip de usuario en la cabecera (cuando hay sesión iniciada) */
.header-user { position: relative; display: inline-flex; }
.hu-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 4px 12px 4px 4px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); cursor: pointer; font: inherit; transition: border-color 0.2s ease;
}
.hu-btn:hover, .header-user.open .hu-btn { border-color: var(--accent); }
.hu-caret { transition: transform 0.2s ease; opacity: 0.7; }
.header-user.open .hu-caret { transform: rotate(180deg); }
.header-user .hu-av {
  width: 30px; height: 30px; flex: 0 0 auto;
  border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: var(--accent); color: var(--night);
  font-family: var(--font-display); font-weight: 900; font-size: 0.78rem;
}
.header-user .hu-av-img { width: 100%; height: 100%; object-fit: cover; }
.header-user .hu-lv {
  font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.02em;
}
/* Menú desplegable del jugador */
.hu-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 232px; z-index: 60;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 6px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  display: none; flex-direction: column;
}
.header-user.open .hu-menu { display: flex; }
.hu-head { padding: 8px 12px 8px; color: var(--muted); font-size: 0.78rem; border-bottom: 1px solid var(--border-soft); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hu-menu a, .hu-logout { display: block; text-align: left; width: 100%; padding: 9px 12px; border-radius: 9px; color: var(--text); text-decoration: none; font-size: 0.92rem; background: none; border: 0; cursor: pointer; font: inherit; }
.hu-menu a:hover, .hu-logout:hover { background: var(--surface-2); }
.hu-logout { color: #ff8a8a; border-top: 1px solid var(--border-soft); margin-top: 4px; }

/* Notificaciones (campana del header) */
.header-actions { display: inline-flex; align-items: center; gap: 8px; }
.header-notif { position: relative; display: inline-flex; }
.hn-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; }
.hn-btn:hover, .header-notif.open .hn-btn { border-color: var(--accent); color: var(--accent); }
.hn-badge { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; border-radius: 999px; background: var(--danger); color: #fff; font-size: 0.66rem; font-weight: 800; font-family: var(--font-display); }
.hn-badge[hidden] { display: none; }
.hn-panel { position: absolute; top: calc(100% + 8px); right: 0; width: 320px; max-width: 84vw; z-index: 60; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4); display: none; overflow: hidden; }
.header-notif.open .hn-panel { display: block; }
.hn-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border-soft); font-family: var(--font-display); font-weight: 700; }
.hn-read { border: 0; background: none; color: var(--accent); cursor: pointer; font: inherit; font-weight: 600; font-size: 0.8rem; }
.hn-push { display: block; width: 100%; border: 0; border-bottom: 1px solid var(--border-soft); background: rgba(255, 255, 255, 0.04); color: var(--accent); cursor: pointer; font: inherit; font-weight: 600; font-size: 0.82rem; padding: 10px 14px; text-align: left; }
.hn-push:hover { background: rgba(255, 255, 255, 0.08); }
.hn-list { max-height: 380px; overflow-y: auto; }
.hn-item { display: flex; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--border-soft); color: var(--text); text-decoration: none; }
.hn-item:first-child { border-top: 0; }
.hn-item:hover { background: var(--surface-2); }
.hn-item.unread { background: var(--accent-dim); }
.hn-ic { flex: 0 0 auto; font-size: 1.1rem; }
.hn-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hn-txt b { font-size: 0.9rem; }
.hn-txt span { color: var(--muted); font-size: 0.84rem; }
.hn-txt small { color: var(--muted-2); font-size: 0.72rem; }
.hn-empty { color: var(--muted); text-align: center; padding: 22px 14px; font-size: 0.9rem; }

/* Panel del jugador (cuenta.html) */
.cuenta-head { display: flex; gap: 18px; align-items: center; }
.cuenta-av {
  width: 76px; height: 76px; flex: 0 0 auto;
  border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: var(--accent); color: var(--night);
  font-family: var(--font-display); font-weight: 900; font-size: 1.6rem;
}
.cuenta-av img { width: 100%; height: 100%; object-fit: cover; }
.cuenta-head h2 { font-size: 1.3rem; margin: 0; }
.cuenta-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.cuenta-badges .pill b { color: var(--text); margin-left: 4px; }
.cuenta-xp { margin-top: 22px; }
.cuenta-xp-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 0.9rem; }
.cuenta-xp-top span:first-child { font-family: var(--font-display); font-weight: 700; }

/* Partidos (partidos.html) */
.pa-loading { color: var(--muted); text-align: center; padding: 40px 0; }
.pa-select { padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; max-width: 100%; }
.insc-precio { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.insc-precio strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--accent); }
.insc-modo { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-pill); }
.insc-modo-btn { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 8px 16px; border-radius: var(--r-pill); font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; }
.insc-modo-btn.active { background: var(--accent); color: var(--night); }
.busco-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin-bottom: 8px; }
.busco-item a { color: var(--text); text-decoration: none; font-weight: 600; }
.busco-item a:hover { color: var(--accent); }
.busco-item .busco-meta { color: var(--muted); font-size: 0.85rem; margin-right: auto; }
.busco-item button { flex: 0 0 auto; }
.pa-section { margin-bottom: 30px; }
.pa-section > h2 { font-size: 1.15rem; margin-bottom: 14px; }
.pa-empty { color: var(--muted); font-size: 0.95rem; padding: 8px 0; }
.match-card { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); padding: 20px; margin-bottom: 14px; }
.mc-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.mc-when { font-family: var(--font-display); font-weight: 700; }
.mc-meta { color: var(--muted); font-size: 0.88rem; }
.mc-badge { margin-left: auto; font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.mc-badge.abierto { color: var(--accent); border-color: rgba(168,249,85,.4); background: var(--accent-dim); }
.mc-badge.completo { color: #7fd8ff; border-color: rgba(127,216,255,.35); background: rgba(127,216,255,.1); }
.mc-badge.pendiente { color: #ffd35c; border-color: rgba(255,211,92,.4); background: rgba(255,211,92,.1); }
.mc-badge.jugado { color: var(--muted); }
.mc-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.mc-vs { font-family: var(--font-display); font-weight: 900; color: var(--muted-2); font-size: 0.9rem; }
.team { display: grid; gap: 8px; }
.team.win .player { border-color: rgba(168,249,85,.5); }
.player { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); font-size: 0.9rem; }
.player .p-av { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; display: grid; place-items: center; background: var(--accent); color: var(--night); font-family: var(--font-display); font-weight: 900; font-size: 0.66rem; }
.player .p-av img { width: 100%; height: 100%; object-fit: cover; }
.player.free { color: var(--muted-2); border-style: dashed; background: transparent; }
.mc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.mc-result { margin-top: 12px; font-size: 0.9rem; color: var(--muted); }
.mc-result b { color: var(--text); }
.report-form, .noshow-form { margin-top: 14px; display: grid; gap: 10px; padding: 14px; border: 1px dashed var(--border); border-radius: 12px; }
.report-form.hidden, .noshow-form.hidden { display: none; }
.pa-hint { color: var(--muted); font-size: 0.86rem; line-height: 1.5; margin: -4px 0 4px; }
.pa-hint b { color: var(--text); }

/* Iconos de fecha/hora en blanco (mejor contraste sobre el tema oscuro) */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(1) brightness(1.7); cursor: pointer; opacity: .8; }
input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }

/* Chat del partido */
.mc-chat { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-soft); display: grid; gap: 10px; }
.mc-chat.hidden { display: none; }
.chat-msgs { max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px; }
.chat-empty { color: var(--muted-2); font-size: 0.86rem; text-align: center; padding: 10px 0; }
.chat-msg { display: flex; flex-direction: column; gap: 2px; max-width: 82%; align-self: flex-start; }
.chat-msg.mine { align-self: flex-end; align-items: flex-end; }
.chat-who { font-size: 0.72rem; color: var(--muted); padding: 0 4px; }
.chat-text { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 7px 11px; font-size: 0.9rem; line-height: 1.4; word-break: break-word; }
.chat-msg.mine .chat-text { background: var(--accent-dim); border-color: rgba(168,249,85,.4); }
.chat-form { display: flex; gap: 8px; }
.chat-input { flex: 1; min-width: 0; padding: 9px 12px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; }
.chat-input:focus { outline: none; border-color: var(--accent); }
@media (max-width: 560px) { .mc-teams { grid-template-columns: 1fr; } .mc-vs { display: none; } }

/* PXP Coins (cuenta) */
.coins-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.coins-balance { text-align: right; line-height: 1.1; }
.coins-balance b { font-family: var(--font-display); font-size: 1.9rem; color: var(--accent); display: block; }
.coins-balance span { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.coins-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 16px; }
.coin-pack { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); color: var(--text); cursor: pointer; font: inherit; transition: border-color .15s, background .15s; }
.coin-pack:hover { border-color: var(--accent); background: var(--accent-dim); }
.coin-pack b { font-family: var(--font-display); font-size: 1.5rem; }
.coin-pack span { color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; }
.coin-pack em { margin-top: 6px; font-style: normal; font-weight: 700; color: var(--accent); }
.coin-pack:disabled { opacity: .6; cursor: default; }
.coins-hist { margin-top: 16px; }
.coins-hist summary { cursor: pointer; color: var(--muted); font-size: 0.9rem; }
.coin-mov { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border-soft); font-size: 0.86rem; }
.coin-mov span { color: var(--muted); }
.coin-mov b.win { color: var(--accent); }
.coin-mov b.lose { color: #ff8a8a; }

/* Franjas horarias favoritas (perfil) */
.franjas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.chip-check { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); font-size: 0.88rem; cursor: pointer; user-select: none; white-space: nowrap; }
.chip-check input { accent-color: var(--accent); margin: 0; flex: 0 0 auto; width: 16px; height: 16px; }
.chip-check:has(input:checked) { border-color: var(--accent); background: var(--accent-dim); color: var(--text); }
@media (max-width: 520px) { .franjas-grid { grid-template-columns: 1fr 1fr; } .chip-check { font-size: 0.8rem; padding: 9px 8px; } }

/* Ligas por ciudad (página Ligas) */
.leagues-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.league-card { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); padding: 18px; }
.league-top { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.league-city { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.league-name { display: block; color: var(--muted); font-size: 0.86rem; margin-top: 4px; }
.league-desc { color: var(--muted); font-size: 0.88rem; margin-top: 8px; line-height: 1.5; }
.league-badge { font-family: var(--font-display); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.league-badge.open { color: var(--accent); border-color: rgba(168,249,85,.4); background: var(--accent-dim); }
.league-badge.soon { color: #7fd8ff; border-color: rgba(127,216,255,.35); background: rgba(127,216,255,.1); }
.league-badge.closed { color: #ffd35c; border-color: rgba(255,211,92,.4); background: rgba(255,211,92,.1); }

/* Pase de batalla (pase.html) */
.bp-me { background: var(--accent-dim); border: 1px solid rgba(168, 249, 85, 0.4); border-radius: 12px; padding: 12px 16px; margin-bottom: 20px; font-size: 0.95rem; }
.bp-me b { color: var(--accent); }
.bp-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.bp-node { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bp-lvl { font-family: var(--font-display); font-weight: 800; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; }
.bp-node.done .bp-lvl { color: var(--accent); }
.bp-card { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 12px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); text-align: center; opacity: 0.7; }
.bp-node.done .bp-card { opacity: 1; border-color: rgba(168, 249, 85, 0.5); }
.bp-card img { width: 72px; height: 72px; object-fit: contain; }
.bp-noimg { width: 72px; height: 72px; display: grid; place-items: center; font-size: 2rem; background: var(--surface-2); border-radius: 12px; }
.bp-name { font-weight: 600; font-size: 0.9rem; line-height: 1.3; }
.bp-badge { font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; color: var(--muted); }
.bp-node.done .bp-badge { color: var(--accent); }
.bp-paid-note { margin-top: 22px; text-align: center; color: var(--muted); font-size: 0.92rem; padding: 14px; border: 1px dashed var(--border); border-radius: 12px; }
.bp-paid-note b { color: var(--text); }

/* Gráfica de evolución del nivel (historial) */
.lvl-chart { margin: 4px 0 20px; }
.lvl-chart-head { font-size: 0.9rem; color: var(--muted); margin-bottom: 8px; }
.lvl-chart-head b { color: var(--accent); font-family: var(--font-display); }
.lc-svg { width: 100%; height: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.lc-line { stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.lc-dot { fill: var(--accent); }
.lc-axis { stroke: var(--border); stroke-width: 1; }
.lc-lbl { fill: var(--muted); font-size: 11px; font-family: sans-serif; }

/* Clasificación (ranking.html) */
.rank-controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.rank-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-pill); }
.rank-tab { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 8px 16px; border-radius: var(--r-pill); font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; }
.rank-tab.active { background: var(--accent); color: var(--night); }
.rank-me { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-size: 0.95rem; }
.rank-me b { color: var(--accent); }
.rank-me.warn { border-color: rgba(255,211,92,.4); background: rgba(255,211,92,.08); }
.rank-me.warn b { color: #ffd35c; }
.rank-table { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.rank-row { display: grid; grid-template-columns: 48px 1fr 60px 72px; align-items: center; gap: 8px; padding: 11px 14px; border-top: 1px solid var(--border-soft); }
.rank-row:first-child { border-top: 0; }
.rank-head { background: var(--surface-2); color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.rank-row.me { background: var(--accent-dim); }
.rk-pos { font-family: var(--font-display); font-weight: 900; color: var(--muted); text-align: center; }
.rk-pos.top1 { color: #ffd35c; } .rk-pos.top2 { color: #cfd3da; } .rk-pos.top3 { color: #e2954f; }
.rk-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.rk-name span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Foto del jugador en el ranking: pequeña y circular, como la del menú (30px) */
.rk-name .p-av { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--accent); color: var(--night); font-family: var(--font-display); font-weight: 900; font-size: 0.78rem; }
.rk-name .p-av img { width: 100%; height: 100%; object-fit: cover; }
.rk-num { text-align: right; color: var(--muted); font-size: 0.92rem; }
.rk-num b { color: var(--text); font-family: var(--font-display); }
.rank-head .rk-num { text-align: right; }
.rank-prizes { margin-top: 16px; color: var(--muted); font-size: 0.9rem; text-align: center; }
.rank-prizes b { color: var(--text); }

/* Podio del top 3 (ranking) */
.podium-wrap { position: relative; margin: 6px 0 20px; }
.podium-wrap::before {
  content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 46%; pointer-events: none; opacity: .4;
  background-image:
    radial-gradient(circle, #ffd35c 2.5px, transparent 3px),
    radial-gradient(circle, var(--accent) 2.5px, transparent 3px),
    radial-gradient(circle, #7fd8ff 2.5px, transparent 3px);
  background-size: 70px 70px, 100px 100px, 85px 85px;
  background-position: 10px 0, 40px 22px, 65px 48px;
}
.podium { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 10px; }
.pod { flex: 1 1 0; max-width: 190px; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pod-av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--accent); color: var(--night); font-family: var(--font-display); font-weight: 900; font-size: 0.9rem; margin-bottom: 6px; border: 2px solid var(--surface-2); }
.pod-name { font-family: var(--font-display); font-weight: 800; font-size: 1rem; line-height: 1.15; margin-bottom: 8px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-name a { color: var(--text); text-decoration: none; }
.pod-name a:hover { color: var(--accent); }
.pod-col { width: 100%; background: var(--surface); border: 1px solid var(--border); border-bottom: 0; border-radius: 16px 16px 0 0; padding: 14px 8px 18px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pod-medal { width: 56px; height: 56px; display: grid; place-items: center; color: var(--night); font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; border-radius: 50%; box-shadow: 0 4px 10px rgba(0,0,0,.3); }
.pod-medal.m1 { width: 68px; height: 68px; font-size: 1.85rem; background: linear-gradient(160deg, #ffe488, #ffc93c); }
.pod-medal.m2 { background: linear-gradient(160deg, #eef1f5, #c2c7d0); }
.pod-medal.m3 { background: linear-gradient(160deg, #f2ab6a, #d97b34); }
.pod-score { font-family: var(--font-display); font-weight: 900; font-size: 1.35rem; }
.pod-sub { color: var(--muted); font-size: 0.8rem; }
.pod-p1 .pod-col { min-height: 190px; }
.pod-p2 .pod-col { min-height: 150px; }
.pod-p3 .pod-col { min-height: 120px; }
.pod.me .pod-col { border-color: var(--accent); background: var(--accent-dim); }
.rank-rest-title { margin: 4px 0 10px; font-size: 1rem; color: var(--muted); }
@media (max-width: 520px) {
  .podium { gap: 5px; }
  .pod-name { font-size: 0.82rem; }
  .pod-av { width: 34px; height: 34px; font-size: 0.72rem; }
  .pod-medal { width: 44px; height: 44px; font-size: 1.15rem; }
  .pod-medal.m1 { width: 52px; height: 52px; font-size: 1.4rem; }
  .pod-score { font-size: 1.05rem; }
  .pod-p1 .pod-col { min-height: 150px; } .pod-p2 .pod-col { min-height: 120px; } .pod-p3 .pod-col { min-height: 100px; }
}

/* Panel de administración (admin.html) */
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.admin-inline input { padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; }
.admin-table { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.admin-row { display: grid; grid-template-columns: 2fr 1fr 70px 84px 150px; gap: 8px; align-items: center; padding: 11px 14px; border-top: 1px solid var(--border-soft); font-size: 0.9rem; }
.admin-row:first-child { border-top: 0; }
.admin-row.admin-head { background: var(--surface-2); color: var(--muted); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; }
.admin-row small { color: var(--muted); }
.admin-row-2 { grid-template-columns: 2fr 1fr 1fr; }
.enfr-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px; border: 1px dashed var(--border); border-radius: 12px; margin: 10px 0; }
.enfr-team { display: flex; gap: 6px; }
.enfr-row .pa-select, .enfr-row input { padding: 8px 10px; font-size: 0.85rem; }
.enfr-vs { color: var(--muted-2); font-family: var(--font-display); font-weight: 900; }
@media (max-width: 640px) { .admin-row { grid-template-columns: 1fr 1fr; } .admin-row span:first-child { grid-column: 1 / -1; } }

/* Historial de partidos (historial.html) */
.hist-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.hist-head h2 { font-size: 1.25rem; margin: 0; }
.hist-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 22px; }
.hist-stats > div { background: var(--surface); padding: 16px; text-align: center; }
.hist-stats b { display: block; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
.hist-stats b.win { color: var(--accent); }
.hist-stats b.lose { color: var(--danger); }
.hist-stats span { color: var(--muted); font-size: 0.82rem; }
.hist-item { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); padding: 16px 18px; margin-bottom: 12px; }
.hist-vs { margin: 10px 0 6px; font-size: 0.95rem; }
.hist-foot { color: var(--muted); font-size: 0.88rem; }
.hist-foot b { color: var(--text); }
.hist-xp { color: var(--accent); font-weight: 600; }
.mc-badge.lose { color: var(--danger); border-color: rgba(255, 90, 118, 0.35); background: rgba(255, 90, 118, 0.1); }
.rk-name a { color: inherit; text-decoration: none; }
.rk-name a:hover { color: var(--accent); }

/* Tarjetas de contacto */
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.contact-card .cc-ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
  flex: 0 0 auto;
}
.contact-card .cc-label { font-size: 0.8rem; color: var(--muted); }
.contact-card .cc-value { font-family: var(--font-display); font-weight: 600; }

/* --- CTA grande ---------------------------------------------------------- */
.cta-band {
  position: relative;
  text-align: center;
  padding: clamp(48px, 8vw, 90px) 30px;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--surface-2), var(--bg-soft));
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(500px 240px at 50% -20%, rgba(168, 249, 85, 0.2), transparent 60%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- Page hero pequeño (subpáginas) -------------------------------------- */
.page-hero {
  position: relative;
  padding-block: clamp(60px, 9vw, 110px) clamp(30px, 5vw, 56px);
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 14ch; }
.page-hero p { max-width: 560px; }
.page-hero.party-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(700px 360px at 80% 0%, rgba(139, 92, 255, 0.22), transparent 60%),
    radial-gradient(600px 300px at 10% 100%, rgba(255, 61, 154, 0.14), transparent 60%);
}
.page-hero.tournament-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(700px 360px at 80% 0%, rgba(168, 249, 85, 0.16), transparent 60%);
}

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding-block: 56px 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--muted); max-width: 320px; font-size: 0.95rem; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--muted); font-size: 0.95rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  color: var(--muted-2);
  font-size: 0.85rem;
}
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.2s ease;
}
.social-row a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* --- Reveal on scroll ---------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* --- Utilidades ---------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 28px; }
.mt-3 { margin-top: 40px; }
.center-text { text-align: center; }
.divider { height: 1px; background: var(--border); border: 0; margin-block: 0; }
.hide { display: none !important; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .event-spotlight { max-width: 460px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .split { grid-template-columns: 1fr; }
  .split .s-party { border-left: 0; border-top: 1px solid var(--border); }
}

@media (max-width: 820px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(12, 12, 14, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 16px 22px 24px;
  }
  .nav-links.mobile-open a { padding: 13px 14px; font-size: 1rem; }
  .nav-links.mobile-open a.active::after { display: none; }

  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-meta { gap: 18px; }
  .event-row {
    grid-template-columns: 64px 1fr;
    gap: 16px;
  }
  .er-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .er-date .d { font-size: 1.5rem; }
  .countdown .cd-num { font-size: 1.3rem; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  .section { padding-block: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================================
   Añadidos: detalle de eventos, cookies, footer legal
   ========================================================================= */

/* Detalle desplegable del evento */
.event-item { display: block; }
.ev-toggle .chev { transition: transform 0.25s ease; }
.event-item.open .ev-toggle .chev { transform: rotate(180deg); }

.event-detail { display: none; margin-top: 10px; }
.event-item.open .event-detail { display: block; animation: edin 0.3s ease; }
@keyframes edin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.ed-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 340px));
  justify-content: start;
  gap: 18px 28px;
  padding: 20px 22px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.ed-block { min-width: 0; }
.ed-h {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.ed-h svg { color: var(--accent); }
.ed-h.ed-h-violet { color: #c9b6ff; }

.cat { padding: 11px 0; border-top: 1px solid var(--border-soft); }
.cat:first-of-type { border-top: 0; padding-top: 0; }
.cat-head { display: flex; align-items: baseline; gap: 10px; justify-content: space-between; }
.cat-name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.cat-price { color: var(--muted); font-size: 0.85rem; }
.prizes { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.prize { display: flex; gap: 8px; align-items: baseline; font-size: 0.9rem; color: var(--text); }
.prize .pos {
  font-family: var(--font-display); font-weight: 700; color: var(--accent);
  min-width: 92px; font-size: 0.8rem; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.02em;
}
@media (max-width: 480px) { .prize { flex-direction: column; gap: 1px; } .prize .pos { min-width: 0; } }

.ed-after {
  color: var(--text); font-size: 0.94rem;
  padding: 12px 14px; border-radius: var(--r-sm);
  background: rgba(139, 92, 255, 0.1); border: 1px solid rgba(139, 92, 255, 0.28);
}

.activation { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.activation svg { color: var(--accent); flex: 0 0 auto; margin-top: 2px; }
.act-name { font-family: var(--font-display); font-weight: 600; font-size: 0.96rem; }
.act-prize {
  font-family: var(--font-body); font-weight: 600; font-size: 0.78rem;
  color: var(--accent); background: var(--accent-dim);
  padding: 2px 8px; border-radius: var(--r-pill); margin-left: 4px; white-space: nowrap;
}
.activation p { color: var(--muted); font-size: 0.88rem; margin-top: 2px; }

/* Footer legal */
.footer-legal { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--accent); }
.linkbtn {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--muted-2); font: inherit; text-decoration: underline;
}
.linkbtn:hover { color: var(--accent); }

/* Banner de cookies */
.cookie-banner {
  position: fixed;
  left: 50%; bottom: 20px;
  transform: translate(-50%, 140%);
  z-index: 300;
  width: min(760px, calc(100% - 32px));
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(20, 21, 25, 0.97);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), opacity 0.35s ease;
}
.cookie-banner.show { transform: translate(-50%, 0); opacity: 1; }
.cookie-banner p { color: var(--muted); font-size: 0.9rem; flex: 1 1 320px; margin: 0; }
.cookie-banner p a { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

@media (max-width: 560px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-banner p { flex: 0 1 auto; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1; }
}

/* Documento legal (cookies) */
.legal-doc .lead { color: var(--text); margin-bottom: 26px; }
.legal-doc h3 { margin: 30px 0 8px; }
.legal-doc p { color: var(--muted); margin-bottom: 12px; }
.legal-doc a { color: var(--accent); text-decoration: underline; }

/* Patrocinadores */
.sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.sponsor {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  min-width: 160px;
  padding: 16px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.sponsor img { max-height: 60px; max-width: 160px; width: auto; object-fit: contain; }
a.sponsor:hover { transform: translateY(-3px); border-color: var(--accent); background: var(--surface-2); }

/* Secciones con ancla (compensa el header fijo) */
section[id] { scroll-margin-top: 88px; }

/* Galería: estado de carga y "cargar más" */
.gallery-loading { text-align: center; padding: 70px 20px; color: var(--muted-2); }
.gallery-loading svg { color: var(--muted-2); margin-bottom: 12px; opacity: 0.7; }
.gallery-loading p { color: var(--muted); }
.gallery-more { text-align: center; margin-top: 28px; min-height: 1px; }

/* Sobre PXP: sección tardeo con acento noche */
.section-tardeo .eyebrow { color: #c9b6ff; }
.section-tardeo .eyebrow::before { background: var(--night); box-shadow: 0 0 12px rgba(139,92,255,.5); }
