/* ─────────────────────────────────────────────────────────────────────────────
   GimnastIA · estilo iOS (HIG): listas agrupadas, títulos grandes, barra inferior
   ───────────────────────────────────────────────────────────────────────────── */
:root {
  --bg: #F2F2F7;
  --card: #FFFFFF;
  --card-2: #F2F2F7;
  --fill: rgba(118, 118, 128, 0.12);
  --fill-2: rgba(118, 118, 128, 0.2);
  --label: #000000;
  --label-2: rgba(60, 60, 67, 0.64);
  --label-3: rgba(60, 60, 67, 0.36);
  --sep: rgba(60, 60, 67, 0.2);
  --accent: #0062D6;
  --accent-soft: rgba(0, 98, 214, 0.11);
  --accent-fill: #0062D6;
  --on-accent: #FFFFFF;
  --green: #1F9D46;
  --green-soft: rgba(52, 199, 89, 0.15);
  --red: #D70015;
  --red-soft: rgba(255, 59, 48, 0.12);
  --blue: #007AFF;
  --amber: #B25000;
  --amber-soft: rgba(255, 149, 0, 0.15);
  --hue-blue: #0062D6;
  --hue-teal: #0C8599;
  --hue-indigo: #5856D6;
  --hue-purple: #7B3FE4;
  --hue-green: #2B8A3E;
  --bar-bg: rgba(249, 249, 249, 0.82);
  --island: #000000;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
  --r-card: 12px;
  --r-sheet: 14px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', system-ui, sans-serif;
  --font-num: ui-rounded, 'SF Pro Rounded', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --card: #1C1C1E;
    --card-2: #2C2C2E;
    --fill: rgba(118, 118, 128, 0.24);
    --fill-2: rgba(118, 118, 128, 0.36);
    --label: #FFFFFF;
    --label-2: rgba(235, 235, 245, 0.64);
    --label-3: rgba(235, 235, 245, 0.32);
    --sep: rgba(84, 84, 88, 0.55);
    --accent: #4DA3FF;
    --accent-soft: rgba(77, 163, 255, 0.18);
    --accent-fill: #1E72E8;
    --on-accent: #FFFFFF;
    --green: #30D158;
    --green-soft: rgba(48, 209, 88, 0.18);
    --red: #FF6961;
    --red-soft: rgba(255, 69, 58, 0.18);
    --blue: #0A84FF;
    --amber: #FFB340;
    --amber-soft: rgba(255, 159, 10, 0.18);
    --hue-blue: #4DA3FF;
    --hue-teal: #3BC9DB;
    --hue-indigo: #7D7AFF;
    --hue-purple: #B48CFF;
    --hue-green: #51CF66;
    --bar-bg: rgba(22, 22, 24, 0.82);
    --island: #000000;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --card: #1C1C1E; --card-2: #2C2C2E;
  --fill: rgba(118, 118, 128, 0.24); --fill-2: rgba(118, 118, 128, 0.36);
  --label: #FFFFFF; --label-2: rgba(235, 235, 245, 0.64); --label-3: rgba(235, 235, 245, 0.32);
  --sep: rgba(84, 84, 88, 0.55); --accent: #4DA3FF; --accent-soft: rgba(77, 163, 255, 0.18); --accent-fill: #1E72E8; --on-accent: #FFFFFF;
  --green: #30D158; --green-soft: rgba(48, 209, 88, 0.18); --red: #FF6961; --red-soft: rgba(255, 69, 58, 0.18);
  --blue: #0A84FF; --amber: #FFB340; --amber-soft: rgba(255, 159, 10, 0.18);
  --hue-blue: #4DA3FF; --hue-teal: #3BC9DB; --hue-indigo: #7D7AFF; --hue-purple: #B48CFF; --hue-green: #51CF66;
  --bar-bg: rgba(22, 22, 24, 0.82);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--label);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.muted { color: var(--label-2); }
.faint { color: var(--label-3); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.app { max-width: 560px; margin: 0 auto; min-height: 100dvh; }
.screen { padding: calc(var(--safe-top) + 24px) 16px calc(var(--safe-bottom) + 104px); }
.large-title { font-family: var(--font-display); font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: 0.37px; margin: 8px 4px 2px; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--label-2); text-transform: uppercase; letter-spacing: -0.08px; margin: 0 4px; }
.subhead { font-size: 15px; color: var(--label-2); margin: 0 4px 18px; }

.section { margin-top: 26px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 16px 7px; }
.section-head h2 { font-size: 13px; font-weight: 400; text-transform: uppercase; color: var(--label-2); margin: 0; letter-spacing: -0.08px; }
.section-head .action { font-size: 15px; color: var(--accent); }
.section-foot { font-size: 13px; color: var(--label-2); margin: 7px 16px 0; line-height: 1.38; }
.section-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: 0.35px; margin: 0 4px 10px; }

/* ─── Listas agrupadas ───────────────────────────────────────────────────── */
.group { background: var(--card); border-radius: var(--r-card); overflow: hidden; }
.row {
  display: flex; align-items: center; gap: 12px; min-height: 44px;
  padding: 11px 16px; position: relative; width: 100%; text-align: left;
}
.row + .row::before { content: ''; position: absolute; top: 0; left: 16px; right: 0; border-top: 0.5px solid var(--sep); }
.row.inset + .row.inset::before, .row.thumb-row + .row.thumb-row::before { left: 76px; }
button.row:active, a.row:active { background: var(--fill); }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-size: 17px; }
.row .title.wrap { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }
.row .sub { font-size: 13px; color: var(--label-2); margin-top: 2px; }
.row .value { color: var(--label-2); font-size: 17px; text-align: right; }
.chev { width: 8px; height: 13px; flex: none; color: var(--label-3); }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.card { background: var(--card); border-radius: var(--r-card); padding: 16px; }
.card + .card { margin-top: 12px; }

