/* ═══════════════════════════════════════════════════════════
   styles.css — Goose Talent · Gestor de Torneo de Debate
   ═══════════════════════════════════════════════════════════ */

/* ── Gateway de acceso ────────────────────────────────────── */
.gateway-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #0d0f1e 0%, #1a1d3a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gateway-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 2.5rem 2.75rem;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(12px);
}

.gateway-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: .25rem;
}

.gateway-titulo {
  font-size: 1.55rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.02em;
}

.gateway-sub {
  font-size: .875rem;
  color: rgba(255,255,255,.4);
  text-align: center;
  margin-top: -.4rem;
}

.gateway-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-top: .5rem;
}

.gateway-input {
  width: 100%;
  padding: .7rem 1rem;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .15s;
}
.gateway-input::placeholder { color: rgba(255,255,255,.3); }
.gateway-input:focus {
  outline: none;
  border-color: var(--accent, #29ABE2);
}

.gateway-error {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: #f87171;
  background: rgba(248,113,113,.12);
  border-radius: 8px;
  padding: .45rem .75rem;
  width: 100%;
}

.gateway-divisor {
  font-size: .78rem;
  color: rgba(255,255,255,.2);
  text-transform: uppercase;
  letter-spacing: .1em;
  position: relative;
  width: 100%;
  text-align: center;
}
.gateway-divisor::before,
.gateway-divisor::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: rgba(255,255,255,.08);
}
.gateway-divisor::before { left: 0; }
.gateway-divisor::after  { right: 0; }

.gateway-publico {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  transition: color .15s;
}
.gateway-publico:hover { color: #fff; }

.gateway-publico-hint {
  font-size: .72rem;
  color: rgba(255,255,255,.2);
  text-align: center;
  margin-top: -.4rem;
}

.gateway-colegios-label {
  font-size: .75rem;
  font-weight: 700;
  color: rgba(255,255,255,.4);
  width: 100%;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.gateway-colegios-list {
  width: 100%;
  max-height: 160px;
  overflow-y: auto;
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: rgba(0,0,0,.2);
}
.gateway-colegios-list::-webkit-scrollbar { width: 4px; }
.gateway-colegios-list::-webkit-scrollbar-track { background: transparent; }
.gateway-colegios-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 3px; }

.gateway-colegio-item {
  padding: .65rem 1rem;
  cursor: pointer;
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .12s, color .12s;
  user-select: none;
}
.gateway-colegio-item:last-child { border-bottom: none; }
.gateway-colegio-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.gateway-colegio-item.gw-sel {
  background: rgba(41,171,226,.15);
  color: #29ABE2;
  font-weight: 600;
}

.gateway-colegios-empty {
  padding: .75rem 1rem;
  font-size: .82rem;
  color: rgba(255,255,255,.25);
  text-align: center;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary:       #2D3183;
  --primary-dark:  #1E2065;
  --primary-light: #ECEDF8;
  --accent:        #29ABE2;
  --accent-dark:   #1A8FC2;
  --accent-light:  #E3F4FB;
  --bg:            #0D1042;
  --white:         #ffffff;
  --text:          #1A1C3A;
  --text-muted:    #6B6E96;
  --border:        #DDE0F0;
  --success-bg:    #dcfce7;
  --success-text:  #166534;
  --warning-bg:    #fef9c3;
  --warning-text:  #854d0e;
  --danger-bg:     #fef2f2;
  --danger-text:   #b91c1c;
  --info-bg:       #e0f2fe;
  --info-text:     #0369a1;
  --shadow-sm:     0 2px 8px rgba(0,0,0,.18);
  --shadow-md:     0 6px 24px rgba(0,0,0,.28);
  --radius:        12px;
  --radius-sm:     7px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
}

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  background: var(--primary-dark);
  border-bottom: 3px solid var(--accent);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 80px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 16px rgba(0,0,0,.35);
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 72px;
  width: auto;
  display: block;
  background: #fff;
  border-radius: 8px;
  padding: 5px 12px;
}

