/* FutmApp Recargados — estilos
   Cambia los colores del club en :root */
:root {
  --bg: #0b0f0c;
  --bg-2: #101611;
  --card: #151c17;
  --card-2: #1b241e;
  --line: #26322a;
  --text: #ecf3ee;
  --muted: #8fa196;
  --accent: #b6ff3b;
  --accent-ink: #0b0f0c;
  --accent-soft: rgba(182, 255, 59, .12);
  --ok: #3ddc84;
  --warn: #ffc14d;
  --danger: #ff5d5d;
  --wa: #25d366;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 24px rgba(0, 0, 0, .35);
  --nav-h: 64px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Barlow Condensed", "Inter", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(ellipse 120% 60% at 50% -10%, rgba(182, 255, 59, .07), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.5 var(--font);
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}
body.con-nav { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video, iframe { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.15; }
h1 { font: 800 30px/1.05 var(--font-display); letter-spacing: .3px; text-transform: uppercase; }
h2 { font: 700 20px/1.1 var(--font-display); letter-spacing: .3px; text-transform: uppercase; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0 0 .6em; }
code { background: var(--card-2); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.accent { color: var(--accent); }
.danger { color: var(--danger); }
.eyebrow { text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }

.ico { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex-shrink: 0; }
.ico-xl { width: 48px; height: 48px; margin: 0 auto 10px; }

/* ---------- Layout ---------- */
.wrap { max-width: 640px; margin: 0 auto; padding: 16px; }
.wrap.narrow { max-width: 440px; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  background: rgba(11, 15, 12, .88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 800 21px var(--font-display); text-transform: uppercase; letter-spacing: .5px; }
.brand:hover { text-decoration: none; }
.logo { width: 34px; height: 34px; }
.logo-xl { width: 88px; height: 88px; margin: 0 auto 12px; filter: drop-shadow(0 6px 30px rgba(182, 255, 59, .35)); }
.topbar-back { color: var(--text); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--card); }
.topbar-back .ico { width: 22px; height: 22px; }
.topbar-title { flex: 1; font-size: 18px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.topbar-avatar .avatar { width: 36px; height: 36px; font-size: 13px; }
.chip-link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--card); color: var(--text); font-size: 13px; font-weight: 600; border: 1px solid var(--line); }
.chip-link:hover { text-decoration: none; border-color: var(--accent); }
.chip-link.is-on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(13, 18, 14, .94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 600; }
.bottomnav a:hover { text-decoration: none; color: var(--text); }
.bottomnav .ico { width: 23px; height: 23px; }
.bottomnav a.is-on { color: var(--accent); }
.bottomnav a.is-on .ico { filter: drop-shadow(0 0 8px rgba(182, 255, 59, .55)); }

.subnav { display: flex; gap: 8px; overflow-x: auto; margin: -4px -16px 16px; padding: 4px 16px; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; background: var(--card); color: var(--muted); font-weight: 600; font-size: 13px; border: 1px solid var(--line); }
.subnav a:hover { text-decoration: none; color: var(--text); }
.subnav a.is-on { background: var(--accent-soft); color: var(--accent); border-color: rgba(182, 255, 59, .4); }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 14px; }
.page-head h1 { margin: 0; }
.section { margin: 22px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.section-head h2 { margin: 0; }
.section-head a:not(.btn) { font-size: 13px; font-weight: 600; }
.section-title { margin-bottom: 10px; }
details.section > summary { cursor: pointer; list-style: none; }
details.section > summary::-webkit-details-marker { display: none; }
details.section > summary::after { content: " ▾"; color: var(--muted); }
.count { display: inline-block; min-width: 24px; padding: 1px 8px; border-radius: 999px; background: var(--card-2); color: var(--muted); font: 600 13px var(--font); vertical-align: 3px; text-align: center; }

.hello { margin: 8px 0 14px; }
.hello h1 { font-size: 38px; }
.hello .eyebrow { margin: 0; color: var(--muted); text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 500; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; display: block; color: inherit; }
a.card:hover { text-decoration: none; border-color: #36463b; }
.card > h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.hero-card { background: linear-gradient(160deg, #1a251d, var(--card) 60%); }
.hero-card h1 { font-size: 34px; }
.hero-card p .ico { color: var(--accent); }
.notas { background: var(--bg-2); border-radius: var(--radius-sm); padding: 10px 12px; color: #c9d6cd; font-size: 14px; }

.list { padding: 4px 0; }
.card.list { padding: 4px 14px; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); color: inherit; }
.list-row:last-child { border-bottom: 0; }
a.list-row:hover { text-decoration: none; }
a.list-row:hover strong { color: var(--accent); }
.card.list-row { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.row-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.row-actions form { margin: 0; }
.log .list-row { align-items: flex-start; }

ol.players { counter-reset: n; list-style: none; margin: 0 0 12px; }
ol.players li { counter-increment: n; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
ol.players li:last-child { border-bottom: 0; }
ol.players li::before { content: counter(n); width: 22px; text-align: right; color: var(--muted); font: 700 15px var(--font-display); }
ol.players li .pl { flex: 1; }
.players .pl { padding: 9px 0; }
.players > .pl { border-bottom: 1px solid var(--line); }
.players > .pl:last-child { border-bottom: 0; }

.pl { display: flex; align-items: center; gap: 10px; color: inherit; min-width: 0; }
a.pl:hover { text-decoration: none; }
a.pl:hover .pl-name { color: var(--accent); }
.pl-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.pl-extra { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }

.avatar { --h: 120; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; object-fit: cover; font: 700 14px var(--font); color: #0b0f0c; background: hsl(var(--h) 70% 72%); }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.avatar.lg { width: 56px; height: 56px; font-size: 18px; }
.avatar.xl { width: 92px; height: 92px; font-size: 30px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 16px; border-radius: 12px;
  border: 1px solid transparent; background: var(--card-2); color: var(--text);
  font: 600 15px var(--font); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .08s ease, background .15s, border-color .15s;
}
.btn:hover { text-decoration: none; border-color: #3a4a3f; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; pointer-events: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #c6ff63; border-color: transparent; }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-wa { background: var(--wa); color: #06210f; }
.btn-wa:hover { background: #3ee37b; border-color: transparent; }
.btn-danger-ghost { background: transparent; color: var(--danger); border-color: rgba(255, 93, 93, .35); }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.btn-lg { min-height: 52px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
.btn-icon { padding: 0; width: 44px; }
.btn-icon.btn-sm { width: 34px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.btn-row .btn { flex: 1 1 auto; }

/* ---------- Badges / alerts ---------- */
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font: 700 11px/1.4 var(--font); text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
.badge-ok { background: rgba(61, 220, 132, .14); color: var(--ok); }
.badge-warn { background: rgba(255, 193, 77, .14); color: var(--warn); }
.badge-danger { background: rgba(255, 93, 93, .14); color: var(--danger); }
.badge-muted { background: var(--card-2); color: var(--muted); }
h1 .badge { font-size: 16px; padding: 6px 14px; }

.alert { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; font-weight: 500; border: 1px solid; }
.alert-ok { background: rgba(61, 220, 132, .1); border-color: rgba(61, 220, 132, .35); }
.alert-error { background: rgba(255, 93, 93, .1); border-color: rgba(255, 93, 93, .4); }
.alert-warn { background: rgba(255, 193, 77, .1); border-color: rgba(255, 193, 77, .4); color: var(--text); }
.alert-link:hover { text-decoration: none; border-color: var(--warn); }
.alert .ico { color: var(--warn); width: 22px; height: 22px; }

.empty { text-align: center; padding: 28px 16px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.empty .ico { width: 34px; height: 34px; margin: 0 auto 8px; opacity: .6; }
.empty p { margin: 0; }

/* ---------- Formularios ---------- */
.form label, .form fieldset { display: block; margin-bottom: 14px; font-weight: 600; font-size: 14px; }
.form h2 { margin-top: 10px; padding-top: 6px; }
.form h2:first-of-type { margin-top: 0; }
.form small { display: block; font-weight: 400; margin-top: 4px; }
input, select, textarea {
  display: block; width: 100%; margin-top: 6px;
  min-height: 46px; padding: 10px 12px;
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px;
  font: 16px var(--font);
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--accent); display: inline-block; }
input[type="range"] { padding: 0; min-height: 30px; accent-color: var(--accent); background: none; border: 0; }
input[type="file"] { padding: 10px; font-size: 14px; }
.check { display: flex !important; align-items: center; gap: 10px; font-weight: 500 !important; }
.pin-input { font-size: 24px; letter-spacing: 10px; text-align: center; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
.grid-2 input, .grid-2 select { min-width: 0; }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row strong { font: 800 24px var(--font-display); color: var(--accent); width: 20px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; margin-bottom: 8px; }
.inline-form select { flex: 1 1 160px; margin: 0; }
.inline-form .btn { flex: 0 0 auto; }
.search input { margin: 0 0 10px; }
.year-form select { margin: 0; min-height: 38px; padding: 6px 10px; width: auto; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { padding: 0; margin-bottom: 6px; }

/* Segmentado (A / B) */
.seg { display: inline-flex; gap: 4px; background: var(--bg-2); padding: 3px; border-radius: 10px; border: 1px solid var(--line); }
.seg label { margin: 0 !important; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; min-width: 38px; padding: 6px 10px; border-radius: 8px; text-align: center; font-weight: 700; color: var(--muted); }
.seg input:checked + span { background: var(--accent); color: var(--accent-ink); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.seg-lg { display: flex; width: 100%; }
.seg-lg legend { float: left; width: 100%; }
.seg-lg label { flex: 1; }
.seg-lg span { padding: 12px; }

/* ---------- Login ---------- */
.login { max-width: 400px; margin: 0 auto; padding-top: 6vh; }
.login-head { text-align: center; margin-bottom: 22px; }
.login-head h1 { font-size: 44px; }
.login-head .eyebrow { margin: 0; }
.login-head img { margin: 0 auto 12px; }
.big-code { font-size: 18px; background: var(--bg-2); padding: 12px; border-radius: 12px; }

/* ---------- Convocatorias ---------- */
.conv { padding: 0; overflow: hidden; }
.conv-link { display: flex; align-items: center; gap: 14px; padding: 16px 16px 10px; color: inherit; }
.conv-link:hover { text-decoration: none; }
.conv-link:hover h3 { color: var(--accent); }
.conv-date { display: grid; place-items: center; width: 58px; height: 62px; border-radius: 14px; background: var(--accent-soft); border: 1px solid rgba(182, 255, 59, .3); flex-shrink: 0; }
.conv-date .d { font: 800 28px/1 var(--font-display); color: var(--accent); }
.conv-date .m { font: 700 12px/1 var(--font); text-transform: uppercase; color: var(--accent); letter-spacing: 1px; margin-top: -4px; }
.conv-info { flex: 1; min-width: 0; }
.conv-info h3 { margin-bottom: 2px; font-size: 17px; }
.conv-info p { margin: 0; font-size: 13px; }
.conv-chev { color: var(--muted); }
.cupo { display: flex; align-items: center; gap: 10px; padding: 0 16px 12px; }
.cupo-bar { flex: 1; height: 8px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.cupo-bar span { display: block; height: 100%; background: linear-gradient(90deg, #7ed321, var(--accent)); border-radius: 99px; }
.cupo-txt { font-size: 13px; color: var(--muted); white-space: nowrap; }
.cupo-txt strong { color: var(--text); font-size: 15px; }
.conv-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .15); }
.hero-card .conv-foot { margin: 14px -16px -16px; border-radius: 0 0 var(--radius) var(--radius); }
.hero-card .conv-foot + .btn { margin-top: 28px; }
.respuesta { display: flex; gap: 8px; margin: 0; }
.btn-resp { min-height: 40px; padding: 8px 14px; background: var(--bg-2); border-color: var(--line); }
.btn-resp.is-voy { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-resp.is-novoy { background: rgba(255, 93, 93, .18); color: var(--danger); border-color: rgba(255, 93, 93, .5); }
.share-box textarea { font-size: 13px; }
.staff-box { border-style: dashed; }

/* ---------- Partidos ---------- */
.score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 6px 0; }
.score .team { font: 700 16px/1.15 var(--font-display); text-transform: uppercase; letter-spacing: .4px; }
.score .team:first-child { text-align: right; }
.score .nums { font: 800 34px/1 var(--font-display); color: var(--text); white-space: nowrap; }
.score .nums i { font-style: normal; color: var(--muted); padding: 0 2px; font-weight: 600; }
.score-xl .nums { font-size: 56px; color: var(--accent); }
.score-xl .team { font-size: 20px; }
.score-card:hover .nums { color: var(--accent); }
.match-top { display: flex; justify-content: space-between; align-items: center; }
.match-icons { display: flex; gap: 10px; color: var(--accent); font-size: 13px; font-weight: 700; }
.mvp-win { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 99px; background: rgba(255, 193, 77, .14); color: var(--warn); font-weight: 700; }
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.team-card h3, .team-name { font: 800 18px var(--font-display); text-transform: uppercase; color: var(--accent); }
.team-name { background: transparent; border: 0; border-bottom: 1px dashed var(--line); border-radius: 0; padding: 4px 0; min-height: 0; margin: 0 0 4px; }
.team-card .pl-name { font-size: 14px; }
.team-card .pl-extra { color: var(--accent); letter-spacing: -1px; font-size: 10px; }

.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; margin-bottom: 12px; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.yt-play img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.yt-play span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.yt-play .ico { width: 64px; height: 64px; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .6)); }

/* ---------- Goles ---------- */
.gol-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.gol-head h3 { margin: 0; }
.gol-head h3 a { color: var(--text); }
.gol-head p { margin: 0; }
.min { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 12px; }
.gol-nota { font-style: italic; color: #c9d6cd; }
.clip { width: 100%; max-height: 70vh; border-radius: 12px; background: #000; margin-bottom: 10px; }
.gol-actions { display: flex; gap: 8px; }
.gol-actions .btn:first-child { flex: 1; }

/* ---------- Stats / ranking ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.stats-4 { grid-template-columns: repeat(2, 1fr); }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 8px; text-align: center; }
.stat strong { display: block; font: 800 30px/1.05 var(--font-display); color: var(--accent); }
.stat span { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat.ok strong { color: var(--ok); }
.stat.danger strong { color: var(--danger); }
.stats-4 .stat strong { font-size: 26px; }

.tabs { display: flex; gap: 6px; margin-bottom: 14px; background: var(--card); padding: 4px; border-radius: 12px; border: 1px solid var(--line); }
.tabs a { flex: 1; text-align: center; padding: 8px 10px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs a.is-on { background: var(--accent); color: var(--accent-ink); }
.tabs-scroll { overflow-x: auto; scrollbar-width: none; }
.tabs-scroll::-webkit-scrollbar { display: none; }

.podium { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; gap: 8px; margin: 18px 0 14px; }
.podium-item { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text); }
.podium-item:hover { text-decoration: none; }
.podium-name { font-weight: 700; font-size: 13px; text-align: center; }
.podium-num { font: 800 26px/1 var(--font-display); color: var(--accent); }
.podium-step { width: 100%; text-align: center; font: 800 22px var(--font-display); color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 12px 12px 4px 4px; padding-top: 8px; }
.p1 .podium-step { height: 76px; background: linear-gradient(180deg, rgba(182, 255, 59, .22), var(--card)); color: var(--accent); }
.p2 .podium-step { height: 54px; }
.p3 .podium-step { height: 40px; }
.p1 .avatar { box-shadow: 0 0 0 3px var(--accent), 0 0 30px rgba(182, 255, 59, .35); }

.table-wrap { padding: 4px 8px; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: center; color: var(--muted); font-size: 12px; font-weight: 700; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.table th:nth-child(2) { text-align: left; }
.table td { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: center; }
.table tr:last-child td { border-bottom: 0; }
.table td:nth-child(2) { text-align: left; max-width: 160px; }
.table .pos { color: var(--muted); font: 700 16px var(--font-display); width: 28px; }
.table .hl { color: var(--accent); font-weight: 800; }
.table tr.is-me td { background: var(--accent-soft); }

/* ---------- Perfil ---------- */
.profile { text-align: center; padding: 12px 0 4px; }
.profile .avatar { margin: 0 auto 10px; box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--accent); }
.collapsible { padding: 0; }
.collapsible summary { padding: 16px; cursor: pointer; font-weight: 600; list-style: none; display: flex; gap: 10px; align-items: center; }
.collapsible summary::-webkit-details-marker { display: none; }
.collapsible[open] summary { border-bottom: 1px solid var(--line); }
.collapsible .form { padding: 16px; }
.price { font: 800 40px var(--font-display); color: var(--accent); margin: 0 0 8px; }
.price .muted { font-size: 18px; }

.pager { display: flex; gap: 8px; justify-content: space-between; }
.upload-progress .bar { height: 10px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.upload-progress .bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 14px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #f2f7f3; color: #0b0f0c; padding: 11px 18px; border-radius: 12px;
  font-weight: 600; font-size: 14px; box-shadow: var(--shadow); transition: .25s; z-index: 50;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.sin-nav .toast { bottom: 24px; }

@media (min-width: 720px) {
  .wrap { padding: 24px 16px; }
  .stats-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 380px) {
  .teams { grid-template-columns: 1fr; }
  .score .nums { font-size: 28px; }
  .score-xl .nums { font-size: 44px; }
  .respuesta { width: 100%; }
  .respuesta .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* =========================================================
   v1.1 — cuotas, bajas, invitados y jugadas
   ======================================================= */
.stats-2 { grid-template-columns: repeat(2, 1fr); }
.stats-3 { grid-template-columns: repeat(3, 1fr); }
.stats-3 .stat strong, .stats-2 .stat strong { font-size: 24px; }
.stats-6 { grid-template-columns: repeat(3, 1fr); }
.stats-6 .stat strong { font-size: 26px; }
a.stat { color: inherit; }
a.stat:hover { text-decoration: none; border-color: #3a4a3f; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #ff7676; border-color: transparent; }
.btn-resp.is-voy:disabled { opacity: 1; }
.btn-resp.is-novoy:disabled { opacity: 1; }
.btn-resp.is-bloq { color: var(--warn); border-color: rgba(255, 193, 77, .5); }

.alert-info { background: transparent; border: 0; padding: 0; }
.alert-important { background: rgba(255, 193, 77, .16); border-color: var(--warn); color: var(--text); }
.alert-important .ico { color: var(--warn); }
.alert-important span { flex: 1; min-width: 0; }

.reconf { width: 100%; padding: 12px; border-radius: 12px; background: rgba(255, 193, 77, .12); border: 1px solid rgba(255, 193, 77, .5); }
.reconf p { margin: 0 0 10px; }
.reconf .ico { color: var(--warn); width: 18px; height: 18px; vertical-align: -3px; }
.reconf .respuesta .btn { flex: 1; }

.invitados { margin-top: 12px; }
.invitados .btn-block { margin-bottom: 6px; }
.mis-inv { list-style: none; margin: 4px 0 0; padding: 0; }
.mis-inv li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.mis-inv li:last-child { border-bottom: 0; }
.mis-inv form { margin: 0; }
.pl-action { margin: 0 0 0 6px; flex-shrink: 0; }
.players li { display: flex; align-items: center; }
.players li > .pl { flex: 1; min-width: 0; }
.players .pl-extra { white-space: normal; text-align: right; font-size: 12px; }

/* Diálogos */
.dlg { width: min(440px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.dlg::backdrop { background: rgba(0, 0, 0, .65); backdrop-filter: blur(2px); }
.dlg h2 { margin: 0 0 8px; font: 800 24px var(--font-display); text-transform: uppercase; }
.dlg form { margin: 0; }
.dlg label { display: block; margin-bottom: 10px; }
.dlg-txt { font-size: 16px; font-weight: 500; margin: 4px 0 8px; }
.dlg-actions { margin-bottom: 0; }
.opcion { display: flex !important; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--bg-2); }
.opcion input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; }
.opcion strong { display: block; }
.opcion small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; line-height: 1.4; }
.opcion:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.sub-campos { padding: 4px 0 4px 30px; }

/* Cuotas */
.cuotas-box { border-color: rgba(255, 193, 77, .5); }
.cuotas-box.is-vencida { border-color: var(--danger); }
.cuotas-box h2 { display: flex; align-items: center; gap: 8px; margin: 0; }
.cuotas-box .total, .cuota-miembro .section-head strong { font: 800 26px var(--font-display); color: var(--warn); }
.cuotas-box.is-vencida .total { color: var(--danger); }
.cargos { list-style: none; margin: 8px 0 12px; padding: 0; }
.cargos li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cargos li:last-child { border-bottom: 0; }
.cargos li > span:first-child { min-width: 0; }
.cargos small { display: block; }
.cargos form { margin: 0; }
.cuota-miembro .section-head { margin-bottom: 0; }
.cuota-miembro details { margin-top: 6px; }
.match-cargos { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 8px 0 0; }
.costos { padding: 12px; border: 1px dashed var(--line); border-radius: 12px; margin-bottom: 12px; }
.costos legend { font-weight: 700; padding: 0 6px; }
.check-row { cursor: pointer; }
.check-row .check { margin: 0 !important; flex-shrink: 0; }
.check-row input { width: 20px; height: 20px; accent-color: var(--accent); }

/* Jugadas */
.tipo-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: var(--card-2); color: var(--muted); font-size: 12px; font-weight: 600; vertical-align: 2px; }
.tipo-atajada .tipo-tag { color: #7cc4ff; background: rgba(124, 196, 255, .12); }
.tipo-defensa .tipo-tag { color: var(--warn); background: rgba(255, 193, 77, .12); }

@media (min-width: 720px) {
  .stats-6 { grid-template-columns: repeat(6, 1fr); }
}
.hero-card .conv-foot:not(:last-child) { margin-bottom: 12px; border-radius: 0; border-bottom: 1px solid var(--line); }
.reconf .respuesta { flex-wrap: wrap; width: 100%; }
.reconf .respuesta .btn { flex: 1 1 120px; min-width: 0; }