/* ─── Botones ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 20px; border-radius: 12px; font-size: 17px; font-weight: 600;
  background: var(--accent-fill); color: var(--on-accent); width: 100%;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn:active { transform: scale(0.98); opacity: 0.85; }
.btn.secondary { background: var(--accent-soft); color: var(--accent); }
.btn.plain { background: var(--fill); color: var(--label); }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn.small { min-height: 34px; font-size: 15px; padding: 0 14px; border-radius: 17px; width: auto; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.link { color: var(--accent); font-size: 17px; }
.link.small { font-size: 15px; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 22px; color: var(--accent); }
.icon-btn:active { background: var(--fill); }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ─── Controles ──────────────────────────────────────────────────────────── */
.segmented {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px;
  background: var(--fill); border-radius: 9px; padding: 2px; position: relative;
}
.segmented button { min-height: 30px; border-radius: 7px; font-size: 13px; font-weight: 500; padding: 4px 6px; }
.segmented button[aria-pressed="true"] { background: var(--card); box-shadow: 0 3px 8px rgba(0,0,0,0.12), 0 3px 1px rgba(0,0,0,0.04); font-weight: 600; }
:root[data-theme="dark"] .segmented button[aria-pressed="true"] { background: #636366; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .segmented button[aria-pressed="true"] { background: #636366; } }
.segmented.big button { min-height: 40px; font-size: 15px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px;
  border-radius: 17px; background: var(--fill); font-size: 15px;
}
.chip[aria-pressed="true"] { background: var(--accent-fill); color: var(--on-accent); font-weight: 600; }
.chip.static { min-height: 24px; padding: 0 9px; font-size: 12px; border-radius: 12px; font-weight: 500; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chips.scroll .chip { flex: none; }

.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--fill-2); border-radius: 16px; transition: background 0.2s; }
.switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,0.15), 0 3px 1px rgba(0,0,0,0.06); transition: transform 0.2s; }
.switch input:checked + span { background: #34C759; }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.field {
  background: var(--fill); border: 0; border-radius: 10px; min-height: 44px; padding: 10px 12px;
  font-size: 17px; width: 100%; outline: none; -webkit-appearance: none; appearance: none;
}
.field:focus { box-shadow: 0 0 0 2px var(--accent) inset; }
.field::placeholder { color: var(--label-3); }
.row input.inline { background: none; border: 0; text-align: right; font-size: 17px; color: var(--label-2); width: 110px; outline: none; padding: 0; }
.row input.inline:focus { color: var(--label); }
.search { position: relative; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--label-3); }
.search .field { padding-left: 34px; min-height: 36px; border-radius: 10px; }

.stepper { display: inline-flex; background: var(--fill); border-radius: 9px; overflow: hidden; }
.stepper button { width: 46px; height: 32px; display: grid; place-items: center; font-size: 20px; }
.stepper button + button { border-left: 0.5px solid var(--sep); }

/* ─── Tab bar ────────────────────────────────────────────────────────────── */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--bar-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-top: 0.5px solid var(--sep);
  padding-bottom: var(--safe-bottom);
}
.tabbar nav { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); }
.tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 5px; font-size: 10px; font-weight: 500; color: var(--label-3); min-height: 49px; }
.tabbar button[aria-current="page"] { color: var(--accent); }
.tabbar svg { width: 26px; height: 26px; }

/* ─── Hoy ────────────────────────────────────────────────────────────────── */
.block-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 12px 0 6px; }
.block-strip i { height: 6px; border-radius: 3px; background: var(--fill-2); }
.block-strip i.done { background: var(--label-3); }
.block-strip i.now { background: var(--accent); }
.phase-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.phase-line strong { font-size: 17px; }
.phase-tip { font-size: 15px; color: var(--label-2); margin-top: 6px; line-height: 1.4; }

.hero {
  background: var(--card); border-radius: 18px; padding: 18px 18px 16px; position: relative; overflow: hidden;
}
.hero .tag { font-size: 13px; font-weight: 600; color: var(--hue, var(--accent)); text-transform: uppercase; letter-spacing: 0.2px; }
.hero h3 { font-family: var(--font-display); font-size: 28px; line-height: 1.1; font-weight: 700; margin: 6px 0 2px; letter-spacing: 0.2px; }
.hero .meta { color: var(--label-2); font-size: 15px; }
.hero .exlist { margin: 14px 0 16px; padding: 0; list-style: none; font-size: 15px; display: grid; gap: 6px; }
.hero .exlist li { display: flex; gap: 10px; align-items: baseline; }
.hero .exlist .sets { color: var(--label-2); font-family: var(--font-num); font-variant-numeric: tabular-nums; min-width: 34px; }
.hue-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--hue, var(--accent)); }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.week .d { display: grid; gap: 6px; justify-items: center; font-size: 12px; color: var(--label-2); }
.week .dot { width: 34px; height: 34px; border-radius: 17px; display: grid; place-items: center; font-size: 15px; font-weight: 600; background: var(--fill); color: var(--label-2); font-family: var(--font-num); }
.week .dot.on { background: var(--hue, var(--accent)); color: #fff; }
.week .dot.today { box-shadow: 0 0 0 2px var(--accent) inset; color: var(--label); }
.week .dot.on.today { box-shadow: none; }

.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 15px; line-height: 1.38; }
.note + .note { margin-top: 8px; }
.note.info { background: var(--card); }
.note.warn { background: var(--amber-soft); }
.note.ok { background: var(--green-soft); }
.note svg { flex: none; margin-top: 1px; }

.tpl-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; background: var(--hue, var(--accent)); font-family: var(--font-num); flex: none; }

/* ─── Sesión ─────────────────────────────────────────────────────────────── */
.session { position: relative; min-height: 100dvh; background: var(--bg); } /* página normal: scroll nativo del iPhone, sin capas */
.navbar {
  position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: calc(var(--safe-top) + 4px) 8px 6px; background: var(--bar-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--sep);
}
.navbar .center { text-align: center; }
.navbar .center strong { display: block; font-size: 17px; font-weight: 600; }
.navbar .center span { font-size: 12px; color: var(--label-2); }
.navbar .right { justify-self: end; }
.navbar .left { justify-self: start; }
.navbar .nav-btn { min-height: 44px; padding: 0 10px; color: var(--accent); font-size: 17px; }
.navbar .nav-btn.bold { font-weight: 600; }
.session-body { max-width: 560px; margin: 0 auto; padding: 14px 16px calc(var(--safe-bottom) + 120px); }