.navbar-nav {
  display: flex;
  gap: 0.1rem;
  flex: 1;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.navbar-nav::-webkit-scrollbar { display: none; }

.nav-link {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: rgba(255,255,255,0.68);
  font-size: 0.84rem;
  white-space: nowrap;
  font-weight: 500;
  transition: background 0.14s, color 0.14s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.01em;
}

.nav-link svg { width: 15px; height: 15px; flex-shrink: 0; }

.nav-link:hover  { background: rgba(255,255,255,0.10); color: #fff; }
.nav-link.active {
  background: rgba(41,171,226,0.22);
  color: #fff;
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
}

/* ── Layout ────────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem;
}

/* ── Page header (páginas interiores) ──────────────────────── */
.page-header { margin-bottom: 1.75rem; }

.page-header h1 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  letter-spacing: -0.025em;
}

.page-header h1 svg { color: var(--accent); width: 26px; height: 26px; }

.page-header p {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  margin-top: 0.4rem;
  margin-left: calc(26px + 0.65rem);
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.card-title svg { color: var(--accent); width: 16px; height: 16px; }

/* ── Forms ─────────────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.35rem; }

.form-group label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.52rem 0.8rem;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  width: 100%;
  transition: border-color 0.14s, box-shadow 0.14s;
  font-family: inherit;
}

.form-group textarea { resize: vertical; min-height: 80px; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(41,171,226,.15);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: opacity 0.14s, background 0.14s, transform 0.1s;
  text-decoration: none;
  font-family: inherit;
  letter-spacing: 0.01em;
}

.btn:active { transform: scale(0.98); }
.btn svg { width: 15px; height: 15px; }

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

.btn-secondary { background: var(--accent-light); color: var(--accent-dark); }
.btn-secondary:hover { background: #c8e9f5; }

.btn-ghost { background: transparent; color: var(--text-muted); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--primary-light); color: var(--primary); }

.btn-danger { background: var(--danger-bg); color: var(--danger-text); }
.btn-danger:hover { background: #fde8e8; }

.btn-success { background: var(--success-bg); color: var(--success-text); }

.btn-sm { padding: 0.28rem 0.65rem; font-size: 0.8rem; }
.btn-lg { padding: 0.7rem 1.5rem; font-size: 0.95rem; }

/* ── Toolbar ───────────────────────────────────────────────── */
.toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.toolbar .search-input {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.46rem 0.8rem;
  font-size: 0.875rem;
  flex: 1;
  min-width: 180px;
  font-family: inherit;
}

.toolbar .search-input:focus { outline: none; border-color: var(--accent); }

/* ── Tables ────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead th {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--accent);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

thead th.text-center { text-align: center; }

tbody td {
  padding: 0.68rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--primary-light); }
tbody td.text-center { text-align: center; }

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.65rem;
  border-radius: 20px;
  font-size: 0.73rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: var(--success-bg);    color: var(--success-text); }
.badge-warning { background: var(--warning-bg);    color: var(--warning-text); }
.badge-danger  { background: var(--danger-bg);     color: var(--danger-text); }
.badge-gray    { background: #f1f5f9;              color: #475569; }
.badge-info    { background: var(--info-bg);       color: var(--info-text); }

/* ── Tabs (sobre fondo oscuro de página) ───────────────────── */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid rgba(255,255,255,0.12);
  margin-bottom: 1.5rem;
}

.tab-btn {
  padding: 0.7rem 1.25rem;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.865rem;
  font-weight: 600;
  color: rgba(255,255,255,0.50);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.14s, border-color 0.14s;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.01em;
}

.tab-btn svg { width: 15px; height: 15px; }
.tab-btn:hover { color: rgba(255,255,255,0.85); }
.tab-btn.active { color: #fff; border-bottom-color: var(--accent); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Round pills (sobre fondo oscuro) ──────────────────────── */
.round-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }

.round-pill {
  padding: 0.35rem 0.95rem;
  border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.13s;
}

.round-pill.active,
.round-pill:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── Ronda activa label ────────────────────────────────────── */
.ronda-label {
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  font-weight: 600;
  flex-shrink: 0;
}

/* ── Stat boxes ────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.stat-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--accent);
}

.stat-box .stat-value {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-box .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 0.35rem;
  font-weight: 600;
}

/* ── Ranking medals ────────────────────────────────────────── */
.pos-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.pos-1 { background: #fef9c3; color: #854d0e; }
.pos-2 { background: #f1f5f9; color: #475569; }
.pos-3 { background: #fff7ed; color: #9a3412; }
.pos-n { background: var(--primary-light); color: var(--primary); }

/* ── Score input ───────────────────────────────────────────── */
.score-input {
  width: 72px;
  text-align: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.38rem 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  font-family: inherit;
}

.score-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(41,171,226,.15); }

/* ── Index: Hero banner ────────────────────────────────────── */
.hero-banner {
  background: linear-gradient(130deg, var(--primary) 0%, #1a5fa8 55%, var(--accent) 100%);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border: 1px solid rgba(255,255,255,0.08);
}

.hero-text {}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.7rem;
}

.hero-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.70);
  font-weight: 400;
  max-width: 520px;
}

.hero-divider {
  width: 3px;
  height: 80px;
  background: rgba(255,255,255,0.18);
  border-radius: 4px;
  flex-shrink: 0;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-shrink: 0;
}

.hero-logo {
  height: 120px;
  width: auto;
  flex-shrink: 0;
  background: #fff;
  border-radius: 12px;
  padding: 10px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  margin-right: 3rem;
}

/* ── Index: Section title ──────────────────────────────────── */
.section-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
  margin-bottom: 0.75rem;
}

