/* ============================================================
   Futlab Data — Design System (Nike)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:           #111111;   /* Nike ink — CTA primario */
  --blue-hover:     #2a2a2a;
  --blue-light:     #f5f5f5;   /* Nike soft-cloud */
  --bg:             #f5f5f5;   /* Nike soft-cloud */
  --surface:        #ffffff;   /* Nike canvas */
  --border:         #e5e5e5;   /* Nike hairline-soft */
  --text:           #111111;   /* Nike ink */
  --text-muted:     #707072;   /* Nike mute */
  --error:          #d30005;   /* Nike sale */
  --error-bg:       #fff8f8;
  --error-border:   #ffd0d0;
  --success:        #007d48;   /* Nike success */
  --success-bg:     #f0faf5;
  --success-border: #c3e9d7;
  --radius:         0px;       /* Nike flat cards */
  --radius-sm:      30px;      /* Nike pill buttons */
  --nav-h:          60px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Now Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

/* ── Contenedores ───────────────────────────────────────────
   Todas las páginas usan el mismo ancho máximo.
   container       → formularios, login, páginas centradas (560px)
   container-wide  → panel, admin, tablas (1100px)
   container-pub   → home público (1100px con padding generoso)
─────────────────────────────────────────────────────────── */
.container {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

.container-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

.container-pub {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 640px) {
  .container,
  .container-wide,
  .container-pub { padding-left: 40px; padding-right: 40px; }
}
@media (min-width: 1100px) {
  .container-wide,
  .container-pub { padding-left: 48px; padding-right: 48px; }
}

/* ── Navegación pública (home / comunidad) ──────────────────
   Fija arriba, hamburger en mobile
─────────────────────────────────────────────────────────── */
.pub-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.pub-nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 640px)  { .pub-nav__inner { padding: 0 40px; } }
@media (min-width: 1100px) { .pub-nav__inner { padding: 0 48px; } }

