/* Miguel Linares Coaching — grafito oscuro + acento de marca.
   --accent se cambia por coach (marca blanca) desde Ajustes. */
:root {
  --accent: #4680FF;
  --accent-ink: #fff;
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --bg: #111214;
  --bg-2: #17181B;
  --card: #1C1D21;
  --card-2: #24262B;
  --line: #2C2E34;
  --ink: #F3F3F4;
  --ink-2: #B3B5BB;
  --ink-3: #7A7D85;
  --ok: #22C55E;
  --warn: #F5A524;
  --bad: #F04444;
  --radius: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --head: 'Oswald', 'Arial Narrow', Impact, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: #0A0A0B; color: var(--ink); font-size: 15px; line-height: 1.45;
  color-scheme: dark;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0; }
svg { flex: none; }

#app { max-width: 480px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; background: var(--bg); position: relative; overflow-x: hidden; }
@media (min-width: 520px) { #app { box-shadow: 0 0 0 1px #1d1e22, 0 0 60px rgba(0,0,0,.6); } }
.screen { padding: 0 16px calc(96px + var(--safe-b)); }
.screen.no-tab { padding-bottom: calc(32px + var(--safe-b)); }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20; background: rgba(17,18,20,.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  margin: 0 -16px 10px; padding: 14px 16px 10px; display: flex; align-items: center; gap: 12px;
}
.top h1 { font-family: var(--head); font-size: 22px; font-weight: 600; letter-spacing: .2px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .sub { font-size: 12px; color: var(--ink-3); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); flex: none; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.sm { width: 34px; height: 34px; border-radius: 10px; }
.icon-btn.sm svg { width: 17px; height: 17px; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: #000; display: grid; place-items: center; flex: none; position: relative; border: 1px solid var(--line); }
.brand-mark b { font-family: var(--head); font-weight: 700; font-size: 17px; letter-spacing: .5px; line-height: 1; margin-top: -3px; }
.brand-mark i { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 16px; height: 3px; border-radius: 3px; background: var(--accent); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(140deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: 20px; padding: 18px; position: relative; overflow: hidden; margin-bottom: 12px; }
.hero::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.hero .kicker { font-size: 11.5px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.hero h2 { font-family: var(--head); font-size: 26px; margin: 4px 0 4px; font-weight: 600; text-transform: uppercase; }
.hero p { font-size: 13.5px; color: var(--ink-2); }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; }
.card.tight { padding: 10px 12px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 2px 10px; gap: 8px; }
.section-title h3 { font-family: var(--head); font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--ink-2); }
.section-title a, .section-title button { font-size: 13px; color: var(--accent); font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.stats.three { grid-template-columns: repeat(3, 1fr); }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.stat .v { font-family: var(--head); font-size: 26px; font-weight: 600; letter-spacing: .2px; line-height: 1.1; }
.stat .v small { font-size: 14px; color: var(--ink-3); font-weight: 500; }
.stat .l { font-size: 11.5px; color: var(--ink-3); line-height: 1.25; margin-top: 2px; }
.bar2 { height: 6px; background: var(--card-2); border-radius: 9px; overflow: hidden; margin-top: 8px; display: flex; }
.bar2 i { display: block; height: 100%; }

/* ---------- Listas ---------- */
.row { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; width: 100%; text-align: left; }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .s { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { color: var(--ink-3); flex: none; display: grid; }
.chev svg { width: 18px; height: 18px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }

.avatar { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; font-weight: 700; font-size: 14px; background: var(--card-2); color: var(--ink); border: 1px solid var(--line); }
.avatar.lg { width: 60px; height: 60px; border-radius: 18px; font-size: 20px; }
.avatar.f { color: #F9A8D4; }
.avatar.m { color: #93C5FD; }
.gdot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }

.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--card-2); color: var(--ink-2); white-space: nowrap; }
.pill.accent { background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 70%, #fff); }
.pill.ok { background: rgba(34,197,94,.14); color: #4ADE80; }
.pill.warn { background: rgba(245,165,36,.14); color: #FBBF24; }
.pill.bad { background: rgba(240,68,68,.15); color: #F87171; }
.pill.gray { background: var(--card-2); color: var(--ink-2); }
.pill svg { width: 13px; height: 13px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 8px; margin: 0 -16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0 0 4px; }
.chip { padding: 8px 13px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--ink-2); }
.chip.on { background: var(--ink); color: #111; border-color: var(--ink); }
.chip.acc { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.seg { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 3px; margin-bottom: 12px; }
.seg button { flex: 1; padding: 8px 4px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.seg button.on { background: var(--card-2); color: var(--ink); }

.search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; margin-bottom: 10px; }
.search svg { width: 18px; height: 18px; color: var(--ink-3); }
.search input { border: 0; outline: 0; background: none; padding: 11px 0; width: 100%; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 18px; border-radius: 13px; font-weight: 700; font-size: 15px; background: var(--accent); color: var(--accent-ink); width: 100%; text-align: center; }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn.light { background: var(--ink); color: #111; }
.btn.ok { background: var(--ok); color: #05210f; }
.btn.danger { background: rgba(240,68,68,.12); color: #F87171; }
.btn.wa { background: #25D366; color: #052e16; }
.btn.sm { padding: 9px 13px; font-size: 13.5px; width: auto; border-radius: 11px; }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; gap: 8px; }
.btn-row > * { flex: 1; }
.btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fab { position: fixed; bottom: calc(84px + var(--safe-b)); z-index: 25; width: 56px; height: 56px; border-radius: 18px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,.5); right: max(16px, calc(50vw - 240px + 16px)); }
.fab svg { width: 24px; height: 24px; }
.link { color: var(--accent); font-weight: 600; font-size: 13px; }

/* ---------- Tab bar ---------- */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 30; background: rgba(17,18,20,.95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); display: flex; padding: 6px 4px calc(6px + var(--safe-b)); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: 10.5px; font-weight: 600; color: var(--ink-3); position: relative; }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.on { color: var(--ink); }
.tabbar a.on::before { content: ''; position: absolute; top: -6px; width: 22px; height: 3px; border-radius: 3px; background: var(--accent); }
.tabbar .badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 16px; height: 16px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10px; display: grid; place-items: center; padding: 0 4px; }

/* ---------- Video ---------- */
.media { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16/9; background: #000; display: grid; place-items: center; border: 1px solid var(--line); }
.media iframe, .media video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media .ph { text-align: center; color: var(--ink-3); font-size: 13px; padding: 16px; }
.media .ph svg { width: 34px; height: 34px; margin-bottom: 6px; color: var(--ink-2); }

/* ---------- Sesión en vivo ---------- */
.ex-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 10px; position: relative; }
.ex-card.done { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.ex-card .head { display: flex; align-items: flex-start; gap: 10px; }
.ex-card .n { width: 26px; height: 26px; border-radius: 8px; background: var(--card-2); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--ink-2); flex: none; margin-top: 1px; }
.ex-card.done .n { background: var(--ok); color: #05210f; }
.ex-card .name { font-weight: 700; font-size: 15px; line-height: 1.25; }
.ex-card .tools { display: flex; gap: 6px; margin-left: auto; }
.ex-card .tools button { width: 32px; height: 32px; border-radius: 9px; background: var(--card-2); display: grid; place-items: center; color: var(--ink-2); }
.ex-card .tools button svg { width: 16px; height: 16px; }
.last { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--bg-2); font-size: 12.5px; color: var(--ink-2); }
.last b { color: var(--ink); font-weight: 700; }
.last .copy { margin-left: auto; color: var(--accent); font-weight: 700; font-size: 12px; white-space: nowrap; }
.target { background: var(--accent-soft); color: var(--ink); }
.inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.inputs label { font-size: 10.5px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.inputs input { width: 100%; margin-top: 4px; padding: 11px 6px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg-2); text-align: center; font-weight: 700; font-size: 18px; outline: 0; }
.inputs input:focus { border-color: var(--accent); }
.inputs input::placeholder { color: #4b4e55; font-weight: 600; }
.rpe { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-top: 8px; }
.rpe button { padding: 8px 0; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); font-weight: 700; font-size: 13px; color: var(--ink-2); }
.rpe button.on { color: #111; border-color: transparent; }
.rpe-l { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ink-3); margin-top: 4px; text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }
.result { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.quick { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 8px; padding: 0 16px 4px; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
.quick button { flex: none; padding: 8px 12px; border-radius: 11px; background: var(--card); border: 1px dashed var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.quick button svg { width: 14px; height: 14px; color: var(--accent); }
.rest-pill { position: fixed; z-index: 35; bottom: calc(82px + var(--safe-b)); left: 50%; transform: translateX(-50%); background: var(--ink); color: #111; border-radius: 99px; padding: 10px 16px; font-weight: 800; font-size: 16px; display: flex; gap: 10px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.rest-pill.over { background: var(--accent); color: #fff; animation: pulse 1s infinite; }
.rest-pill button { font-size: 12px; font-weight: 700; opacity: .7; }
@keyframes pulse { 50% { transform: translateX(-50%) scale(1.05); } }
.session-foot { position: fixed; z-index: 30; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; padding: 10px 16px calc(10px + var(--safe-b)); background: linear-gradient(to top, var(--bg) 70%, transparent); display: flex; gap: 8px; }
.session-foot .btn { box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.session-foot .icon-btn { width: 52px; height: 52px; border-radius: 14px; }

/* ---------- Semana ---------- */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.week .d { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.week .dot { width: 34px; height: 34px; margin: 4px auto 0; border-radius: 10px; display: grid; place-items: center; background: var(--card-2); color: var(--ink-3); font-size: 12px; font-weight: 600; }
.week .dot.on { background: var(--accent); color: #fff; }
.week .dot.plan { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--ink); }
.week .dot.today { outline: 2px solid var(--ink-2); outline-offset: 2px; }
.week .dot svg { width: 16px; height: 16px; }

/* ---------- Gráficas ---------- */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .tip { position: absolute; pointer-events: none; background: var(--ink); color: #111; font-size: 12px; font-weight: 600; padding: 6px 9px; border-radius: 9px; white-space: nowrap; transform: translate(-50%, -120%); opacity: 0; transition: opacity .12s; }
.chart .tip.on { opacity: 1; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .ax { fill: var(--ink-3); font-size: 10px; font-family: inherit; }

/* ---------- Formularios ---------- */
.field { margin-bottom: 12px; }
.field > label, .lbl { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.input, .field select, .field textarea { width: 100%; padding: 12px 13px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg-2); outline: 0; }
.input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { min-height: 80px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.check-row { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 6px 0; }
.check-row input { width: 20px; height: 20px; accent-color: var(--accent); }

/* ---------- Sheet ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .18s; }
.sheet { background: var(--bg-2); border: 1px solid var(--line); border-bottom: 0; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 10px 16px calc(24px + var(--safe-b)); animation: up .22s ease-out; }
.sheet .grab { width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 12px; }
.sheet h3 { font-family: var(--head); font-size: 20px; text-transform: uppercase; font-weight: 600; margin-bottom: 4px; }
.sheet .sub { color: var(--ink-3); font-size: 13px; margin-bottom: 12px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%); background: var(--ink); color: #111; font-weight: 600; padding: 11px 16px; border-radius: 13px; font-size: 13.5px; z-index: 80; max-width: 90vw; width: max-content; box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: up .2s; }

/* ---------- Login ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: 40px 20px calc(24px + var(--safe-b)); background: radial-gradient(120% 60% at 50% 0%, #1e1f23 0%, var(--bg) 60%); }
.logo-big { width: 112px; height: 112px; border-radius: 30px; background: #000; display: grid; place-items: center; margin: 10px auto 18px; position: relative; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.logo-big b { font-family: var(--head); font-size: 50px; font-weight: 700; letter-spacing: 1px; margin-top: -10px; }
.logo-big i { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); width: 46px; height: 6px; border-radius: 6px; background: var(--accent); }
.login h1 { font-family: var(--head); text-transform: uppercase; text-align: center; font-size: 28px; font-weight: 600; letter-spacing: .5px; }
.login .welcome { text-align: center; color: var(--ink-2); font-size: 14px; margin: 6px 0 28px; }
.role { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); margin-bottom: 10px; width: 100%; text-align: left; background: var(--card); }
.role .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--card-2); }
.role .ic.acc { background: var(--accent); color: #fff; }
.role .ic svg { width: 22px; height: 22px; }
.role b { display: block; font-size: 15.5px; }
.role span { font-size: 12.5px; color: var(--ink-2); }
.foot-note { margin-top: auto; text-align: center; font-size: 12px; color: var(--ink-3); padding-top: 20px; }
.code-input { letter-spacing: 12px; font-size: 26px; text-align: center; font-weight: 700; }

/* ---------- Avisos ---------- */
.note-box { display: flex; gap: 10px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; padding: 12px; font-size: 13.5px; color: var(--ink); margin-bottom: 10px; }
.note-box .from { display: block; font-size: 11px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 2px; }
.banner { display: flex; gap: 12px; align-items: center; border-radius: 14px; padding: 12px; margin-bottom: 10px; font-size: 13.5px; width: 100%; text-align: left; }
.banner.bad { background: rgba(240,68,68,.12); border: 1px solid rgba(240,68,68,.3); }
.banner.warn { background: rgba(245,165,36,.1); border: 1px solid rgba(245,165,36,.3); }
.banner.info { background: var(--card); border: 1px solid var(--line); }
.banner b { display: block; }
.banner .emoji { font-size: 22px; flex: none; }
.comment { border-left: 3px solid var(--line); padding: 2px 0 2px 10px; margin-top: 8px; font-size: 13.5px; color: var(--ink-2); font-style: italic; }
.empty { text-align: center; padding: 26px 16px; color: var(--ink-2); font-size: 14px; }
.empty svg { width: 36px; height: 36px; color: var(--ink-3); margin-bottom: 8px; }
.muted { color: var(--ink-3); font-size: 12.5px; }
.flex { display: flex; align-items: center; gap: 8px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mt { margin-top: 12px; }
.mt-s { margin-top: 6px; }
.mb { margin-bottom: 12px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; font-size: 13.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 500; text-align: right; }
.divider { height: 1px; background: var(--line); margin: 10px 0; }
.big-num { font-family: var(--head); font-size: 38px; font-weight: 600; line-height: 1; }

/* ---------- Tablas ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 8px 4px; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }

/* ---------- Fotos ---------- */
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-slot { aspect-ratio: 3/4; border-radius: 12px; background: var(--bg-2); border: 1px dashed var(--line); display: grid; place-items: center; overflow: hidden; position: relative; color: var(--ink-3); font-size: 12px; text-align: center; }
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot input { position: absolute; inset: 0; opacity: 0; }
.photo-slot svg { width: 26px; height: 26px; display: block; margin: 0 auto 4px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.compare figure { margin: 0; }
.compare figcaption { font-size: 12px; color: var(--ink-3); text-align: center; margin-top: 4px; }
.capture { width: 100%; border-radius: 12px; border: 1px solid var(--line); display: block; max-height: 420px; object-fit: contain; background: #000; }
.copy-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.copy-row:last-child { border-bottom: 0; }
.copy-row .k { font-size: 12px; color: var(--ink-3); width: 76px; flex: none; }
.copy-row .v { flex: 1; font-weight: 600; font-size: 14px; word-break: break-all; }
.copy-row button { color: var(--accent); flex: none; display: grid; }
.copy-row button svg { width: 18px; height: 18px; }

.celebrate { text-align: center; padding: 34px 10px 14px; }
.celebrate .big { width: 92px; height: 92px; border-radius: 28px; margin: 0 auto 16px; background: var(--accent); display: grid; place-items: center; color: #fff; box-shadow: 0 14px 40px color-mix(in srgb, var(--accent) 40%, transparent); }
.celebrate .big svg { width: 46px; height: 46px; }
.celebrate h2 { font-family: var(--head); text-transform: uppercase; font-size: 28px; font-weight: 600; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.confetti i { position: absolute; top: -10px; width: 8px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); } }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches button { width: 38px; height: 38px; border-radius: 12px; border: 2px solid transparent; }
.swatches button.on { border-color: var(--ink); }

/* Selector kg / lb por ejercicio */
.unit-row { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 10px; font-size: 11px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.useg { display: flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; padding: 2px; }
.useg button { padding: 5px 12px; border-radius: 7px; font-size: 13px; font-weight: 700; color: var(--ink-3); text-transform: none; }
.useg button.on { background: var(--ink); color: #111; }

/* Pestañas: si no caben, se deslizan */
.seg { overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { white-space: nowrap; flex: 1 0 auto; padding-left: 8px; padding-right: 8px; }

/* Logo propio del coach */
.brand-mark.has-logo, .logo-big.has-logo { background: #000; padding: 0; overflow: hidden; }
.brand-mark.has-logo img, .logo-big.has-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-mark.lg { width: 64px; height: 64px; border-radius: 16px; }

/* Logo transparente: sin cuadro detrás */
.brand-mark.has-logo { background: none; border: 0; border-radius: 0; }
.logo-big.has-logo { background: none; border: 0; box-shadow: none; width: 150px; height: 150px; margin-bottom: 10px; filter: drop-shadow(0 16px 40px rgba(70,128,255,.25)); }
.install-link { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px auto 0; color: var(--ink-2); font-weight: 600; font-size: 13.5px; }
.install-link svg { width: 16px; height: 16px; }