/* ── Index: Menu list ──────────────────────────────────────── */
.menu-list {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.5rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background 0.13s, padding-left 0.15s;
}

.menu-item:last-child { border-bottom: none; }
.menu-item:hover {
  background: var(--primary-light);
  padding-left: 1.9rem;
}

.menu-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-dark);
  transition: background 0.13s, color 0.13s;
}

.menu-item:hover .menu-icon {
  background: var(--accent);
  color: #fff;
}

.menu-icon svg { width: 19px; height: 19px; }

.menu-text { flex: 1; }

.menu-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.01em;
}

.menu-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.menu-arrow {
  color: var(--border);
  flex-shrink: 0;
  transition: color 0.13s, transform 0.13s;
  width: 16px; height: 16px;
}

.menu-item:hover .menu-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* ── Sistema selector ──────────────────────────────────────── */
.sistema-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.sistema-card {
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s;
  font-family: inherit;
  color: rgba(255,255,255,0.75);
}

.sistema-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(41,171,226,0.5);
  color: #fff;
}

.sistema-card.active {
  background: rgba(41,171,226,0.12);
  border-color: var(--accent);
  color: #fff;
}

.sistema-card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(41,171,226,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  color: var(--accent);
}

.sistema-card.active .sistema-card-icon {
  background: var(--accent);
  color: #fff;
}

.sistema-card-icon svg { width: 22px; height: 22px; }

.sistema-card-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.sistema-card-desc {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.55);
}

.sistema-card.active .sistema-card-desc { color: rgba(255,255,255,0.75); }

/* ── Día row ────────────────────────────────────────────────── */
.dia-row {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.dia-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-width: 50px;
  padding-bottom: 0.55rem;
}

.dia-total {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-dark);
  padding-bottom: 0.4rem;
  display: block;
}

/* ── Cálculo automático ─────────────────────────────────────── */
.calculo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}

.calculo-stat {
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--accent);
}

.calculo-stat-warn {
  background: #fef9c3;
  border-left-color: #f59e0b;
}

.calculo-stat-muted {
  opacity: 0.5;
}

.calculo-stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.calculo-stat-warn .calculo-stat-value { color: #92400e; }

.calculo-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-top: 0.3rem;
}

.calculo-warnings { display: flex; flex-direction: column; gap: 0.5rem; }

.calculo-warning {
  background: #fef9c3;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  font-size: 0.85rem;
  color: #78350f;
}

.calculo-info {
  background: var(--info-bg);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  font-size: 0.85rem;
  color: var(--info-text);
}

.calculo-sugerencia {
  background: var(--success-bg);
  border: 1px solid #86efac;
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
}

.calculo-sugerencia-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #166534;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.calculo-sugerencia-title svg { width: 14px; height: 14px; }

.calculo-sugerencia-body {
  font-size: 0.95rem;
  color: #14532d;
  font-weight: 500;
}

/* ── Config confirmada (locked) ─────────────────────────────── */
.config-locked-banner {
  background: rgba(41,171,226,0.12);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: #fff;
  font-size: 0.9rem;
}

.config-locked-banner svg { color: var(--accent); width: 20px; height: 20px; flex-shrink: 0; }