.pub-nav__brand {
  font-size: 17px;
  font-weight: 800;
  color: var(--blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -.3px;
}

.pub-nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pub-nav__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.pub-nav__link:hover { color: var(--text); background: var(--bg); }

.pub-nav__cta {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  text-decoration: none;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  transition: background .15s;
}
.pub-nav__cta:hover { background: var(--blue-hover); }

/* hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  border: none;
  background: none;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .2s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px 20px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
  box-shadow: none;
  border-bottom: 1px solid var(--border);
}
.nav-drawer.open { display: flex; }
.nav-drawer__link {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
}
.nav-drawer__link:last-child { border-bottom: none; }
.nav-drawer__cta {
  display: block;
  text-align: center;
  margin-top: 8px;
  padding: 14px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

@media (max-width: 640px) {
  .pub-nav__links { display: none; }
  .nav-burger { display: flex; }
}

/* espacio para la nav fija */
.has-pub-nav { padding-top: var(--nav-h); }

/* ── Header interno (panel / admin / formulario) ────────────
─────────────────────────────────────────────────────────── */
.app-header {
  position: sticky;
  top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}

.app-header__brand {
  font-size: 16px;
  font-weight: 800;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: -.2px;
}

.app-header__user {
  font-size: 13px;
  color: var(--text-muted);
}

.app-header__logout {
  font-size: 13px;
  color: var(--blue);
  text-decoration: none;
  margin-left: 12px;
}

/* ── Admin nav ──────────────────────────────────────────────
─────────────────────────────────────────────────────────── */
.admin-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.admin-nav::-webkit-scrollbar { display: none; }

.admin-nav__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 14px 14px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.admin-nav__link:hover { color: var(--text); }
.admin-nav__link.active { color: var(--blue); border-bottom-color: var(--blue); }

/* ── Cards ──────────────────────────────────────────────────
─────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  margin-top: 20px;
}

.card__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.card__subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

/* ── Formularios ────────────────────────────────────────────
─────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(17,17,17,.08);
}

.form-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 5px;
}

/* ── Botones de opción ──────────────────────────────────────
─────────────────────────────────────────────────────────── */
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.options-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.options-grid.cols-1 { grid-template-columns: 1fr; }

.option-btn {
  display: block;
  width: 100%;
  padding: 14px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.option-btn:hover  { border-color: var(--blue); background: var(--blue-light); }
.option-btn.active { border-color: var(--blue); background: var(--blue-light); color: var(--blue); font-weight: 700; }

/* ── Botones ────────────────────────────────────────────────
─────────────────────────────────────────────────────────── */
.btn {
  display: block;
  width: 100%;
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s, transform .1s;
  text-align: center;
  text-decoration: none;
  line-height: 1;
}
.btn:active { transform: scale(.98); }

.btn-primary       { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }

.btn-secondary {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-secondary:hover { background: var(--blue-light); }

.btn-sm {
  display: inline-block;
  width: auto;
  padding: 8px 16px;
  font-size: 14px;
}

/* ── Alertas ────────────────────────────────────────────────
─────────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 18px;
}

.alert-error   { background: var(--error-bg);   color: var(--error);   border: 1px solid var(--error-border); }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }

/* ── Progreso (formulario por pasos) ────────────────────────
─────────────────────────────────────────────────────────── */
.progress-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 28px;
  position: relative;
}

.progress-bar::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 2px;
  background: var(--border);
  transform: translateY(-50%);
  z-index: 0;
}

.progress-step {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  color: var(--text-muted);
  position: relative; z-index: 1;
  flex-shrink: 0;
}

.progress-step.done    { background: var(--blue); border-color: var(--blue); color: #fff; }
.progress-step.current { background: var(--surface); border-color: var(--blue); color: var(--blue); }

/* ── Tarjeta compartible ────────────────────────────────────
─────────────────────────────────────────────────────────── */
.share-card {
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  margin: 24px 0;
}

.share-card__title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.share-card__sub   { font-size: 14px; opacity: 0.85; margin-bottom: 18px; }
.share-card__stat  { font-size: 32px; font-weight: 800; }
.share-card__label { font-size: 13px; opacity: 0.8; }

/* ── Métricas ───────────────────────────────────────────────
─────────────────────────────────────────────────────────── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}

@media (min-width: 640px) {
  .metrics-grid { grid-template-columns: repeat(4, 1fr); }
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: center;
}

.metric-card__value { font-size: 28px; font-weight: 800; color: var(--blue); }
.metric-card__label { font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.3; }

/* ── Barras de porcentaje ───────────────────────────────────
─────────────────────────────────────────────────────────── */
.bar-row { margin-bottom: 14px; }

.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 5px;
}

.bar-track {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* ── Tabla ──────────────────────────────────────────────────
─────────────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left;
  padding: 10px 14px;
  background: var(--bg);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td { padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg); }

/* ── Grid helpers ───────────────────────────────────────────
─────────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hide-mobile { display: none !important; }
}
@media (min-width: 641px) {
  .hide-desktop { display: none !important; }
}

/* ── Utilidades ─────────────────────────────────────────────
─────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); font-size: 14px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-0  { margin-bottom: 0; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
}

.badge-blue    { background: var(--blue-light); color: var(--blue); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-error   { background: var(--error-bg);   color: var(--error); }

/* ── Responsive type ────────────────────────────────────────
─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .metric-card__value { font-size: 22px; }
  .card { padding: 18px 16px; }
  .container, .container-wide { padding-left: 16px; padding-right: 16px; }
}

/* ============================================================
   PÁGINAS PÚBLICAS — Hero (index.php · comunidad.php)
   ============================================================ */
.hero {
  background: #111111;
  color: #fff;
  padding: 80px 20px 64px;
  text-align: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.75);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(30px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.6px;
  margin-bottom: 20px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero__sub {
  font-size: clamp(16px, 2.5vw, 20px);
  color: rgba(255,255,255,.58);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.hero__ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.hero__btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: #fff;
  color: #111;
  font-size: 16px;
  font-weight: 700;
  border-radius: 30px;
  text-decoration: none;
  transition: opacity .15s, transform .1s;
}
.hero__btn-primary:hover { opacity: .85; transform: translateY(-1px); }
.hero__btn-ghost {
  display: inline-block;
  padding: 14px 32px;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: background .15s;
}
.hero__btn-ghost:hover { background: rgba(255,255,255,.15); }
.hero__stats {
  display: inline-flex;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  flex-wrap: wrap;
  justify-content: center;
}
.hero__stat {
  padding: 16px 32px;
  border-right: 1px solid rgba(255,255,255,.1);
  text-align: center;
}
.hero__stat:last-child { border-right: none; }
.hero__stat-n { font-size: 28px; font-weight: 800; color: #fff; }
.hero__stat-l { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 3px; }
@media (max-width: 640px) {
  .hero { padding: 56px 20px 48px; }
  .hero__stat { padding: 12px 20px; }
}

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: 64px 0; }
.section--gray { background: var(--bg); }
.section--dark { background: #111111; color: #fff; }
.section__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 30px;
  margin-bottom: 14px;
}
.section__tag--light { background: var(--bg); color: var(--text); }
.section__tag--dark  { background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); }
.section__title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: -.4px;
  line-height: 1.15;
  margin-bottom: 10px;
}
.section__sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 36px;
}
.section--dark .section__sub { color: rgba(255,255,255,.55); }
.section__head { margin-bottom: 20px; }

