/* PlanA.R.D. — sistema de diseño
   Concepto: "tablero de vestuario bajo luces de estadio". Tinta azul noche, superficies de vidrio,
   el color del club como protagonista y tipografía de cartel de estadio para los números. */

:root {
  --bg: #0A0E16;
  --bg-2: #0E1320;
  --surface: #131A29;
  --surface-2: #192236;
  --surface-3: #212C44;
  --line: rgba(160, 176, 214, 0.12);
  --line-2: rgba(160, 176, 214, 0.22);
  --fg: #EAEEF7;
  --fg-2: #C3CBDD;
  --muted: #8892AB;
  --faint: #5D6782;
  --good: #34D399;
  --warn: #F5A524;
  --bad: #F2555A;
  --info: #5EA8FF;
  --club: #2F7BFF;
  --club-ink: #FFFFFF;
  --club-soft: rgba(47, 123, 255, 0.16);
  --club-glow: rgba(47, 123, 255, 0.35);
  --club-2: #F2B33D;
  --wood-1: #C99556; --wood-2: #B9824A;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --radius: 18px;
  --radius-sm: 12px;
  --f-display: 'Big Shoulders Display', 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-body: 'Figtree', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F3F5FA; --bg-2: #EBEEF6; --surface: #FFFFFF; --surface-2: #F5F7FC; --surface-3: #E9EDF6;
    --line: rgba(20, 32, 64, 0.09); --line-2: rgba(20, 32, 64, 0.16);
    --fg: #0F1626; --fg-2: #2B3550; --muted: #5E6883; --faint: #9AA3BA;
    --shadow: 0 10px 30px -14px rgba(16, 28, 60, 0.22); --shadow-lg: 0 24px 60px -24px rgba(16, 28, 60, 0.3);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F3F5FA; --bg-2: #EBEEF6; --surface: #FFFFFF; --surface-2: #F5F7FC; --surface-3: #E9EDF6;
  --line: rgba(20, 32, 64, 0.09); --line-2: rgba(20, 32, 64, 0.16);
  --fg: #0F1626; --fg-2: #2B3550; --muted: #5E6883; --faint: #9AA3BA;
  --shadow: 0 10px 30px -14px rgba(16, 28, 60, 0.22); --shadow-lg: 0 24px 60px -24px rgba(16, 28, 60, 0.3);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--f-body); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 500px at 12% -10%, var(--club-soft), transparent 60%),
    radial-gradient(700px 420px at 100% 0%, rgba(242, 179, 61, 0.06), transparent 60%);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--club); }