/* ── Stepper ────────────────────────────────────────────────── */
.stepper {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255,255,255,0.35);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.step-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step.done   { color: rgba(255,255,255,0.60); }
.step.done .step-num   { border-color: var(--accent); color: var(--accent); background: rgba(41,171,226,0.12); }

.step.active { color: #fff; }
.step.active .step-num { border-color: var(--accent); background: var(--accent); color: #fff; }

.step-line {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.10);
  margin: 0 0.9rem;
  min-width: 32px;
}
.step-line.done { background: var(--accent); opacity: 0.5; }

/* ── Utilities ─────────────────────────────────────────────── */
.flex          { display: flex; }
.flex-wrap     { flex-wrap: wrap; }
.items-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1         { gap: 0.35rem; }
.gap-2         { gap: 0.6rem; }
.gap-3         { gap: 1rem; }
.mt-1          { margin-top: 0.4rem; }
.mt-2          { margin-top: 0.9rem; }
.mt-3          { margin-top: 1.5rem; }
.mb-1          { margin-bottom: 0.4rem; }
.text-muted    { color: var(--text-muted); }
.text-primary  { color: var(--primary); }
.text-sm       { font-size: 0.82rem; }
.font-bold     { font-weight: 700; }
.text-right    { text-align: right; }
.text-center   { text-align: center; }
.w-full        { width: 100%; }

/* ── Torneos guardados (index) ──────────────────────────────── */
.torneos-scroll {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.torneos-scroll::-webkit-scrollbar { width: 5px; }
.torneos-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 4px; }

.torneos-empty {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  padding: 1.25rem 0;
  text-align: center;
  font-style: italic;
}

.torneo-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: background 0.13s;
}

.torneo-card:hover { background: rgba(255,255,255,0.10); }

.torneo-card-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(41,171,226,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.torneo-card-icon svg { width: 18px; height: 18px; }

.torneo-card-body { flex: 1; min-width: 0; }

.torneo-card-nombre {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.torneo-card-meta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.50);
  margin-top: 0.15rem;
}

.torneo-card-estado { flex-shrink: 0; }

.torneo-card-del {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.30);
  padding: 0.25rem;
  border-radius: 5px;
  transition: color 0.12s, background 0.12s;
  flex-shrink: 0;
  font-family: inherit;
}

.torneo-card-del:hover {
  color: var(--danger-text);
  background: var(--danger-bg);
}

.torneo-card-del svg { width: 15px; height: 15px; display: block; }

.btn-ghost-index {
  background: transparent;
  color: rgba(255,255,255,.6);
  border: 1.5px solid rgba(255,255,255,.15);
  font-family: inherit;
}
.btn-ghost-index:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary-light);
}

.torneo-card-activo {
  background: rgba(41,171,226,0.13);
  border-color: rgba(41,171,226,0.55);
}

.torneo-card-sel {
  background: rgba(41,171,226,0.14);
  border: 1.5px solid rgba(41,171,226,0.35);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.7rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
  transition: background 0.13s;
}
.torneo-card-sel:hover { background: rgba(41,171,226,0.28); }
.torneo-card-sel svg  { width: 14px; height: 14px; }

.torneo-card-sel-activo {
  color: var(--success-text);
  border-color: rgba(22,163,74,0.35);
  background: rgba(22,163,74,0.10);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.torneo-card-sel-activo .sel-normal { display: inline-flex; align-items: center; gap: .3rem; }
.torneo-card-sel-activo .sel-hover  { display: none; }

.torneo-card-sel-activo:hover {
  background: rgba(185,28,28,0.07);
  color: var(--danger-text);
  border-color: rgba(185,28,28,0.22);
}

.torneo-card-sel-activo:hover .sel-normal { display: none; }
.torneo-card-sel-activo:hover .sel-hover  { display: inline-flex; align-items: center; gap: .3rem; }

/* ── Organización: banner de torneo activo ──────────────────── */
.org-banner {
  background: rgba(41,171,226,0.10);
  border: 1.5px solid rgba(41,171,226,0.30);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.org-banner-nombre {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.org-banner-meta {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.2rem;
}

/* ── Organización: valores en form-grid ─────────────────────── */
.org-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.45rem 0;
}

.org-empty-list {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 0.75rem 0;
}

/* ── Organización: programa/timeline ────────────────────────── */
.programa-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.programa-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.programa-item:last-child { border-bottom: none; }

.programa-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.programa-dot-ronda { background: var(--accent); }
.programa-dot-pausa { background: var(--border); }

.programa-tiempo {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 130px;
  font-variant-numeric: tabular-nums;
}

.programa-label {
  flex: 1;
  font-weight: 600;
  color: var(--text);
}

.programa-pausa .programa-label { color: var(--text-muted); font-weight: 400; }

.programa-dur {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--primary-light);
  border-radius: 20px;
  padding: 0.18rem 0.6rem;
  font-weight: 600;
}

/* ── Organización: salas grid ───────────────────────────────── */
.salas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.5rem;
}