/* ── Feature cards (para hinchas) ─────────────────────────── */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}
@media (min-width: 768px) { .feat-grid { grid-template-columns: repeat(4, 1fr); } }
.feat-card {
  background: var(--surface);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 22px;
}
.feat-card:last-child { border-right: none; }
@media (max-width: 767px) {
  .feat-card:nth-child(2n) { border-right: none; }
  .feat-card:nth-last-child(-n+2) { border-bottom: none; }
}
@media (min-width: 768px) { .feat-card { border-bottom: none; } }
.feat-icon  { font-size: 28px; margin-bottom: 14px; }
.feat-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.feat-desc  { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ── Club features (para clubes) ──────────────────────────── */
.club-features { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 640px) { .club-features { grid-template-columns: 1fr; } }
.club-feat { display: flex; gap: 14px; align-items: flex-start; }
.club-feat__icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.club-feat__title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.club-feat__desc  { font-size: 13px; opacity: .65; line-height: 1.5; }

/* ── Steps (cómo funciona) ────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--border); }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 32px 24px;
}
.step:last-child { border-right: none; }
@media (max-width: 640px) {
  .step { border-right: none; border-bottom: 1px solid var(--border); }
  .step:last-child { border-bottom: none; }
}
.step__num {
  width: 36px; height: 36px;
  background: var(--blue); color: #fff;
  border-radius: 50%;
  font-size: 16px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.step__title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step__desc  { font-size: 14px; color: var(--text-muted); line-height: 1.55; }

/* ── CTA doble ────────────────────────────────────────────── */
.cta-double { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--border); }
@media (max-width: 640px) { .cta-double { grid-template-columns: 1fr; } }
.cta-box { padding: 40px 32px; text-align: center; }
.cta-box + .cta-box { border-left: 1px solid var(--border); }
@media (max-width: 640px) { .cta-box + .cta-box { border-left: none; border-top: 1px solid var(--border); } }
.cta-box--hincha { background: var(--surface); }
.cta-box--club   { background: #111111; color: #fff; }
.cta-box__icon  { font-size: 36px; margin-bottom: 16px; }
.cta-box__title { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.cta-box__sub   { font-size: 14px; margin-bottom: 24px; line-height: 1.5; color: var(--text-muted); }
.cta-box--club .cta-box__title { color: #fff; }
.cta-box--club .cta-box__sub   { color: rgba(255,255,255,.55); }

/* ── Footer público ───────────────────────────────────────── */
.pub-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  padding: 32px 20px;
  font-size: 13px;
  text-align: center;
}
.pub-footer strong { color: var(--text); }
.pub-footer a { color: var(--text-muted); text-decoration: none; }
.pub-footer a:hover { color: var(--text); text-decoration: underline; }
.pub-footer__links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* ── Section-grid 2 col (para clubes layout) ──────────────── */
.section-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 768px) { .section-grid-2 { grid-template-columns: 1fr; gap: 32px; } }

/* ============================================================
   COMUNIDAD — Match tabs, rankings, observations, feed
   ============================================================ */
.match-tabs-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
}
.match-tabs {
  display: flex;
  overflow-x: auto;
  padding: 0 20px;
  scrollbar-width: none;
  max-width: 1100px;
  margin: 0 auto;
}
.match-tabs::-webkit-scrollbar { display: none; }
.match-tab {
  flex-shrink: 0;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.match-tab:hover { color: var(--text); }
.match-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.match-tab .n {
  display: inline-block;
  background: var(--bg);
  border-radius: 30px;
  padding: 1px 7px;
  font-size: 11px;
  margin-left: 5px;
  color: var(--text-muted);
}
.match-tab.active .n { background: var(--blue-light); color: var(--blue); }

.match-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.match-banner__info   { font-size: 15px; font-weight: 700; }
.match-banner__date   { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.match-banner__result { font-size: 26px; font-weight: 800; letter-spacing: 2px; }

.rank-item {
  display: grid;
  grid-template-columns: 32px 40px 1fr 110px;
  gap: 10px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}
.rank-item:last-child { border-bottom: none; }
.rank-item:hover { background: var(--bg); }
.rank-num { font-size: 13px; font-weight: 700; color: var(--text-muted); text-align: center; }
.rank-dorsal {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.rank-dorsal.s21 { background: #6B21A8; color: #fff; }
.rank-dorsal.neg { background: var(--error); color: #fff; }
.rank-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-pos  { font-size: 11px; color: var(--text-muted); }

.mvp-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
}
.mvp-card__big { font-size: 32px; font-weight: 800; }

.obs-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  padding: 16px;
}
.obs-card:first-of-type { border-top: 1px solid var(--border); }
.obs-card:hover { background: var(--bg); }
.obs-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.obs-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.obs-who  { font-size: 13px; font-weight: 600; }
.obs-meta { font-size: 11px; color: var(--text-muted); }
.obs-badge {
  margin-left: auto;
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 30px; flex-shrink: 0;
}
.obs-badge-pos   { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.obs-badge-libre { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }
.obs-text { font-size: 14px; line-height: 1.6; color: var(--text); }

.stat-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.stat-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
  background: var(--bg);
}
.stat-pill__val { font-size: 16px; font-weight: 700; }
.stat-pill__lbl { font-size: 12px; color: var(--text-muted); margin-bottom: 2px; }

.cta-block {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 36px 24px;
  text-align: center;
  margin: 32px 0;
}
.cta-block h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.cta-block p  { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }

.feed-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.feed-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  padding: 16px 20px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background .12s;
}
.feed-card:first-of-type { border-top: 1px solid var(--border); }
.feed-card:hover { background: var(--bg); }
.feed-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.feed-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; line-height: 1.35; }
.feed-body { font-size: 14px; line-height: 1.6; color: var(--text-muted); margin-bottom: 8px; }
.feed-replies { font-size: 12px; font-weight: 600; color: var(--text-muted); }

.dummy-label {
  display: inline-block;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 11px; font-weight: 700;
  padding: 4px 14px; border-radius: 30px;
  margin-bottom: 16px;
  letter-spacing: .04em;
  border: 1px solid var(--border);
}

@media (min-width: 900px) {
  .content-grid { display: grid; grid-template-columns: 1fr 420px; gap: 24px; align-items: start; }
}

/* ============================================================
   HILO — Threads
   ============================================================ */
.hilo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  padding: 20px;
}
.hilo-card:first-of-type { border-top: 1px solid var(--border); }
.hilo-card.is-op { border-left: 3px solid var(--blue); }
.author-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.avatar-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: 14px; }
.author-meta { font-size: 12px; color: var(--text-muted); }
.hilo-titulo { font-size: 20px; font-weight: 800; color: var(--text); margin: 12px 0 10px; line-height: 1.25; letter-spacing: -.2px; }
.hilo-cuerpo { font-size: 15px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 20px;
}
.back-link:hover { text-decoration: underline; }
.badge-equipo {
  display: inline-block;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 12px; border-radius: 30px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}
