/* ─────────────────────────────────────────────────────────────────────────────
   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); }
.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] { 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; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; margin: -4px -16px; padding: 4px 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(4, 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: var(--on-accent); }
.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, minmax(0, 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: var(--on-accent); 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; 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(--disabled-fg); }
.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); }

/* 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 · grafito y Azul Pulso (brand/sistema/project)
   Grafito con matiz azul y un solo azul de marca. Colores planos: sin degradados
   ni brillos. Toda la app en la fuente del sistema; cifras 700–800 tabulares.
   ═════════════════════════════════════════════════════════════════════════════ */
@font-face {
  font-family: 'Barlow Semi Condensed';
  src: url('../fonts/BarlowSemiCondensed-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
:root {
  /* Tiza (claro) */
  --bg: #F2F4F8; --card: #FFFFFF; --card-2: #E8ECF3;
  --fill: #E8ECF3; --fill-2: #CFD6E2;
  --label: #0E1524; --label-2: #535F75; --label-3: #7A859A;
  --sep: #CFD6E2;
  --accent: #2F6300; --accent-soft: #E8FAD9; --accent-fill: #9EF04A; --accent-pressed: #86DB33; --on-accent: #0E1524;
  --focus: #0E1524;
  --green: #0F7A66; --green-soft: #DDF4EF;
  --red: #B4232F; --red-soft: #FBE4E6;
  --amber: #A84300; --amber-soft: #FDE8D9;
  --blue: #2F6300;
  --hue-blue: #2F6300; --hue-teal: #3F6E7A; --hue-indigo: #4B4F8F; --hue-purple: #5E4B86; --hue-green: #2E7D4F;
  --bar-bg: rgba(242, 244, 248, 0.88);
  --seg-on: #FFFFFF;
  --island: #0B0F17;
  --edge: 0 0 0 1px rgba(14, 21, 36, 0.07);
  --shadow: none;
  --r-card: 16px; --r-sheet: 22px; --r-btn: 12px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', Roboto, 'Segoe UI', system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', Roboto, 'Segoe UI', system-ui, sans-serif;
  --font-num: var(--font-display);
  --font-lema: 'Barlow Semi Condensed', var(--font-display);
  /* Grafito: la bienvenida y el arranque son siempre oscuros */
  --g950: #0B0F17; --g900: #121926; --g800: #1A2333; --g700: #2A3548; --acero: #64718A;
  --pulso: #9EF04A; --pulso-300: #B0F36A; --tiza: #F2F5F9; --muted-dark: #A3AEC2;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0F17; --card: #121926; --card-2: #1A2333;
    --fill: #1A2333; --fill-2: #2A3548;
    --label: #F2F5F9; --label-2: #A3AEC2; --label-3: #7D89A0;
    --sep: #2A3548;
    --accent: #B0F36A; --accent-soft: #1F3311; --accent-fill: #9EF04A; --accent-pressed: #86DB33; --on-accent: #0B0F17;
    --focus: #B8C6FF;
    --green: #43D6B5; --green-soft: #10332E;
    --red: #FF7D8A; --red-soft: #3D171C;
    --amber: #FF9A4D; --amber-soft: #3A2210;
    --blue: #B0F36A;
    --hue-blue: #B0F36A; --hue-teal: #7FA9B3; --hue-indigo: #9095D6; --hue-purple: #A38FCC; --hue-green: #5DBB84;
    --bar-bg: rgba(11, 15, 23, 0.88);
    --seg-on: #2A3548;
    --island: #05070C;
    --edge: 0 0 0 1px #1E2738;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0F17; --card: #121926; --card-2: #1A2333;
  --fill: #1A2333; --fill-2: #2A3548;
  --label: #F2F5F9; --label-2: #A3AEC2; --label-3: #7D89A0;
  --sep: #2A3548;
  --accent: #B0F36A; --accent-soft: #1F3311; --accent-fill: #9EF04A; --accent-pressed: #86DB33; --on-accent: #0B0F17;
  --focus: #B8C6FF;
  --green: #43D6B5; --green-soft: #10332E;
  --red: #FF7D8A; --red-soft: #3D171C;
  --amber: #FF9A4D; --amber-soft: #3A2210;
  --blue: #B0F36A;
  --hue-blue: #B0F36A; --hue-teal: #7FA9B3; --hue-indigo: #9095D6; --hue-purple: #A38FCC; --hue-green: #5DBB84;
  --bar-bg: rgba(11, 15, 23, 0.88);
  --seg-on: #2A3548;
  --island: #05070C;
  --edge: 0 0 0 1px #1E2738;
  color-scheme: dark;
}

/* 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; }
.segmented button[aria-pressed="true"],
:root[data-theme="dark"] .segmented button[aria-pressed="true"] { background: var(--seg-on); color: var(--label); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .segmented button[aria-pressed="true"] { background: var(--seg-on); } }

/* Botones: azul plano; pulsado más oscuro, nunca brillo */
.btn { border-radius: var(--r-btn); font-weight: 650; letter-spacing: -0.1px; }
.btn:not(.plain):not(.secondary):active { background: var(--accent-pressed); }
.f-done { min-height: 56px; font-size: 18px; border-radius: 14px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Cifras: fuente del sistema, gruesa y tabular */
.big-num, .bs-val, .rp-ring .t, .rest-bar .t, .island .t, .stat-grid .v, .macro .v, .f-title .slot b, .num {
  font-family: var(--font-display); font-weight: 800; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.5px;
}
.big-num { font-size: 56px; letter-spacing: -1px; }
.big-num small { font-family: var(--font); font-weight: 600; letter-spacing: 0; }
.bs-val { font-size: 44px; }
.rp-ring .t { font-size: 44px; }
.large-title { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.4px; font-size: 34px; }
.section-head h2 { font-weight: 600; letter-spacing: 0.2px; }

/* Récord: sello azul con la cifra (el verde es solo para guardado y completado) */
.pr { background: var(--accent-soft); color: var(--label); box-shadow: inset 3px 0 0 var(--accent-fill); }
.pr svg { color: var(--accent); }
.island.done { background: var(--green); color: #0B0F17; }

/* ─── Arranque ─────────────────────────────────────────────────────────────── */
#launch { position: fixed; inset: 0; z-index: 200; background: #0B0F17; display: grid; place-items: center; transition: opacity 0.4s ease; }
#launch.out { opacity: 0; pointer-events: none; }
.launch-mark { width: 132px; height: auto; overflow: visible; }
.launch-trace { stroke-dasharray: 900; stroke-dashoffset: 900; animation: trace 0.8s cubic-bezier(.45,0,.3,1) 0.1s forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }

/* ─── Cuenta ───────────────────────────────────────────────────────────────── */
.auth-screen { min-height: 100dvh; padding-bottom: calc(var(--safe-bottom) + 32px); max-width: 520px; margin: 0 auto; }
.auth-top { min-height: 44px; display: flex; align-items: center; margin: -12px 0 6px -10px; }
.auth-title { font-family: var(--font-display); font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -0.4px; margin: 6px 0 8px; }
.auth-sub { color: var(--label-2); font-size: 16px; line-height: 1.4; margin: 0 0 22px; }
.auth-form, .auth-done { display: flex; flex-direction: column; }
.auth-field { display: grid; gap: 6px; margin-top: 14px; }
.auth-field > label { font-size: 13px; font-weight: 600; color: var(--label-2); }
.auth-field .field { font-size: 17px; min-height: 50px; border-radius: var(--r-btn); }
.pw-wrap { position: relative; }
.pw-wrap .field { width: 100%; padding-right: 50px; }
.pw-eye { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; color: var(--label-2); border-radius: 10px; }
.pw-meter { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--label-2); }
.pw-bars { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pw-bars i { height: 4px; border-radius: 2px; background: var(--fill-2); transition: background 0.2s ease; }
.pw-meter[data-level="1"] .pw-bars i.on { background: var(--red); }
.pw-meter[data-level="1"] span { color: var(--red); }
.pw-meter[data-level="2"] .pw-bars i.on { background: var(--amber); }
.pw-meter[data-level="2"] span { color: var(--amber); }
.pw-meter[data-level="3"] .pw-bars i.on, .pw-meter[data-level="4"] .pw-bars i.on { background: var(--green); }
.pw-meter[data-level="3"] span, .pw-meter[data-level="4"] span { color: var(--green); }
.pw-meter span { min-width: 112px; text-align: right; font-weight: 600; }
.pw-rules { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 13px; color: var(--label-2); }
.pw-rules li { display: flex; align-items: center; gap: 6px; }
.pw-rules li i { width: 14px; height: 14px; border-radius: 7px; border: 1.5px solid var(--label-3); flex: none; }
.pw-rules li.ok { color: var(--label); }
.pw-rules li.ok svg { color: var(--green); flex: none; }
.pw-hint { font-size: 13px; line-height: 1.35; color: var(--amber); margin: 8px 0 0; }
.auth-forgot { align-self: flex-end; margin-top: 6px; min-height: 40px; font-size: 15px; }
.auth-submit { margin-top: 20px; min-height: 52px; }
.auth-link { display: block; align-self: center; margin: 12px auto 0; min-height: 40px; font-size: 15px; }
.muted-link { color: var(--label-2); }
.auth-mail { width: 72px; height: 72px; border-radius: 36px; margin: 8px auto 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.auth-wait { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--label-2); margin: 0 0 18px; }
.dot-pulse { width: 8px; height: 8px; border-radius: 4px; background: var(--accent-fill); animation: dotp 1.2s ease-in-out infinite; flex: none; }
@keyframes dotp { 50% { opacity: 0.25; } }
.auth-apple { background: var(--label); color: var(--bg); }
.auth-google { background: #FFFFFF; color: #1F1F1F; border: 1px solid #CFD6E2; }
.auth .auth-p { font-size: 16px; color: var(--label-2); margin: 4px 4px 16px; text-align: center; line-height: 1.4; }
.sheet .auth-p { text-align: left; margin: 0 0 6px; }

/* ─── Hojas: se arrastran desde arriba; la zona de agarre es grande ─────────── */
.grabber-zone { height: 22px; display: grid; place-items: center; flex: none; touch-action: none; }
.grabber-zone .grabber { margin: 0; }
.sheet-head { touch-action: none; }
.sheet { will-change: transform; }

.toast { background: rgba(26, 35, 51, 0.96); color: #F2F5F9; }
.chip.static.rec { background: var(--accent-fill); color: var(--on-accent); font-weight: 700; }

/* ═════════════════════════════════════════════════════════════════════════════
   LANDING · una pantalla por sección, fotos reales en grafito, titulares en Libre Franklin
   ═════════════════════════════════════════════════════════════════════════════ */
@font-face { font-family: 'Libre Franklin'; src: url('../fonts/LibreFranklin-Black.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }
.app.wide { max-width: none; }
html.lp-snap { scroll-snap-type: y proximity; scroll-behavior: smooth; }
@media (min-width: 900px) and (min-height: 640px) { html.lp-snap { scroll-snap-type: y mandatory; } }
.lp { --lp-pad: clamp(20px, 5vw, 72px); --nav-h: 64px; background: var(--g950); color: var(--tiza); overflow-x: clip; }
.lp-wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding-left: var(--lp-pad); padding-right: var(--lp-pad); }
.lp-eyebrow, .lp-lema { font-family: var(--font-lema); font-weight: 600; text-transform: uppercase; letter-spacing: 3px; font-size: clamp(13px, 1vw, 15px); color: var(--accent); margin: 0 0 14px; }
.lp-lema { color: #C9D1DE; }
.lp-h1, .lp-h2 { font-family: 'Libre Franklin', var(--font-display); font-weight: 900; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.lp-h1 { font-size: clamp(42px, min(7.4vw, 11vh), 112px); line-height: 0.96; }
.lp-h2 { font-size: clamp(30px, min(4.6vw, 7.4vh), 68px); line-height: 1.02; }
.lp p { line-height: 1.5; }
.lp .ln { display: block; }

/* Cabecera */
.lp-nav { position: fixed; z-index: 45; top: 0; left: 0; right: 0; padding-top: var(--safe-top); transition: background 0.25s ease, box-shadow 0.25s ease; }
/* Barra translúcida: se intuye la foto, pero el logo y el menú destacan siempre */
.lp-nav { background: rgba(11, 15, 23, 0.62); -webkit-backdrop-filter: blur(14px) saturate(120%); backdrop-filter: blur(14px) saturate(120%); box-shadow: 0 1px 0 rgba(242, 245, 249, 0.08); }
.lp-nav.solid { background: rgba(11, 15, 23, 0.86); box-shadow: 0 1px 0 #1E2738; }
.lp-nav.open { background: var(--g950); box-shadow: 0 1px 0 #1E2738; }
.lp-nav-in { max-width: 1360px; margin: 0 auto; height: var(--nav-h); padding: 0 var(--lp-pad); display: flex; align-items: center; gap: 28px; }
.lp-brand { display: inline-flex; min-height: 44px; align-items: center; }
.lp-logo { height: 24px; width: auto; display: block; }
.lp-menu { display: none; }
.lp-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lp-enter { min-height: 40px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 700; background: var(--tiza); color: var(--g950); }
.lp-enter:active { background: #D5DCE6; }
@media (hover: hover) { .lp-enter:hover { background: #FFFFFF; } }
.lp-signup { display: none; }
.lp-burger { width: 44px; height: 44px; display: grid; place-items: center; color: var(--tiza); border-radius: 22px; }
.lp-overlay { position: fixed; inset: 0; z-index: 44; background: var(--g950); padding: calc(var(--safe-top) + var(--nav-h) + 24px) var(--lp-pad) calc(var(--safe-bottom) + 24px); display: flex; flex-direction: column; animation: fade 0.2s ease; }
.lp-overlay nav { display: grid; gap: 4px; }
.lp-overlay nav a { font-family: 'Libre Franklin', var(--font-display); font-weight: 900; font-size: clamp(32px, 9vw, 44px); letter-spacing: -0.02em; color: var(--tiza); text-decoration: none; padding: 8px 0; border-bottom: 1px solid #1E2738; animation: rise 0.4s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0ms); }
.lp-overlay-cta { margin-top: auto; display: grid; gap: 10px; }

/* Pantallas */
.lp-s { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; scroll-snap-align: start; isolation: isolate; overflow: hidden; padding: calc(var(--safe-top) + var(--nav-h) + 24px) 0 40px; }
.lp-bg { position: absolute; left: 0; right: 0; top: -18%; height: 136%; z-index: -1; will-change: transform; }
.lp-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-s > .lp-wrap { will-change: transform; }
.lp-bg::after { content: ''; position: absolute; inset: 0; background: rgba(11, 15, 23, 0.5); }
/* Entrada de los textos */
[data-a] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0ms); }
.lp-s.in [data-a] { opacity: 1; transform: none; }
.lp-s.in .lp-h2[data-a] { transition-delay: 80ms; }

/* Inicio */
.lp-hero { justify-content: flex-end; padding-bottom: calc(var(--safe-bottom) + clamp(48px, 9vh, 110px)); }
.lp-hero .lp-bg img { object-position: 50% 20%; }
.lp-hero-in { position: relative; }
.lp-h1 .lp-rot { display: inline-flex; flex-direction: column; animation: rot-in 0.9s cubic-bezier(.2,.8,.2,1) 0.15s both; }
@keyframes rot-in { from { opacity: 0; transform: translateY(0.35em); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.lp-sub { font-size: clamp(18px, 1.5vw, 22px); color: #D5DCE8; margin: 18px 0 28px; max-width: 30ch; }
.lp-cta-row { display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.lp-cta { min-height: 56px; font-size: 18px; font-weight: 700; border-radius: 14px; background: var(--accent-fill); color: var(--on-accent); white-space: nowrap; }
.lp-cta:active { background: var(--accent-pressed); }
.lp-textlink { min-height: 44px; font-size: 16px; font-weight: 600; color: var(--tiza); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }

/* Qué hace: el teléfono cambia de pantalla */
.lp-does-in { display: grid; gap: 28px; align-items: center; }
.lp-does .lp-h2 { margin-bottom: 22px; }
.lp-tabs { display: grid; gap: 4px; }
.lp-tab { position: relative; text-align: left; padding: 12px 0 12px 18px; display: grid; gap: 2px; color: var(--muted-dark); }
.lp-tab b { font-size: 18px; font-weight: 700; color: #8F9BB1; transition: color 0.2s; }
.lp-tab span { font-size: 15px; line-height: 1.45; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.4s ease, opacity 0.3s ease; }
.lp-tab.on b { color: var(--tiza); }
.lp-tab.on span { max-height: 90px; opacity: 1; }
.lp-tab::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: #2A3548; }
.lp-tab-bar { position: absolute; left: 0; top: 12px; width: 3px; height: 0; border-radius: 2px; background: var(--accent-fill); }
.lp-tab.on .lp-tab-bar { animation: tabfill 3.8s linear forwards; }
@keyframes tabfill { to { height: calc(100% - 24px); } }
.lp-phone { width: min(62vw, 300px); aspect-ratio: 390 / 844; border-radius: 46px; padding: 9px; background: #05070C; box-shadow: 0 0 0 1px #2A3548, 0 30px 70px rgba(0, 0, 0, 0.5); margin: 0 auto; position: relative; }
.lp-phone img { width: 100%; height: 100%; display: block; border-radius: 37px; object-fit: cover; }
.lp-does-phone { display: none; }
.lp-does-phone img { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); opacity: 0; transform: scale(1.02); transition: opacity 0.5s ease, transform 0.6s ease; }
.lp-does-phone img.on { opacity: 1; transform: none; }

/* Gimnasio o casa */
.lp-where .lp-h2 { margin-bottom: 22px; }
.lp-places { display: grid; gap: 12px; }
.lp-place { position: relative; margin: 0; border-radius: 20px; overflow: hidden; min-height: 25svh; display: flex; align-items: flex-end; isolation: isolate; }
.lp-place img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.8s cubic-bezier(.2,.8,.2,1); }
.lp-place::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(11, 15, 23, 0.52); }
.lp-place:hover img { transform: scale(1.04); }
.lp-place figcaption { padding: 16px 18px; display: grid; gap: 4px; }
.lp-place b { font-family: 'Libre Franklin', var(--font-display); font-weight: 900; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.01em; }
.lp-place span { font-size: 15px; color: #D5DCE8; max-width: 42ch; }
.lp-note { font-size: 15px; color: var(--muted-dark); margin: 16px 0 0; max-width: 70ch; }
.lp-note b { color: var(--tiza); }

/* Evidencia */
.lp-evidence .lp-bg::after { background: rgba(11, 15, 23, 0.72); }
.lp-evidence .lp-h2 { margin-bottom: 26px; }
.lp-principles { display: grid; gap: 18px; }
.lp-principles > div { border-top: 2px solid var(--accent-fill); padding-top: 14px; }
.lp-principles h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.lp-principles p { color: #C9D1DE; font-size: 16px; margin: 0; }
.lp-refs { font-size: 13px; color: #8F9BB1; margin: 22px 0 0; max-width: 70ch; }

/* Preguntas */
.lp-faq-in { display: grid; gap: 22px; }
.lp-faq details { border-top: 1px solid #2A3548; }
.lp-faq details:last-child { border-bottom: 1px solid #2A3548; }
.lp-faq summary { list-style: none; cursor: pointer; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 17px; font-weight: 650; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary svg { flex: none; color: var(--accent); transition: transform 0.2s ease; }
.lp-faq details[open] summary svg { transform: rotate(45deg); }
.lp-faq details p { color: var(--muted-dark); font-size: 16px; margin: 0; padding: 0 0 18px; max-width: 60ch; }

/* Final */
.lp-final { justify-content: space-between; padding-bottom: 0; }
.lp-final-in { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.lp-final .lp-h1 { max-width: 12ch; }
.lp-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-top: 18px; padding-bottom: calc(var(--safe-bottom) + 18px); border-top: 1px solid rgba(242, 245, 249, 0.14); }
.lp-foot nav { display: flex; gap: 18px; }
.lp-foot a { color: var(--tiza); font-size: 14px; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.lp-foot p { flex-basis: 100%; font-size: 12px; color: #8F9BB1; margin: 0; }

/* Escritorio y pantallas grandes */
@media (min-width: 900px) {
  .lp { --nav-h: 72px; }
  .lp-logo { height: 28px; }
  .lp-burger { display: none; }
  .lp-menu { display: flex; gap: 4px; }
  .lp-menu a { color: #C9D1DE; text-decoration: none; font-size: 15px; font-weight: 600; padding: 9px 14px; border-radius: 999px; transition: background 0.2s, color 0.2s; }
  .lp-menu a:hover, .lp-menu a.on { color: var(--tiza); background: rgba(242, 245, 249, 0.1); }
  .lp-signup { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 700; background: var(--accent-fill); color: var(--on-accent); }
  .lp-s { height: 100vh; min-height: 640px; }
  .lp-hero { justify-content: center; padding-bottom: 60px; }
  .lp-hero .lp-bg img { object-position: 50% 30%; }
  .lp-cta-row { flex-direction: row; align-items: center; gap: 22px; }
  .lp-cta { padding: 0 34px; }
  .lp-does-in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(40px, 6vw, 110px); }
  .lp-does-phone { display: block; width: min(300px, 30vw, calc((100vh - 200px) * 0.462)); }
  .lp-tab span { font-size: 16px; }
  .lp-places { grid-template-columns: 1fr 1fr; gap: 18px; }
  .lp-place { min-height: min(46vh, 480px); }
  .lp-place figcaption { padding: 24px 26px; }
  .lp-principles { grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
  .lp-principles p { font-size: 17px; }
  .lp-faq-in { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
  .lp-faq summary { font-size: 18px; }
  .lp-foot p { flex-basis: auto; margin-left: auto; }
}
@media (min-width: 900px) and (max-height: 760px) { .lp-place { min-height: 38vh; } .lp-principles p { font-size: 16px; } }
/* En el móvil, «Qué hace» muestra todas las funciones sin teléfono */
@media (max-width: 899px) {
  .lp-tab span { max-height: none; opacity: 1; }
  .lp-tab b { color: var(--tiza); }
  .lp-tab-bar { display: none; }
  .lp-tab::before { background: var(--accent-fill); }
}
@media (prefers-reduced-motion: reduce) {
  html.lp-snap { scroll-behavior: auto; }
  [data-a] { opacity: 1; transform: none; transition: none; }
  .lp-h1 .lp-rot, .lp-tab.on .lp-tab-bar { animation: none; }
}

/* ─── Ventana de cuenta ────────────────────────────────────────────────────── */
.sheet-auth { overflow: hidden; }
.auth-dlg { display: flex; min-height: 0; flex: 1; }
.auth-art { display: none; }
.auth-main { position: relative; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 22px calc(var(--safe-bottom) + 28px); }
.auth-x { position: absolute; top: 2px; right: 10px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 22px; color: var(--label); background: var(--fill); }
.auth-x:active { background: var(--fill-2); }
.brand-mark { color: var(--label); display: block; margin: 8px 0 18px; }
.auth-h { font-family: 'Libre Franklin', var(--font-display); font-weight: 900; font-size: 30px; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 8px; padding-right: 48px; }
.auth-lead { color: var(--label-2); font-size: 16px; margin: 0 0 8px; }
.auth-forgot { align-self: center; margin-top: 14px; min-height: 44px; padding: 0 8px; font-size: 15px; font-weight: 600; color: var(--accent); }
.auth-switch { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--sep); text-align: center; font-size: 15px; color: var(--label-2); }
.auth-switch button { font-weight: 700; color: var(--accent); min-height: 44px; padding: 0 4px; }
.auth-legal { font-size: 12px; color: var(--label-2); text-align: center; margin: 14px 0 0; }
@media (max-width: 759px) { .sheet-auth { top: calc(var(--safe-top) + 10px); max-height: none; } }
@media (min-width: 760px) {
  .sheet { top: 50%; bottom: auto; left: 50%; right: auto; width: 460px; max-height: min(86vh, 760px); border-radius: 22px; transform: translate(-50%, -50%); animation: dlg-in 0.24s cubic-bezier(.2,.8,.2,1); box-shadow: 0 0 0 1px var(--sep), 0 30px 80px rgba(0,0,0,0.5); }
  .sheet .grabber-zone { display: none; }
  .sheet .sheet-body { padding-bottom: 24px; }
  @keyframes dlg-in { from { opacity: 0; transform: translate(-50%, -47%); } to { opacity: 1; transform: translate(-50%, -50%); } }
  .sheet-auth { width: min(920px, 92vw); height: min(640px, 88vh); max-height: none; }
  .auth-art { display: flex; position: relative; width: 44%; flex: none; align-items: flex-end; padding: 28px; isolation: isolate; }
  .auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
  .auth-art::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(11, 15, 23, 0.35); }
  .auth-art .lp-lema { margin: 0; color: #F2F5F9; }
  .auth-main { padding: 36px 44px 32px; display: flex; flex-direction: column; justify-content: center; }
  .auth-x { top: 14px; right: 14px; }
}

/* ═════════════════════════════════════════════════════════════════════════════
   LEGIBILIDAD · botones sólidos, secundarios con borde, desactivado sin transparencias
   (auditoría: WCAG 2.2 y guías de interfaz de iOS y Android). Nada de opacity en textos ni botones.
   ═════════════════════════════════════════════════════════════════════════════ */
:root { --outline: #7F8A9E; --btn2-bg: #FFFFFF; --btn2-pressed: #E8ECF3; --disabled-bg: #E8ECF3; --disabled-fg: #5E687C; --label-3: #5E687C; --on-hue: #FFFFFF; --focus: #0E1524; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --outline: #606D87; --btn2-bg: #1A2333; --btn2-pressed: #2A3548; --disabled-bg: #1A2333; --disabled-fg: #8B97AD; --on-hue: #0B0F17; --focus: #F2F5F9; } }
:root[data-theme="dark"] { --outline: #606D87; --btn2-bg: #1A2333; --btn2-pressed: #2A3548; --disabled-bg: #1A2333; --disabled-fg: #8B97AD; --on-hue: #0B0F17; --focus: #F2F5F9; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Principal: relleno sólido, texto en negrita; pulsado = tono más oscuro */
.btn { min-height: 52px; font-weight: 700; transition: transform 0.12s ease, background-color 0.12s ease; }
.btn:active { opacity: 1; }
.btn:not(.plain):not(.secondary):not(.danger):active { background: var(--accent-pressed); }
/* Secundario: neutro con borde visible */
.btn.plain, .btn.secondary { background: var(--btn2-bg); color: var(--label); box-shadow: inset 0 0 0 1px var(--outline); font-weight: 650; }
.btn.secondary { color: var(--accent); }
.btn.plain:active, .btn.secondary:active { background: var(--btn2-pressed); }
/* Destructivo: con borde y verbo claro; nunca un rojo macizo junto al botón principal */
.btn.danger { background: transparent; color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.btn.small { min-height: 40px; font-size: 15px; font-weight: 650; border-radius: 20px; }
/* Desactivado: superficie y texto legibles, sin transparencia */
.btn[disabled], .btn:disabled, .lp-cta:disabled { opacity: 1; background: var(--disabled-bg) !important; color: var(--disabled-fg) !important; box-shadow: none !important; pointer-events: none; }
button:disabled:not(.btn), .f-arrow:disabled { opacity: 1 !important; color: var(--disabled-fg) !important; }
.link { font-weight: 600; }

/* Chips y selectores: borde visible; seleccionado = relleno del acento o pastilla invertida */
.chip { background: transparent; box-shadow: inset 0 0 0 1px var(--outline); font-weight: 600; min-height: 38px; border-radius: 19px; }
.chip[aria-pressed="true"] { background: var(--accent-fill); color: var(--on-accent); box-shadow: none; }
.chip.static { box-shadow: none; min-height: 24px; }
.segmented { background: var(--fill); box-shadow: inset 0 0 0 1px var(--sep); }
.segmented button { min-height: 36px; font-size: 15px; font-weight: 600; color: var(--label-2); }
.segmented button[aria-pressed="true"],
:root[data-theme="dark"] .segmented button[aria-pressed="true"] { background: var(--label) !important; color: var(--bg) !important; box-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .segmented button[aria-pressed="true"] { background: var(--label) !important; color: var(--bg) !important; } }

/* Campos y steppers con filo, también sobre tarjetas */
.field, .stepper { box-shadow: inset 0 0 0 1px var(--sep); }
.field:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.switch input:checked + span { background: var(--accent-fill); }

/* Barra de pestañas: más grande y con más peso */
.tabbar button { font-size: 11px; font-weight: 600; color: var(--label-2); }
.tabbar button[aria-current="page"] { color: var(--accent); }

/* Texto sobre colores de categoría y comprobaciones */
.tpl-icon, .week .dot.on { color: var(--on-hue); }
.check.on { background: var(--green); color: var(--on-hue); }

/* Avisos invertidos: siempre se leen */
.toast { background: var(--label); color: var(--bg); }

/* Sin opacidad en textos */
.island .lbl { color: #A3AEC2; }
.bs-btn small { opacity: 1; }
.sheet-auth { max-width: none; }
.lp-textlink { white-space: nowrap; }
@media (min-width: 900px) { .lp-does-phone { width: min(340px, 30vw, calc((100vh - 200px) * 0.462)); } }

/* ═════════════════════════════════════════════════════════════════════════════
   APP · diseño de producto 
   Menos cajas, sin barras laterales, etiquetas en minúsculas, separadores finos,
   y el amarillo solo para la acción principal, la pestaña activa, hoy y el récord.
   ═════════════════════════════════════════════════════════════════════════════ */
:root { --r-card: 12px; --hair: #DDE2EA; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --hair: #1E2738; } }
:root[data-theme="dark"] { --hair: #1E2738; }

/* Superficies sin filos ni sombras; radios en escala 6 · 10 · 12 · 16 */
.card, .group, .bigstep, .rv-timer, .rv-done, .rv-next, .last-card, .exercise, .f-warm, .set-strip .sp { box-shadow: none; }
.card, .group { border-radius: 12px; }

/* Tipografía: títulos de sección en minúsculas, etiquetas sin gritar */
.section { margin-top: 32px; }
.eyebrow { text-transform: none; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--label-2); margin: 0 2px; }
.large-title { font-size: 34px; font-weight: 800; letter-spacing: -0.6px; margin: 2px 2px 0; }
.section-head { margin: 0 2px 10px; align-items: center; }
.section-head h2 { text-transform: none; font-size: 20px; font-weight: 700; color: var(--label); letter-spacing: -0.2px; }
.section-head .action, .link, .sheet-head button { color: var(--label); font-weight: 600; }
.section-foot { margin: 8px 2px 0; }
.row-ic { color: var(--label-2); display: grid; }

/* ─── Hoy ─── */
.today-meta { margin: 10px 2px 0; font-size: 15px; font-weight: 600; color: var(--label-2); }
.block-strip { margin: 10px 2px 0; gap: 4px; }
.block-strip i { height: 3px; border-radius: 2px; }
.block-strip i.now { background: var(--accent-fill); }
.today-tip { margin: 8px 2px 0; font-size: 14px; color: var(--label-2); line-height: 1.4; }
.next { margin-top: 30px; }
.next-tag { font-size: 15px; font-weight: 700; color: var(--accent); margin: 0 2px; }
.next-title { font-family: var(--font-display); font-size: 34px; line-height: 1.05; font-weight: 800; letter-spacing: -0.6px; margin: 4px 2px 6px; }
.next-meta { font-size: 15px; color: var(--label-2); margin: 0 2px; }
.next-why { font-size: 15px; color: var(--label); line-height: 1.4; margin: 10px 2px 0; }
.next-list { list-style: none; margin: 16px 0 18px; padding: 0; border-top: 1px solid var(--hair); }
.next-list li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 12px 2px; border-bottom: 1px solid var(--hair); font-size: 17px; }
.next-list li .num { color: var(--label-2); font-size: 15px; font-weight: 700; white-space: nowrap; }
.next-list li.more { color: var(--label-2); font-size: 15px; }
.sh-count { font-size: 17px; font-weight: 800; color: var(--label); }
.week { gap: 0; }
.week .d { gap: 8px; font-size: 12px; font-weight: 600; color: var(--label-3); }
.week .d.is-today { color: var(--accent); font-weight: 800; }
.week .dot { width: 32px; height: 32px; border-radius: 16px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--fill-2); color: var(--bg); }
.week .dot.on { background: var(--label); box-shadow: none; color: var(--bg); }
.week .dot.today { box-shadow: inset 0 0 0 2px var(--accent-fill); }
.week .dot.on.today { box-shadow: inset 0 0 0 2px var(--accent-fill); }
.plain-list { border-top: 1px solid var(--hair); }
.pl-item { display: flex; gap: 10px; align-items: flex-start; padding: 14px 2px; border-bottom: 1px solid var(--hair); }
.pl-item p { margin: 0; font-size: 15px; line-height: 1.45; }
.pl-item.warn svg { color: var(--amber); flex: none; margin-top: 2px; }
.pl-row { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 2px; min-height: 64px; border-bottom: 1px solid var(--hair); }
.pl-row .title { font-size: 17px; font-weight: 600; }
.pl-row .sub { font-size: 13px; color: var(--label-2); margin-top: 3px; }
.pl-row .chev { color: var(--label-3); }
.pl-row:active { background: var(--fill); }

/* Iniciales de sesión neutras; fuera barras de color a la izquierda */
.hue-bar { display: none; }
.tpl-icon { background: var(--fill) !important; color: var(--label-2) !important; border-radius: 10px; font-weight: 700; }
.ss-group { border-left: 0; padding-left: 0; margin-left: 0; }
.rv-next { border: 0; box-shadow: none; }
.pr { box-shadow: none; background: var(--card); }
.rec-delta { font-size: 17px; font-weight: 800; color: var(--accent); white-space: nowrap; }

/* Notas: texto con separador, sin cajas de color salvo avisos */
.note.info { background: transparent; border-radius: 0; padding: 12px 2px; border-top: 1px solid var(--hair); }
.note.info + .note.info { margin-top: 0; }

/* ─── Sesión: lista al estilo cuaderno ─── */
.exercise { background: none; border-radius: 0; margin-top: 0; border-top: 1px solid var(--hair); }
.ex-head { padding: 16px 2px 8px; }
.thumb { width: 44px; height: 44px; border-radius: 6px; background: #E8ECF3; border: 0; }
.ex-head .slot { text-transform: none; font-size: 13px; font-weight: 700; letter-spacing: 0; }
.sug, .sug.up, .sug.down, .sug.deload { background: none; margin: 0 2px 10px; padding: 0; font-size: 14px; color: var(--label-2); border-radius: 0; }
.sug b { color: var(--label); }
.sug.live-sug { border: 0; padding-left: 0; }
.set-row { padding: 2px 0; }
.set-row input, .set-row .cell { background: transparent; box-shadow: inset 0 -1px 0 var(--hair); border-radius: 0; font-size: 20px; font-weight: 700; }
.set-row input:focus, .set-row .cell:focus { background: var(--fill); border-radius: 8px; box-shadow: inset 0 0 0 2px var(--accent-fill); }
.set-row.done { border-radius: 8px; }
.check { width: 34px; height: 34px; border-radius: 17px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--fill-2); color: var(--label-3); }
.check.on { box-shadow: none; }
.ex-foot { padding: 6px 0 16px; gap: 16px; }
.ex-foot .btn.small, .ex-foot .btn.small.secondary, .ex-foot .btn.small.plain { background: none; box-shadow: none; padding: 0 2px; min-height: 40px; color: var(--label-2); font-weight: 600; }
.fab { width: 52px; height: 52px; border-radius: 26px; background: var(--card-2); color: var(--label); box-shadow: inset 0 0 0 1px var(--outline), 0 6px 18px rgba(0, 0, 0, 0.3); }
.start-bar, .f-bar { background: var(--bg); border-top: 1px solid var(--hair); }

/* ─── Una serie en pantalla ─── */
.bigstep { background: none; border-radius: 0; border-top: 1px solid var(--hair); padding: 14px 0 6px; margin-top: 8px; }
.bs-label { text-transform: none; font-size: 13px; font-weight: 600; color: var(--label-2); letter-spacing: 0; }
.bs-row { grid-template-columns: 60px 1fr 60px; }
.bs-btn { height: 56px; border-radius: 12px; background: var(--fill); color: var(--label); }
.bs-btn small { color: var(--label-2); }
.bs-val { background: none; height: 64px; font-size: 56px; font-weight: 800; letter-spacing: -1px; }
.bs-val:focus { background: var(--fill); }
.bs-fine button { background: none; box-shadow: inset 0 0 0 1px var(--outline); }
.set-strip .sp { background: none; border: 0; border-radius: 0; border-bottom: 2px solid var(--hair); }
.set-strip .sp.cur { border-color: var(--accent-fill); }
.f-warm { background: none; padding-left: 2px; padding-right: 2px; border-radius: 0; border-bottom: 1px solid var(--hair); }
.f-head .f-title .slot b { color: var(--label); }

/* ─── Descanso ─── */
.rv-timer { background: none; border-radius: 0; padding: 6px 0 4px; }
.rv-done, .rv-next { background: none; border-radius: 0; border-top: 1px solid var(--hair); padding: 14px 2px 4px; margin-top: 12px; }
.rv-label { text-transform: none; font-size: 13px; font-weight: 600; color: var(--label-2); letter-spacing: 0; }

/* ─── Progreso ─── */
.stat-grid { background: none; border-radius: 0; gap: 0; border-block: 1px solid var(--hair); }
.stat-grid > div { background: none; padding: 12px 12px 14px; }
.stat-grid > div + div { border-left: 1px solid var(--hair); }
.stat-grid > div { min-width: 0; }
.stat-grid .v { font-size: clamp(21px, 6.6vw, 28px); font-weight: 800; white-space: nowrap; }
.segmented button[aria-pressed="true"],
:root[data-theme="dark"] .segmented button[aria-pressed="true"] { background: var(--card) !important; color: var(--label) !important; box-shadow: inset 0 0 0 1px var(--outline); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .segmented button[aria-pressed="true"] { background: var(--card-2) !important; color: var(--label) !important; } }
:root[data-theme="dark"] .segmented button[aria-pressed="true"] { background: var(--card-2) !important; }

/* Selección en chips: invertida, no amarilla */
.chip[aria-pressed="true"] { background: var(--label); color: var(--bg); }

/* ─── Ejercicios ─── */
.lib-grid { gap: 18px 12px; }
.lib-card { background: none; border-radius: 0; }
.lib-card .img { background: #E8ECF3; border-radius: 10px; overflow: hidden; }
.lib-card .txt { padding: 8px 2px 0; }
.lib-card .txt b { font-size: 15px; }
.lib-card .badge { color: var(--label-2); text-transform: none; letter-spacing: 0; font-size: 12px; }
.navbar .nav-btn { color: var(--label); font-weight: 600; }
.auth-consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 14px; line-height: 1.45; color: var(--label-2); cursor: pointer; }
.auth-consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent-fill); }
.auth-consent a { color: var(--label); font-weight: 600; }

/* Landing · tamaños contenidos y párrafos de apoyo */
.lp-h1 { font-size: clamp(36px, min(5.4vw, 8.6vh), 74px); line-height: 1; }
.lp-h2 { font-size: clamp(26px, min(3.3vw, 5.6vh), 46px); line-height: 1.06; }
.lp-sub { font-size: clamp(17px, 1.3vw, 20px); }
.lp-p { font-size: clamp(16px, 1.15vw, 18px); line-height: 1.55; color: #C9D1DE; max-width: 46ch; margin: 14px 0 0; }
.lp-does .lp-h2, .lp-where .lp-h2 { margin-bottom: 0; }
.lp-does .lp-tabs { margin-top: 26px; }
.lp-where .lp-places { margin-top: 24px; }
.lp-evidence-in { max-width: 1360px; }
.lp-evidence .lp-p { font-size: clamp(17px, 1.4vw, 21px); max-width: 40ch; color: #E2E7EF; }
.lp-faq .lp-h2 { margin-bottom: 0; }
/* «Qué hace»: lista con separadores; la función activa se marca con una línea de progreso debajo */
.lp-tab { padding: 14px 0; border-bottom: 1px solid #1E2738; }
.lp-tab:first-child { border-top: 1px solid #1E2738; }
.lp-tab::before { display: none; }
.lp-tab-bar { left: 0; top: auto; bottom: -1px; width: 0; height: 2px; }
.lp-tab.on .lp-tab-bar { animation: tabfill-x 3.8s linear forwards; }
@keyframes tabfill-x { to { width: 100%; } }
@media (max-width: 899px) { .lp-tab-bar { display: none; } }

/* Encaje por pantallas también en el móvil: cada gesto lleva a la siguiente sección */
html.lp-snap { scroll-snap-type: y mandatory; }
.lp-s { scroll-snap-align: start; scroll-snap-stop: always; }
@media (max-width: 899px) {
  .lp-s { padding-top: calc(var(--safe-top) + var(--nav-h) + 14px); padding-bottom: calc(var(--safe-bottom) + 20px); }
  /* «Qué hace»: en el móvil solo se despliega la función activa, como en escritorio */
  .lp-tab span { max-height: 0; opacity: 0; }
  .lp-tab.on span { max-height: 90px; opacity: 1; }
  .lp-tab b { color: #8F9BB1; }
  .lp-tab.on b { color: var(--tiza); }
  .lp-tab-bar { display: block; }
  .lp-does .lp-tabs { margin-top: 18px; }
  .lp-place { min-height: 21svh; }
  .lp-where .lp-places { margin-top: 16px; }
  .lp-note .ln2 { display: none; }
}
@media (max-width: 899px) and (max-height: 700px) {
  .lp-p { font-size: 15px; margin-top: 10px; }
  .lp-place { min-height: 18svh; }
  .lp-place span { font-size: 14px; }
  .lp-faq summary { min-height: 50px; font-size: 16px; }
}
@media (max-width: 899px) and (max-height: 700px) {
  .lp-h2 { font-size: 24px; }
  .lp-tab { padding: 10px 0; }
  .lp-tab b { font-size: 16px; }
  .lp-tab span { font-size: 14px; }
  .lp-place { min-height: 16svh; }
  .lp-place figcaption { padding: 12px 14px; }
  .lp-note { font-size: 14px; margin-top: 12px; }
}

/* Fondo de las ventanas y hojas: un poco más oscuro y difuminado */
.scrim { background: rgba(5, 7, 12, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* Ventana de cuenta: modal centrado también en el móvil */
.sheet-auth .grabber-zone { display: none; }
.auth-main { text-align: left; }
.auth-main .brand-mark { margin: 6px auto 22px; width: 64px; }
.auth-h, .auth-lead { text-align: center; padding: 0; }
.auth-h { font-size: 28px; margin-bottom: 8px; }
.auth-lead { margin-bottom: 14px; }
@media (max-width: 759px) {
  .sheet-auth { top: 50%; bottom: auto; left: 12px; right: 12px; max-width: none; width: auto; max-height: calc(100svh - var(--safe-top) - var(--safe-bottom) - 32px); border-radius: 22px; transform: translateY(-50%); animation: dlg-in-m 0.24s cubic-bezier(.2,.8,.2,1); box-shadow: 0 0 0 1px var(--sep), 0 24px 70px rgba(0, 0, 0, 0.55); }
  .sheet-auth .auth-main { padding: 22px 20px 22px; }
  .sheet-auth .auth-x { top: 10px; right: 10px; }
  @keyframes dlg-in-m { from { opacity: 0; transform: translateY(-47%) scale(0.98); } to { opacity: 1; transform: translateY(-50%); } }
}
.progress i, .vol-fill { background: var(--accent-fill); }

/* «Qué hace»: la explicación se abre y se cierra a la vez, sin saltos */
.lp-tab .lp-tab-d { display: grid; grid-template-rows: 0fr; opacity: 0; max-height: none; transition: grid-template-rows 0.5s cubic-bezier(.4,0,.2,1), opacity 0.35s ease; }
.lp-tab.on .lp-tab-d { grid-template-rows: 1fr; opacity: 1; }
.lp-tab .lp-tab-d > span { overflow: hidden; min-height: 0; max-height: none !important; opacity: 1 !important; transition: none; }
.lp-tab.on .lp-tab-bar { animation: tabfill-x 4s linear forwards; }

/* Autorrelleno del navegador (iOS/Chrome): sin fondo amarillo, mismo aspecto que el campo */
.field:-webkit-autofill, .field:-webkit-autofill:hover, .field:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--label); caret-color: var(--label);
  -webkit-box-shadow: inset 0 0 0 1px var(--sep), inset 0 0 0 100px var(--fill);
  transition: background-color 9999s ease-out 0s;
}
.field:-webkit-autofill:focus { -webkit-box-shadow: inset 0 0 0 2px var(--accent), inset 0 0 0 100px var(--fill); }

/* Canjear código en Ajustes */
.promo-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.promo-form .field { flex: 1 1 140px; min-height: 40px; font-size: 16px; text-transform: uppercase; letter-spacing: 0.04em; }
.promo-form .btn { width: auto; padding: 0 18px; }
.promo-err { flex-basis: 100%; font-size: 14px; color: var(--red); }

/* Cargando: mancuerna con el pulso verde */
.loader { display: inline-grid; place-items: center; color: var(--label); line-height: 0; }
.loader-track { stroke: var(--fill-2); }
.loader-trace { stroke: var(--accent-fill); stroke-dasharray: 790; stroke-dashoffset: 790; animation: loader-trace 1.6s cubic-bezier(.45, 0, .25, 1) infinite; }
@keyframes loader-trace { 0% { stroke-dashoffset: 790; opacity: 1; } 55% { stroke-dashoffset: 0; opacity: 1; } 80% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .loader-trace { animation: none; stroke-dashoffset: 0; } }
.loader-block { display: grid; justify-items: center; gap: 12px; padding: 36px 0; color: var(--label-2); font-size: 14px; text-align: center; }

/* Insignia PRO: como un sello, en la letra del logotipo (Libre Franklin Black) e inclinada */
.pro-badge { display: inline-flex; align-items: center; justify-content: center; height: 21px; padding: 0 7px; border-radius: 5px; background: #9EF04A; color: #0B0F17; font: 900 12.5px/1 'Libre Franklin', var(--font-display); letter-spacing: -0.01em; vertical-align: middle; flex: none; transform: skewX(-12deg); }
.pro-badge > b { display: block; transform: skewX(4deg); font-weight: 900; }
/* La insignia no se deja cambiar por estilos de quien la contiene: letras negras y bien centradas */
.pro-badge > b { color: #0B0F17 !important; font: inherit !important; margin: 0 !important; padding: 0 !important; }
/* Centrado óptico: la caja de la palabra mide exactamente lo que las mayúsculas */
.pro-badge > b { line-height: 1 !important; text-box: trim-both cap alphabetic; }
.pro-badge.big { height: 26px; padding: 0 10px; font-size: 16px; border-radius: 6px; }
.pro-badge.xl { height: 44px; padding: 0 16px; font-size: 27px; border-radius: 9px; }

/* Saludo en Hoy con avatar y perfil en Ajustes */
.today-head { display: flex; align-items: flex-end; gap: 12px; }
.today-head .large-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--fill-2); color: var(--label); font: 800 17px/1 var(--font-display); margin: 0 4px 6px 0; }
.avatar.big { width: 60px; height: 60px; font-size: 25px; margin: 0; }
.avatar-pro { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); line-height: 0; }
.avatar-pro .pro-badge { height: 15px; font-size: 9.5px; padding: 0 5px; border-radius: 4px; box-shadow: 0 0 0 2px var(--bg); }
.profile-card { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 16px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--edge); }
.profile-name { display: flex; align-items: center; gap: 8px; font: 800 21px/1.2 var(--font-display); letter-spacing: -0.01em; min-width: 0; }
.profile-name .ellipsis { min-width: 0; }
.profile-sub { font-size: 14px; color: var(--label-2); margin-top: 3px; }
.profile-sync { font-size: 13px; color: var(--label-3); margin-top: 2px; }
a.row { color: inherit; text-decoration: none; }
.row .title.sub-title { display: flex; align-items: center; gap: 6px; }

/* Código promocional en el registro */
.auth-promo { display: block; margin: 14px 0 0; color: var(--accent); font-size: 15px; font-weight: 600; text-align: left; }
.auth-promo-in { text-transform: uppercase; letter-spacing: 0.05em; }
.auth-hint { margin: 6px 2px 0; font-size: 13px; color: var(--label-3); }
.auth-wait .loader { margin-right: 8px; vertical-align: middle; }

/* Recorrido de bienvenida */
.tour { position: fixed; inset: 0; z-index: 70; background: var(--bg); display: flex; flex-direction: column; padding: calc(var(--safe-top) + 8px) 20px calc(var(--safe-bottom) + 16px); max-width: 560px; margin: 0 auto; }
.tour-top { display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.tour-top .link { min-height: 44px; padding: 0 4px; font-size: 17px; color: var(--accent); }
.tour-body { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; animation: rise 0.35s cubic-bezier(.2, .8, .2, 1) both; }
.tour-body h2 { margin: 6px 0 0; font: 800 26px/1.15 var(--font-display); letter-spacing: -0.02em; }
.tour-body p { margin: 0; max-width: 34ch; font-size: 16px; line-height: 1.45; color: var(--label-2); }
.tour .lp-phone.tour-phone { width: auto; height: min(50svh, 480px); border-radius: 34px; padding: 7px; box-shadow: 0 0 0 1px var(--sep), 0 18px 40px rgba(0, 0, 0, 0.25); }
.tour .lp-phone.tour-phone img { border-radius: 27px; }
.tour-hello { display: grid; justify-items: center; gap: 12px; color: var(--label); }
.tour-hello h2 { font-size: 34px; margin-top: 18px; }
.tour-dots { display: flex; justify-content: center; gap: 6px; margin: 18px 0 16px; }
.tour-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--fill-2); transition: width 0.25s, background 0.25s; }
.tour-dots i.on { width: 22px; background: var(--accent-fill); }
.tour-next { width: 100%; }
.today-head > .grow { flex: 1; min-width: 0; }
.row.stack { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
.row.stack .segmented { width: 100% !important; }

/* ─── HOY rediseñado ─────────────────────────────────────────────────────── */
.avatar { overflow: visible; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar-edit { position: relative; cursor: pointer; flex: none; }
.avatar-cam { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-fill); color: var(--on-accent); box-shadow: 0 0 0 3px var(--card); }
.today-card { margin-top: 16px; padding: 18px 18px 16px; border-radius: 22px; background: var(--card); box-shadow: var(--edge); animation: rise 0.45s cubic-bezier(.2, .8, .2, 1) both; }
.tc-top { display: flex; align-items: center; justify-content: space-between; }
.tc-tag { font-size: 14px; font-weight: 700; color: var(--accent); }
.tc-title { margin: 4px 0 10px; font: 800 28px/1.1 var(--font-display); letter-spacing: -0.02em; }
.tc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-chips span { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 14px; background: var(--fill); color: var(--label-2); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tc-ex { display: flex; gap: 10px; margin: 16px 0 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tc-ex::-webkit-scrollbar { display: none; }
.tc-ex-i { flex: 0 0 74px; display: grid; gap: 6px; justify-items: center; text-align: center; }
.tc-ex-i .thumb { width: 64px; height: 64px; border-radius: 16px; }
.tc-ex-i span { font-size: 12px; line-height: 1.2; color: var(--label-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tc-more { flex: 0 0 64px; height: 64px; border-radius: 16px; background: var(--fill); color: var(--label-2); font-weight: 800; font-size: 17px; }
.tc-why { margin: 12px 0 14px; font-size: 15px; color: var(--label-2); line-height: 1.4; }
.week-card { margin-top: 14px; padding: 16px 16px 14px; border-radius: 22px; background: var(--card); box-shadow: var(--edge); animation: rise 0.5s 0.06s cubic-bezier(.2, .8, .2, 1) both; }
.wk-head { display: flex; align-items: center; gap: 14px; }
.wk-head .grow { flex: 1; min-width: 0; display: grid; }
.wk-head b { font: 800 19px/1.2 var(--font-display); }
.wk-head .grow span { font-size: 14px; color: var(--label-2); }
.wk-ring { position: relative; width: 56px; height: 56px; flex: none; }
.wk-ring .ring { width: 56px; height: 56px; }
.wk-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.icon-btn { width: 36px; height: 36px; border-radius: 18px; display: grid; place-items: center; color: var(--label-2); flex: none; }
.wk-tip { margin: 10px 0 12px; font-size: 15px; line-height: 1.4; color: var(--label); }
.week-card .week { margin: 0; }
.coach-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.coach-rail::-webkit-scrollbar { display: none; }
.coach-card { flex: 0 0 82%; max-width: 340px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border-radius: 20px; background: var(--card); box-shadow: var(--edge); animation: rise 0.5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(0.12s + var(--d, 0ms)); }
.coach-card b { font: 800 17px/1.25 var(--font-display); }
.coach-card p { margin: 0; font-size: 15px; line-height: 1.4; color: var(--label-2); }
.coach-card .btn { margin-top: 6px; }
.cc-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 4px; }
.coach-card.warn .cc-ic { background: var(--amber-soft); color: var(--amber); }
.cc-bar { width: 100%; height: 8px; border-radius: 4px; background: var(--fill-2); overflow: hidden; margin-top: 6px; }
.cc-bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent-fill); transform-origin: left; animation: grow-x 0.9s 0.3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes grow-x { from { transform: scaleX(0); } }
.cc-bar-l { font-size: 13px; color: var(--label-3); font-variant-numeric: tabular-nums; }
.coach-card.locked { padding: 0; overflow: hidden; }
.coach-card.locked .pro-lock { width: 100%; min-height: 100%; }
.coach-card.locked .pro-lock-bg { padding: 16px; display: flex; flex-direction: column; gap: 6px; }

/* ─── PRO: bloqueos, pantalla y bienvenida ─────────────────────────────── */
.pro-lock { position: relative; border-radius: inherit; }
.pro-lock-bg { filter: blur(6px); opacity: 0.55; pointer-events: none; user-select: none; }
.pro-lock-cta { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 16px; border-radius: inherit; background: color-mix(in srgb, var(--card) 35%, transparent); }
.pro-lock-cta > b { font: 800 17px/1.2 var(--font-display); color: var(--label); margin-top: 4px; }
.pro-lock-cta > span:not(.pro-badge):not(.pro-lock-go) { font-size: 14px; color: var(--label-2); max-width: 30ch; }
.pro-lock-cta .pro-lock-go { margin-top: 6px; height: 34px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 17px; background: #9EF04A; color: #0B0F17; font-weight: 700; font-size: 15px; }
.pro-inline { vertical-align: middle; margin-left: 4px; line-height: 0; }
.pro-sheet { position: relative; padding-top: 6px; padding-bottom: 20px; }
.ps-x { position: absolute; top: 0; left: 4px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: var(--label-2); z-index: 2; }
.pro-hero { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 4px 0 14px; }
.pro-hero h2 { margin: 6px 0 0; font: 900 27px/1.1 'Libre Franklin', var(--font-display); letter-spacing: -0.02em; }
.pro-hero p { margin: 0; color: var(--label-2); max-width: 32ch; }
.pro-perks { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.pro-perks li { display: flex; gap: 12px; align-items: center; animation: rise 0.45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0ms); }
.pro-perks li > div { display: grid; gap: 1px; min-width: 0; }
.pro-perks b { font-size: 15.5px; line-height: 1.25; }
.pro-perks li span:not(.pp-ic) { font-size: 13.5px; line-height: 1.3; color: var(--label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-ic { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: #9EF04A; color: #0B0F17; }
.pro-welcome { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: calc(var(--safe-top) + 24px) 24px calc(var(--safe-bottom) + 24px); animation: fade 0.25s ease; }
.pro-welcome h2 { margin: 26px 0 4px; font: 900 34px/1.1 'Libre Franklin', var(--font-display); letter-spacing: -0.02em; animation: rise 0.5s 0.45s cubic-bezier(.2, .8, .2, 1) both; }
.pro-welcome > p { margin: 0 0 18px; color: var(--label-2); animation: rise 0.5s 0.5s cubic-bezier(.2, .8, .2, 1) both; }
.pro-welcome .pro-perks { text-align: left; width: min(100%, 360px); }
.pro-welcome .btn { width: min(100%, 360px); animation: rise 0.5s 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.pw-medal { perspective: 800px; }
.pw-coin { position: relative; width: 168px; height: 168px; transform-style: preserve-3d; animation: coin-in 1.8s cubic-bezier(.15, .75, .25, 1) both, coin-sway 4s 1.8s ease-in-out infinite; }
.pw-face { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; background: #0B0F17; color: #F2F5F9; box-shadow: inset 0 0 0 7px #9EF04A, inset 0 0 0 12px #0B0F17, inset 0 0 0 14px #2A3548; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.pw-back { transform: rotateY(180deg); }
@keyframes coin-in { 0% { transform: scale(0.3) rotateY(-900deg); opacity: 0; } 25% { opacity: 1; } 100% { transform: scale(1) rotateY(0); } }
@keyframes coin-sway { 0%, 100% { transform: rotateY(-14deg); } 50% { transform: rotateY(14deg); } }
@media (prefers-reduced-motion: reduce) { .pw-coin { animation: none; } }

/* ─── Recorrido v2: escenas animadas y deslizamiento ─────────────────────── */
.tour { overflow: hidden; }
.tour-bars { display: flex; gap: 4px; padding: 4px 0 0; }
.tour-bars i { flex: 1; height: 4px; border-radius: 2px; background: var(--fill-2); position: relative; overflow: hidden; }
.tour-bars i.done { background: var(--accent-fill); }
.tour-bars i.on::after { content: ''; position: absolute; inset: 0; background: var(--accent-fill); transform-origin: left; animation: grow-x 0.6s cubic-bezier(.2, .8, .2, 1) both; }
.tour-track { flex: 1; min-height: 0; display: flex; margin: 0 -20px; transition: transform 0.5s cubic-bezier(.22, .9, .22, 1); }
.tour-page { flex: 0 0 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 24px; }
.tour-visual { width: 100%; height: min(46svh, 380px); display: grid; place-items: center; margin-bottom: 22px; }
.tour-page h2 { margin: 0 0 8px; font: 800 27px/1.15 var(--font-display); letter-spacing: -0.02em; opacity: 0; transform: translateY(12px); transition: opacity 0.4s 0.15s, transform 0.5s 0.15s cubic-bezier(.2, .8, .2, 1); }
.tour-page p { margin: 0; max-width: 32ch; font-size: 16px; line-height: 1.45; color: var(--label-2); opacity: 0; transform: translateY(12px); transition: opacity 0.4s 0.25s, transform 0.5s 0.25s cubic-bezier(.2, .8, .2, 1); }
.tour-page h2.on, .tour-page p.on { opacity: 1; transform: none; }
.tour-hello { display: grid; justify-items: center; gap: 10px; }
.tour-hello h2, .tour-hello p { opacity: 1; transform: none; }
.tour-hello h2 { font-size: 36px; margin-top: 22px; }
.th-mark { color: var(--label); }
.tour-next { margin-top: 18px; }
/* Escenas */
.sc { width: min(100%, 330px); }
.sc-plan { display: grid; gap: 10px; }
.scp-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--card); box-shadow: var(--edge); text-align: left; opacity: 0; transform: translateX(40px); }
.sc.on .scp-row { animation: slide-in 0.55s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: var(--d); }
@keyframes slide-in { to { opacity: 1; transform: none; } }
.scp-row > div { flex: 1; display: grid; }
.scp-row b { font-size: 16px; }
.scp-row div span { font-size: 13px; color: var(--label-2); }
.scp-d { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--fill); font-weight: 800; color: var(--label-2); }
.scp-row:first-child .scp-d { background: var(--accent-fill); color: var(--on-accent); }
.scp-ok { width: 28px; height: 28px; border-radius: 14px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); opacity: 0; }
.sc.on .scp-ok { animation: pop 0.4s 0.9s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }
.scs-card { padding: 18px; border-radius: 22px; background: var(--card); box-shadow: var(--edge); text-align: left; }
.scs-top { display: flex; justify-content: space-between; align-items: baseline; }
.scs-top b { font: 800 19px/1.2 var(--font-display); }
.scs-top span { font-size: 14px; color: var(--label-2); }
.scs-tip { min-height: 40px; margin: 10px 0 6px; font-size: 14px; color: var(--label-2); }
.scs-tip .up { color: var(--accent); font-weight: 800; margin-right: 4px; }
.scs-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.scs-nums > div { padding: 12px; border-radius: 14px; background: var(--fill); text-align: center; }
.scs-nums .n { display: inline-block; font: 800 40px/1 var(--font-display); }
.scs-nums .n.bump { animation: bump 0.45s cubic-bezier(.3, 1.6, .5, 1); color: var(--accent); }
@keyframes bump { 40% { transform: scale(1.18); } }
.scs-nums small { display: block; margin-top: 4px; font-size: 13px; color: var(--label-2); }
.scs-btn { margin-top: 14px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; background: var(--accent-fill); color: var(--on-accent); transition: background 0.3s, transform 0.2s; }
.scs-btn.done { background: var(--green); color: #fff; transform: scale(0.97); }
.sc-rest { display: grid; justify-items: center; gap: 18px; }
.scr-ring { position: relative; width: 180px; height: 180px; }
.scr-ring .ring { width: 180px; height: 180px; }
.scr-ring .num { position: absolute; inset: 0; display: grid; place-items: center; font: 800 44px/1 var(--font-display); }
.scr-ring small { position: absolute; left: 0; right: 0; top: 64%; font-size: 13px; color: var(--label-2); }
.scr-next { padding: 10px 14px; border-radius: 14px; background: var(--card); box-shadow: var(--edge); font-size: 14px; color: var(--label-2); }
.scr-next b { color: var(--label); }
.sc-coach { display: grid; gap: 10px; }
.scc-b { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 18px; background: var(--card); box-shadow: var(--edge); text-align: left; opacity: 0; transform: translateY(18px) scale(0.97); }
.sc.on .scc-b { animation: slide-in 0.5s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: var(--d); }
.scc-b > div { display: grid; gap: 2px; }
.scc-b b { font-size: 15px; }
.scc-b span:not(.cc-ic) { font-size: 14px; color: var(--label-2); line-height: 1.35; }
.scc-b .cc-ic { width: 34px; height: 34px; flex: none; margin: 0; }
.scc-b.warn .cc-ic { background: var(--amber-soft); color: var(--amber); }
.sc-prog { display: grid; gap: 12px; padding: 16px; border-radius: 22px; background: var(--card); box-shadow: var(--edge); }
.scg-chart { width: 100%; height: auto; }
.scg-grid { stroke: var(--sep); stroke-width: 1; fill: none; }
.scg-line { fill: none; stroke: var(--accent-fill); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; }
.sc.on .scg-line { animation: draw 1.4s 0.2s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.scg-dot { fill: var(--accent-fill); opacity: 0; }
.sc.on .scg-dot { animation: pop 0.4s 1.5s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.scg-pr { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: var(--accent-fill); color: var(--on-accent); font-size: 15px; opacity: 0; }
.sc.on .scg-pr { animation: pop 0.45s 1.7s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.scg-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--label-2); }
.scg-row b { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .tour-track { transition: none; } .scp-row, .scc-b, .scp-ok, .scg-dot, .scg-pr { opacity: 1; transform: none; animation: none !important; } .scg-line { stroke-dashoffset: 0; animation: none !important; } }

/* Móvil de la landing: el marco descuenta su borde para que la pantalla tenga la proporción del iPhone (sin recortes) */
.lp-phone { aspect-ratio: 390 / 818; }
.lp-phone img { object-position: top center; }
.onb-body { animation: onb-in 0.42s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes onb-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
.onb-dots i { transition: background 0.3s ease; }
@media (prefers-reduced-motion: reduce) { .onb-body { animation: none; } }

/* Instalar la app */
.install-card { display: flex; gap: 14px; align-items: flex-start; margin-top: 14px; padding: 14px; border-radius: 20px; background: var(--card); box-shadow: var(--edge); }
.install-card img { border-radius: 12px; flex: none; }
.install-card .grow { flex: 1; min-width: 0; display: grid; gap: 4px; }
.install-card b { font-size: 16px; }
.install-card span { font-size: 14px; line-height: 1.4; color: var(--label-2); }
.install-card .btn-row { display: flex; gap: 8px; margin-top: 6px; }
.lp-install { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--tiza); font-weight: 700; font-size: 15px; }
.lp-install img { border-radius: 7px; }

/* Coach: paneles visuales */
.coach-panel { margin-top: 12px; padding: 16px; border-radius: 20px; background: var(--card); box-shadow: var(--edge); animation: rise 0.5s 0.15s cubic-bezier(.2, .8, .2, 1) both; }
.coach-panel.locked { padding: 0; overflow: hidden; }
.coach-panel.locked .coach-panel { margin: 0; box-shadow: none; animation: none; }
.cp-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.cp-head b { font: 800 17px/1.2 var(--font-display); }
.cp-head span { font-size: 13px; color: var(--label-3); }
.mv { display: grid; gap: 9px; }
.mv-row { display: grid; grid-template-columns: 86px 1fr 26px; align-items: center; gap: 10px; }
.mv-n { font-size: 14px; color: var(--label); }
.mv-bar { position: relative; height: 10px; border-radius: 5px; background: var(--fill); overflow: hidden; }
.mv-zone { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--accent-fill) 22%, transparent); }
.mv-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0; background: var(--label-3); transform-origin: left; animation: grow-x 0.8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(0.2s + var(--d, 0ms)); }
.mv-row.ok .mv-fill { background: var(--accent-fill); }
.mv-row.high .mv-fill { background: var(--amber); }
.mv-v { font-size: 14px; font-weight: 700; text-align: right; color: var(--label-2); }
.mv-row.ok .mv-v { color: var(--label); }
.cp-foot { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13px; color: var(--label-3); }
.cp-key i { display: inline-block; width: 14px; height: 8px; border-radius: 3px; background: color-mix(in srgb, var(--accent-fill) 35%, transparent); margin-right: 6px; vertical-align: middle; }
.cp-say { margin: 10px 0 0; font-size: 14px; line-height: 1.4; color: var(--label-2); }
.st-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 0.5px solid var(--sep); }
.st-row:first-of-type { border-top: 0; padding-top: 0; }
.st-row .grow { flex: 1; min-width: 0; display: grid; }
.st-row b { font-size: 15px; }
.st-row .grow span { font-size: 13px; color: var(--label-2); }
.st-row .spark { width: 72px; height: 28px; flex: none; }
.st-d { width: 56px; text-align: right; font-size: 14px; font-weight: 800; color: var(--label-2); }
.st-d.up { color: var(--accent); }
.st-d.dn { color: var(--amber); }

/* Elegir plan Pro */
.plan-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 14px; }
.plan { position: relative; display: grid; gap: 3px; text-align: left; padding: 16px 14px 14px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--sep); transition: box-shadow 0.2s, transform 0.2s; }
.plan.on { box-shadow: inset 0 0 0 2.5px var(--accent-fill); }
.plan:active { transform: scale(0.98); }
.plan b { font-size: 15px; color: var(--label-2); }
.plan-p { font: 800 22px/1.1 var(--font-display); color: var(--label); }
.plan-p small { font-size: 14px; font-weight: 600; color: var(--label-2); margin-left: 2px; }
.plan-s { font-size: 13px; color: var(--label-2); }
.plan-tag { position: absolute; top: -10px; right: 12px; height: 22px; padding: 0 8px; border-radius: 11px; display: inline-flex; align-items: center; background: var(--accent-fill); color: var(--on-accent); font-size: 12px; font-weight: 800; }
.pro-legal { margin: 10px 2px 18px; font-size: 12.5px; line-height: 1.45; color: var(--label-3); text-align: center; }
.pro-legal a { color: var(--label-2); }
.plan-s, .plan b { font-weight: 500; } .plan b { font-weight: 700; }

/* Invitar a un amigo */
.invite { text-align: center; padding-bottom: 24px; }
.invite > h2 { margin: 18px 0 6px; font: 900 28px/1.1 'Libre Franklin', var(--font-display); letter-spacing: -0.02em; }
.inv-lead { margin: 0 auto 18px; max-width: 32ch; color: var(--label-2); font-size: 16px; line-height: 1.45; }
.inv-lead b { color: var(--label); }
.inv-art { display: flex; align-items: center; justify-content: center; gap: 14px; padding-top: 8px; }
.inv-p { position: relative; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--fill-2); color: var(--label); font: 800 32px/1 var(--font-display); animation: pop 0.5s cubic-bezier(.3, 1.6, .5, 1) both; }
.inv-p img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.inv-p.friend { animation-delay: 0.15s; color: var(--label-2); }
.inv-gift { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap; height: 22px; padding: 0 8px; border-radius: 11px; display: inline-flex; align-items: center; background: var(--accent-fill); color: var(--on-accent); font: 800 12px/1 var(--font-display); box-shadow: 0 0 0 3px var(--bg); animation: pop 0.45s 0.45s cubic-bezier(.3, 1.6, .5, 1) both; }
.inv-link { width: 34px; height: 34px; border-radius: 17px; display: grid; place-items: center; background: var(--card); box-shadow: var(--edge); color: var(--accent); }
.inv-box { width: 100%; display: flex; align-items: center; gap: 10px; padding: 0 6px 0 14px; height: 52px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--sep); margin-bottom: 10px; text-align: left; }
.inv-box .mono { flex: 1; min-width: 0; font-size: 15px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.inv-copy { height: 38px; padding: 0 14px; border-radius: 10px; display: inline-flex; align-items: center; background: var(--fill); font-weight: 700; font-size: 14px; color: var(--accent); }
.inv-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.inv-stats > div { padding: 12px; border-radius: 14px; background: var(--card); box-shadow: var(--edge); display: grid; gap: 2px; }
.inv-stats b { font: 800 26px/1 var(--font-display); }
.inv-stats span { font-size: 13px; color: var(--label-2); }
.inv-how { text-align: left; margin: 20px 0 6px; padding: 0 0 0 22px; display: grid; gap: 6px; color: var(--label-2); font-size: 15px; }
.inv-how li::marker { color: var(--accent); font-weight: 800; }
.ref-win .pw-face { display: grid; place-items: center; align-content: center; gap: 2px; }
.rw-days { font: 900 46px/1 'Libre Franklin', var(--font-display); color: #9EF04A; }
.ref-win .pw-face small { font-size: 14px; color: #A3AEC2; }
.lp-invited { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 8px 12px; border-radius: 12px; background: rgba(158, 240, 74, 0.14); color: #B0F36A; font-size: 14px; font-weight: 700; }
.pro-soon { margin: 0; text-align: center; font-size: 14px; color: var(--label-2); }
.pro-soon b { color: var(--label); font-weight: 700; }
.section-foot.safety { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--fill); color: var(--label-2); }
details.calc { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--card); box-shadow: var(--edge); font-size: 14px; color: var(--label-2); }
details.calc summary { cursor: pointer; font-weight: 700; color: var(--accent); list-style: none; }
details.calc summary::-webkit-details-marker { display: none; }
details.calc ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.4; }
details.calc b { color: var(--label); }
.bia-card { margin-top: 12px; padding: 16px; border-radius: 20px; background: var(--card); box-shadow: var(--edge); }
.bia-card .stat-grid { margin: 0; }
.k.up-good { color: var(--green); }
.rw-sub { margin-top: 20px; padding: 4px 10px; border-radius: 8px; background: var(--fill); font-size: 14px; letter-spacing: 0.06em; color: var(--label-2); animation: rise 0.5s 0.4s cubic-bezier(.2, .8, .2, 1) both; }
.ref-win h2 { margin-top: 12px; }
.auth-hint.warn { color: var(--amber); }

/* ─── App viva: microanimaciones propias ─────────────────────────────────── */
.screen { animation: screen-in 0.32s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes screen-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.btn, .chip, .onb-opt, .plan, .tc-more, .icon-btn, .avatar, .inv-box, .segmented button, .lp-cta { transition: transform 0.14s cubic-bezier(.2, .8, .2, 1), background-color 0.2s, box-shadow 0.2s, color 0.2s; }
.btn:active:not(:disabled), .chip:active, .onb-opt:active, .tc-more:active, .icon-btn:active, .avatar:active, .segmented button:active { transform: scale(0.96); }
.tabbar button[aria-current="page"] svg { animation: tab-pop 0.42s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes tab-pop { 40% { transform: scale(1.18) translateY(-1px); } }
.ln-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s 0.1s cubic-bezier(.4, 0, .2, 1) forwards; }
.ring-v { animation: ring-in 0.9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ring-in { from { stroke-dashoffset: var(--c); } }
.week .dot.on { animation: pop 0.4s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(0.25s + var(--i, 0) * 60ms); }
.week .dot.today:not(.on) { animation: today-pulse 2s cubic-bezier(.2, .6, .3, 1) infinite; }
/* El aro de hoy se queda siempre; la onda sale de él y se desvanece */
@keyframes today-pulse {
  0% { box-shadow: inset 0 0 0 2px var(--accent-fill), 0 0 0 0 color-mix(in srgb, var(--accent-fill) 55%, transparent); }
  70%, 100% { box-shadow: inset 0 0 0 2px var(--accent-fill), 0 0 0 9px color-mix(in srgb, var(--accent-fill) 0%, transparent); }
}
.toast { animation: toast-in 0.35s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px) scale(0.96); } }
@media (prefers-reduced-motion: reduce) {
  .screen, .ln-draw, .ring-v, .week .dot.on, .week .dot.today, .toast, .tabbar svg { animation: none !important; }
  .ln-draw { stroke-dashoffset: 0; }
}
/* Peso por periodos */
.wr-seg { margin-top: 14px; }
.wr-seg button { font-size: 13px; padding: 0 4px; }
.wr-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--label-2); }
.wr-nav .icon-btn { font-size: 22px; line-height: 1; color: var(--accent); }
.wr-nav .icon-btn:disabled { color: var(--label-3); opacity: 0.4; }
.wr-nav b.good { color: var(--green); }
.wr-nav b.bad { color: var(--amber); }
.wr-chart { margin-top: 6px; touch-action: pan-y; min-height: 120px; }
.auth-spam { margin-top: 14px; text-align: left; font-size: 14px; }

/* Avisos: fondo de tarjeta con borde e icono naranja (el fondo marrón se veía sucio) */
.note.warn { background: var(--card); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--amber) 55%, transparent); color: var(--label); }
.note.warn > svg:first-child, .note.warn .ic { color: var(--amber); flex: none; }
.cp-say b { color: var(--label); } .cp-say.high b { color: var(--amber); } .mv-row.high .mv-v { color: var(--amber); }
.wr-seg button.is-pro { color: var(--label-3); position: relative; }
.mini-lock { display: inline-block; width: 6px; height: 6px; border-radius: 3px; background: var(--accent-fill); margin-left: 3px; vertical-align: super; }

/* Coach: tarjetas con su propio gráfico */
.cc-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--accent); }
.cc-kicker i { width: 7px; height: 7px; border-radius: 4px; background: var(--accent-fill); }
.coach-card.warn .cc-kicker { color: var(--amber); }
.coach-card.warn .cc-kicker i { background: var(--amber); }
.coach-card.warn { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--amber) 45%, transparent); }
.coach-card.wide { flex: none; max-width: none; width: 100%; }
.cv-list { display: grid; gap: 10px; }
.cv-stat { display: grid; gap: 0; margin: 4px 0 2px; }
.cv-stat .num { font: 800 34px/1.05 var(--font-display); letter-spacing: -0.02em; color: var(--label); animation: rise 0.5s 0.2s cubic-bezier(.2, .8, .2, 1) both; }
.cv-stat small { font-size: 13px; color: var(--label-2); }
.cv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.cv-chips span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 4px; border-radius: 15px; background: var(--fill); font-size: 14px; color: var(--label); animation: pop 0.4s cubic-bezier(.3, 1.6, .5, 1) both; }
.cv-chips b { height: 22px; min-width: 30px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center; font-size: 13px; background: var(--fill-2); color: var(--label-2); }
.cv-chips .up b { background: var(--accent-fill); color: var(--on-accent); }
.cv-level { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0 4px; width: 100%; }
.cv-level i { display: block; height: 8px; border-radius: 4px; background: var(--fill-2); transform-origin: left; }
.cv-level span { display: block; margin-top: 4px; font-size: 12px; color: var(--label-3); }
.cv-level[data-l="1"] .on i { background: var(--green); }
.cv-level[data-l="2"] .on i, .cv-level[data-l="3"] .on i { background: var(--amber); }
.cv-level .on i { animation: grow-x 0.6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(0.15s + var(--i) * 120ms); }
.cv-level .on span { color: var(--label); font-weight: 600; }
.cv-bal { width: 100%; margin: 8px 0 2px; }
.cv-bal-bar { position: relative; height: 12px; border-radius: 6px; background: var(--fill-2); overflow: hidden; }
.cv-bal-bar .zone { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--accent-fill) 30%, transparent); }
.cv-bal-bar .fill { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--label) 28%, transparent); border-right: 3px solid var(--label); transform-origin: left; animation: grow-x 0.8s 0.2s cubic-bezier(.2, .8, .2, 1) both; }
.cv-bal-l { display: flex; justify-content: space-between; margin-top: 6px; font-size: 13px; color: var(--label-2); }
.cv-bal-l b { color: var(--label); }
.cv-status { padding: 18px; border-radius: 22px; background: var(--card); box-shadow: var(--edge); display: grid; gap: 4px; }
.cv-status > b { font: 800 22px/1.2 var(--font-display); margin-top: 6px; }
.cv-status p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--label-2); }
.cv-based { margin-top: 6px; font-size: 13px; color: var(--label-3); }
.cv-next { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 20px; background: var(--card); box-shadow: var(--edge); }
.cv-next .tpl-icon { width: 44px; height: 44px; font-size: 15px; border-radius: 12px; flex: none; }
.cv-next b { font: 800 18px/1.2 var(--font-display); }
.cv-next p { margin: 4px 0 0; font-size: 14px; line-height: 1.4; color: var(--label-2); }
.cv-balrow { padding: 14px 16px; border-radius: 18px; background: var(--card); box-shadow: var(--edge); }
.cv-balrow-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cv-balrow-h b { font-size: 15px; }
.cv-balrow-h span { font-size: 13px; font-weight: 700; color: var(--label-3); }
.cv-balrow-h span.ok { color: var(--green); }
.cv-balrow-h span.warn { color: var(--amber); }
.tab-avatar { width: 26px; height: 26px; display: block; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px currentColor; }
.sub-seg { margin: 10px 0 4px; }
.lib-embed { padding-top: 4px; }
/* Cuerpo: secciones plegables */
details.fold { border-radius: 20px; background: var(--card); box-shadow: var(--edge); overflow: hidden; }
details.fold > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary .grow { flex: 1; min-width: 0; display: grid; }
details.fold > summary b { font-size: 17px; }
details.fold > summary small { font-size: 13px; color: var(--label-2); }
.fold-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.fold-chev { color: var(--label-3); transition: transform 0.25s; }
details.fold[open] > summary .fold-chev { transform: rotate(90deg); }
details.fold[open] > summary { border-bottom: 0.5px solid var(--sep); }
details.fold > :not(summary) { margin-left: 12px; margin-right: 12px; max-width: calc(100% - 24px); box-sizing: border-box; }
details.fold > :last-child { margin-bottom: 14px; }
details.fold .group, details.fold .stat-grid { box-shadow: none; }
details.fold[open] > :not(summary) { animation: rise 0.3s cubic-bezier(.2, .8, .2, 1) both; }

/* Avisos del descanso */
.row-off .title { color: var(--label-2); }
.push-ask { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 12px 10px 12px 14px; border-radius: 14px; background: var(--card); box-shadow: var(--edge); }
.push-ask .pa-ic { color: var(--accent); display: grid; place-items: center; flex: none; }
.push-ask .grow { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.push-ask b { font-size: 15px; font-weight: 650; }
.push-ask span { font-size: 13px; color: var(--label-2); }
.push-ask .btn.small { width: auto; flex: none; min-height: 34px; }
.push-ask .pa-x { flex: none; width: 34px; height: 34px; display: grid; place-items: center; color: var(--label-3); }

/* Fecha de nacimiento: día · mes · año */
.bdate { display: grid; grid-template-columns: 0.9fr 1.7fr 1.15fr; gap: 8px; }
.bdate select.field {
  -webkit-appearance: none; appearance: none; min-width: 0; padding-right: 28px; font-variant-numeric: tabular-nums;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%237A859A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}
.bdate select.field:invalid { color: var(--label-3); }
.bdate-row { flex-wrap: wrap; }
.bdate-row .bdate { width: 100%; margin-top: 8px; }

/* Pases de invitación: la insignia PRO con forma de entrada (muescas a los lados) */
.inv-passes { text-align: center; margin: 6px 0 16px; }
.ip-row { display: flex; justify-content: center; gap: 12px; height: 62px; align-items: center; }
.ip { width: 76px; height: 40px; border-radius: 7px; display: grid; place-items: center;
  background: var(--fill-2); color: var(--label-3); transform: rotate(var(--r)) skewX(-12deg);
  -webkit-mask: radial-gradient(circle 7px at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 7px at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
  animation: ip-in 0.5s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: var(--d); }
.ip b { font: 900 21px/1 'Libre Franklin', var(--font-display); letter-spacing: -0.01em; transform: skewX(4deg); }
.ip.on { background: #9EF04A; color: #0B0F17; }
/* Entrada usada: rasgada por la mitad (borde en zigzag) y la parte derecha algo separada */
.ip.used { background: none; -webkit-mask: none; mask: none; position: relative; overflow: visible; }
.ip-half { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 7px; background: var(--fill-2); color: var(--label-3);
  -webkit-mask: radial-gradient(circle 7px at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 7px at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat; }
.ip-half.l { clip-path: polygon(0 0, 57% 0, 53% 14%, 59% 27%, 54% 41%, 60% 55%, 53% 69%, 59% 83%, 55% 100%, 0 100%); }
.ip-half.r { clip-path: polygon(57% 0, 53% 14%, 59% 27%, 54% 41%, 60% 55%, 53% 69%, 59% 83%, 55% 100%, 100% 100%, 100% 0);
  transform-origin: 56% 100%; transform: translate(5px, 3px) rotate(10deg); animation: ip-tear 0.55s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: calc(var(--d) + 0.45s); }
@keyframes ip-tear { from { transform: none; } }
@media (prefers-reduced-motion: reduce) { .ip-half.r { animation: none; } }
.inv-passes p { font-size: 14px; color: var(--label-2); margin: 6px 0 0; }
.inv-passes p b { color: var(--label); }
@keyframes ip-in { from { opacity: 0; transform: translateY(8px) rotate(var(--r)) skewX(-12deg) scale(.9); } }
@media (prefers-reduced-motion: reduce) { .ip { animation: none; } }

.inv-people .row { gap: 12px; }
.ip-av { width: 34px; height: 34px; border-radius: 50%; background: var(--fill); color: var(--label-2); display: grid; place-items: center; font-weight: 700; flex: none; }
.inv-people .title { font-size: 15px; }
.invite .section-head { text-align: left; }

/* Tu fuerza para tu edad */
.age-str .as-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.age-str .as-k { display: block; font-size: 13px; color: var(--label-2); }
.age-str .as-top b { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.as-band { flex: none; font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--fill); color: var(--label-2); }
.as-band.mid { color: var(--label); }
.as-band.high { background: #9EF04A; color: #0B0F17; }
.as-scale { position: relative; height: 12px; margin: 22px 0 8px; border-radius: 6px; background: var(--fill); overflow: visible; }
.as-zone { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--accent-fill) 28%, transparent); }
.as-med { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--label-3); }
.as-you { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--label); box-shadow: 0 0 0 3px var(--card); animation: pop 0.45s cubic-bezier(.3, 1.6, .5, 1) both 0.2s; }
.as-legend { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--label-2); }
.as-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; background: color-mix(in srgb, var(--accent-fill) 28%, transparent); }
.age-str .cp-foot { font-size: 12px; color: var(--label-3); margin: 8px 0 0; }

/* Antes de empezar: la sesión completa, con «Cambiar» en cada ejercicio */
.ck-row { gap: 12px; }
.ck-row .thumb { width: 44px; height: 44px; }
.ck-row .grow { min-width: 0; }
.ck-row .link.small { flex: none; }
/* «Un toque»: apuntar solo la serie actual */
.f-one { display: block; margin: 8px auto 0; }

/* «Un toque»: tres respuestas, un toque por ejercicio */
.ot { width: 100%; }
.ot-q { font-size: 14px; font-weight: 600; color: var(--label-2); text-align: center; margin-bottom: 8px; }
.ot-row { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 8px; }
.ot-row .btn { min-height: 52px; padding: 0 6px; font-size: 15px; }

/* Ventanas a pantalla completa: se pueden desplazar en pantallas pequeñas o con zoom */
.pro-welcome { overflow-y: auto; }
.pro-welcome > :first-child { margin-top: auto; }
.pro-welcome > :last-child { margin-bottom: auto; }
.consent-modal h2 { margin: 0 0 10px; font-size: 26px; font-weight: 800; }
.consent-modal p { max-width: 36ch; margin: 0 auto 14px; }
.onb-consent { margin-top: 20px; }
/* Mensajes para lectores de pantalla (siempre montado) */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