:focus-visible { outline: 2px solid var(--club); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
.display { font-family: var(--f-display); font-weight: 800; letter-spacing: 0.01em; text-transform: uppercase; line-height: 0.95; }
.num { font-family: var(--f-display); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid { display: grid; gap: 14px; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Shell ---------- */
.app { position: relative; z-index: 1; display: grid; grid-template-columns: 264px 1fr; min-height: 100%; }
.rail {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px;
  padding: 18px 14px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 82%, transparent);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--club), color-mix(in srgb, var(--club) 50%, #000)); color: var(--club-ink); font-family: var(--f-display); font-weight: 900; font-size: 18px; box-shadow: 0 6px 18px -6px var(--club-glow); }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; }
.brand-name small { display: block; font-family: var(--f-body); font-size: 10px; font-weight: 700; letter-spacing: 0.2em; color: var(--muted); }
.team-switch {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s var(--ease);
}
.team-switch:hover { border-color: var(--line-2); }
.team-switch:active { transform: scale(0.98); }
.crest { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--club); color: var(--club-ink); font-family: var(--f-display); font-weight: 900; font-size: 16px; }
.crest img { width: 100%; height: 100%; object-fit: cover; }
.team-switch .t1 { font-weight: 700; font-size: 14px; line-height: 1.2; }
.team-switch .t2 { font-size: 12px; color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.nav-sec { font-size: 10px; font-weight: 800; letter-spacing: 0.18em; color: var(--faint); text-transform: uppercase; padding: 14px 12px 6px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  color: var(--fg-2); background: none; border: 0; width: 100%; text-align: left; font-weight: 600; font-size: 14px;
  transition: background .2s, color .2s;
}
.nav-item:hover { background: var(--surface); color: var(--fg); }
.nav-item.active { background: var(--club-soft); color: var(--fg); }
.nav-item.active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--club); }
.nav-item.active svg { color: var(--club); }
.nav-item .badge { margin-left: auto; }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--bad); color: #fff; font-size: 11px; font-weight: 800; }
.badge.soft { background: var(--club-soft); color: var(--fg); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: 14px max(22px, env(safe-area-inset-right, 0px)) 14px max(22px, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar h1 { font-family: var(--f-display); font-weight: 800; font-size: 26px; text-transform: uppercase; letter-spacing: 0.02em; }
.topbar .sub { font-size: 12.5px; color: var(--muted); }
.topbar .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--fg-2); transition: transform .15s var(--ease), border-color .2s, color .2s;
}
.icon-btn:hover { color: var(--fg); border-color: var(--line-2); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn .dot { position: absolute; top: 7px; right: 7px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.icon-btn .dot.pop { animation: pop .5s var(--spring); }
.content { padding: 8px max(22px, env(safe-area-inset-right, 0px)) 40px max(22px, env(safe-area-inset-left, 0px)); max-width: 1320px; width: 100%; }
.offline-bar { display: flex; align-items: center; gap: 10px; margin: 0 22px; padding: 10px 14px; border-radius: 12px; background: rgba(245, 165, 36, .12); color: var(--warn); font-size: 13px; font-weight: 600; }
.mobile-only { display: none !important; }

/* Barra inferior (celular) */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none; justify-content: space-around;
  padding: 8px max(8px, env(safe-area-inset-left, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-right, 0px));
  background: color-mix(in srgb, var(--bg-2) 88%, transparent); backdrop-filter: blur(18px); border-top: 1px solid var(--line);
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px; border: 0; background: none; color: var(--muted); font-size: 10.5px; font-weight: 700; border-radius: 12px; position: relative; }
.tab.active { color: var(--fg); }
.tab.active svg { color: var(--club); transform: translateY(-1px); }
.tab svg { transition: transform .3s var(--spring); }
.tab .dot { position: absolute; top: 2px; right: calc(50% - 18px); width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }

@media (max-width: 1023px) {
  .app { grid-template-columns: 1fr; }
  .rail { display: none; }
  .tabbar { display: flex; }
  .mobile-only { display: inline-grid !important; }
  .content { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .topbar { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .content { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .topbar h1 { font-size: 22px; }
}

/* ---------- Componentes ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow); min-width: 0;
}
.card.flat { box-shadow: none; }
.card.tap { transition: transform .25s var(--ease), border-color .2s, box-shadow .25s; cursor: pointer; }
.card.tap:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.card-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.card-title .more { margin-left: auto; font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 700; color: var(--club); background: none; border: 0; padding: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--fg); font-weight: 700; font-size: 14px;
  transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s; white-space: nowrap;
}
.btn:hover { border-color: var(--faint); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--club); color: var(--club-ink); border-color: transparent; box-shadow: 0 8px 22px -10px var(--club-glow); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { background: rgba(242, 85, 90, .14); color: var(--bad); border-color: rgba(242, 85, 90, .3); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 7px 11px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; pointer-events: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--fg-2); font-size: 12.5px; font-weight: 700; transition: all .2s;
}
.chip.on { background: var(--club); color: var(--club-ink); border-color: transparent; }
button.chip:hover { border-color: var(--faint); }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.02em; background: var(--surface-3); color: var(--fg-2); }
.pill.good { background: rgba(52, 211, 153, .14); color: var(--good); }
.pill.warn { background: rgba(245, 165, 36, .15); color: var(--warn); }
.pill.bad { background: rgba(242, 85, 90, .15); color: var(--bad); }
.pill.info { background: rgba(94, 168, 255, .15); color: var(--info); }
.pill.club { background: var(--club-soft); color: var(--fg); }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 7px 12px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--muted); transition: all .2s; }
.seg button.on { background: var(--surface); color: var(--fg); box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .3); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.02em; }
.field-hint { font-size: 11.5px; color: var(--faint); }
.input, select.input, textarea.input {
  width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--fg);
  transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: none; border-color: var(--club); box-shadow: 0 0 0 4px var(--club-soft); }
textarea.input { min-height: 90px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.avatar { display: inline-grid; place-items: center; border-radius: 50%; flex: none; overflow: hidden; font-weight: 800; color: #fff; background: linear-gradient(140deg, var(--av), color-mix(in srgb, var(--av) 45%, #000)); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 6px; border-bottom: 1px solid var(--line); min-width: 0; }
.li:last-child { border-bottom: 0; }
.li .grow { flex: 1; min-width: 0; }
.li .t1 { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .t2 { font-size: 12.5px; color: var(--muted); }
.li.tap { cursor: pointer; border-radius: 12px; transition: background .2s; }
.li.tap:hover { background: var(--surface-2); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { display: flex; flex-direction: column; gap: 6px; }
.kpi .v { font-family: var(--f-display); font-weight: 800; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: 0.04em; }
.kpi .d { font-size: 12px; font-weight: 700; }

.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 16px; text-align: center; color: var(--muted); }
.empty svg { color: var(--faint); }

/* Hoja modal */
.sheet-wrap { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(4, 7, 14, 0); transition: background .3s; padding: 16px; }
.sheet-wrap.open { background: rgba(4, 7, 14, .62); backdrop-filter: blur(4px); }
.sheet {
  width: min(560px, 100%); max-height: min(86vh, 900px); display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 22px; box-shadow: var(--shadow-lg); transform: translateY(24px) scale(.98); opacity: 0;
  transition: transform .35s var(--ease), opacity .25s;
}
.sheet.wide { width: min(920px, 100%); }
.sheet-wrap.open .sheet { transform: none; opacity: 1; }
.sheet-grab { display: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 18px 6px; }
.sheet-head h3 { font-family: var(--f-display); font-weight: 800; font-size: 24px; text-transform: uppercase; }
.sheet-body { padding: 10px 18px 18px; overflow: auto; }
.sheet-actions { display: flex; gap: 10px; justify-content: flex-end; padding: 12px 18px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
@media (max-width: 640px) {
  .sheet-wrap { place-items: end stretch; padding: 0; }
  .sheet, .sheet.wide { width: 100%; border-radius: 22px 22px 0 0; max-height: 92vh; transform: translateY(100%); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .sheet-grab { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 10px auto 0; }
}

/* Toasts */
.toast-host { position: fixed; z-index: 200; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column-reverse; gap: 8px; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); font-weight: 600; font-size: 14px; transform: translateY(20px) scale(.96); opacity: 0;
  transition: transform .4s var(--spring), opacity .25s;
}
.toast.in { transform: none; opacity: 1; }
.toast.out { transform: translateY(14px); opacity: 0; }
@media (max-width: 1023px) { .toast-host { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); } }
.toast-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--club-soft); color: var(--club); flex: none; }
.toast-good .toast-ic { background: rgba(52, 211, 153, .15); color: var(--good); }
.toast-bad .toast-ic { background: rgba(242, 85, 90, .15); color: var(--bad); }
.toast-msg { flex: 1; }
.toast-act { border: 0; background: none; color: var(--club); font-weight: 800; }

/* Animaciones de entrada */
.enter > * { animation: rise .55s var(--ease) both; }
.enter > *:nth-child(2) { animation-delay: .05s; } .enter > *:nth-child(3) { animation-delay: .1s; } .enter > *:nth-child(4) { animation-delay: .15s; }
.enter > *:nth-child(5) { animation-delay: .2s; } .enter > *:nth-child(6) { animation-delay: .25s; } .enter > *:nth-child(n+7) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(242, 85, 90, .55); } 50% { box-shadow: 0 0 0 7px rgba(242, 85, 90, 0); } }
@keyframes shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bad); animation: pulse 1.6s infinite; display: inline-block; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- Gráficos ---------- */
.ring-wrap { position: relative; display: inline-grid; place-items: center; }
.ring-wrap .ring-label { position: absolute; text-align: center; }
.ring-track { stroke: var(--surface-3); }
.ring-bar { transition: stroke-dashoffset 1.2s var(--ease); }
.spark-area { opacity: .25; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.bar { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--club), color-mix(in srgb, var(--club) 35%, transparent)); transform-origin: bottom; animation: grow .9s var(--ease) both; min-width: 6px; position: relative; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.chart-axis { font-size: 10.5px; fill: var(--faint); font-family: var(--f-body); }
.chart-grid { stroke: var(--line); }
.hbar { height: 10px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.hbar > i { display: block; height: 100%; border-radius: 6px; background: var(--club); transform-origin: left; animation: growx .9s var(--ease) both; }
@keyframes growx { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Pantallas ---------- */
.hero {
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden; border-radius: 24px; padding: 22px; border: 1px solid var(--line-2);
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--club) 55%, transparent), transparent 55%),
    linear-gradient(160deg, color-mix(in srgb, var(--club) 22%, var(--surface)), var(--surface));
  box-shadow: var(--shadow-lg);
}
.hero::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .08); box-shadow: 0 0 0 40px rgba(255, 255, 255, .02); pointer-events: none; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 16px 0 8px; }
.vs .side { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.vs .side .crest { width: 58px; height: 58px; border-radius: 16px; font-size: 22px; }
.vs .side .crest.rival { background: var(--surface-3); color: var(--fg-2); }
.vs .nm { font-weight: 800; font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs .mid { text-align: center; }
.vs .mid .when { font-family: var(--f-display); font-size: 34px; font-weight: 800; line-height: 1; }
.countdown { display: flex; gap: 8px; justify-content: center; margin-top: 6px; }
.countdown div { min-width: 46px; padding: 6px 4px; border-radius: 10px; background: rgba(0, 0, 0, .22); text-align: center; }
.countdown b { display: block; font-family: var(--f-display); font-size: 22px; line-height: 1; }
.countdown span { font-size: 9.5px; letter-spacing: .12em; color: var(--muted); font-weight: 800; text-transform: uppercase; }

.today-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 980px) { .today-grid { grid-template-columns: 1fr; } }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .cols-3, .cols-2 { grid-template-columns: 1fr; } }