.progress { height: 4px; background: var(--fill); border-radius: 2px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.3s ease; }

.ss-label { font-size: 13px; font-weight: 600; color: var(--label-2); margin: 22px 4px 8px; display: flex; align-items: center; gap: 8px; text-transform: uppercase; }
.ss-label::after { content: ''; flex: 1; border-top: 0.5px solid var(--sep); }
.ss-group { border-left: 3px solid var(--accent-soft); padding-left: 10px; margin-left: -13px; }
.ss-group .exercise + .exercise { margin-top: 10px; }
.exercise { background: var(--card); border-radius: 14px; overflow: hidden; margin-top: 14px; }
.ss-group .exercise:first-child { margin-top: 0; }
.ex-head { display: flex; gap: 12px; padding: 14px 14px 10px; align-items: flex-start; }
.thumb { width: 52px; height: 52px; border-radius: 10px; background: #fff; flex: none; overflow: hidden; display: grid; place-items: center; border: 0.5px solid var(--sep); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.lg { width: 100%; height: auto; aspect-ratio: 1; border-radius: 14px; max-width: 280px; margin: 0 auto; }
.ex-head .slot { font-size: 12px; font-weight: 600; color: var(--label-2); text-transform: uppercase; letter-spacing: 0.1px; }
.ex-head h4 { margin: 2px 0 3px; font-size: 17px; font-weight: 600; line-height: 1.25; }
.ex-head .target { font-size: 13px; color: var(--label-2); }
.ex-head .more { margin: -6px -8px 0 0; color: var(--label-2); }
.ex-head .more:active { background: var(--fill); }
.sug { margin: 0 14px 10px; padding: 9px 12px; border-radius: 10px; font-size: 14px; line-height: 1.35; background: var(--fill); }
.sug.up { background: var(--green-soft); }
.sug.down, .sug.deload { background: var(--amber-soft); }
.sug b { font-weight: 600; }
.sug .prev { display: block; color: var(--label-2); font-size: 13px; margin-top: 3px; }
.warm { margin: -2px 14px 10px; font-size: 13px; color: var(--label-2); }
.ex-note { margin: -2px 14px 10px; font-size: 13px; color: var(--amber); }

.sets { padding: 0 10px 8px; }
.set-row { display: grid; grid-template-columns: 30px 1fr 1fr 1fr 44px; gap: 8px; align-items: center; padding: 4px 4px; border-radius: 10px; }
.set-row.head { font-size: 11px; font-weight: 600; color: var(--label-3); text-transform: uppercase; padding-bottom: 0; }
.set-row.head span { text-align: center; }
.set-row .n { text-align: center; font-weight: 600; color: var(--label-2); font-family: var(--font-num); }
.set-row .prev { text-align: center; font-size: 13px; color: var(--label-3); font-family: var(--font-num); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-row input {
  width: 100%; min-width: 0; height: 40px; border-radius: 9px; border: 0; background: var(--fill); text-align: center;
  font-size: 18px; font-weight: 600; font-family: var(--font-num); font-variant-numeric: tabular-nums; outline: none; padding: 0;
}
.set-row input::placeholder { color: var(--label-3); font-weight: 500; }
.set-row input:focus { box-shadow: 0 0 0 2px var(--accent) inset; }
.set-row.done { background: var(--green-soft); }
.set-row.done input { background: transparent; }
.check { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--fill); color: var(--label-3); justify-self: center; }
.check.on { background: #34C759; color: #fff; }
.ex-foot { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 4px 14px 14px; }
.rir { display: flex; align-items: center; gap: 6px; padding: 4px 14px 12px; font-size: 13px; color: var(--label-2); flex-wrap: wrap; }
.rir span { width: 100%; margin-bottom: 2px; }
.rir button { min-width: 36px; height: 30px; border-radius: 15px; background: var(--fill); font-size: 14px; font-weight: 600; font-family: var(--font-num); }
.rir button[aria-pressed="true"] { background: var(--accent-fill); color: var(--on-accent); }

.cardio-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.cardio-row label { display: grid; gap: 4px; font-size: 12px; color: var(--label-2); text-align: center; }
.cardio-row input { text-align: center; font-family: var(--font-num); font-weight: 600; }

/* ─── Isla de descanso (firma visual) ────────────────────────────────────── */
.island {
  position: fixed; left: 50%; top: calc(var(--safe-top) + 62px); transform: translateX(-50%); z-index: 60;
  background: var(--island); color: #fff; border-radius: 28px; display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 10px; width: min(calc(100% - 24px), 420px); box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  animation: island-in 0.35s cubic-bezier(.2,.9,.3,1.2);
}
.island .ring { width: 36px; height: 36px; flex: none; }
.island .t { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 24px; font-weight: 600; letter-spacing: 0.5px; min-width: 64px; }
.island .lbl { font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.2; flex: 1; min-width: 0; }
.island .lbl b { display: block; color: #fff; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.island button { flex: none; height: 36px; min-width: 44px; border-radius: 18px; background: rgba(255,255,255,0.16); color: #fff; font-size: 14px; font-weight: 600; padding: 0 10px; }
.island.done { background: #1F9D46; }
@keyframes island-in { from { transform: translateX(-50%) scale(0.6); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }

/* ─── Hojas modales ──────────────────────────────────────────────────────── */
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,0.4); animation: fade 0.2s ease; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: var(--kb, 0px); z-index: 71; max-height: calc(var(--vvh, 100dvh) - var(--safe-top) - 16px);
  background: var(--bg); border-radius: var(--r-sheet) var(--r-sheet) 0 0; display: flex; flex-direction: column;
  animation: sheet-up 0.32s cubic-bezier(.2,.8,.2,1); max-width: 560px; margin: 0 auto;
}
.sheet .grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--fill-2); margin: 6px auto 0; flex: none; }
.sheet-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 4px 8px 6px; flex: none; }
.sheet-head h3 { margin: 0; font-size: 17px; font-weight: 600; text-align: center; }
.sheet-head .left { justify-self: start; }
.sheet-head .right { justify-self: end; }
.sheet-head button { min-height: 44px; padding: 0 10px; color: var(--accent); font-size: 17px; }
.sheet-body { overflow-y: auto; padding: 4px 16px calc(var(--safe-bottom) + 24px); -webkit-overflow-scrolling: touch; }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--safe-bottom) + 96px); transform: translateX(-50%); z-index: 90;
  background: rgba(30,30,32,0.92); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 15px; font-weight: 500;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); animation: fade 0.2s ease; max-width: calc(100% - 32px); text-align: center;
}