.hilo-section-label {
  font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-muted);
  margin: 24px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--border);
}
.no-replies {
  padding: 28px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

/* ============================================================
   REGISTRO — Autocomplete de equipos
   ============================================================ */
.ac-wrap { position: relative; }
.ac-dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--surface);
  border: 1.5px solid var(--blue);
  border-top: none;
  max-height: 240px;
  overflow-y: auto;
  z-index: 200;
}
.ac-group-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 14px 4px;
  background: var(--bg);
}
.ac-item { padding: 10px 14px; font-size: 14px; cursor: pointer; transition: background .1s; }
.ac-item:hover, .ac-item.focused { background: var(--bg); font-weight: 600; }
.ac-empty { padding: 12px 14px; font-size: 14px; color: var(--text-muted); }

/* ============================================================
   FORMULARIO — Rating jugadores
   ============================================================ */
.rating-card {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.rating-info { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.r-dorsal {
  width: 30px; height: 30px;
  background: var(--blue); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.r-dorsal.s21 { background: #6B21A8; }
.nota-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.nota-btn {
  padding: 7px 4px;
  border-radius: 5px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: #6B7280;
  text-align: center;
  line-height: 1;
  transition: .1s;
}
.nota-btn:hover { border-color: #93c5fd; background: #eff6ff; color: #1d4ed8; }
.bench-toggle {
  width: 100%;
  background: none;
  border: 1.5px dashed var(--border);
  padding: 12px;
  font-size: 13px; color: var(--text-muted);
  cursor: pointer; margin-top: 14px;
  transition: .15s;
}
.bench-toggle:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.bench-compact {
  display: flex; align-items: center;
  gap: 8px; padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.rating-legend {
  display: flex; justify-content: center;
  gap: 14px; font-size: 12px;
  color: var(--text-muted); margin: 10px 0 16px;
  flex-wrap: wrap;
}
.formation-tag {
  display: inline-flex; align-items: center;
  gap: 6px; font-size: 12px; font-weight: 700;
  color: var(--blue); background: var(--blue-light);
  border-radius: 30px; padding: 4px 10px; margin-bottom: 10px;
}
.step-label { display: flex; justify-content: center; margin-bottom: 20px; }
.step-label span {
  font-size: 13px; color: var(--text-muted);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 30px; padding: 4px 14px;
}
.gol-row { background: var(--bg); border: 1px solid var(--border); padding: 14px; margin-bottom: 10px; }
.pitch-wrap { position: relative; max-width: 300px; margin: 0 auto; }
.pitch-wrap svg { width: 100%; height: auto; display: block; }
.pitch-wrap.preview { max-width: 220px; opacity: .92; }