.alert-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.alert-row .sev { width: 4px; align-self: stretch; border-radius: 4px; background: var(--warn); flex: none; }
.alert-row.bad .sev { background: var(--bad); } .alert-row.info .sev { background: var(--info); }

/* Plantel */
.roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.pcard { position: relative; overflow: hidden; border-radius: 20px; padding: 16px; border: 1px solid var(--line); background: linear-gradient(170deg, var(--surface-2), var(--surface)); cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s, border-color .2s; }
.pcard:hover { transform: translateY(-4px) rotate(-.3deg); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.pcard .bg-num { position: absolute; right: -6px; top: -18px; font-family: var(--f-display); font-weight: 900; font-size: 110px; line-height: 1; color: var(--club); opacity: .1; pointer-events: none; }
.pcard .pos { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--muted); }
.pcard .nm { font-weight: 800; font-size: 16px; margin-top: 10px; line-height: 1.2; }
.pcard .meta { display: flex; gap: 12px; margin-top: 12px; }
.pcard .meta div { display: flex; flex-direction: column; }
.pcard .meta b { font-family: var(--f-display); font-size: 22px; line-height: 1; }
.pcard .meta span { font-size: 10.5px; color: var(--muted); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--good); }
.status-dot.injured { background: var(--bad); } .status-dot.suspended { background: var(--warn); } .status-dot.inactive { background: var(--faint); }