/* ─── Progreso y cuerpo ──────────────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--sep); border-radius: var(--r-card); overflow: hidden; }
.stat-grid > div { background: var(--card); padding: 12px 12px 14px; }
.stat-grid .k { font-size: 12px; color: var(--label-2); }
.stat-grid .v { font-family: var(--font-num); font-size: 24px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat-grid .v small { font-size: 13px; color: var(--label-2); font-weight: 500; margin-left: 2px; }
.big-num { font-family: var(--font-num); font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.big-num small { font-size: 22px; color: var(--label-2); font-weight: 600; margin-left: 4px; letter-spacing: 0; }
.delta { font-size: 15px; font-weight: 600; font-family: var(--font-num); }
.delta.down { color: var(--green); }
.delta.up { color: var(--red); }
.delta.flat { color: var(--label-2); }

.vol-row { display: grid; grid-template-columns: 92px 1fr 44px; gap: 10px; align-items: center; padding: 9px 16px; font-size: 15px; }
.vol-row + .vol-row { border-top: 0.5px solid var(--sep); }
.vol-track { position: relative; height: 10px; background: var(--fill); border-radius: 5px; }
.vol-band { position: absolute; top: 0; bottom: 0; background: var(--green-soft); border-radius: 5px; }
.vol-fill { position: absolute; left: 0; top: 2px; bottom: 2px; border-radius: 3px; background: var(--accent); }
.vol-fill.ok { background: var(--green); }
.vol-row .n { text-align: right; font-family: var(--font-num); font-weight: 600; font-variant-numeric: tabular-nums; }

.macro { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.macro > div { background: var(--fill); border-radius: 10px; padding: 10px; }
.macro .k { font-size: 12px; color: var(--label-2); }
.macro .v { font-family: var(--font-num); font-size: 20px; font-weight: 600; }

.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font-family: var(--font); font-size: 10px; fill: var(--label-3); }
.spark { width: 72px; height: 28px; flex: none; }

.lib-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.lib-card { background: var(--card); border-radius: 12px; overflow: hidden; text-align: left; display: flex; flex-direction: column; }
.lib-card .img { aspect-ratio: 1; background: #fff; display: grid; place-items: center; }
.lib-card .img img { width: 100%; height: 100%; object-fit: cover; }
.lib-card .txt { padding: 8px 10px 10px; }
.lib-card .txt b { font-size: 14px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }
.lib-card .txt span { font-size: 12px; color: var(--label-2); }
.lib-card .badge { font-size: 11px; font-weight: 600; color: var(--accent); }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 10px 0 10px 34px; font-size: 15px; line-height: 1.45; }
.steps li + li { border-top: 0.5px solid var(--sep); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 10px; width: 22px; height: 22px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; display: grid; place-items: center; font-family: var(--font-num); }
.credit { font-size: 11px; color: var(--label-3); text-align: center; margin-top: 6px; }
.credit a { color: inherit; }

.empty { text-align: center; padding: 36px 20px; color: var(--label-2); font-size: 15px; line-height: 1.45; }
.empty b { display: block; color: var(--label); font-size: 17px; margin-bottom: 4px; }

.pr-list { display: grid; gap: 8px; margin-top: 12px; }
.pr { display: flex; align-items: center; gap: 10px; background: var(--green-soft); border-radius: 12px; padding: 10px 12px; font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
@media (min-width: 600px) {
  .lib-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── Coach que aprende y ritmo de sesión ────────────────────────────────── */