.sala-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fafbff;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.sala-item svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }

/* ── Equipos participantes UI ───────────────────────────────── */
.equipos-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.equipos-group-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.55rem;
}

.equipo-add-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.equipo-add-row input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.46rem 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
}

.equipo-add-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(41,171,226,.15);
}

.equipo-lista {
  list-style: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: 52px;
  max-height: 240px;
  overflow-y: auto;
  background: #fafbff;
  margin-bottom: 0.4rem;
}

.equipo-lista:empty::after {
  content: 'Sin equipos añadidos';
  display: block;
  text-align: center;
  padding: 0.85rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

.equipo-item {
  display: flex;
  align-items: center;
  padding: 0.38rem 0.65rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--text);
}

.equipo-item:last-child { border-bottom: none; }

.equipo-item-idx {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
  min-width: 20px;
}

.equipo-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--danger-text);
  font-size: 1.05rem;
  line-height: 1;
  padding: 0 0.15rem;
  opacity: 0.5;
  transition: opacity 0.12s;
  font-family: inherit;
}

.equipo-remove:hover { opacity: 1; }

.equipo-count {
  font-size: 0.75rem;
  font-weight: 700;
  text-align: right;
  color: var(--text-muted);
}

.equipo-count.ok   { color: var(--success-text); }
.equipo-count.warn { color: var(--warning-text); }

/* ── Sorteo de enfrentamientos ──────────────────────────────── */
.sorteo-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: .75rem;
}