.profile-head { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
@media (max-width: 640px) { .profile-head { grid-template-columns: auto 1fr; } .profile-head .rating { grid-column: 1 / -1; } }
.rating-badge { width: 92px; height: 92px; border-radius: 24px; display: grid; place-items: center; background: linear-gradient(150deg, var(--club-2), color-mix(in srgb, var(--club-2) 40%, #000)); color: #111; box-shadow: 0 14px 30px -12px rgba(242, 179, 61, .6); }
.rating-badge b { font-family: var(--f-display); font-weight: 900; font-size: 44px; line-height: 1; }
.rating-badge span { font-size: 10px; font-weight: 900; letter-spacing: .16em; }

/* Asistencia */
.att-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.att-btns { display: flex; gap: 6px; }
.att-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); font-weight: 900; font-size: 13px; color: var(--muted); transition: all .2s var(--spring); }
.att-btn.on.present { background: var(--good); color: #062; border-color: transparent; transform: scale(1.06); }
.att-btn.on.absent { background: var(--bad); color: #fff; border-color: transparent; transform: scale(1.06); }
.att-btn.on.late { background: var(--warn); color: #3a2400; border-color: transparent; transform: scale(1.06); }
.att-btn.on.injured { background: #A78BFA; color: #1d1040; border-color: transparent; transform: scale(1.06); }
.att-btn.on.excused { background: var(--info); color: #04203f; border-color: transparent; transform: scale(1.06); }
.heat { display: grid; grid-template-columns: repeat(var(--cols, 20), minmax(10px, 1fr)); gap: 3px; }
.heat i { aspect-ratio: 1; border-radius: 3px; background: var(--surface-3); }
.heat i.p { background: var(--good); } .heat i.a { background: var(--bad); } .heat i.l { background: var(--warn); } .heat i.x { background: #A78BFA; } .heat i.e { background: var(--info); }

/* Wellness */
.well-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.well-scale button { padding: 12px 4px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: 22px; transition: transform .2s var(--spring), background .2s; }
.well-scale button span { display: block; font-size: 10.5px; font-weight: 700; color: var(--muted); margin-top: 2px; }
.well-scale button.on { background: var(--club-soft); border-color: var(--club); transform: scale(1.07); }
.readiness { font-family: var(--f-display); font-weight: 900; font-size: 18px; padding: 4px 10px; border-radius: 10px; }
.r-good { background: rgba(52, 211, 153, .15); color: var(--good); }
.r-mid { background: rgba(245, 165, 36, .15); color: var(--warn); }
.r-low { background: rgba(242, 85, 90, .15); color: var(--bad); }

/* Partidos */
.match-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: transform .2s var(--ease), border-color .2s; }
.match-row:hover { transform: translateX(3px); border-color: var(--line-2); }
.match-row .d { text-align: center; }
.match-row .d b { display: block; font-family: var(--f-display); font-size: 26px; line-height: 1; }
.match-row .d span { font-size: 11px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.score { font-family: var(--f-display); font-weight: 900; font-size: 26px; padding: 4px 12px; border-radius: 12px; font-variant-numeric: tabular-nums; }
.score.W { background: rgba(52, 211, 153, .15); color: var(--good); }
.score.L { background: rgba(242, 85, 90, .14); color: var(--bad); }
.score.D { background: var(--surface-3); color: var(--fg-2); }
.form-dots { display: flex; gap: 5px; }
.form-dots i { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 900; }
.form-dots i.W { background: var(--good); color: #052e1f; } .form-dots i.L { background: var(--bad); color: #fff; } .form-dots i.D { background: var(--surface-3); color: var(--fg-2); }

/* Partido en vivo */
.live { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; }
@media (max-width: 1100px) { .live { grid-template-columns: 1fr; } }
.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 16px; border-radius: 22px; background: linear-gradient(180deg, #0b1220, #070b14); color: #eef2fa; border: 1px solid rgba(255, 255, 255, .08); box-shadow: var(--shadow-lg); }
.scoreboard .tm { text-align: center; font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scoreboard .goals { font-family: var(--f-display); font-weight: 900; font-size: 64px; line-height: 1; text-align: center; font-variant-numeric: tabular-nums; }
.scoreboard .clock { font-family: var(--f-display); font-weight: 800; font-size: 44px; line-height: 1; color: #FFD166; text-shadow: 0 0 22px rgba(255, 209, 102, .35); text-align: center; font-variant-numeric: tabular-nums; }
.scoreboard .per { font-size: 11px; font-weight: 800; letter-spacing: .2em; color: #8fa0c4; text-align: center; }
.fouls { display: flex; gap: 4px; justify-content: center; margin-top: 6px; }
.fouls i { width: 10px; height: 10px; border-radius: 3px; background: rgba(255, 255, 255, .12); }
.fouls i.on { background: #FFD166; } .fouls i.on.max { background: #ff5d5d; }
.court-live { position: relative; aspect-ratio: 2 / 1; border-radius: 18px; overflow: hidden; border: 2px solid rgba(255, 255, 255, .1); user-select: none; touch-action: manipulation; }
.court-live canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.zone-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); }
.zone-grid button { border: 1px dashed rgba(255, 255, 255, .16); background: transparent; color: rgba(255, 255, 255, .85); font-family: var(--f-display); font-weight: 800; font-size: 20px; transition: background .2s; position: relative; }
.zone-grid button:hover { background: rgba(255, 255, 255, .08); }
.zone-grid button small { position: absolute; left: 6px; top: 4px; font-size: 10px; opacity: .6; font-family: var(--f-body); }
.zone-grid button.flash { animation: zflash .6s; }
@keyframes zflash { 0% { background: rgba(255, 255, 255, .45); } 100% { background: transparent; } }
.oncourt { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.bench { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.pchip { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 8px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); text-align: center; min-width: 0; transition: transform .2s var(--spring), border-color .2s, background .2s; }
.pchip .n { font-family: var(--f-display); font-weight: 900; font-size: 24px; line-height: 1; }
.pchip .nm { font-size: 11.5px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pchip .tm { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pchip.court { border-color: var(--club); background: var(--club-soft); }
.pchip.sel { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--club-2); }
.pchip.gk .n { color: var(--club-2); }
.pchip .warn-tag { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.ev-feed { display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow: auto; }
.ev { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); font-size: 13px; animation: rise .35s var(--ease); }
.ev .tm { font-family: var(--f-display); font-weight: 800; color: var(--muted); min-width: 46px; }
.goal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; aspect-ratio: 3 / 1.6; padding: 6px; border: 4px solid #e9edf5; border-bottom: 0; border-radius: 8px 8px 0 0;
  background-image: linear-gradient(45deg, rgba(255,255,255,.07) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.07) 75%), linear-gradient(-45deg, rgba(255,255,255,.07) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.07) 75%);
  background-size: 14px 14px; background-color: #14301f; }
.goal-grid button { border: 1px dashed rgba(255, 255, 255, .22); background: transparent; border-radius: 6px; color: #fff; font-weight: 800; font-family: var(--f-display); font-size: 18px; }
.goal-grid button:hover { background: rgba(255, 255, 255, .1); }
.big-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.big-actions button { padding: 14px 6px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); font-weight: 800; font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: transform .15s var(--ease); }
.big-actions button:active { transform: scale(.95); }

/* Mapa de remates */
.shotmap { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); gap: 3px; aspect-ratio: 2 / 1; padding: 6px; border-radius: 14px; background: linear-gradient(90deg, var(--wood-1), var(--wood-2)); }
.shotmap div { border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; font-family: var(--f-display); font-weight: 800; font-size: 20px; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.shotmap div small { font-family: var(--f-body); font-size: 10.5px; font-weight: 700; opacity: .9; }

/* Pizarra */
.board-wrap { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: start; }
.board-side { grid-column: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 1180px) { .board-wrap { grid-template-columns: 1fr; } .board-side { grid-column: 1; grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .board-side { grid-template-columns: 1fr; } }
.tools { grid-row: span 2; display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); position: sticky; top: 84px; }
@media (max-width: 1180px) { .tools { grid-row: auto; flex-direction: row; flex-wrap: wrap; position: static; justify-content: center; } .tools > div[style] { display: none; } }
.tool { width: 58px; height: 54px; border-radius: 14px; border: 1px solid transparent; background: var(--surface-2); color: var(--fg-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 9.5px; font-weight: 800; letter-spacing: .02em; transition: all .2s; }
.tool:hover { color: var(--fg); border-color: var(--line-2); }
.tool.on { background: var(--club); color: var(--club-ink); }
.tool .sw { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; }
.stage { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line-2); background: #2a1a0c; touch-action: none; user-select: none; }
.stage canvas { display: block; width: 100%; height: auto; touch-action: none; }
.steps-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin-top: 12px; overflow-x: auto; }
.step-chip { flex: none; min-width: 46px; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); font-family: var(--f-display); font-weight: 800; font-size: 18px; transition: all .2s var(--spring); }
.step-chip.on { background: var(--club); color: var(--club-ink); border-color: transparent; transform: translateY(-2px); }
.step-chip.add { border-style: dashed; color: var(--club); }
.rec { display: inline-flex; align-items: center; gap: 6px; color: var(--bad); font-weight: 800; font-size: 12px; }
.rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--bad); animation: pulse 1.2s infinite; }

/* Notificaciones */
.nlist { display: flex; flex-direction: column; gap: 10px; }
.notif { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: transform .25s var(--ease), border-color .2s, background .2s; animation: rise .45s var(--ease) both; }
.notif:hover { transform: translateY(-2px); border-color: var(--line-2); }
.notif.unread { background: linear-gradient(90deg, var(--club-soft), var(--surface) 55%); border-color: color-mix(in srgb, var(--club) 35%, var(--line)); }
.notif.unread::after { content: ""; position: absolute; top: 18px; right: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--club); }
.notif .ni { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.notif .nt { font-weight: 800; font-size: 14.5px; padding-right: 18px; }
.notif .nb { font-size: 13.5px; color: var(--fg-2); margin-top: 2px; }
.notif .nm { font-size: 11.5px; color: var(--muted); margin-top: 6px; font-weight: 600; }
.notif .na { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.npanel { position: fixed; z-index: 90; top: 70px; right: 22px; width: min(420px, calc(100% - 32px)); max-height: 72vh; display: flex; flex-direction: column; border-radius: 22px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); transform-origin: top right; animation: panelIn .3s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }
.npanel .nlist { padding: 12px; overflow: auto; }
.banner-push { position: fixed; z-index: 150; left: 50%; top: calc(14px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -140%); width: min(460px, calc(100% - 24px)); display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 12px 14px; border-radius: 18px; background: color-mix(in srgb, var(--surface-2) 92%, transparent); backdrop-filter: blur(18px); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); transition: transform .55s var(--spring); cursor: pointer; }
.banner-push.show { transform: translate(-50%, 0); }
.banner-push .ni { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.banner-push .bp-app { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; display: flex; justify-content: space-between; }

/* Planes */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; padding: 22px; border-radius: 24px; border: 1px solid var(--line-2); background: var(--surface); display: flex; flex-direction: column; gap: 14px; }
.plan.hl { border-color: var(--club); box-shadow: 0 20px 50px -24px var(--club-glow); background: linear-gradient(180deg, var(--club-soft), var(--surface) 40%); }
.plan .price { font-family: var(--f-display); font-weight: 900; font-size: 54px; line-height: 1; }
.plan .price small { font-family: var(--f-body); font-size: 13px; color: var(--muted); font-weight: 700; }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li svg { color: var(--good); flex: none; margin-top: 2px; }
.plan li.no { color: var(--faint); } .plan li.no svg { color: var(--faint); }

/* Login / landing */
.auth { position: relative; z-index: 1; min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-art { min-height: 340px; } }
.auth-art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 36px; background: radial-gradient(120% 90% at 20% 10%, rgba(47, 123, 255, .35), transparent 60%), linear-gradient(160deg, #0d1424, #070a12); color: #fff; }
.auth-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .95; }
.auth-art .copy { position: relative; max-width: 520px; }
.auth-art h1 { font-family: var(--f-display); font-weight: 900; font-size: clamp(44px, 7vw, 86px); line-height: .9; text-transform: uppercase; letter-spacing: .01em; }
.auth-art h1 em { font-style: normal; color: #FFD166; }
.auth-art p { color: #c9d3ea; font-size: 16px; max-width: 46ch; }
.auth-form { display: flex; flex-direction: column; justify-content: center; padding: 36px max(24px, env(safe-area-inset-right, 0px)) 36px max(24px, env(safe-area-inset-left, 0px)); }
.auth-card { width: min(440px, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; font-weight: 700; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.color-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.color-swatches button { width: 34px; height: 34px; border-radius: 10px; border: 2px solid transparent; transition: transform .2s var(--spring); }
.color-swatches button.on { border-color: var(--fg); transform: scale(1.1); }

/* Utilidades de tabla */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 800; padding: 8px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl tr:hover td { background: var(--surface-2); }
.tbl td.n, .tbl th.n { text-align: right; }
.loader { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--club); animation: spin .8s linear infinite; }
.boot { position: fixed; inset: 0; display: grid; place-items: center; z-index: 5; }

@media (max-width: 640px) {
  .topbar .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
  #pageActions .btn { font-size: 0; gap: 0; padding: 9px; }
  #pageActions .btn svg { width: 18px; height: 18px; }
  .hero .row { flex-wrap: wrap; }
}

/* Biblioteca de ejercicios */
.tool.lib { background: linear-gradient(150deg, var(--club-2), color-mix(in srgb, var(--club-2) 55%, #000)); color: #111; }
.tool.lib:hover { color: #111; filter: brightness(1.06); }
.mini-board { display: block; width: 100%; height: auto; border-radius: 10px; }
.mb-token { transform-box: view-box; }
.mb-anim .mb-token { transition: transform 1.05s cubic-bezier(.45, 0, .2, 1); }
.ai-box { background: linear-gradient(135deg, var(--club-soft), var(--surface-2)); border-color: color-mix(in srgb, var(--club) 30%, var(--line)); }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.lib-card { display: flex; flex-direction: column; gap: 0; padding: 0; text-align: left; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; min-width: 0; }
.lib-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.lib-card .mini-board { border-radius: 0; }
.lib-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lib-cat { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.lib-name { font-weight: 800; font-size: 14px; line-height: 1.25; }
.lib-meta { font-size: 12px; color: var(--muted); }
.dot-cat { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.lib-detail { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 760px) { .lib-detail { grid-template-columns: 1fr; } }
.lib-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; }
.lib-card .mini-board { aspect-ratio: 2 / 1; background: color-mix(in srgb, #C38A4E 35%, var(--surface-3)); }

/* Importar partidos */
.import-drop { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 30px 16px; border: 2px dashed var(--line-2); border-radius: 18px; cursor: pointer; color: var(--fg-2); transition: border-color .2s, background .2s; }
.import-drop:hover, .import-drop.over { border-color: var(--club); background: var(--club-soft); }
.import-drop svg { color: var(--club); }
.import-list { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow: auto; }
.import-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.3fr); gap: 10px; align-items: center; padding: 6px 8px; border-radius: 12px; background: var(--surface-2); }
.import-row svg { color: var(--faint); }

.manual-tbl td { padding: 6px; }
.num-in { width: 58px; padding: 7px 6px; text-align: center; font-variant-numeric: tabular-nums; }

/* Planificación */
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1100px) { .week-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .week-grid { grid-template-columns: 1fr 1fr; } }
.day-card { min-height: 150px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: transform .2s var(--ease), border-color .2s; min-width: 0; }
.day-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.day-card.today { border-color: var(--club); box-shadow: 0 0 0 1px var(--club) inset; }
.day-card.empty { background: transparent; border-style: dashed; }
.blk { display: flex; align-items: center; gap: 6px; font-size: 12px; min-width: 0; }
.blk span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-2); }
.blk b { font-variant-numeric: tabular-nums; }
.blk > i { width: 4px; align-self: stretch; min-height: 14px; border-radius: 3px; flex: none; }
.blk.big { align-items: flex-start; font-size: 14px; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.blk-activacion { background: #84CC16 !important; } .blk-fisica { background: #F2555A !important; } .blk-tecnico { background: var(--club) !important; } .blk-tactico { background: #7C5CFF !important; }
.blk-abp { background: #E0559B !important; } .blk-arqueros { background: #64748B !important; } .blk-juego { background: #F59E0B !important; } .blk-video { background: #0EA5C6 !important; } .blk-recuperacion { background: #16A37A !important; }
.blk-edit { display: grid; grid-template-columns: 150px minmax(0, 1fr) 76px 170px 40px; gap: 6px; align-items: center; }
@media (max-width: 760px) { .blk-edit { grid-template-columns: 1fr 76px 40px; } .blk-edit > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; } .blk-edit > :nth-child(4) { grid-column: 1 / -1; } }
.load-chart { display: flex; gap: 8px; align-items: flex-end; height: 140px; }
.load-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.load-bars { display: flex; gap: 3px; align-items: flex-end; height: 112px; width: 100%; justify-content: center; }
.load-bars .bar { max-width: 14px; }
.load-bars .bar.real { background: linear-gradient(180deg, var(--club-2), color-mix(in srgb, var(--club-2) 35%, transparent)); }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; }

/* Video */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.video-card { padding: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; overflow: hidden; transition: transform .2s var(--ease), border-color .2s; }
.video-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.video-thumb { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; background: linear-gradient(135deg, #111827, #1e293b); color: #fff; }
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-thumb svg { position: relative; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.video-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .video-layout { grid-template-columns: 1fr; } }
.video-frame { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; display: grid; place-items: center; max-width: 100%; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.clip { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.clip-time { display: inline-flex; align-items: center; gap: 4px; padding: 6px 9px; border-radius: 9px; border: 0; background: var(--club); color: var(--club-ink); font-family: var(--f-display); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; flex: none; }

/* Material */
.mat-item { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.mat-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--club-soft); color: var(--club); flex: none; }

/* Torneo */
.standings tr.me td { background: var(--club-soft); }
.pos-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--surface-3); font-weight: 800; font-size: 12.5px; }
.pos-num.up { background: rgba(52, 211, 153, .2); color: var(--good); }
.fixture-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
@media (max-width: 400px) { .fixture-grid { grid-template-columns: 1fr; } }
.game { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; padding: 6px 8px; border-radius: 12px; }
.game.mine { background: var(--club-soft); }
.game .gt { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; font-weight: 700; }
.game .gt span { overflow-wrap: normal; word-break: normal; hyphens: manual; line-height: 1.2; min-width: 0; }
.game:not(.mine) .gt .crest { width: 18px !important; height: 18px !important; font-size: 7px !important; }
.game:not(.mine) { gap: 4px; padding: 6px 4px; }
.game .gt.home { justify-content: flex-end; text-align: right; }
.game .score { font-size: 16px; padding: 4px 10px; border: 0; cursor: pointer; background: var(--surface-3); color: var(--fg); }
.score-in { width: 38px; padding: 6px 2px; text-align: center; font-weight: 800; }

.crest.rival { background: var(--surface-3); color: var(--fg-2); }

/* Vista del/la deportista */
.preview-bar { background: color-mix(in srgb, var(--club-2) 22%, transparent); color: var(--fg); margin-top: 4px; }
.athlete-home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .athlete-home { grid-template-columns: minmax(0, 1fr); } .pc-stats { gap: 5px; } .pc-stat b { font-size: 20px; } }
.player-card { position: relative; overflow: hidden; border-radius: 24px; padding: 20px; color: #fff;
  background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--club-2) 45%, transparent), transparent 55%), linear-gradient(150deg, var(--club), color-mix(in srgb, var(--club) 35%, #050a14));
  box-shadow: 0 24px 50px -24px var(--club-glow); }
.pc-num { position: absolute; right: 8px; bottom: -36px; font-family: var(--f-display); font-weight: 900; font-size: 190px; line-height: 1; color: rgba(255,255,255,.1); pointer-events: none; }
.pc-stats { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.pc-stat { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 14px; background: rgba(0,0,0,.22); backdrop-filter: blur(6px); min-width: 0; }
.pc-stat b { font-family: var(--f-display); font-size: 24px; line-height: 1; }
.pc-stat span { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .8; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* Planificación estilo PlanA.R.D. */
.plan-config { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 760px) { .plan-config { grid-template-columns: 1fr; } }
.disc-chip { gap: 6px; }
.chip-x { border: 0; background: none; color: var(--muted); padding: 0 0 0 2px; display: inline-grid; place-items: center; }
.chip-x:hover { color: var(--fg); }
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ws-day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); min-width: 0; }
.ws-day b { font-size: 22px; color: var(--fg); line-height: 1; }
.ws-day small { font-size: 10.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ws-day.training { border-color: color-mix(in srgb, var(--club) 45%, var(--line)); background: var(--club-soft); color: var(--fg-2); }
.ws-day.match { border-color: rgba(242, 85, 90, .5); background: rgba(242, 85, 90, .12); color: var(--bad); }
.ws-day.today { box-shadow: 0 0 0 2px var(--club-2); }
.day-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .day-plans { grid-template-columns: minmax(0, 1fr); } }
.day-plan { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 90px; }
.day-plan.is-match { border-color: rgba(242, 85, 90, .35); }
.plan-title { font-weight: 700; }
.mini-field { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.mini-field .input { padding: 7px 9px; }
.disc-field { display: flex; flex-direction: column; gap: 4px; padding-left: 10px; border-left: 3px solid var(--dc); }
.disc-field textarea { min-height: 54px; resize: vertical; }
.disc-label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--dc); }
.disc-view { padding-left: 10px; border-left: 3px solid var(--dc); }
.tag-pill { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: var(--tc); background: color-mix(in srgb, var(--tc) 14%, transparent); }

.round-card.st-suspended, .round-card.st-postponed { border-color: rgba(245, 165, 36, .45); }
.add-game { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; align-items: center; margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--line-2); }

/* ---------- Tarjeta tipo FIFA (compromiso) ---------- */
.fut-row { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 560px) { .fut-row { grid-template-columns: 1fr; } .fut { margin: 0 auto; } }
.fut { --ink: #2b1d00; --bg: linear-gradient(160deg, #fff3c2, #e7b844 45%, #9b6d12); position: relative; width: 250px; aspect-ratio: 5 / 7.2; padding: 26px 20px 30px; color: var(--ink); background: var(--bg);
  clip-path: polygon(0 7%, 14% 0, 86% 0, 100% 7%, 100% 90%, 50% 100%, 0 90%); display: flex; flex-direction: column; overflow: hidden; animation: futIn .7s cubic-bezier(.2, .9, .3, 1.3) both; }
.fut::after { content: ''; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .45) 50%, transparent 60%); transform: translateX(-60%); animation: futShine 4.5s ease-in-out infinite 1s; pointer-events: none; }
.fut.tier-bronze { --ink: #2a1408; --bg: linear-gradient(160deg, #f0c39d, #b8743f 50%, #6d3c1b); }
.fut.tier-silver { --ink: #1b2026; --bg: linear-gradient(160deg, #ffffff, #c4cbd4 50%, #7c8692); }
.fut.tier-legend { --ink: #f7d977; --bg: radial-gradient(circle at 30% 20%, #6d2fb3, #2a0f52 55%, #0b0618); }
.fut-top { display: flex; gap: 8px; align-items: flex-start; }
.fut-ovr { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 4px; }
.fut-ovr b { font-family: var(--f-display); font-size: 46px; line-height: .9; font-weight: 900; }
.fut-ovr span { font-weight: 900; font-size: 13px; letter-spacing: .06em; }
.fut-ovr .fut-num { font-size: 12px; opacity: .8; }
.fut-pic { flex: 1; display: grid; place-items: center; }
.fut-pic .avatar { box-shadow: 0 10px 24px rgba(0, 0, 0, .3); border: 3px solid rgba(255, 255, 255, .5); }
.fut-name { margin: 10px 0 8px; padding-bottom: 6px; text-align: center; font-family: var(--f-display); font-weight: 900; font-size: 20px; text-transform: uppercase; border-bottom: 1.5px solid color-mix(in srgb, var(--ink) 35%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fut-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; padding: 0 6px; }
.fut-st { display: flex; align-items: baseline; gap: 6px; }
.fut-st b { font-family: var(--f-display); font-size: 19px; font-weight: 900; min-width: 30px; text-align: right; }
.fut-st span { font-size: 12px; font-weight: 800; letter-spacing: .05em; opacity: .85; }
.fut-tier { margin-top: auto; text-align: center; font-size: 10.5px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
@keyframes futIn { from { opacity: 0; transform: translateY(14px) rotateY(25deg) scale(.94); } }
@keyframes futShine { 0%, 70% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
@media (prefers-reduced-motion: reduce) { .fut, .fut::after { animation: none; } }

/* Pizarra en modo lectura (jugadores/as) */
.board-wrap.viewer { grid-template-columns: minmax(0, 1fr) 300px; }
.board-wrap.viewer .board-side { grid-column: auto; grid-template-columns: 1fr; }
@media (max-width: 1000px) { .board-wrap.viewer { grid-template-columns: 1fr; } }
.mini-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.mini-st { background: var(--surface-2); border-radius: 12px; padding: 8px 10px; }
.mini-st b { display: block; font-family: var(--f-display); font-size: 18px; }
.mini-st span { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.fut-flag { display: block; line-height: 0; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.fut-flag svg { display: block; border-radius: 2px; }

/* Día de partido y cronograma */
.match-day { display: grid; gap: 12px; padding: 14px; border-radius: 14px; background: var(--surface-2); }
.md-vs { font-family: var(--f-display); font-weight: 900; font-size: 26px; text-transform: uppercase; line-height: 1.1; }
.agenda { display: grid; gap: 4px; }
.ag-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 6px 10px; border-radius: 10px; background: var(--surface-2); border-left: 3px solid var(--club); font-size: 13.5px; }
.ag-row b { color: var(--club-2); }
.ag-edit { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.flyer-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.flyer-prev { width: 100%; border-radius: 12px; box-shadow: var(--shadow, 0 10px 30px rgba(0,0,0,.4)); background: var(--surface-2); aspect-ratio: 4 / 5; }
@media (max-width: 760px) { .flyer-grid { grid-template-columns: 1fr; } .flyer-prev { max-width: 300px; } }

/* Rivales y armado de fixture */
.crest.rival.has-logo { background: transparent; }
.crest.rival.has-logo img { object-fit: contain; }
.rival-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.rival-card { display: grid; justify-items: center; gap: 8px; padding: 18px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: inherit; text-align: center; cursor: pointer; transition: transform .15s, border-color .15s; }
.rival-card:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--club); }
.rival-card:disabled { cursor: default; }
.pair-chip { display: inline-flex; align-items: center; gap: 6px; }
.pair-chip .crest { border-radius: 6px; }
.pair-chip.used { opacity: .55; }
.pairer { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--line-2); }
.fx-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 12px; background: var(--surface-2); }
.seg.mini button { padding: 4px 10px; font-size: 12px; }
.icon-btn.sm { width: 30px; height: 30px; font-size: 14px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.add-disc { width: auto; align-self: flex-start; font-size: 13px; padding: 6px 10px; border-style: dashed; }
.disc-label .chip-x { margin-left: 6px; vertical-align: middle; }
.week-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.week-nav b { display: flex; align-items: center; font-family: var(--f-display); font-size: 18px; text-transform: uppercase; }
@media (max-width: 560px) { .week-nav > .btn { font-size: 0; gap: 0; padding: 9px; } .week-nav b { font-size: 15px; } }
.disc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.disc-time { width: auto; padding: 3px 6px; font-size: 12.5px; }
.disc-tools { margin-left: auto; display: flex; gap: 2px; }
.icon-btn.xs { width: 26px; height: 26px; font-size: 13px; border-radius: 8px; }
.score-in.wide { width: 74px; }
.test-load td { padding-top: 4px; padding-bottom: 4px; }
.test-sum { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.test-load .set-row td { border-top: 0; padding-top: 0; }
.test-sum-wrap > summary { list-style: none; cursor: pointer; }
.test-sum-wrap > summary::-webkit-details-marker { display: none; }
.test-sum-wrap[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.test-hist { padding: 10px; background: var(--surface-2); border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; display: grid; gap: 6px; }
.test-day { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; font-size: 13px; padding: 6px 0; border-bottom: 1px dashed var(--line-2); }
.test-day:last-child { border-bottom: 0; }

/* Playoffs: llaves en columnas (en celular se desliza de costado) */
.po-bracket { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.po-col { display: flex; flex-direction: column; gap: 10px; min-width: 220px; flex: 1; }
.po-ties { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 12px; }
.po-team.win .ellipsis { font-weight: 800; }
.po-tie { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.po-tie.tap { cursor: pointer; }
.po-tie.tap:hover { border-color: var(--club); }
.po-team { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; }
.po-team .ellipsis { flex: 1; min-width: 0; }
.po-team.me .ellipsis { font-weight: 800; }
.po-team.win b { color: var(--good, #2bd47d); }
.po-team:not(.win) b { opacity: .8; }
.po-seed { font-size: 11px; font-weight: 800; opacity: .6; width: 16px; text-align: right; }
.po-fmt { width: auto; padding: 4px 8px; font-size: 12px; }

/* Convocatoria en el inicio del plantel */
.callup-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 13px; text-align: left; }
.callup-list > div { display: flex; gap: 8px; align-items: center; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.callup-list .num { min-width: 22px; color: var(--club-2, var(--club)); }
.callup-list .me { font-weight: 800; }

/* Inicio del plantel: saludo, frase del día y MD */
.today-hero { grid-column: 1 / -1; position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 24px; align-items: center;
  padding: 26px 28px; border-radius: 26px; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); color: var(--text);
  background: radial-gradient(90% 160% at 100% 0%, color-mix(in srgb, var(--club) 60%, transparent), transparent 60%),
    radial-gradient(60% 120% at 0% 100%, color-mix(in srgb, var(--club-2) 22%, transparent), transparent 60%),
    linear-gradient(150deg, color-mix(in srgb, var(--club) 20%, var(--surface)), var(--surface)); }
.today-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(255,255,255,.035) 22px 24px); }
.th-main { position: relative; min-width: 0; }
.th-hello { font-size: clamp(34px, 5vw, 52px); margin: 6px 0 12px; }
.th-quote { margin: 0; padding: 12px 16px; border-left: 4px solid var(--club-2); border-radius: 0 14px 14px 0; background: color-mix(in srgb, var(--surface) 55%, transparent); max-width: 720px; }
.th-quote p { margin: 0; font-size: 15.5px; line-height: 1.45; font-style: italic; font-weight: 600; }
.th-quote cite { display: block; margin-top: 6px; font-size: 12.5px; font-style: normal; color: var(--muted); font-weight: 700; }
.th-quote.low { border-left-color: var(--good, #16A37A); }
.th-md { position: relative; text-align: center; padding: 16px 22px; border-radius: 22px; min-width: 170px;
  background: linear-gradient(160deg, var(--club), color-mix(in srgb, var(--club) 60%, #000)); color: var(--club-ink, #fff); box-shadow: 0 14px 34px color-mix(in srgb, var(--club) 40%, transparent); }
.th-md-n { font-size: 66px; line-height: .9; white-space: nowrap; }
.th-md-t { margin-top: 6px; font-size: 12.5px; font-weight: 700; opacity: .92; max-width: 180px; }
.th-chips { grid-column: 1 / -1; position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.th-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line-2); }
.th-chip.ok { color: var(--good, #16A37A); border-color: color-mix(in srgb, var(--good, #16A37A) 45%, transparent); }
.th-chip.warn { color: var(--warn, #E08A1E); border-color: color-mix(in srgb, var(--warn, #E08A1E) 45%, transparent); }
@media (max-width: 640px) { .today-hero { grid-template-columns: 1fr; padding: 20px 18px; } .th-md { display: flex; align-items: center; gap: 14px; text-align: left; min-width: 0; padding: 12px 16px; } .th-md-n { font-size: 48px; } .th-md-t { margin: 0; max-width: none; } }

/* Interruptor (on/off) */
.sw-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); cursor: pointer; }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 26px; border-radius: 999px; background: var(--surface-3); position: relative; cursor: pointer; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.switch:checked { background: var(--club); }
.switch:checked::after { transform: translateX(20px); }
.switch:disabled { opacity: .5; cursor: default; }

/* Hoy (cuerpo técnico): MD en lugar del cronómetro */
.md-strip { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 8px; }
.md-strip b { font-size: 46px; line-height: 1; padding: 6px 16px; border-radius: 14px; background: var(--club); color: var(--club-ink, #fff); }
.md-strip span { font-weight: 700; font-size: 15px; }
/* Batería de energía (día de partido) */
.battery { display: flex; align-items: center; gap: 4px; margin: 0 auto 14px; max-width: 360px; }
.bat-body { flex: 1; height: 64px; border: 4px solid var(--fg, currentColor); border-radius: 14px; padding: 5px; position: relative; }
.bat-body i { display: block; height: 100%; border-radius: 7px; transition: width .2s, background .2s; }
.bat-tip { width: 9px; height: 26px; border-radius: 0 6px 6px 0; background: var(--fg, currentColor); }
.battery .num { font-size: 34px; min-width: 92px; text-align: right; }
.bat-range { width: 100%; accent-color: var(--club); height: 28px; }

/* Videoanálisis: clips por rival */
.rival-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.rival-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 12px; text-align: center; border: 1px solid var(--line); color: inherit; font: inherit; cursor: pointer; }

/* Debajo del ingreso: beneficios y apps (compacto) */
.lp { position: relative; z-index: 1; }
.lp-sec { padding: 48px max(16px, calc((100% - 1100px) / 2)); border-top: 1px solid var(--line); }
.lp-head { max-width: 620px; margin-bottom: 20px; }
.lp-head h2, .lp-final h2 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(26px, 3.4vw, 38px); line-height: 1; margin: 6px 0 8px; }
.lp-head p, .lp-final p { margin: 0; font-size: 14.5px; }
.lp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lp-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.lp-card h3 { margin: 0 0 3px; font-size: 14.5px; }
.lp-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.lp-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--club); background: var(--club-soft); }
.lp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.lp-chips span { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.lp-app { display: flex; gap: 14px; align-items: center; max-width: 560px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.lp-app:hover { border-color: var(--club); }
.lp-app img { border-radius: 14px; flex: none; }
.lp-app b { font-size: 16px; }
.lp-app p { margin: 4px 0 6px; color: var(--muted); font-size: 13px; }
.lp-badge { font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); }
.lp-link { display: inline-flex; align-items: center; gap: 6px; color: var(--club); font-weight: 800; font-size: 13.5px; }
.lp-final { text-align: center; padding: 44px 16px; border-top: 1px solid var(--line); }
.lp-final .row { margin-top: 16px; }
.lp-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 18px max(16px, calc((100% - 1100px) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.lp-foot a { color: var(--muted); }
@media (max-width: 900px) { .lp-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .lp-grid { grid-template-columns: 1fr; } .lp-sec { padding-top: 36px; padding-bottom: 36px; } }