.hero .why { display: flex; gap: 6px; align-items: flex-start; margin-top: 8px; font-size: 14px; color: var(--accent); line-height: 1.35; }
.hero .why svg { flex: none; margin-top: 1px; }
.section-head .action { font-size: 15px; color: var(--accent); min-height: 30px; }
.note .btn.small { width: auto; }
.chip.static.ok { background: var(--green-soft); color: var(--green); }
.chip.static.mid { background: var(--amber-soft); color: var(--amber); }
.chip.static.bad { background: var(--red-soft); color: var(--red); }
.pace { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: var(--card); font-size: 14px; }
.pace span { display: flex; align-items: center; gap: 6px; }
.pace.warn { background: var(--amber-soft); }
.pace.ok { background: var(--card); }
.pace .btn.small { width: auto; flex: none; min-height: 32px; }
.exercise { scroll-margin-top: calc(var(--safe-top) + 130px); }
.check.play { background: var(--accent-soft); color: var(--accent); }
.island { flex-wrap: wrap; row-gap: 6px; }
.island.work { background: #0B3D1E; }
.island .tip { flex-basis: 100%; font-size: 12px; color: rgba(255,255,255,0.75); padding: 0 6px 2px 4px; }
.ex-foot { flex-wrap: nowrap; gap: 6px; }
.ex-foot .btn.small { padding: 0 11px; }
.set-row.tech .n { color: var(--accent); font-size: 13px; }
.set-row.tech { background: var(--accent-soft); margin-top: 2px; }
.set-row.tech.done { background: var(--green-soft); }
.card.warmup { margin-top: 10px; }
.island.top { top: calc(var(--safe-top) + 8px); }

/* ─── Registro fácil de series ───────────────────────────────────────────── */
.set-row .cell {
  width: 100%; min-width: 0; height: 40px; border-radius: 9px; background: var(--fill); text-align: center;
  font-size: 18px; font-weight: 600; font-family: var(--font-num); font-variant-numeric: tabular-nums;
}
.set-row .cell.ph { color: var(--label-3); font-weight: 500; }
.set-row .cell:active { background: var(--fill-2); }
.set-row.done .cell { background: transparent; }
.live { margin: 0 14px 10px; padding: 9px 12px; border-radius: 10px; font-size: 14px; line-height: 1.35; display: flex; gap: 6px; background: var(--fill); }
.live.up { background: var(--green-soft); }
.live.down { background: var(--amber-soft); }
.live.next { display: block; background: var(--accent-soft); }
.bigstep { background: var(--card); border-radius: 14px; padding: 12px 12px 14px; margin-top: 10px; text-align: center; }
.bs-label { font-size: 13px; color: var(--label-2); text-transform: uppercase; font-weight: 600; margin-bottom: 8px; }
.bs-row { display: grid; grid-template-columns: 76px 1fr 76px; gap: 10px; align-items: center; }
.bs-btn { height: 64px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-size: 20px; font-weight: 700; font-family: var(--font-num); }
.bs-btn:active { transform: scale(0.96); }
.bs-val { width: 100%; height: 64px; border: 0; border-radius: 14px; background: var(--fill); text-align: center; font-size: 40px; font-weight: 700; outline: none; padding: 0; }
.bs-val:focus { box-shadow: 0 0 0 2px var(--accent) inset; }
.bs-fine { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.bs-fine button { min-height: 32px; padding: 0 14px; border-radius: 16px; background: var(--fill); font-size: 14px; font-weight: 600; font-family: var(--font-num); }
.fab {
  position: fixed; right: max(16px, calc((100vw - 560px) / 2 + 16px)); bottom: calc(var(--safe-bottom) + 20px); z-index: 45;
  width: 60px; height: 60px; border-radius: 30px; background: var(--accent-fill); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.fab:active { transform: scale(0.94); }
.timer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.timer-grid button { background: var(--card); border-radius: 14px; padding: 14px 4px 10px; display: grid; gap: 2px; justify-items: center; }
.timer-grid button span { font-size: 22px; font-weight: 700; color: var(--accent); }
.timer-grid button small { font-size: 11px; color: var(--label-2); }
.timer-grid button:active { background: var(--accent-soft); }
.pace > span { display: block; }
.pace > span > svg { vertical-align: -3px; margin-right: 4px; }
.bs-btn { display: grid; place-items: center; line-height: 1; }
.bs-btn small { display: block; font-size: 13px; font-weight: 600; opacity: 0.85; margin-top: 4px; }
.loadpick { margin-top: 12px; text-align: left; border-top: 0.5px solid var(--sep); padding-top: 10px; }
.lp-head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; color: var(--label-2); }
.lp-head > span:first-child { display: flex; align-items: center; gap: 6px; text-align: left; }
.lp-head small { color: var(--label-3); }
.lp-body { margin-top: 10px; display: grid; gap: 6px; }
.lp-opt { text-align: left; padding: 10px 12px; border-radius: 10px; background: var(--fill); display: grid; gap: 2px; }
.lp-opt b { font-size: 15px; font-weight: 600; }
.lp-opt small { font-size: 12px; color: var(--label-2); }
.lp-opt.on { background: var(--accent-soft); box-shadow: 0 0 0 1.5px var(--accent) inset; }
.lp-all { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-top: 6px; }
.lp-note { font-size: 12px; color: var(--label-2); margin: 4px 2px 0; line-height: 1.4; }
.ex-note.tech { color: var(--accent); display: flex; gap: 6px; align-items: center; }
.sync-card { margin-top: 14px; }
.sync-row { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.sync-row .field { flex: 1; min-height: 40px; font-size: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.sync-row .btn.small { width: auto; flex: none; min-height: 40px; }
.sync-code { margin-top: 10px; padding: 12px; border-radius: 10px; background: var(--fill); text-align: center; font-size: 22px; font-weight: 700; letter-spacing: 1px; }
.sync-code { font-size: 19px; letter-spacing: 0.5px; white-space: nowrap; }
/* Sin zoom por doble toque en ningún sitio */
html, body, button, a, input, select, textarea, label, .cell, .row { touch-action: manipulation; }
.bs-equiv { margin-top: 6px; font-size: 15px; color: var(--label-2); font-weight: 600; }

/* ─── Registro ───────────────────────────────────────────────────────────── */
.onb { display: flex; flex-direction: column; min-height: 100dvh; padding-bottom: calc(var(--safe-bottom) + 24px); }
.onb-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.onb-dots { display: flex; gap: 6px; }
.onb-dots i { width: 22px; height: 4px; border-radius: 2px; background: var(--fill-2); }
.onb-dots i.on { background: var(--accent); }
.onb-body { flex: 1; padding-top: 18px; }
.onb-hero { text-align: center; padding: 12vh 0 32px; }
.onb-hero img { border-radius: 22px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.onb-hero h1 { font-family: var(--font-display); font-size: 34px; margin: 18px 0 6px; }
.onb-hero p { color: var(--label-2); font-size: 17px; margin: 0 auto; max-width: 300px; line-height: 1.4; }
.onb-q { font-family: var(--font-display); font-size: 28px; font-weight: 700; margin: 6px 4px 18px; }
.onb-input { font-size: 20px; min-height: 52px; }
.onb-opt { width: 100%; text-align: left; display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--card); margin-bottom: 10px; }
.onb-opt b { font-size: 17px; font-weight: 600; }
.onb-opt small { font-size: 14px; color: var(--label-2); }
.onb-opt.on { box-shadow: 0 0 0 2px var(--accent) inset; background: var(--accent-soft); }
.onb-next { margin-top: 18px; }
.best-alt { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px; border-radius: 14px; background: var(--accent-soft); box-shadow: 0 0 0 1.5px var(--accent) inset; margin-bottom: 14px; }
.best-alt .grow { flex: 1; min-width: 0; display: grid; gap: 1px; }
.best-alt small { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; }
.best-alt b { font-size: 16px; }
.best-alt span:not(.btn) { font-size: 13px; color: var(--label-2); }
.best-alt .btn.small { width: auto; flex: none; }

/* Los avisos nunca bloquean toques */
.toast { pointer-events: none; }
/* Con el teclado abierto la hoja no anima ni salta */
.sheet { transition: bottom 0.15s ease; }
.bs-val { -webkit-user-select: text; user-select: text; caret-color: var(--accent); }

/* Las hojas no arrastran la página de detrás */
.sheet-body { overscroll-behavior: contain; }
.scrim { touch-action: none; }
.dur-edit { width: 64px; border: 0; background: var(--fill); border-radius: 8px; font: inherit; font-family: var(--font-num); font-size: 22px; font-weight: 600; text-align: center; padding: 2px 4px; color: var(--label); }
.dur-edit:focus { outline: none; box-shadow: 0 0 0 2px var(--accent) inset; }

/* Mudanza a gimnastia.com */
.move-card { border: 1.5px solid var(--accent); }
.move-steps { margin: 8px 0 0; padding-left: 20px; font-size: 15px; line-height: 1.45; color: var(--label-2); }
a.btn { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.sync-row .onb-input { margin: 0; min-width: 0; }

/* Nivel de evidencia y referencias */
.chip.static.info { background: var(--accent-soft); color: var(--accent); }
.chip.static.warn { background: var(--amber-soft); color: var(--amber); }
.chip.static { white-space: nowrap; flex: none; }
.refs { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: 13px; }
.refs a { color: var(--accent); text-decoration: none; }
.sheet-body .section-foot + .section-head { margin-top: 22px; }

/* ─── Modo entreno: un ejercicio por pantalla ─── */
.start-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(var(--safe-bottom) + 12px); background: linear-gradient(to top, var(--bg) 70%, transparent); }
.start-bar .btn { max-width: 528px; margin: 0 auto; display: flex; box-shadow: var(--shadow); }
.fab.raised { bottom: calc(var(--safe-bottom) + 86px); }
.progress.flat { border-radius: 0; height: 3px; margin: 0; }
.focus-body { padding-top: 10px; }
.f-nav { display: flex; align-items: center; justify-content: space-between; margin: 2px -6px 8px; }
.f-arrow { width: 44px; height: 44px; display: grid; place-items: center; color: var(--accent); border-radius: 22px; }
.f-arrow:disabled { color: var(--label-3); opacity: 0.5; }
.f-count { font-size: 13px; font-weight: 600; color: var(--label-2); text-transform: uppercase; letter-spacing: 0.3px; }
.f-media { display: block; width: 100%; }
.f-media .thumb.lg { max-width: 220px; }
.f-title { text-align: center; margin: 12px 0 4px; }
.f-title .slot { font-size: 13px; color: var(--label-2); }
.f-title h2 { font-family: var(--font-display); font-size: 26px; line-height: 1.15; font-weight: 700; margin: 2px 0 6px; }
.f-target { font-size: 15px; color: var(--label-2); }
.f-target b { color: var(--label); font-weight: 600; }
.focus-body .sug { margin: 12px 0 0; border-radius: 12px; }
.f-inputs { margin-top: 6px; }
.f-done { margin-top: 14px; min-height: 56px; font-size: 18px; }
.set-strip { display: flex; gap: 8px; overflow-x: auto; margin-top: 18px; padding-bottom: 2px; scrollbar-width: none; }
.set-strip .sp { position: relative; flex: 1 0 64px; min-height: 52px; border-radius: 12px; background: var(--card); display: grid; place-items: center; padding: 6px 4px; border: 1.5px solid transparent; }
.set-strip .sp .n { font-size: 12px; font-weight: 600; color: var(--label-2); }
.set-strip .sp .v { font-size: 14px; font-weight: 600; color: var(--label-3); white-space: nowrap; }
.set-strip .sp.done .v { color: var(--label); }
.set-strip .sp.cur { border-color: var(--accent); }
.set-strip .sp.tech .n { color: var(--amber); }
.set-strip .sp .ok { position: absolute; top: 4px; right: 5px; color: var(--green); }
.f-hint { font-size: 12px; color: var(--label-3); text-align: center; margin: 6px 0 0; }
.f-foot { margin-top: 14px; padding: 0; background: none; }
.rest-panel { margin-top: 12px; }
.rp-done { width: 100%; display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--green-soft); color: var(--green); font-weight: 600; font-size: 15px; text-align: left; }
.rp-done .num { flex: 1; color: var(--label); }
.rest-panel .live, .rest-panel .rir { margin-top: 10px; border-radius: 12px; }
.rp-timer { margin-top: 14px; padding: 18px 12px 14px; border-radius: 16px; background: var(--card); text-align: center; }
.rp-ring { position: relative; width: 150px; height: 150px; margin: 0 auto; }
.rp-ring .ring { width: 150px; height: 150px; }
.rp-ring .t { position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rp-adj { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 10px; font-size: 13px; color: var(--label-2); text-transform: uppercase; font-weight: 600; }
.rp-adj button { min-height: 44px; min-width: 64px; padding: 0 12px; border-radius: 22px; background: var(--fill); color: var(--label); font-size: 15px; text-transform: none; }
.rp-ready { font-size: 20px; font-weight: 700; color: var(--green); padding: 18px 0; }
.rp-tip { font-size: 14px; color: var(--label-2); margin-top: 10px; }
.focus-done { text-align: center; padding: 26px 0 6px; }
.focus-done h2 { font-size: 28px; font-weight: 700; margin: 8px 0 2px; }
.navbar .nav-btn svg { vertical-align: -4px; }
/* Modo entreno compacto: acción principal siempre visible abajo (zona del pulgar) */
.f-head { display: flex; gap: 14px; align-items: center; margin-top: 2px; }
.f-media { flex: none; display: grid; justify-items: center; gap: 4px; width: auto; }
.f-media .thumb { width: 104px; height: 104px; border-radius: 14px; }
.f-media span { font-size: 12px; color: var(--accent); font-weight: 600; }
.f-head .f-title { text-align: left; margin: 0; flex: 1; min-width: 0; }
.f-head .f-title h2 { font-size: 22px; }
.f-warm { background: var(--card); border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; font-size: 14px; color: var(--label-2); }
.f-warm summary { font-weight: 600; color: var(--label); cursor: pointer; list-style: none; min-height: 24px; }
.f-warm summary::-webkit-details-marker { display: none; }
.f-warm div { margin-top: 6px; }
.f-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(var(--safe-bottom) + 10px); background: linear-gradient(to top, var(--bg) 75%, transparent); }
.f-bar .btn { max-width: 528px; margin: 0 auto; display: flex; box-shadow: var(--shadow); }
.f-bar .f-done { margin-top: 0; }
.rp-ring, .rp-ring .ring { width: 132px; height: 132px; }
.rp-ring .t { font-size: 36px; }
.rp-timer { padding: 14px 12px 8px; }
.rp-ready { padding: 10px 0; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }
.btn.pulse { animation: pulse 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .btn.pulse { animation: none; } }
.focus .session-body { padding-bottom: calc(var(--safe-bottom) + 110px); }

/* Guías de Apple: zona táctil mínima de 44 pt sin agrandar el diseño */
.chip, .btn.small, .stepper button, .link.small, .rir button, .f-arrow { position: relative; }
.chip:not(.static)::after, .btn.small::after, .stepper button::after, .link.small::after, .rir button::after {
  content: ''; position: absolute; left: -3px; right: -3px; top: 50%; height: 44px; transform: translateY(-50%);
}
.f-warm summary { min-height: 44px; display: flex; align-items: center; gap: 6px; }
.set-row.head { font-size: 12px; }
.lib-card .badge, .timer-grid button small { font-size: 12px; }
.refs-toggle { font-size: 13px; color: var(--accent); margin-top: 4px; min-height: 32px; }

/* Modo entreno automático: última serie + descanso arriba */
.last-card { background: var(--card); border-radius: 14px; padding: 8px 10px 10px; margin-bottom: 10px; box-shadow: 0 1px 0 var(--sep); }
.rest-bar { display: flex; align-items: center; gap: 8px; padding: 2px 0 6px; }
.rest-bar .ring { width: 44px; height: 44px; flex: none; }
.rest-bar .t { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 62px; }
.rest-bar .lbl { flex: 1; font-size: 12px; color: var(--label-2); text-transform: uppercase; font-weight: 600; }
.rest-bar button { min-height: 40px; min-width: 48px; padding: 0 10px; border-radius: 20px; background: var(--fill); font-size: 14px; font-weight: 600; }
.rest-bar.go { justify-content: center; padding: 10px 0; }
.rest-bar .go-txt { font-size: 18px; font-weight: 700; color: var(--green); }
.lc-done { width: 100%; display: flex; align-items: center; gap: 8px; min-height: 40px; color: var(--green); font-weight: 600; font-size: 15px; text-align: left; }
.lc-done .num { flex: 1; color: var(--label); min-width: 0; }
.rir.compact { margin: 2px 0 0; padding: 4px 0 0; background: none; }
.last-card .live { margin-top: 8px; border-radius: 10px; }
.sug.live-sug { border: 1.5px solid var(--accent); }
.sug.live-sug.up { border-color: var(--green); }
.sug.live-sug.down { border-color: var(--amber); }
.rir.compact span { width: auto; margin: 0 4px 0 0; }
.rest-bar .lbl { display: none; }
.rest-bar .t { flex: 1; }
.rest-bar button { min-width: 44px; padding: 0 9px; }

/* Descanso en una sola pantalla */
.rest-view { padding-top: 12px; }
.rv-timer { background: var(--card); border-radius: 16px; padding: 14px 12px 10px; text-align: center; }
.rv-done { background: var(--card); border-radius: 14px; padding: 6px 12px 10px; margin-top: 10px; }
.rv-next { background: var(--card); border-radius: 14px; padding: 10px 12px 12px; margin-top: 10px; border: 1.5px solid var(--accent); }
.rv-label { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 6px; }
.rv-row { display: flex; gap: 12px; align-items: center; }
.rv-row .thumb { width: 64px; height: 64px; }
.rv-row .slot { font-size: 12px; color: var(--label-2); }
.rv-row b { display: block; font-size: 17px; line-height: 1.2; }
.rv-row .num { font-size: 15px; color: var(--label-2); margin-top: 2px; }
.rv-next .live { margin-top: 8px; border-radius: 10px; }
/* Pantalla del ejercicio compacta: todo a la vista sin scroll */
.f-head { gap: 8px; }
.f-head .f-arrow { width: 32px; height: 88px; flex: none; border-radius: 10px; }
.f-media .thumb { width: 84px; height: 84px; }
.f-head .f-title h2 { font-size: 20px; margin: 1px 0 3px; }
.f-head .f-title .slot b { color: var(--accent); }
.f-target { font-size: 14px; }
.focus-body .sug { margin-top: 8px; padding: 8px 12px; font-size: 14px; }
.focus .bigstep { padding: 8px 10px 10px; margin-top: 8px; }
.focus .bs-label { margin-bottom: 6px; font-size: 12px; }
.focus .bs-btn, .focus .bs-val { height: 54px; }
.focus .bs-val { font-size: 34px; }
.focus .bigstep .segmented { margin-bottom: 6px !important; }
.focus .loadpick { margin-top: 6px; }
.focus .loadpick .lp-head { min-height: 32px; font-size: 13px; padding: 0 2px; }
.focus .loadpick .lp-head small { display: none; }
.focus .set-strip { margin-top: 10px; }
.focus .set-strip .sp { min-height: 46px; }
.f-warm { padding: 2px 12px; }

/* Cuenta */
.auth .auth-p { font-size: 16px; color: var(--label-2); margin: 4px 4px 14px; text-align: center; line-height: 1.4; }
.auth-social { display: grid; gap: 10px; }
.auth-google { background: var(--card); color: var(--label); border: 1px solid var(--sep); }
.auth-apple { background: #000; color: #fff; }
.auth-or { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; color: var(--label-3); font-size: 13px; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; border-top: 0.5px solid var(--sep); }
.auth-field { display: grid; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--label-2); }
.auth-field .field { font-size: 17px; min-height: 48px; }
.auth-link { display: block; margin: 12px auto 0; min-height: 36px; }
.auth-legal { font-size: 12px; color: var(--label-3); text-align: center; margin-top: 16px; }
.auth-legal a { color: var(--accent); }
.auth-mail { width: 72px; height: 72px; border-radius: 36px; margin: 8px auto 12px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }

/* ═════════════════════════════════════════════════════════════════════════════
   MARCA GIMNASTIA · hierro, tiza y azul de disco
   Grises del gimnasio (hierro de los discos, acero del rack, tiza) y un solo azul:
   el del disco de 20 kg. Colores planos, sin degradados ni brillos.
   Rasgo propio: los números (kilos, reps, tiempo) en Archivo estrecha y gruesa,
   como los números estampados en los discos. El resto, sobrio y nativo de iOS.
   ═════════════════════════════════════════════════════════════════════════════ */
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  font-weight: 600 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}
:root {
  /* Tiza (claro) */
  --bg: #ECEDEE; --card: #FFFFFF; --card-2: #F4F5F6;
  --fill: rgba(18, 20, 22, 0.07); --fill-2: rgba(18, 20, 22, 0.12);
  --label: #121416; --label-2: rgba(18, 20, 22, 0.62); --label-3: rgba(18, 20, 22, 0.36);
  --sep: rgba(18, 20, 22, 0.11);
  /* Azul disco 20 kg */
  --accent: #1F4FC9; --accent-soft: rgba(31, 79, 201, 0.09); --accent-fill: #1F4FC9; --on-accent: #FFFFFF;
  --hue-blue: #1F4FC9; --hue-teal: #3F6E7A; --hue-indigo: #4B4F8F; --hue-purple: #5E4B86; --hue-green: #2E7D4F;
  --bar-bg: rgba(236, 237, 238, 0.86);
  --edge: 0 0 0 1px rgba(18, 20, 22, 0.06);
  --shadow: none;
  --r-card: 14px; --r-sheet: 18px;
  --font-stamp: 'Archivo', ui-rounded, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* Hierro y acero (oscuro) */
    --bg: #101214; --card: #1A1D20; --card-2: #23272B;
    --fill: rgba(238, 238, 236, 0.08); --fill-2: rgba(238, 238, 236, 0.14);
    --label: #EEEEEC; --label-2: rgba(238, 238, 236, 0.6); --label-3: rgba(238, 238, 236, 0.33);
    --sep: rgba(238, 238, 236, 0.09);
    --accent: #6A8EEA; --accent-soft: rgba(106, 142, 234, 0.15); --accent-fill: #2A5BD7; --on-accent: #FFFFFF;
    --hue-blue: #6A8EEA; --hue-teal: #7FA9B3; --hue-indigo: #9095D6; --hue-purple: #A38FCC; --hue-green: #5DBB84;
    --bar-bg: rgba(16, 18, 20, 0.86);
    --edge: 0 0 0 1px rgba(238, 238, 236, 0.05);
  }
}
:root[data-theme="dark"] {
  --bg: #101214; --card: #1A1D20; --card-2: #23272B;
  --fill: rgba(238, 238, 236, 0.08); --fill-2: rgba(238, 238, 236, 0.14);
  --label: #EEEEEC; --label-2: rgba(238, 238, 236, 0.6); --label-3: rgba(238, 238, 236, 0.33);
  --sep: rgba(238, 238, 236, 0.09);
  --accent: #6A8EEA; --accent-soft: rgba(106, 142, 234, 0.15); --accent-fill: #2A5BD7; --on-accent: #FFFFFF;
  --hue-blue: #6A8EEA; --hue-teal: #7FA9B3; --hue-indigo: #9095D6; --hue-purple: #A38FCC; --hue-green: #5DBB84;
  --bar-bg: rgba(16, 18, 20, 0.86);
  --edge: 0 0 0 1px rgba(238, 238, 236, 0.05);
}

/* Superficies planas: un filo fino en vez de sombras */
.card, .group, .bigstep, .rv-timer, .rv-done, .rv-next, .last-card, .exercise, .f-warm, .set-strip .sp { box-shadow: var(--edge); }
.card, .group, .exercise { border-radius: var(--r-card); }
.rv-next { border: 0; box-shadow: inset 3px 0 0 var(--accent-fill), var(--edge); }
.rv-label { color: var(--label-2); }
.sheet { border-radius: var(--r-sheet) var(--r-sheet) 0 0; }

/* Botones: azul plano, sin degradado */
.btn { border-radius: 12px; font-weight: 650; letter-spacing: -0.1px; }
.f-done { min-height: 56px; font-size: 18px; border-radius: 14px; }
.segmented button[aria-pressed="true"] { color: var(--label); }

/* Rasgo propio: números estampados (Archivo estrecha) solo donde hay cifras grandes */
.big-num, .bs-val, .rp-ring .t, .rest-bar .t, .island .t, .stat-grid .v, .macro .v, .f-title .slot b {
  font-family: var(--font-stamp); font-stretch: 72%; font-weight: 800; font-variant-numeric: tabular-nums lining-nums; letter-spacing: 0;
}
.big-num { font-size: 64px; }
.big-num small { font-family: var(--font); font-stretch: 100%; font-weight: 600; }
.bs-val { font-size: 42px; }
.rp-ring .t { font-size: 46px; }
/* Títulos grandes: misma voz, un poco menos estrecha */
.large-title { font-family: var(--font-stamp); font-stretch: 84%; font-weight: 800; letter-spacing: -0.3px; font-size: 38px; }
.section-head h2 { font-weight: 600; letter-spacing: 0.4px; }