.sorteo-desc {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  font-style: italic;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.sorteo-prompt {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(255,255,255,.03);
  border: 1.5px dashed rgba(255,255,255,.12);
  border-radius: var(--radius);
}

.sorteo-rondas { display: flex; flex-direction: column; gap: .6rem; }

.sorteo-ronda {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.sorteo-ronda-header {
  background: var(--primary);
  color: #fff;
  padding: .42rem 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.sorteo-ronda-num {
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.sorteo-ronda-sub {
  font-size: .73rem;
  color: rgba(255,255,255,.5);
  font-weight: 400;
}

.sorteo-partido {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .52rem 1rem;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.sorteo-partido:last-child { border-bottom: none; }
.sorteo-partido:nth-child(even) { background: #fafbff; }

.partido-num {
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 18px;
}

.partido-team {
  flex: 1;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
}

.partido-home { text-align: right; }
.partido-away { text-align: left; }

.partido-vs {
  font-size: .72rem;
  font-weight: 800;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--accent-light);
  padding: .14rem .42rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.partido-bye {
  flex: 1;
  font-size: .82rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Dual: dos grupos en paralelo */
.sorteo-dual-colheader {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  background: var(--primary-light);
  padding: .35rem 1rem;
  font-size: .7rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .08em;
  border-top: 1px solid var(--border);
}

.sorteo-dual-body { background: #fff; }

.sorteo-dual-fila {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  border-bottom: 1px solid var(--border);
}

.sorteo-dual-fila:last-child { border-bottom: none; }
.sorteo-dual-fila:nth-child(even) { background: #fafbff; }

.sorteo-dual-lado {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .52rem 1rem;
  font-size: .875rem;
}

.sorteo-dual-lado .partido-team { flex: 1; }
.sorteo-dual-lado .partido-home { text-align: right; }
.sorteo-dual-lado .partido-away { text-align: left; }

.sorteo-dual-sep { width: 1px; background: var(--border); }

/* ── Edición manual de enfrentamientos ──────────────────────── */
.sorteo-edicion-banner {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: rgba(41,171,226,.1);
  border: 1.5px solid rgba(41,171,226,.3);
  border-radius: var(--radius-sm);
  padding: .45rem .85rem;
  font-size: .8rem;
  font-weight: 600;
  color: #1a6fa8;
  margin-top: .5rem;
}

.sorteo-partido-editando {
  background: #f0f9ff !important;
  border-left: 3px solid rgba(41,171,226,.4);
}

.partido-input-edit {
  flex: 1;
  min-width: 0;
  border: 1.5px solid var(--accent, #29ABE2);
  border-radius: 6px;
  padding: .25rem .5rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.partido-input-edit:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,49,131,.12);
}
.partido-input-edit.partido-home { text-align: right; }
.partido-input-edit.partido-away { text-align: left; }

.partido-editado { color: var(--primary); }

.partido-edit-badge {
  display: inline-block;
  font-size: .63rem;
  font-weight: 700;
  color: #2d3183;
  background: rgba(45,49,131,.1);
  border-radius: 4px;
  padding: .07rem .28rem;
  margin-left: .3rem;
  white-space: nowrap;
  cursor: help;
  vertical-align: middle;
}

.btn-edicion-activa {
  background: rgba(41,171,226,.15) !important;
  color: #1a6fa8 !important;
  border: 1.5px solid rgba(41,171,226,.45) !important;
}
.btn-edicion-activa:hover {
  background: rgba(41,171,226,.25) !important;
}

.btn-ghost-dark {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn-ghost-dark:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: rgba(45,49,131,.3);
}

.sorteo-dual-lado.sorteo-dual-editando {
  gap: .4rem;
  flex-wrap: wrap;
}
.sorteo-dual-lado.sorteo-dual-editando .partido-input-edit {
  min-width: 70px;
}

/* Rondas pendientes */
.sorteo-pendiente {
  background: rgba(255,255,255,.03);
  border: 1.5px dashed rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: .75rem;
}

/* ── Vista por rondas ───────────────────────────────────────── */

/* Barra de filtros de grupo */
.vista-filtros {
  display: flex;
  gap: .5rem;
  margin-bottom: 1rem;
}

.vista-filtro-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .38rem .85rem;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.vista-filtro-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.vista-filtro-activo {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}

/* Badge de grupo en la columna sala */
.vista-grupo-tag {
  display: inline-block;
  font-size: .6rem;
  font-weight: 800;
  padding: .05rem .3rem;
  border-radius: 4px;
  margin-left: .35rem;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.vista-grupo-A {
  background: rgba(45,49,131,.12);
  color: var(--primary);
}
.vista-grupo-B {
  background: rgba(41,171,226,.15);
  color: #1a6fa8;
}

.vista-ronda-card { padding: 0; overflow: hidden; }

.vista-ronda-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.1rem;
  background: var(--primary-light);
  border-bottom: 1px solid var(--border);
}

.vista-ronda-num {
  font-size: .85rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.vista-horario {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.vista-tabla-header {
  display: grid;
  grid-template-columns: 4.5rem 1fr 9rem 7rem 5rem;
  gap: .5rem;
  padding: .38rem 1.1rem;
  background: #f4f5fb;
  border-bottom: 1px solid var(--border);
  font-size: .68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .07em;
}

.vista-fila {
  display: grid;
  grid-template-columns: 4.5rem 1fr 9rem 7rem 5rem;
  gap: .5rem;
  align-items: center;
  padding: .55rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.vista-fila:last-child { border-bottom: none; }
.vista-fila:nth-child(even) { background: #fafbff; }

.vista-sala-num {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.vista-equipos {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
}

.vista-team {
  font-weight: 600;
  color: var(--text);
}

.vista-vs {
  font-size: .68rem;
  font-weight: 800;
  color: var(--accent-dark);
  background: var(--accent-light);
  padding: .1rem .35rem;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.vista-bye {
  font-size: .82rem;
  color: var(--text-muted);
  font-style: italic;
}

.vista-juez {
  font-size: .82rem;
  color: var(--text-muted);
}

/* Botón publicar ronda */
.vista-pub-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .75rem;
  border-radius: 20px;
  border: 1.5px solid rgba(45,49,131,.25);
  background: #fff;
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
  margin-left: auto;
  flex-shrink: 0;
}
.vista-pub-btn:hover {
  border-color: var(--accent, #29ABE2);
  color: var(--accent, #29ABE2);
  background: rgba(41,171,226,.08);
}
.vista-pub-activa {
  border-color: var(--success-text, #166534) !important;
  color: var(--success-text, #166534) !important;
  background: var(--success-bg, #dcfce7) !important;
}
.vista-pub-activa:hover {
  background: #bbf7d0 !important;
}

.vista-estado-btn {
  justify-self: start;
  font-family: inherit;
  font-weight: 700;
  padding: .22rem .55rem;
  border-radius: 20px;
  transition: opacity .15s, transform .1s;
}
.vista-estado-btn:hover { opacity: .8; transform: scale(.97); }
.vista-acta-btn { justify-self: start; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-banner { flex-direction: column; padding: 2rem 1.5rem; }
  .hero-divider { display: none; }
  .hero-stats { gap: 1.5rem; }
  .hero-title { font-size: 1.5rem; }
}

@media (max-width: 640px) {
  .navbar { padding: 0 1rem; gap: 0.75rem; height: 68px; }
  .brand-logo-img { height: 54px; }
  .container { padding: 1.25rem 1rem; }
  .form-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .equipos-columns { grid-template-columns: 1fr; }
}

/* ── Clasificación ──────────────────────────────────────── */
.clasi-controles {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: .75rem;
}
.clasi-spots-wrap {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--text-muted);
}
.clasi-spots-input {
  width: 3.8rem;
  padding: .35rem .5rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .88rem;
  font-family: inherit;
  text-align: center;
  background: var(--surface);
  color: var(--text);
}
.clasi-spots-input:focus { outline: none; border-color: var(--primary); }

.clasi-tabla-wrap { overflow-x: auto; }
.clasi-tabla {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.clasi-tabla th {
  text-align: left;
  font-size: .73rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .6rem 1rem;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.clasi-tabla td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  vertical-align: middle;
}
.clasi-tabla tr:last-child td { border-bottom: none; }
.clasi-tabla tbody tr:hover { background: rgba(45,49,131,.04); }

/* Filas clasificado / eliminado */
.clasi-row-clasif { background: rgba(34,197,94,.04); }
.clasi-row-clasif td:first-child { border-left: 3px solid #22c55e; }
.clasi-row-elim   { opacity: .72; }
.clasi-row-elim td:first-child { border-left: 3px solid rgba(239,68,68,.35); }

/* Línea de corte */
.clasi-corte-row td {
  border-top: 2px dashed rgba(34,197,94,.5) !important;
  padding-top: .9rem !important;
}

/* Posición */
.clasi-rank {
  font-size: 1rem;
  font-weight: 900;
  color: var(--text-muted);
  text-align: center;
  min-width: 2.2rem;
}
.clasi-rank-1 { color: #f59e0b; }
.clasi-rank-2 { color: #94a3b8; }
.clasi-rank-3 { color: #a16207; }

/* Nombre equipo */
.clasi-nombre { font-weight: 700; color: var(--text); }

/* Valores numéricos */
.clasi-num     { font-variant-numeric: tabular-nums; }
.clasi-num-big { font-size: 1rem; font-weight: 700; color: var(--text); }

/* Badges estado */
.clasi-badge-clasif {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .22rem .65rem;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  background: rgba(34,197,94,.12);
  color: #16a34a;
  white-space: nowrap;
}
.clasi-badge-elim {
  display: inline-block;
  padding: .22rem .65rem;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  background: rgba(239,68,68,.08);
  color: #dc2626;
}
.clasi-badge-juego {
  display: inline-block;
  padding: .22rem .65rem;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
  background: rgba(245,158,11,.1);
  color: #d97706;
}

/* Inputs edición inline */
.clasi-inp {
  width: 4.5rem;
  padding: .28rem .45rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: .88rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  text-align: center;
  transition: border-color .12s;
}
.clasi-inp:focus { outline: none; border-color: var(--primary); }
.clasi-inp-sm { width: 3.2rem; }

/* Leyenda */
.clasi-leyenda {
  display: flex;
  gap: 1.5rem;
  margin-top: .85rem;
  font-size: .8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  align-items: center;
}
.clasi-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: .35rem;
  vertical-align: middle;
}
.clasi-dot-clasif { background: #22c55e; }
.clasi-dot-elim   { background: rgba(239,68,68,.5); }
.clasi-desempate {
  font-size: .72rem;
  color: var(--text-muted);
  font-style: italic;
  padding: .15rem .5rem;
  background: rgba(245,158,11,.08);
  border-radius: 4px;
  margin-left: .25rem;
}
