/* =========================================================
   SISTEMA DE DISEÑO — My Workout Planner
   ---------------------------------------------------------
   Todo el aspecto de la app sale de estas variables. Para cambiar
   colores, degradados, sombras, esquinas o alturas de botones,
   modifica SOLO este bloque (no hace falta tocar el código JS).

   Para un estilo alternativo completo ("skin"), copia este bloque
   dentro de  :root[data-skin="nombre"] { ... }  con otros valores.

   Componentes estándar (úsalos al agregar algo nuevo):
   · Botones:  .btn  ·  .btn-primary (acción principal, naranja)
               .btn-sm (chico)  ·  .btn-ghost (sin fondo)
               .btn-danger-solid (borrar)  ·  .icon-btn (solo ícono)
   · Selector: .seg > button(.on)      · Filtros: .chip(.on)
   · Desplegable grande: .menu-wrap.plan-wrap > .plan-btn + .menu
   · Tarjetas: fondo var(--surface), borde var(--border),
               esquinas var(--radius), sombra var(--shadow-card)
   · Etiqueta de tipo: .blk-badge.blk-{amrap|emom|intervals}
   · Ventanas: ask() / askChoice() en app.js (clase .dlg-ask)
   ========================================================= */
:root {
  /* Marca (naranja) */
  --brand-1: #ff8a3d;            /* tono claro del degradado */
  --brand-2: #ff5b1f;            /* tono principal */
  --brand-hover-1: #ff9550;
  --brand-hover-2: #ff6e35;
  --on-brand: #ffffff;           /* texto sobre naranja */
  --grad-brand: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  --grad-brand-hover: linear-gradient(135deg, var(--brand-hover-1), var(--brand-hover-2));

  /* Éxito / día actual (verde) */
  --success-1: #2fd39f;
  --success-2: #12a07a;
  --success-ring: #19c39a;
  --success-on-dark: #4fe0b5;
  --grad-success: linear-gradient(135deg, var(--success-1), var(--success-2));

  /* Peligro (borrar) */
  --danger-1: #f0605a;
  --danger-2: #d93636;
  --grad-danger: linear-gradient(135deg, var(--danger-1), var(--danger-2));

  /* Modelos de ejecución */
  --grad-amrap: linear-gradient(135deg, #f0608f, #c92a62);

  /* Sombras: los botones y círculos van planos (sin brillo).
     Para volver a darles brillo: --shadow-btn: 0 8px 22px rgba(255, 91, 31, .28); */
  --shadow-btn: none;

  /* Fondo oscurecido detrás de ventanas, menús desplegables y temporizadores */
  --overlay: rgba(15, 10, 8, .55);

  /* Forma y tamaños */
  --radius-pill: 999px;
  --btn-h: 46px;
  --btn-h-sm: 38px;
  --btn-h-lg: 56px;
}

/* =========================================================
   Estilo 2 — más aire, botones grandes, tarjetas redondeadas y color.
   Va después de styles.css: solo redefine colores, tamaños y espacios.
   ========================================================= */
:root {
  --bg: #0e0f12;
  --surface: #17181d;
  --surface-2: #1f2127;
  --surface-3: #292c33;
  --border: #25272e;
  --border-strong: #353841;
  --text: #f3f3f5;
  --text-2: #c9cbd1;
  --muted: #9a9ea8;
  --faint: #656975;
  --accent: var(--brand-2);
  --accent-2: var(--brand-1);
  --accent-ink: #ffffff;
  /* tonos derivados del color de marca (se recalculan solos si cambia --brand-2) */
  --accent-soft: color-mix(in srgb, var(--brand-2) 16%, transparent);
  --accent-fg: color-mix(in srgb, var(--brand-2) 80%, #fff);
  --accent-line: var(--brand-2);
  --accent-hover: var(--brand-hover-2);
  --accent-border: color-mix(in srgb, var(--brand-2) 45%, transparent);
  --done-border: color-mix(in srgb, var(--brand-2) 50%, transparent);
  --lvl1: color-mix(in srgb, var(--brand-2) 22%, transparent);
  --lvl2: color-mix(in srgb, var(--brand-2) 50%, transparent);
  --violet: #8b6cff; --violet-soft: rgba(139, 108, 255, .16);
  --teal: var(--success-ring);   --teal-soft: rgba(25, 195, 154, .15);
  --blue: #4f8cff;   --blue-soft: rgba(79, 140, 255, .16);
  --pink: #ff5c9a;   --pink-soft: rgba(255, 92, 154, .15);
  --ink-card: #2a2c33;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .5);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, .03) inset;
  --nav-bg: #1b1c21;
}
:root[data-theme="light"] {
  --bg: #f3f2ef;
  --surface: #ffffff;
  --surface-2: #f4f3f0;
  --surface-3: #eae8e3;
  --border: #ebe9e4;
  --border-strong: #dcd9d2;
  --text: #16171b;
  --text-2: #3b3e45;
  --muted: #6c7079;
  --faint: #a2a5ad;
  --accent: var(--brand-2);
  --accent-ink: #ffffff;
  --accent-soft: color-mix(in srgb, var(--brand-2) 11%, transparent);
  --accent-fg: color-mix(in srgb, var(--brand-2) 85%, #000);
  --accent-line: var(--brand-2);
  --accent-hover: var(--brand-hover-2);
  --accent-border: color-mix(in srgb, var(--brand-2) 40%, transparent);
  --done-border: color-mix(in srgb, var(--brand-2) 45%, transparent);
  --lvl1: color-mix(in srgb, var(--brand-2) 16%, transparent);
  --lvl2: color-mix(in srgb, var(--brand-2) 42%, transparent);
  --violet: #6d4dff; --violet-soft: #efebff;
  --teal: var(--success-2);   --teal-soft: #e3f6f0;
  --blue: #2f6fe8;   --blue-soft: #e7efff;
  --pink: #e23b7c;   --pink-soft: #fde9f1;
  --ink-card: #18191d;
  --danger: #dc3b3b;
  --shadow: 0 20px 50px rgba(30, 25, 20, .14);
  --shadow-card: 0 1px 2px rgba(30, 25, 20, .04), 0 8px 24px rgba(30, 25, 20, .05);
  --nav-bg: #ffffff;
}

body { font-size: 15px; line-height: 1.5; }

/* ---------- Encabezados ---------- */
.page-head { margin-bottom: 26px; align-items: flex-start; }
.eyebrow { font-size: 12.5px; letter-spacing: .06em; margin-bottom: 8px; }
.page-title { font-size: 32px; letter-spacing: -.03em; }
.page-sub { font-size: 15px; margin-top: 8px; }

/* ---------- Botones ---------- */
.btn {
  height: 46px; padding: 0 20px; border-radius: 999px; font-size: 14.5px; font-weight: 650;
  border: 1px solid var(--border); background: var(--surface);
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  border: 0; color: var(--accent-ink);
  background: var(--grad-brand);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { background: var(--grad-brand-hover); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 13.5px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; }
.icon-btn svg { width: 18px; height: 18px; }
.linkish { color: var(--accent-fg); }
.seg { height: 44px; padding: 4px; border-radius: 999px; border-color: var(--border); background: var(--surface-2); }
.seg button { padding: 0 14px; border-radius: 999px; font-size: 13px; }
.seg button.on { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-btn); }

/* ---------- Tarjetas en general ---------- */
.trow-main, .item, .card, .cal-card, .tpl, .welcome, .empty:not(.cal-cell), .cloud-banner, .prog-row, .wcard, .day-tab {
  border-radius: var(--radius); border-color: var(--border); box-shadow: var(--shadow-card);
}
.dlg { border-radius: 28px; }
.toast { border-radius: 999px; padding: 12px 20px; background: var(--ink-card); color: #fff; border: 0; font-weight: 600; }
.progress { height: 8px; border-radius: 999px; }
.progress i { border-radius: 999px; background: linear-gradient(90deg, var(--brand-1), var(--accent)); }

/* ---------- Navegación ---------- */
.nav { background: var(--surface); border-color: var(--border); }
.brand-mark { border-radius: 14px; background: var(--grad-brand); }
.nav-links { gap: 6px; }
.nav-links a, .nav-settings { padding: 12px 14px; border-radius: 16px; font-weight: 600; }
.nav-links a.active { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-btn); }
.nav-links a.active svg { color: currentColor; }
.avatar { background: var(--grad-brand); }

/* ---------- Semana (Hoy) ---------- */
.week-strip { gap: 4px; margin-bottom: 24px; }
.ws-day { border: 0; background: none; padding: 4px 0; gap: 6px; box-shadow: none; }
.ws-l { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ws-n {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); box-shadow: var(--shadow-card); font-size: 15px; font-weight: 750;
}
.ws-n svg { width: 18px; height: 18px; stroke-width: 2.6; }
.ws-day i { width: 6px; height: 6px; }
.ws-day.done .ws-n { background: var(--ink-card); color: #fff; }
.ws-day.today .ws-n { color: var(--accent-fg); box-shadow: inset 0 0 0 2px var(--accent-line); }
.ws-day.active .ws-n { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-btn); }
.ws-day.active .ws-l { color: var(--text); }
.ws-day.active { background: none; }
.ws-day:hover .ws-n { transform: translateY(-1px); }

/* ---------- Tarjeta principal de Hoy ---------- */
.today-hero {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 18px;
  padding: 22px; margin-bottom: 26px; border-radius: 28px; color: #fff;
  background:
    radial-gradient(420px 260px at 105% -10%, rgba(255, 106, 46, .55), transparent 65%),
    radial-gradient(360px 240px at -15% 120%, rgba(139, 108, 255, .35), transparent 65%),
    #18191e;
  box-shadow: 0 18px 40px rgba(20, 15, 10, .22);
}
.th-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.th-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .9);
}
.th-pill svg { width: 15px; height: 15px; }
.th-main { display: flex; align-items: center; gap: 18px; }
.th-ring {
  --p: 0; flex: none; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--brand-1), var(--accent) calc(var(--p) * 1%), rgba(255, 255, 255, .12) 0);
}
.th-ring b { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: #18191e; font-size: 18px; font-weight: 800; }
.th-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.th-big { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.th-big small { font-size: 16px; color: rgba(255, 255, 255, .55); font-weight: 700; }
.th-txt > span { color: rgba(255, 255, 255, .65); font-size: 13.5px; }
.today-hero .mchips { gap: 8px; }
.today-hero .mchip { background: rgba(255, 255, 255, .1); border: 0; color: rgba(255, 255, 255, .75); font-size: 12.5px; padding: 6px 12px; }
.today-hero .mchip b { color: #fff; }
.th-thumbs { display: flex; gap: 8px; }
.th-thumbs span { flex: 1; max-width: 76px; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #fff; }
.th-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.th-thumbs .more { display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; font-weight: 800; font-size: 15px; }
.today-hero .tb-go { width: 100%; height: 56px; font-size: 16px; }
.today-hero .tb-go svg { width: 20px; height: 20px; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 14px; }
.section-h h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.section-h span { color: var(--muted); font-size: 13.5px; }

/* Chips de músculos fuera de la tarjeta (otros días) */
.mchips { gap: 8px; }
.mchip { padding: 6px 12px; font-size: 12.5px; border: 0; }
.mchip:nth-child(3n+1) { background: var(--accent-soft); }
.mchip:nth-child(3n+2) { background: var(--violet-soft); }
.mchip:nth-child(3n) { background: var(--teal-soft); }
.today-bar { gap: 16px; margin-bottom: 18px; }
.tb-go { height: 54px; }

/* ---------- Lista de ejercicios de Hoy ---------- */
.today-list { gap: 12px; }
.trow-main { padding: 12px 16px 12px 12px; gap: 16px; background: var(--surface); }
.trow-img { width: 84px; height: 84px; border-radius: 18px; }
.trow-img .num { top: 6px; left: 6px; width: 26px; height: 26px; border-radius: 9px; background: var(--ink-card); color: #fff; font-size: 12.5px; }
.trow-info { gap: 4px; }
.trow-info b { font-size: 16px; }
.trow-info small { font-size: 13.5px; }
.trow-count { padding: 7px 12px; border-radius: 999px; background: var(--surface-2); font-size: 13.5px; }
.trow-count.ok { background: var(--accent-soft); }
.trow.done .trow-main { border-color: var(--done-border); }

/* ---------- Avisos / bienvenida ---------- */
.cloud-banner { padding: 18px; gap: 14px; background: var(--surface); }
.cloud-banner .txt b { font-size: 15.5px; }
.cloud-banner .txt span { font-size: 13.5px; }
.cb-icon { border-radius: 16px; background: var(--blue-soft); color: var(--blue); }
.welcome, .empty:not(.cal-cell) { padding: 44px 24px; gap: 12px; }
.welcome .empty-icon { width: 64px; height: 64px; border-radius: 20px; background: var(--grad-brand); }
.empty .empty-icon { width: 60px; height: 60px; border-radius: 18px; background: var(--accent-soft); }
.preview-note { padding: 12px 16px; border-radius: 16px; background: var(--violet-soft); color: var(--text-2); font-size: 13.5px; }

/* ---------- Rutinas ---------- */
.day-tabs { gap: 10px; margin-bottom: 26px; }
.day-tab { padding: 14px 12px; background: var(--surface); }
.day-tab .d { font-size: 14.5px; }
.day-tab .t { font-size: 13px; }
.day-tab.active { background: var(--grad-brand); border-color: transparent; color: #fff; box-shadow: var(--shadow-btn); }
.day-tab.active .t { color: rgba(255, 255, 255, .85); }
.day-tab.active .today-dot { background: #fff; }
.items { gap: 12px; }
.item { padding: 12px; gap: 12px; background: var(--surface); }
.thumb, .item-main .thumb { border-radius: 16px; }
.item-main .thumb { width: 72px; height: 72px; }
.item-main .item-name { font-size: 16px; }
.item-sum { font-size: 13.5px; }
.routine-meta { font-size: 14px; }
.plan-btn { border-radius: 999px; }

/* ---------- Biblioteca ---------- */
.search input { height: 52px; border-radius: 18px; font-size: 15px; background: var(--surface); border-color: var(--border); padding-left: 44px; }
.select { height: 48px; border-radius: 16px; background-color: var(--surface); border-color: var(--border); font-size: 14px; }
.chips { gap: 8px; padding-top: 14px; }
.chip { height: 40px; padding: 0 16px; border-radius: 999px; font-size: 13.5px; background: var(--surface); border-color: var(--border); }
.chip.on { background: var(--ink-card); color: #fff; border-color: var(--ink-card); }
.grid { gap: 14px; }
.card { overflow: hidden; background: var(--surface); }
.card-body { padding: 14px; gap: 8px; }
.card-name { font-size: 14.5px; }
.tag { padding: 4px 9px; border-radius: 999px; font-size: 11.5px; }
.tag.accent { background: var(--accent-soft); }
.card-add { border-radius: 12px; }

/* ---------- Progreso ---------- */
.mini-stats { gap: 10px; }
.mini-stats > * { flex: 1; padding: 14px 16px; border-radius: 20px; background: var(--accent-soft); color: var(--text-2); }
.mini-stats > *:nth-child(2) { background: var(--violet-soft); }
.mini-stats > *:nth-child(3) { background: var(--teal-soft); }
.mini-stats b { display: block; font-size: 26px; letter-spacing: -.02em; line-height: 1.1; }
.cal-card { padding: 18px; }
.cal-grid { gap: 6px; }
.cal-cell { border-radius: 12px; }
.stat { padding: 16px 18px; }
.stat .v { font-size: 26px; }
.prog-row { padding: 12px; background: var(--surface); }
.prog-row .thumb { border-radius: 14px; }

/* ---------- Formularios y ajustes ---------- */
.field input, .item-sheet textarea, .stepper { border-radius: 14px; }
.field input { height: 50px; font-size: 15px; }
.settings { padding: 26px; gap: 20px; }
.settings h2 { font-size: 22px; }
.set-sec { color: var(--accent-fg); }

/* ---------- Modo entrenamiento ---------- */
.wo-top { padding: calc(12px + env(safe-area-inset-top)) 16px 12px; }
.wo-step b { font-size: 15px; }
.wo-media { border-radius: 28px; }
.wo-name { font-size: 26px; }
.wo-suggest { padding: 14px 16px; border-radius: 18px; font-size: 14px; }
.wo-suggest.done { background: var(--teal-soft); }
.wo-suggest.done svg { color: var(--teal); }
.sl-row { gap: 8px; }
.setlog.big .sl-row { grid-template-columns: 44px 1fr 1fr 54px; gap: 10px; }
.setlog.big .sl-n { width: 44px; height: 52px; border-radius: 14px; }
.setlog.big .sl-in { height: 52px; font-size: 17px; border-radius: 14px; }
.setlog.big .sl-check { width: 54px; height: 52px; border-radius: 14px; }
.sl-row.on .sl-check { background: var(--grad-brand); border-color: transparent; }
.sl-play { border-radius: 14px; }
.sl-row.running .sl-play { background: var(--ink-card); color: #fff; }
.wo-nav { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); gap: 12px; border-top: 0; box-shadow: 0 -10px 30px rgba(0, 0, 0, .06); }
.wo-nav .btn { height: 56px; font-size: 16px; }

/* Temporizador de descanso: tarjeta oscura flotante */
.rest-timer { border-radius: 24px; background: var(--ink-card); color: #fff; border: 0; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); padding: 16px 18px; }
.rest-timer .rt-label, .rest-timer .rt-next { color: rgba(255, 255, 255, .6); }
.rest-timer .rt-time { font-size: 34px; }
.rt-bar { height: 4px; background: rgba(255, 255, 255, .1); }
.rt-actions button { border-radius: 14px; min-width: 48px; height: 46px; background: rgba(255, 255, 255, .1); color: #fff; border: 0; }
.rest-timer.finished .rt-label { color: var(--brand-1); }
.rt-hint { color: var(--brand-1); }

/* ---------- Pantalla de acceso ---------- */
.gate-pitch h1 span { color: var(--brand-1); }
.gate-pitch li svg { background: rgba(255, 106, 46, .18); color: var(--brand-1); }

/* ---------- Celular ---------- */
@media (max-width: 860px) {
  .main { padding: calc(22px + env(safe-area-inset-top)) 18px 128px; }
  .page-title { font-size: 30px; }
  /* Barra inferior flotante */
  .nav {
    left: 14px; right: 14px; bottom: calc(12px + env(safe-area-inset-bottom)); padding: 8px;
    border: 1px solid var(--border); border-radius: 28px; background: var(--nav-bg);
    backdrop-filter: none; box-shadow: 0 14px 40px rgba(20, 15, 10, .16);
  }
  .nav-links { gap: 4px; }
  .nav-links a { padding: 9px 4px; gap: 4px; border-radius: 20px; font-size: 11.5px; }
  .nav-links a svg { width: 21px; height: 21px; }
  .top-settings { width: 46px; height: 46px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-card); top: calc(18px + env(safe-area-inset-top)); right: 18px; }
  .page-head { padding-right: 56px; }
  .wo-body { padding: 14px 16px; gap: 18px; }
  .sheet { border-radius: 28px 28px 0 0; }
  .toast { bottom: calc(100px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .week-strip { gap: 2px; margin-left: -6px; margin-right: -6px; }
  .ws-n { width: 40px; height: 40px; font-size: 14.5px; }
  .trow-img { width: 76px; height: 76px; }
  .item-main .thumb { width: 64px; height: 64px; }
  .wo-name { font-size: 22px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .mini-stats { flex-wrap: nowrap; }
}
@media (max-width: 360px) {
  .ws-n { width: 36px; height: 36px; }
  .th-ring { width: 72px; height: 72px; }
  .th-ring b { width: 56px; height: 56px; font-size: 16px; }
}

/* Ajustes finos */
.cloud-banner { gap: 12px; }
@media (max-width: 860px) { .cloud-banner .txt { flex-basis: calc(100% - 112px); } }
.today-hero .mchip.mchip { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .75); }
.today-hero .mchip.mchip:nth-child(3n+1) { background: rgba(255, 106, 46, .28); }
.today-hero .mchip.mchip:nth-child(3n+2) { background: rgba(139, 108, 255, .3); }
.today-hero .mchip.mchip:nth-child(3n) { background: rgba(25, 195, 154, .26); }
.page-head .btn-ghost { width: 46px; padding: 0; background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-card); }
@media (min-width: 561px) { .page-head .btn-ghost { width: auto; padding: 0 18px; } }
@media (max-width: 560px) { .page-head .btn { padding: 0 14px; min-width: 46px; } }
.targets { gap: 10px; }
.target { padding: 10px 14px; border-radius: 16px; background: var(--accent-soft); border: 0; }
.target:nth-child(2) { background: var(--violet-soft); }
.target:nth-child(3) { background: var(--teal-soft); }
.target:nth-child(4) { background: var(--blue-soft); }

/* Tarjeta de Hoy: durazno suave (opción C) */
:root {
  --hero-bg: linear-gradient(160deg, #3a2317, #24180f);
  --hero-text: #fff1e8; --hero-sub: #e0b49a; --hero-faint: #b98466;
  --hero-chip: rgba(255, 255, 255, .08); --hero-chip-text: #f6d9c7;
  --hero-ring-track: rgba(255, 140, 80, .18); --hero-ring-hole: #31201a;
  --hero-thumb-more: rgba(255, 255, 255, .08);
  --hero-shadow: inset 0 0 0 1px rgba(255, 160, 110, .12);
}
:root[data-theme="light"] {
  --hero-bg: linear-gradient(160deg, #ffe3d1, #fff1e7);
  --hero-text: #3a1a0b; --hero-sub: #8a4a2a; --hero-faint: #b0704f;
  --hero-chip: rgba(255, 255, 255, .75); --hero-chip-text: #7a2f0e;
  --hero-ring-track: rgba(255, 91, 31, .15); --hero-ring-hole: #ffeee3;
  --hero-thumb-more: rgba(255, 255, 255, .7);
  --hero-shadow: 0 12px 30px rgba(255, 110, 50, .12);
}
.today-hero { background: var(--hero-bg); color: var(--hero-text); box-shadow: var(--hero-shadow); }
.th-pill { background: var(--hero-chip); color: var(--hero-chip-text); }
.th-ring { background: conic-gradient(var(--brand-1), var(--accent) calc(var(--p) * 1%), var(--hero-ring-track) 0); }
.th-ring b { background: var(--hero-ring-hole); }
.th-big small { color: var(--hero-faint); }
.th-txt > span { color: var(--hero-sub); }
.th-thumbs .more { background: var(--hero-thumb-more); color: var(--hero-text); }
.today-hero .mchip.mchip { background: var(--hero-chip); }
.today-hero .mchip.mchip:nth-child(3n+1) { color: #c2410c; }
.today-hero .mchip.mchip:nth-child(3n+2) { color: var(--violet); }
.today-hero .mchip.mchip:nth-child(3n) { color: var(--teal); }
.today-hero .mchip.mchip b { color: inherit; }
:root:not([data-theme="light"]) .today-hero .mchip.mchip:nth-child(3n+1) { color: #ff9a66; }

/* =========================================================
   Temporizador y cronómetro grandes con anillo
   ========================================================= */
.ring { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.ring circle { fill: none; stroke-width: 9; }
.ring .ring-track { stroke: var(--accent-soft); }
.ring .ring-prog { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.rest-timer.finished .ring-prog, .rest-timer.reached .ring-prog { stroke: var(--teal); }

/* Grande, al centro, con fondo oscurecido */
.rest-timer:not(.mini) {
  inset: 0; top: 0; bottom: 0; left: 0; transform: none; width: auto; z-index: 70;
  display: grid; place-items: center; padding: 16px; overflow-y: auto;
  background: rgba(14, 10, 8, .55); border: 0; border-radius: 0; box-shadow: none; color: var(--text);
}
body.wo-open .rest-timer:not(.mini) { top: 0; bottom: 0; }
.rest-timer[hidden] { display: none !important; }
.rt-card {
  position: relative; width: min(360px, 100%); display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 30px 22px 22px; border-radius: 32px; background: var(--surface); box-shadow: var(--shadow);
  animation: rtIn .2s ease-out;
}
@keyframes rtIn { from { transform: scale(.94); opacity: 0; } }
.rt-dial { position: relative; width: min(250px, 66vw); aspect-ratio: 1; }
.rest-timer:not(.mini) .rt-dial { pointer-events: none; }
.rt-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.rest-timer:not(.mini) .rt-label { color: var(--accent-fg); font-size: 13px; letter-spacing: .1em; }
.rest-timer:not(.mini) .rt-time { font-size: 64px; line-height: 1; font-weight: 800; letter-spacing: -.04em; color: var(--text); }
.rest-timer:not(.mini).finished .rt-label, .rest-timer:not(.mini).reached .rt-label { color: var(--teal); }
.rt-of { font-size: 14px; font-weight: 600; color: var(--muted); max-width: 80%; }
.rest-timer:not(.mini) .rt-next { color: var(--text-2); font-size: 15px; text-align: center; white-space: normal; margin: 0; }
.rest-timer:not(.mini) .rt-hint { color: var(--accent-fg); }
.rest-timer:not(.mini) .rt-actions { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 10px; width: 100%; }
.rest-timer:not(.mini) .rt-actions.two { grid-template-columns: 1fr 1.4fr; }
.rest-timer:not(.mini) .rt-actions button {
  height: 56px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.rest-timer:not(.mini) .rt-actions .rt-skip.rt-skip { background: var(--grad-brand); color: #fff; border: 0; }
.rt-actions .rt-skip svg { width: 18px; height: 18px; }
.rt-min {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 12px; border: 0;
  background: var(--surface-2); color: var(--muted); display: grid; place-items: center;
}

/* Mini: barra compacta (se toca el anillo para agrandar) */
.rest-timer.mini { padding: 10px 12px; border-radius: 24px; background: var(--ink-card); color: #fff; border: 0; }
.rest-timer.mini .rt-card { all: unset; display: flex; align-items: center; gap: 12px; width: 100%; }
.rest-timer.mini .rt-dial { width: 58px; flex: none; cursor: pointer; }
.rest-timer.mini .ring circle { stroke-width: 11; }
.rest-timer.mini .ring .ring-track { stroke: rgba(255, 255, 255, .14); }
.rest-timer.mini .rt-label, .rest-timer.mini .rt-of, .rest-timer.mini .rt-hint { display: none; }
.rest-timer.mini .rt-time { font-size: 14px; font-weight: 800; color: #fff; }
.rest-timer.mini .rt-next { flex: 1; min-width: 0; font-size: 13px; color: rgba(255, 255, 255, .75); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rest-timer.mini .rt-actions { display: flex; gap: 6px; }
.rest-timer.mini .rt-actions button { height: 42px; min-width: 44px; padding: 0 10px; border-radius: 13px; background: rgba(255, 255, 255, .1); color: #fff; border: 0; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.rest-timer.mini .rt-actions .rt-skip span { display: none; }
.rest-timer.mini .rt-min { position: static; background: rgba(255, 255, 255, .1); color: #fff; order: 9; transform: rotate(180deg); flex: none; }
.sw-timer.mini { z-index: 60; }

/* =========================================================
   Ejercicios propios
   ========================================================= */
.custom-cta {
  display: flex; align-items: center; gap: 14px; width: 100%; margin: -6px 0 18px; padding: 14px 16px; text-align: left;
  border: 1.5px dashed var(--accent-border); border-radius: 20px; background: var(--accent-soft); color: var(--text);
}
.custom-cta:hover { border-style: solid; }
.cc-icon { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--grad-brand); }
.cc-icon svg { width: 22px; height: 22px; stroke-width: 2.5; }
.cc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cc-txt b { font-size: 15px; }
.cc-txt small { color: var(--muted); font-size: 13px; }
.cc-go { color: var(--accent-fg); }
.add-row { display: flex; gap: 10px; flex-wrap: wrap; }
.add-row .btn { flex: 1 1 160px; }
.custom-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.dlg-custom { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto; }
.cf { gap: 18px; }
.cf-photo {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 10; padding: 0; overflow: hidden;
  border: 1.5px dashed var(--accent-border); border-radius: 22px; background: var(--accent-soft); color: var(--text);
}
.cf-photo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.cf-photo.loading { opacity: .6; }
.cf-photo-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px; text-align: center; }
.cf-photo-empty small { color: var(--muted); font-size: 13px; }
.cf-cam { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--surface); color: var(--accent-fg); margin-bottom: 4px; }
.cf-cam svg { width: 26px; height: 26px; }
.cf-photo-edit { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: rgba(20, 20, 24, .75); color: #fff; font-size: 13px; font-weight: 600; }
.cf-photo-edit svg { width: 15px; height: 15px; }
.cf .field select, .cf .field input:not([type=checkbox]) { width: 100%; }
.cf .field textarea { width: 100%; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface-2); padding: 12px 14px; resize: vertical; font-size: 15px; }
.cf .field textarea:focus { outline: none; border-color: var(--accent-line); }
.cf-err { color: var(--danger) !important; font-weight: 600; }
.cf-sec { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 20px; background: var(--surface-2); }
.cf-sec .field input, .cf-sec .field select { background: var(--surface); }
.cf-check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--border); cursor: pointer; }
.cf-check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.cf-check span { display: flex; flex-direction: column; gap: 2px; }
.cf-check small { color: var(--muted); font-size: 13px; }
.cf-actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.cf-actions .btn { height: 52px; }
@media (max-width: 860px) { .dlg-custom { width: 100%; max-height: 92vh; } }
.card-img img[src^="data:image/jpeg"], .trow-img img[src^="data:image/jpeg"], img.thumb[src^="data:image/jpeg"], .th-thumbs img[src^="data:image/jpeg"] { object-fit: cover; }

/* ---------- Ventanas de confirmación (mismo estilo en toda la app) ---------- */
.dlg-ask { width: min(400px, calc(100vw - 32px)); border-radius: 30px; border: 0; }
.dlg-ask .ask { padding: 28px 22px 20px; gap: 12px; align-items: center; text-align: center; }
.dlg-ask .ask h2 { font-size: 20px; line-height: 1.3; letter-spacing: -.02em; }
.dlg-ask .ask-text { margin: 0 0 6px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.ask-icon { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; margin-bottom: 4px; background: var(--accent-soft); color: var(--accent-fg); }
.ask-icon svg { width: 30px; height: 30px; stroke-width: 2.2; }
/* Confirmaciones (también las de borrar) usan el naranja de la marca */
.ask-icon.danger { background: var(--accent-soft); color: var(--accent-fg); }
.ask-icon.warn { background: var(--accent-soft); color: var(--accent-fg); }
.dlg-ask .choice { width: 100%; gap: 10px; margin-top: 4px; }
.dlg-ask .choice .btn { height: 52px; width: 100%; font-size: 15.5px; }
.dlg-ask .choice .btn-ghost { color: var(--muted); }
.btn.btn-danger-solid { background: var(--grad-brand); color: var(--on-brand); border: 0; box-shadow: var(--shadow-btn); }
.btn.btn-danger-solid:hover { filter: brightness(1.06); }
.day-pick button.has { background: var(--grad-brand); border-color: transparent; color: #fff; }
.day-pick button.has small { color: rgba(255, 255, 255, .9); }

/* Foto y nombre que abren la ficha del ejercicio */
.ex-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 0; border: 0; background: none; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.ex-link .thumb { cursor: pointer; }
.ex-link span { display: flex; flex-direction: column; min-width: 0; }
.ex-link b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-link:hover b, h2 .ex-link:hover { color: var(--accent-fg); }
.ex-link-hint { color: var(--accent-fg) !important; font-weight: 600; }
.ph-link { flex: none; }
h2 .ex-link { display: inline; font-weight: inherit; }
.day-pick { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.day-pick button { height: 58px; padding: 0; border-radius: 14px; font-size: 13px; gap: 3px; }
.day-pick button small { font-size: 11.5px; }
.day-pick button.has small { font-size: 14px; font-weight: 800; }

/* ---------- Rutinas: reordenar arrastrando ---------- */
.items .item { grid-template-columns: minmax(0, 1fr) 44px !important; padding: 12px 6px 12px 12px; }
.items .item .handle {
  display: grid !important; place-items: center; width: 44px; height: 56px; border-radius: 14px;
  color: var(--faint); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
}
.items .item .handle:hover { background: var(--surface-2); color: var(--text); }
.items .item .handle svg { width: 22px; height: 22px; }
.items .item.dragging { position: relative; z-index: 5; opacity: 1; cursor: grabbing; transition: none;
  box-shadow: 0 18px 40px rgba(30, 20, 10, .22); border-color: var(--accent-border); background: var(--surface); }
.items .item.dragging .handle { color: var(--accent-fg); background: var(--accent-soft); }
.items.sorting { user-select: none; -webkit-user-select: none; }
.items.sorting .item:not(.dragging) { transition: transform .15s; }

/* ---------- Progreso: lista del día con el formato de Rutinas ---------- */
.cd-list { gap: 12px; }
.cd-item { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-card); }
.cd-open { gap: 14px; }
.cd-item .thumb { width: 72px; height: 72px; border-radius: 16px; flex: none; }
.cd-item b { font-size: 16px; line-height: 1.3; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cd-item small { font-size: 13.5px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-top: 3px; }
.cd-item .icon-btn { width: 44px; height: 44px; flex: none; }
.cd-sum { font-size: 14px; margin-bottom: 14px; }
@media (max-width: 560px) { .cd-item .thumb { width: 64px; height: 64px; } }

/* =========================================================
   Planes de entrenamiento: tarjetas con portada y ficha
   ========================================================= */
.pc {
  position: relative; display: block; width: 100%; height: 176px; padding: 0; border: 0; border-radius: 26px; overflow: hidden; text-align: left; color: #fff;
  background: radial-gradient(260px 200px at 85% 20%, rgba(255, 255, 255, .22), transparent 70%), linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 12px 28px rgba(30, 20, 10, .16); cursor: pointer; transition: transform .15s;
}
.pc:active { transform: scale(.98); }
.pc-art { position: absolute; right: -6px; top: 18px; bottom: 18px; width: 52%; }
.pc-art span { position: absolute; width: 112px; height: 112px; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .22); }
.pc-art span:nth-child(1) { right: 70px; top: 8px; transform: rotate(-7deg); }
.pc-art span:nth-child(2) { right: 8px; top: 26px; transform: rotate(6deg); }
.pc-art canvas, .pd-art canvas, .pd-ex-img canvas { width: 100%; height: 100%; display: block; }
.pc-days { position: absolute; top: 14px; right: 14px; z-index: 2; min-width: 50px; padding: 6px 8px; border-radius: 14px; background: #fff; color: #1d1f24; display: flex; flex-direction: column; align-items: center; line-height: 1; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.pc-days b { font-size: 20px; font-weight: 800; }
.pc-days small { font-size: 10.5px; font-weight: 700; color: #6c7079; margin-top: 2px; }
.pc-txt { position: absolute; left: 0; bottom: 0; top: 0; width: 62%; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0)); }
.pc-focus { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }
.pc-name { font-size: 21px; font-weight: 800; line-height: 1.12; letter-spacing: -.02em; text-shadow: 0 2px 10px rgba(0, 0, 0, .2); }
.pc-meta { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; opacity: .95; flex-wrap: wrap; }
.flames { display: inline-flex; gap: 1px; vertical-align: -2px; }
.flames i { display: inline-grid; opacity: .35; }
.flames i.on { opacity: 1; }
.flames svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }

/* Carrusel del primer uso */
.tpl-carousel { gap: 14px; }
.tpl-carousel .pc { flex: 0 0 min(320px, 86%); scroll-snap-align: start; }
.all-progs { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--text); font-weight: 700; text-align: left; box-shadow: var(--shadow-card); }
.all-progs span { flex: 1; }
.all-progs > svg:first-child { color: var(--accent-fg); }
.all-progs > svg:last-child { color: var(--muted); }

/* Galería */
.dlg-tpl { width: min(640px, calc(100vw - 24px)); }
.progs { gap: 14px; }
.progs .chips { padding-top: 0; }
.pc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }

/* Ficha del plan */
.dlg-program { width: min(600px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto; padding: 0; }
.dlg-program .sheet-grab { position: absolute; left: 50%; transform: translateX(-50%); z-index: 3; background: rgba(255, 255, 255, .7); margin-top: 10px; }
.pd { display: flex; flex-direction: column; }
.pd-hero { position: relative; height: 250px; overflow: hidden; color: #fff;
  background: radial-gradient(320px 240px at 80% 15%, rgba(255, 255, 255, .25), transparent 70%), linear-gradient(135deg, var(--c1), var(--c2)); }
.pd-close { position: absolute; top: 14px; right: 14px; z-index: 3; background: rgba(255, 255, 255, .9); color: #1d1f24; border-radius: 14px; }
.pd-art { position: absolute; inset: 0; }
.pd-art span { position: absolute; width: 132px; height: 132px; border-radius: 26px; overflow: hidden; background: #fff; box-shadow: 0 12px 28px rgba(0, 0, 0, .25); }
.pd-art span:nth-child(1) { right: 150px; top: 34px; transform: rotate(-8deg); }
.pd-art span:nth-child(2) { right: 22px; top: 58px; transform: rotate(6deg); }
.pd-art span:nth-child(3) { right: 92px; top: 128px; transform: rotate(-2deg); width: 110px; height: 110px; }
.pd-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 20px; background: linear-gradient(0deg, rgba(0, 0, 0, .45), transparent); }
.pd-title small { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; opacity: .9; }
.pd-title h2 { margin: 4px 0 0; font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.pd-body { padding: 20px 20px 8px; display: flex; flex-direction: column; gap: 12px; }
.pd-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pd-stats div { padding: 10px 8px; border-radius: 16px; background: var(--surface-2); text-align: center; display: flex; flex-direction: column; gap: 3px; }
.pd-stats div:nth-child(1) { background: var(--accent-soft); }
.pd-stats div:nth-child(2) { background: var(--pink-soft); color: var(--pink); }
.pd-stats div:nth-child(3) { background: var(--violet-soft); }
.pd-stats div:nth-child(4) { background: var(--teal-soft); }
.pd-stats span { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.pd-stats b { font-size: 13.5px; color: var(--text); }
.pd-stats div:nth-child(2) b { color: var(--pink); }
.pd-stats .flames svg { width: 16px; height: 16px; }
.pd-desc { margin: 4px 0 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.pd-h { margin: 12px 0 0; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--accent-fg); }
.pd-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.pd-week span { height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; background: var(--surface-2); color: var(--faint); }
.pd-week span.on { background: var(--grad-brand); color: #fff; }
.pd-day { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 22px; border: 1px solid var(--border); background: var(--surface); }
.pd-day-h { display: flex; flex-direction: column; gap: 1px; margin-bottom: 2px; }
.pd-day-h b { font-size: 16px; }
.pd-day-h span { font-size: 13px; color: var(--muted); }
.pd-ex { display: flex; align-items: center; gap: 12px; width: 100%; padding: 6px; border: 0; border-radius: 16px; background: none; text-align: left; color: inherit; }
.pd-ex:hover { background: var(--surface-2); }
.pd-ex > svg { color: var(--faint); flex: none; }
.pd-ex-img { position: relative; width: 60px; height: 60px; flex: none; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--border); }
.pd-ex-img i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 7px; background: var(--ink-card); color: #fff; font-style: normal; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.pd-ex-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pd-ex-txt b { font-size: 14.5px; line-height: 1.3; }
.pd-ex-txt small { font-size: 13px; color: var(--muted); }
.pd-note { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.pd-cta { position: sticky; bottom: 0; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(0deg, var(--surface) 70%, transparent); }
.pd-cta .btn { width: 100%; height: 56px; font-size: 16.5px; }
@media (max-width: 860px) { .dlg-program, .dlg-tpl { width: 100%; max-height: 94vh; } }
@media (max-width: 380px) {
  .pc-art span { width: 96px; height: 96px; }
  .pc-art span:nth-child(1) { right: 58px; }
  .pd-art span:nth-child(1) { right: 120px; }
  .pd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.pc { height: 188px; }
.pc-days { left: 14px; right: auto; flex-direction: row; align-items: baseline; gap: 4px; padding: 5px 11px; border-radius: 999px; }
.pc-days b { font-size: 15px; }
.pc-days small { font-size: 11.5px; margin: 0; }
.pc-art { top: 26px; bottom: 10px; width: 50%; }
.pc-art span { width: 100px; height: 100px; }
.pc-art span:nth-child(1) { right: 60px; top: 14px; }
.pc-art span:nth-child(2) { right: 8px; top: 40px; }
.pc-txt { width: 60%; padding: 16px; }
.pc-name { font-size: 20px; }
.pc-meta { flex-wrap: nowrap; white-space: nowrap; font-size: 12px; }
.pd-hero { height: 260px; }
.pd-art span, .pd-art span:nth-child(3) { width: 104px; height: 104px; border-radius: 22px; }
.pd-art span:nth-child(1) { right: auto; left: 18px; top: 40px; transform: rotate(-8deg); }
.pd-art span:nth-child(2) { right: auto; left: calc(50% - 52px); top: 22px; transform: rotate(3deg); }
.pd-art span:nth-child(3) { right: 60px; top: 46px; transform: rotate(9deg); }

/* ---------- Progreso: Récords con el mismo formato que la lista del Calendario ---------- */
.prog-list { gap: 12px; }
.prog-row { grid-template-columns: 72px minmax(0, 1fr) 96px auto; gap: 14px; padding: 12px; box-shadow: var(--shadow-card); }
.prog-row .thumb { width: 72px; height: 72px; border-radius: 16px; }
.pr-info { gap: 3px; }
.pr-info b { font-size: 16px; line-height: 1.3; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pr-info small { font-size: 13.5px; }
.pr-best { padding: 6px 10px; border-radius: 14px; background: var(--accent-soft); }
.pr-best small { font-size: 11px; color: var(--accent-fg); font-weight: 600; }
.pr-best b { font-size: 16px; }
@media (max-width: 560px) {
  .prog-row { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .prog-row .thumb { width: 64px; height: 64px; }
}

/* ---------- Hoy: tira de semanas deslizable ---------- */
.ws-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; margin-bottom: 6px; }
#ws-label { font-size: 13.5px; font-weight: 700; color: var(--muted); }
#ws-label::first-letter { text-transform: uppercase; }
.ws-today { height: 30px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--accent-soft); color: var(--accent-fg); font-weight: 700; font-size: 13px; }
.week-scroller { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -6px 24px; overscroll-behavior-x: contain; }
.week-scroller::-webkit-scrollbar { display: none; }
.ws-week { flex: 0 0 100%; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; padding: 2px 6px 4px; scroll-snap-align: start; scroll-snap-stop: always; }
/* Anillo de avance en días con la rutina a medias */
.ws-day.partial:not(.active) .ws-n {
  background: radial-gradient(closest-side, var(--surface) 80%, transparent 82% 100%), conic-gradient(var(--accent) calc(var(--p) * 1%), var(--accent-soft) 0);
}
/* Día completo: círculo oscuro con ✓ */
.ws-day.done:not(.active) .ws-n { background: var(--ink-card); color: #fff; }

/* ---------- Hoy: rutina completada (incentivo) ---------- */
.th-ring.full { background: conic-gradient(var(--success-1), var(--success-2)); animation: ringWin .6s cubic-bezier(.3, 1.4, .5, 1) both; }
.th-ring.full b { flex-direction: column; gap: 0; color: var(--success-2); display: flex; align-items: center; justify-content: center; line-height: 1; }
.th-ring.full b svg { width: 28px; height: 28px; stroke-width: 3; }
.th-ring.full b small { font-size: 12px; font-weight: 800; margin-top: 2px; }
@keyframes ringWin { from { transform: scale(.85); } }
.th-win { background: var(--success-1) !important; color: #fff !important; }
.th-win svg { stroke-width: 3; }
.th-cheer { font-style: normal; font-size: 13.5px; font-weight: 700; color: var(--success-2); margin-top: 4px; }
:root:not([data-theme="light"]) .th-cheer, :root:not([data-theme="light"]) .th-ring.full b { color: var(--success-on-dark); }
.today-hero .th-alt { background: rgba(255, 255, 255, .7); color: var(--hero-text); border: 0; box-shadow: none; }
:root:not([data-theme="light"]) .today-hero .th-alt { background: rgba(255, 255, 255, .1); }

/* ---------- Duración libre (minutos y segundos) ---------- */
.dur { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dur-box { position: relative; display: block; }
.dur-box input { width: 100%; height: 52px; padding: 0 52px 0 16px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface-2); font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dur-box input:focus { outline: none; border-color: var(--accent-line); background: var(--surface); }
.dur-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dur-box span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 700; color: var(--muted); pointer-events: none; }
.dur-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dur-quick button { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 700; color: var(--text-2); }
.dur-quick button.on { background: var(--accent); border-color: transparent; color: #fff; }

/* =========================================================
   Modelos de ejecución: bloques AMRAP / EMOM / Intervalos
   ========================================================= */
:root { --m-reps: var(--brand-2); --m-time: #2f9ee8; --m-amrap: #e8437e; --m-emom: #4f5bd5; --m-intervals: #f08a00; }
.blk-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; color: #fff; background: var(--m-amrap); }
.blk-badge.sm { height: 20px; padding: 0 8px; font-size: 10.5px; align-self: flex-start; margin-bottom: 3px; }
.blk-badge.blk-emom, .blk-emom .blk-badge, .pm-emom { --mc: var(--m-emom); }
.blk-badge.blk-intervals, .blk-intervals .blk-badge, .pm-intervals { --mc: var(--m-intervals); }
.blk-badge.blk-amrap, .blk-amrap .blk-badge, .pm-amrap { --mc: var(--m-amrap); }
.pm-reps { --mc: var(--m-reps); }
.pm-time { --mc: var(--m-time); }
.blk-badge { background: var(--mc, var(--m-amrap)); }
.item-main .item-info .blk-badge { margin-bottom: 1px; }
.trow.is-blk .trow-info b { font-size: 16px; }

/* Tarjeta del bloque en el modo entrenamiento */
.blk-body { display: flex !important; flex-direction: column; gap: 14px; max-width: 640px !important; }
.blk-hero { padding: 20px; border-radius: 26px; color: #fff; background: linear-gradient(135deg, var(--mc), color-mix(in srgb, var(--mc) 70%, #000)); box-shadow: 0 14px 30px color-mix(in srgb, var(--mc) 30%, transparent); }
.blk-hero .blk-badge { background: rgba(255, 255, 255, .22); }
.blk-hero h2 { margin: 10px 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.blk-hero p { margin: 0; font-size: 14px; opacity: .92; line-height: 1.5; }
.blk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 8px; margin-top: 16px; }
.blk-stats div { padding: 10px 8px; border-radius: 16px; background: rgba(255, 255, 255, .16); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.blk-stats span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }
.blk-stats b { font-size: 17px; font-weight: 800; }
.blk-parts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.blk-part { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 14px 10px 10px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); text-align: left; box-shadow: var(--shadow-card); }
.blk-part > svg { color: var(--faint); }
.blk-part-img { position: relative; flex: none; width: 64px; height: 64px; border-radius: 16px; overflow: hidden; background: #fff; }
.blk-part-img img { width: 100%; height: 100%; object-fit: contain; }
.blk-part-img i { position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 8px; background: var(--ink-card); color: #fff; font-style: normal; font-size: 11.5px; font-weight: 800; display: grid; place-items: center; }
.blk-part-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.blk-part-txt b { font-size: 15.5px; line-height: 1.3; }
.blk-part-txt small { font-size: 14px; font-weight: 700; color: var(--accent-fg); }
.blk-result { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; background: var(--teal-soft); }
.blk-result > svg { color: var(--teal); width: 22px; height: 22px; stroke-width: 3; }
.blk-result span { flex: 1; display: flex; flex-direction: column; }
.blk-result small { font-size: 14px; color: var(--text-2); }
.blk-prev { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; color: var(--muted); }
.blk-prev svg { width: 15px; height: 15px; color: var(--accent-fg); }
.blk-go { height: 60px; font-size: 17px; }
.blk-manual { align-self: center; font-size: 14px; }

/* Temporizador del bloque */
.blk-timer .blk-card { gap: 12px; padding-top: 22px; }
.blk-top { display: flex; align-items: center; gap: 8px; width: 100%; padding-right: 4px; }
.blk-top b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blk-bar { width: 100%; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.blk-bar i { display: block; height: 100%; width: 0; background: var(--mc, var(--accent)); border-radius: 999px; transition: width 1s linear; }
.blk-timer .rt-dial { width: min(220px, 58vw); }
.blk-timer .ring .ring-prog { stroke: var(--accent); }
.blk-timer.ph-rest .ring .ring-prog { stroke: var(--teal); }
.blk-timer.ph-rest .rt-label { color: var(--teal) !important; }
.blk-timer.ph-prep .ring .ring-prog { stroke: var(--violet); }
.blk-timer.ph-prep .rt-label { color: var(--violet) !important; }
.blk-timer.paused .rt-time { opacity: .45; }
.blk-timer .rt-label { font-size: 15px !important; font-weight: 800; }
.blk-now { width: 100%; display: flex; flex-direction: column; gap: 8px; max-height: 32vh; overflow-y: auto; }
.blk-up { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--teal); }
.blk-ex { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; background: var(--surface-2); }
.blk-ex img { width: 54px; height: 54px; border-radius: 12px; object-fit: contain; background: #fff; flex: none; }
.blk-ex span { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.blk-ex b { font-size: 15px; line-height: 1.25; }
.blk-ex small { font-size: 14px; font-weight: 800; color: var(--accent-fg); }
.blk-next { margin: 0; font-size: 13px; color: var(--muted); }
.blk-round { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; height: 64px; border: 0; border-radius: 20px; color: #fff; background: var(--grad-amrap); box-shadow: var(--shadow-btn); }
.blk-round span { font-size: 14px; font-weight: 700; opacity: .9; }
.blk-round b { font-size: 30px; font-weight: 800; min-width: 40px; }
.blk-round em { font-style: normal; font-size: 16px; font-weight: 800; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .22); }
.blk-round:active { transform: scale(.97); }
.rest-timer:not(.mini) .rt-actions.three { grid-template-columns: 1fr 1fr 1.3fr; }
.rest-timer:not(.mini) .rt-actions.three button { font-size: 14.5px; }
.rest-timer:not(.mini) .rt-actions.three svg { width: 17px; height: 17px; }
.blk-res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; text-align: left; }
.blk-res-grid.one { grid-template-columns: 1fr; }
.blk-res-grid input { width: 100%; height: 56px; text-align: center; font-size: 24px; font-weight: 800; }
.blk-res .ask-icon { font-size: 30px; }

/* Editor del bloque */
.bs-desc { color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 2px; }
.bs-modes { width: 100%; }
.bs-modes button { flex: 1; }
.bs-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bs-presets button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); text-align: left; }
.bs-presets button small { color: var(--muted); font-size: 12px; }
.bs-presets button.on { border-color: transparent; background: var(--accent); color: #fff; }
.bs-presets button.on small { color: rgba(255, 255, 255, .85); }
.bs-total { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 14px; border-radius: 16px; background: var(--accent-soft); font-size: 14.5px; }
.bs-total svg { color: var(--accent-fg); }
.bs-parts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bs-parts li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.bs-parts .thumb { width: 52px; height: 52px; border-radius: 12px; flex: none; }
.bs-pn { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bs-pn b { font-size: 14px; line-height: 1.25; }
.bs-pn small { color: var(--muted); font-size: 12.5px; }
.bs-pn label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.bs-pn input { width: 70px; height: 36px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-2); text-align: center; font-weight: 800; font-size: 15px; }
.bs-pa { display: flex; flex-direction: column; gap: 2px; }
.bs-pa .icon-btn { width: 34px; height: 30px; }
.bs-add { width: 100%; margin-top: 8px; }
.add-row .add-blk { flex-basis: 100%; }

/* Buscador de ejercicios */
.dlg-pick { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto; }
.pick { gap: 12px; }
.pick-list { display: flex; flex-direction: column; gap: 6px; }
.pick-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border: 0; border-radius: 14px; background: none; text-align: left; color: inherit; }
.pick-row:hover { background: var(--surface-2); }
.pick-row .thumb { width: 52px; height: 52px; border-radius: 12px; flex: none; }
.pick-row span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pick-row small { color: var(--muted); font-size: 12.5px; }
.pick-row > svg { color: var(--accent-fg); }

/* Elegir tipo de bloque */
.nb-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.nb-opt { display: flex; flex-direction: column; gap: 4px; min-height: 130px; padding: 16px; border: 0; border-radius: 20px; text-align: left; color: #fff; background: linear-gradient(135deg, var(--mc), color-mix(in srgb, var(--mc) 70%, #000)); }
.nb-amrap { --mc: var(--m-amrap); } .nb-emom { --mc: var(--m-emom); } .nb-intervals { --mc: var(--m-intervals); }
.nb-opt b { font-size: 20px; font-weight: 800; }
.nb-opt span { font-size: 13px; font-weight: 700; opacity: .95; }
.nb-opt small { margin-top: auto; font-size: 12px; opacity: .85; line-height: 1.35; }
@media (max-width: 860px) { .dlg-pick { width: 100%; max-height: 92vh; } }

/* Planes: modelo de ejecución */
.pc-model { position: absolute; top: 14px; left: 86px; z-index: 2; height: 26px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 800; color: #fff; background: rgba(0, 0, 0, .28); backdrop-filter: none; }
.pd-model { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 16px; border-left: 0; background: color-mix(in srgb, var(--mc) 12%, transparent); }
.pd-model b { color: var(--mc); font-size: 14px; font-weight: 800; }
.pd-model span { font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.pc-explain { grid-column: 1 / -1; }
.pd-blk { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 18px; background: var(--surface-2); }
.pd-blk-h { display: flex; flex-direction: column; gap: 1px; padding: 2px 4px 6px; }
.pd-blk-h b { font-size: 15px; }
.pd-blk-h small { font-size: 12.5px; color: var(--muted); }
.blk-amrap { --mc: var(--m-amrap); } .blk-emom { --mc: var(--m-emom); } .blk-intervals { --mc: var(--m-intervals); }
.blk-body { align-items: stretch !important; width: 100%; }

/* ---------- Temporizador de bloques: fases muy visibles ---------- */
.blk-timer.ph-work:not(.mini) { background: rgba(255, 91, 31, .72); }
.blk-timer.ph-rest:not(.mini) { background: rgba(25, 170, 130, .72); }
.blk-timer.ph-prep:not(.mini) { background: rgba(109, 77, 255, .66); }
.blk-timer.ph-done:not(.mini) { background: rgba(25, 170, 130, .8); }
.blk-banner { width: calc(100% + 44px); margin: -30px -22px 0; padding: 14px 18px; border-radius: 32px 32px 0 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff; background: var(--accent); }
.blk-banner b { font-size: 26px; font-weight: 900; letter-spacing: .01em; text-transform: uppercase; }
.blk-banner .bb-ico { display: grid; }
.blk-banner svg { width: 26px; height: 26px; stroke-width: 2.6; }
.ph-rest .blk-banner, .ph-done .blk-banner { background: var(--success-2); }
.ph-prep .blk-banner { background: var(--violet); }
.blk-banner.pop { animation: bannerPop .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes bannerPop { from { transform: scale(.92); filter: brightness(1.4); } }
.blk-timer .blk-card { padding-top: 30px; overflow: hidden; }
.blk-timer.hurry .rt-time { color: var(--danger) !important; transform: scale(1.08); transition: transform .2s; }
.blk-timer.ph-rest .rt-time { color: var(--success-2); }
.blk-timer.ph-done .rt-time { font-size: 56px; }
.blk-timer .rt-label { display: none; } .blk-timer .rt-time { font-size: 72px !important; }

/* ---------- Borrar registros ---------- */
.today-list .trow { position: relative; }
.trow-del {
  position: absolute; top: -8px; right: -6px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  box-shadow: 0 4px 12px rgba(30, 20, 10, .12);
}
.trow-del svg { width: 16px; height: 16px; }
.trow-del:hover, .trow-del:active { color: var(--danger); border-color: var(--danger); }
.cd-item .icon-btn.danger { color: var(--muted); }
.cd-item .icon-btn.danger:hover { color: var(--danger); }
.trow-del { top: 8px; right: 8px; width: 32px; height: 32px; box-shadow: none; background: var(--surface-2); border-color: transparent; }

/* Botones para agregar al día: mismo estilo con o sin ejercicios */
.add-row { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.add-row .btn.btn { flex: 0 0 auto; width: auto; height: 46px; border-style: solid; border-color: var(--border); background: var(--surface); color: var(--text); }
.add-row .btn.btn:hover { border-color: var(--border-strong); background: var(--surface-2); color: var(--text); }
.add-row .btn.btn-primary { border: 0; color: var(--accent-ink); background: var(--grad-brand); box-shadow: var(--shadow-btn); }
.add-row .btn.btn-primary:hover { background: var(--grad-brand-hover); color: var(--accent-ink); }

/* Opciones con explicación (askChoice) */
.dlg-ask .ask-opt { height: auto !important; min-height: 56px; padding: 10px 18px; flex-direction: column; gap: 1px; white-space: normal; line-height: 1.25; }
.dlg-ask .ask-opt small { font-size: 12.5px; font-weight: 600; opacity: .75; }

/* Selector de plan activo: mismo estilo que la tarjeta "Nombre del día" */
.page-head .plan-wrap { flex: 1 1 100%; width: 100%; align-self: stretch; }
.plan-btn { width: 100%; min-height: 72px; padding: 14px 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-card); }
.plan-btn b { max-width: none; font-size: 17px; }
.plan-btn .pk { font-size: 11.5px; }
.plan-wrap .menu { left: 0; right: 0; width: auto; border-radius: 18px; }
@media (max-width: 860px) { .page-head .plan-wrap { margin-right: -56px; width: calc(100% + 56px); } }

/* Pendientes de la rutina (Progreso) y registrar en días pasados (Hoy) */
.cd-pend-h { margin-top: 18px; }
/* Pendientes: misma tarjeta blanca que los ejercicios hechos (el botón Registrar las distingue) */
.cd-item.pending .btn-sm { flex: none; }
.trow-log { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; }
.trow-log svg { width: 14px; height: 14px; stroke-width: 3; }

/* Días completos: círculo verde con palomita */
.ws-day.done:not(.active) .ws-n { background: var(--grad-success); color: #fff; box-shadow: var(--shadow-btn); }
.ws-day.done.today:not(.active) .ws-n { box-shadow: var(--shadow-btn), inset 0 0 0 2px var(--success-2); }

/* Círculos de días: completados en naranja, día actual/seleccionado en verde */
.ws-day.done:not(.active) .ws-n { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-btn); }
.ws-day.done.today:not(.active) .ws-n { box-shadow: var(--shadow-btn), inset 0 0 0 3px var(--success-2); }
.ws-day.today:not(.active):not(.done) .ws-n { color: var(--success-2); box-shadow: inset 0 0 0 2px var(--success-ring); }
.ws-day.active .ws-n { background: var(--grad-success); color: #fff; box-shadow: var(--shadow-btn); }

/* Calendario: el día actual en el mismo verde que la fila de días */
.cal-cell.today, .cal-cell.today[class*=lvl] { background: var(--grad-success); border-color: transparent; color: #fff; font-weight: 800; box-shadow: var(--shadow-btn); }
.cal-cell.today.sel { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--success-2); }
.cal-cell.today .pdot { background: #fff; }

/* Progreso: Calendario / Récords como dos pestañas claras */
.prog-top { flex-direction: column; align-items: stretch; }
.seg.prog-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; height: auto; padding: 6px; gap: 6px; border-radius: 20px; background: var(--surface-3); border: 0; }
.seg.prog-tabs button { height: 50px; padding: 0 12px; border-radius: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--text-2); background: var(--surface); box-shadow: 0 1px 3px rgba(30, 20, 10, .1); border: 1px solid var(--border); }
.seg.prog-tabs button svg { width: 19px; height: 19px; color: var(--muted); }
.seg.prog-tabs button:not(.on):hover { border-color: var(--accent-border); color: var(--accent-fg); }
.seg.prog-tabs button.on { color: #fff; border-color: transparent; background: var(--grad-brand); box-shadow: var(--shadow-btn); }
.seg.prog-tabs button.on svg { color: #fff; }

/* Récords: todas las marcas del mismo ancho */
.prog-row { grid-template-columns: 72px minmax(0, 1fr) 96px 96px; }
.pr-best { width: 96px; box-sizing: border-box; align-items: center; text-align: center; }
.pr-best b { white-space: nowrap; font-size: 15px; }
@media (max-width: 560px) { .prog-row { grid-template-columns: 64px minmax(0, 1fr) 92px; } .pr-best { width: 92px; } }

/* ---------- Página: Planes de entrenamiento ---------- */
#view-planes .page-head { margin-bottom: 16px; }
.plans-back { margin-bottom: 10px; font-size: 14px; }
.plans-back svg { width: 16px; height: 16px; }
#view-planes .pd-model { margin-bottom: 14px; }
#view-planes .chips.pf { padding-top: 0; margin-bottom: 16px; }
.pm-count { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 7px; margin-left: 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-fg); font-size: 12px; font-weight: 800; vertical-align: 2px; }
.menu-plans .mm-opt .pn { display: flex; flex-direction: column; gap: 1px; }
.menu-plans .mm-opt .pn small { font-size: 12px; color: var(--muted); font-weight: 500; white-space: normal; }
.menu-plans .mm-opt { align-items: flex-start; padding-top: 10px; padding-bottom: 10px; }

/* =========================================================
   Hoy: resumen más limpio (anillo + cifras + barra de músculos)
   ========================================================= */
.today-hero.th2 { gap: 20px; padding: 22px 20px 20px; overflow: hidden; isolation: isolate; }
.today-hero.th2::before { content: ""; position: absolute; z-index: -1; width: 220px; height: 220px; right: -70px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .55), transparent 70%); }
:root:not([data-theme="light"]) .today-hero.th2::before { background: radial-gradient(circle, rgba(255, 140, 80, .14), transparent 70%); }
.th2-row { display: flex; align-items: center; gap: 18px; }
.th2-ring { --p: 0; flex: none; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--brand-1), var(--accent) calc(var(--p) * 1%), var(--hero-ring-track) 0); }
.th2-ring > span { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--hero-ring-hole); color: var(--hero-text); }
.th2-ring b { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.th2-ring b small { font-size: 15px; font-weight: 700; color: var(--hero-faint); margin-left: 1px; }
.th2-ring svg { width: 34px; height: 34px; stroke-width: 2.6; }
.th2-ring.full { background: conic-gradient(var(--success-1), var(--success-2)); animation: ringWin .6s cubic-bezier(.3, 1.4, .5, 1) both; }
.th2-ring.full > span { color: var(--success-2); }
.th2-ring.plan { background: var(--hero-ring-track); }
.th2-ring.plan svg { color: var(--accent-fg); }
.th2-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.th2-kicker { font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-fg); }
.today-hero.complete .th2-kicker { color: var(--success-2); }
:root:not([data-theme="light"]) .today-hero.complete .th2-kicker, :root:not([data-theme="light"]) .th2-ring.full > span { color: var(--success-on-dark); }
.th2-big { font-size: 34px; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; color: var(--hero-text); }
.th2-big span { font-size: 20px; color: var(--hero-faint); font-weight: 700; }
.th2-big em { font-style: normal; font-size: 15px; font-weight: 600; color: var(--hero-sub); letter-spacing: 0; }
.th2-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--hero-sub); }
.th2-meta span { display: inline-flex; align-items: center; gap: 5px; }
.th2-meta svg { width: 15px; height: 15px; }
.th2-mix { display: flex; flex-direction: column; gap: 8px; }
.th2-bar { display: flex; gap: 3px; height: 8px; border-radius: 999px; overflow: hidden; }
.th2-bar i { display: block; height: 100%; border-radius: 999px; }
.th2-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; font-weight: 600; color: var(--hero-sub); }
.th2-legend span { display: inline-flex; align-items: center; gap: 6px; }
.th2-legend b { color: var(--hero-text); }
.th2-legend i { width: 8px; height: 8px; border-radius: 50%; }
.th2 .c0 { background: var(--accent); } .th2 .c1 { background: var(--violet); } .th2 .c2 { background: var(--teal); }
.today-hero.th2 .tb-go { margin-top: 2px; }

/* Biblioteca: botón "+" naranja y redondo */
.card-add { width: 38px; height: 38px; border-radius: 50%; border: 0; color: #fff; background: var(--grad-brand); box-shadow: var(--shadow-btn); }
.card-add svg { width: 20px; height: 20px; stroke-width: 2.6; }
.card-add:hover { background: var(--grad-brand-hover); color: #fff; }
.card-add.added { background: var(--grad-success); color: #fff; box-shadow: var(--shadow-btn); }
.card-add .badge { background: #fff; color: var(--success-2); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }

/* Sin sombra/brillo en el botón "+" de la biblioteca ni en los círculos de los días */
.card-add, .card-add.added { box-shadow: none !important; }
.ws-n, .ws-day .ws-n, .ws-day.active .ws-n, .ws-day.done:not(.active) .ws-n { box-shadow: none !important; }
.ws-day.today:not(.active):not(.done) .ws-n { box-shadow: inset 0 0 0 2px var(--success-ring) !important; }
.ws-day.done.today:not(.active) .ws-n { box-shadow: inset 0 0 0 3px var(--success-2) !important; }

/* =========================================================
   Componentes base con los tokens del sistema de diseño
   ========================================================= */
.btn { height: var(--btn-h); border-radius: var(--radius-pill); }
.btn-sm { height: var(--btn-h-sm); }
.btn-primary, .btn.btn-primary { background: var(--grad-brand); color: var(--on-brand); border: 0; box-shadow: var(--shadow-btn); }
.btn-primary:hover, .btn.btn-primary:hover { background: var(--grad-brand-hover); color: var(--on-brand); }
.btn.btn-danger-solid { background: var(--grad-brand); color: var(--on-brand); border: 0; box-shadow: var(--shadow-btn); }
.seg button.on { background: var(--accent); color: var(--on-brand); box-shadow: var(--shadow-btn); }
.chip.on { box-shadow: var(--shadow-btn); }

/* Pantalla de acceso: logo centrado (ícono arriba, nombre abajo) y textos centrados */
.gate-logo.gate-logo-c { flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.gate-logo.gate-logo-c img { width: 76px; height: 76px; border-radius: 22px; }
.gate-logo.gate-logo-c b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.gate-card h2, .gate-card .gate-sub { text-align: center; }
@media (min-width: 861px) { .gate-card .gate-logo.gate-logo-c { display: flex; margin-bottom: 18px; } }

/* =========================================================
   Accesibilidad / claridad (revisión con beta testers)
   ========================================================= */
/* Hoy: cada ejercicio dice claramente que se puede tocar */
.trow-go { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 800; white-space: nowrap; background: var(--grad-brand); color: var(--on-brand); }
.trow-go svg { width: 15px; height: 15px; stroke-width: 2.8; }
.trow-go.mid { background: var(--accent-soft); color: var(--accent-fg); }
.trow-go.ok { background: var(--accent-soft); color: var(--accent-fg); }
/* Borrar lo registrado: separado del contador, con texto, debajo de la tarjeta */
.trow-del-link { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0 14px; padding: 6px 4px; border: 0; background: none; color: var(--muted); font-size: 14px; font-weight: 600; }
.trow-del-link svg { width: 16px; height: 16px; }
.trow-del-link:hover, .trow-del-link:active { color: var(--danger); }
/* Letra mínima de 14 px en el resumen y la lista de Hoy */
.th2-kicker { font-size: 13.5px; }
.th2-meta, .th2-legend { font-size: 14px; }
.th2-meta svg { width: 16px; height: 16px; }
.trow-info small { font-size: 14px; }
.trow-info .trow-last { font-size: 14px; }
/* Acceso: "Continuar sin cuenta" como botón visible */
.gate-guest { display: flex; align-items: center; justify-content: center; width: 100%; height: var(--btn-h); margin-top: 4px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--surface); color: var(--text); font-size: 15px; font-weight: 700; text-decoration: none; }
.gate-guest:hover { border-color: var(--accent-border); color: var(--accent-fg); }
/* Portadas de planes con miniaturas fijas */
.pc-art img.still, .pd-art img.still, .pd-ex-img img.still { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.trow-info .trow-go { align-self: flex-start; margin-top: 8px; padding: 7px 14px; }

/* Hoy: botón "Empezar" de cada ejercicio más discreto */
.trow-info .trow-go { margin-top: 6px; padding: 5px 11px; font-size: 13.5px; font-weight: 700; gap: 3px; background: var(--accent-soft); color: var(--accent-fg); border: 1px solid var(--accent-border); }
.trow-info .trow-go svg { width: 13px; height: 13px; }
.trow-info .trow-go.mid { background: var(--accent-soft); border-color: transparent; }
.trow-info .trow-go.ok { background: transparent; border-color: transparent; padding-left: 0; color: var(--success-2); }

/* Menú de Plan activo: opciones más grandes y "Planes de entrenamiento" destacado */
.menu-plans { padding: 8px; border-radius: 20px; }
.menu-plans .mlabel { font-size: 12.5px; padding: 8px 12px 6px; }
.menu-plans button { min-height: 50px; padding: 12px 14px; gap: 12px; border-radius: 14px; font-size: 15.5px; }
.menu-plans button svg { width: 19px; height: 19px; }
.menu-plans .ck { width: 20px; }
.menu-plans .n { font-size: 13.5px; font-weight: 700; }
.menu-plans hr { margin: 8px 4px; }
.menu-plans .menu-cta { margin: 4px 0 6px; padding: 14px 16px; background: var(--grad-brand); color: var(--on-brand); font-weight: 800; box-shadow: var(--shadow-btn); }
.menu-plans .menu-cta:hover { background: var(--grad-brand-hover); }
.menu-plans .menu-cta span { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.menu-plans .menu-cta small { font-size: 12.5px; font-weight: 600; opacity: .9; }
.menu-plans .menu-cta svg { color: var(--on-brand); }

/* Desplegables grandes (Plan activo / Tipo de entrenamiento): oscurece lo de alrededor al abrir */
.menu-wrap:has(.menu.open) { position: relative; z-index: 60; border-radius: var(--radius); box-shadow: 0 0 0 200vmax var(--overlay); }
.menu-wrap.plan-wrap:has(.menu.open) .plan-btn { border-color: transparent; }
/* "Ver planes de entrenamiento": tono suave (como el botón Empezar), no naranja relleno */
.menu-plans .menu-cta { background: var(--accent-soft); color: var(--accent-fg); border: 1px solid var(--accent-border); }
.menu-plans .menu-cta:hover { background: var(--accent-soft); filter: brightness(.97); }
.menu-plans .menu-cta svg { color: var(--accent-fg); }
.menu-plans .menu-cta small { color: var(--text-2); opacity: 1; }

/* Mismo fondo oscurecido para todas las ventanas emergentes */
.dlg::backdrop { background: var(--overlay); backdrop-filter: none; }
.rest-timer:not(.mini):not(.blk-timer) { background: var(--overlay); }
.menu-wrap:not(.plan-wrap):has(.menu.open) { border-radius: 12px; }

/* =========================================================
   Favoritos
   ========================================================= */
/* Corazón sobre la foto de la tarjeta */
.card-fav { position: absolute; top: 8px; left: 8px; z-index: 1; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--muted); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.card-fav svg, .ex-fav svg, .chip-fav svg { fill: none; stroke: currentColor; stroke-width: 2.2; }
.card-fav svg { width: 20px; height: 20px; }
.card-fav:hover { color: var(--brand-2); }
.card-fav.on, .ex-fav.on { color: var(--brand-2); }
.card-fav.on svg, .ex-fav.on svg { fill: currentColor; }
/* Botón en la ficha del ejercicio */
.ex-fav { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: var(--btn-h); border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: 15px; font-weight: 700; }
.ex-fav svg { width: 20px; height: 20px; }
.ex-fav.on { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent-fg); }
.ex-fav.on svg { color: var(--brand-2); }
/* Filtro Favoritos */
.chip-fav { display: inline-flex; align-items: center; gap: 6px; }
.chip-fav svg { width: 16px; height: 16px; }
.chip-fav.on svg { fill: currentColor; }
.fav-empty .empty-icon svg { fill: none; stroke: currentColor; }

/* =========================================================
   Sesiones listas (entrenar otra cosa hoy)
   ========================================================= */
.sess-go { margin: 18px 0 0; }
.sess-chips { margin-bottom: 14px; }
.sess-cta { display: flex; flex-direction: column; gap: 10px; }
.sess-cta .btn:not(.btn-primary) { height: var(--btn-h); font-size: 15px; background: var(--surface); }
.sess-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 16px 0 4px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--accent-border); background: var(--accent-soft); color: var(--text); font-size: 14px; line-height: 1.35; }
.sess-note .linkish { color: var(--accent-fg); font-size: 14px; font-weight: 700; white-space: nowrap; }

/* Sesiones listas · etapa 2: favoritas, filtros, cardio libre, "Hacer hoy" */
.pc-wrap { position: relative; }
.pc-wrap .pc { width: 100%; }
.sess-fav { position: absolute; top: 12px; right: 12px; z-index: 4; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #6c7079; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.sess-fav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.sess-fav.on { color: var(--brand-2); }
.sess-fav.on svg { fill: currentColor; }
.pd-hero .sess-fav { top: 14px; right: 66px; width: 42px; height: 42px; border-radius: 14px; }
.sess-filters { display: flex; gap: 10px; margin: 0 0 12px; }
.sess-filters .select { flex: 1 1 0; min-width: 0; }
.cf-opts .log-opt.on { border-color: var(--accent-border); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--brand-2); }
.cf-go { width: 100%; height: var(--btn-h); margin-top: 16px; }
.pd-day-h { position: relative; padding-right: 108px; min-height: 40px; }
.pd-today { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--accent-border); background: var(--accent-soft); color: var(--accent-fg); font-size: 14px; font-weight: 700; }
.pd-today svg { width: 15px; height: 15px; }
/* Botón de sesiones justo debajo del resumen de Hoy */
.today-hero + .sess-go { margin: 14px 0 4px; }
/* Etapa 3: Sorpréndeme y Repetir */
.sess-surprise { display: flex; align-items: center; gap: 12px; width: 100%; height: auto; min-height: var(--btn-h); margin: 0 0 14px; padding: 10px 16px; justify-content: flex-start; text-align: left; border-radius: 18px; background: var(--surface); }
.sess-surprise svg { width: 24px; height: 24px; color: var(--brand-2); flex: none; }
.sess-surprise span { display: flex; flex-direction: column; font-size: 15px; font-weight: 800; }
.sess-surprise small { font-size: 14px; font-weight: 500; color: var(--muted); }
.sess-cta .btn-ghost { height: 44px; font-size: 15px; }
.tb-go + .tb-go { margin-top: 10px; }

/* =========================================================
   Acerca de la app
   ========================================================= */
.set-row.set-link { width: 100%; border-left: 0; border-right: 0; border-bottom: 0; background: none; color: var(--text); text-align: left; padding-left: 0; padding-right: 0; }
.set-row.set-link > svg { width: 20px; height: 20px; flex: none; color: var(--muted); }
.about { gap: 14px; }
.ab-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 6px 0 2px; }
.ab-logo { width: 88px; height: 88px; border-radius: 24px; box-shadow: 0 8px 22px color-mix(in srgb, var(--brand-2) 30%, transparent); }
.ab-hero h3 { margin: 6px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.ab-ver { margin: 0; font-size: 14px; color: var(--muted); }
.ab-desc { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text); text-align: center; }
.ab-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: var(--surface); }
.ab-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; background: none; color: var(--text); text-align: left; text-decoration: none; font: inherit; }
.ab-row + .ab-row { border-top: 1px solid var(--border); }
.ab-row:hover { background: var(--surface-2); }
.ab-row > svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.ab-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent-fg); }
.ab-ic svg { width: 19px; height: 19px; }
.ab-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ab-t b { font-size: 15px; font-weight: 700; }
.ab-t small { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-foot { margin: 4px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.set-row.set-link { flex-wrap: nowrap; }
.ab-t small { white-space: normal; }

/* Ficha del plan: el usuario elige sus días */
.pd-pick { margin-top: 2px; }
.pd-pick-help { margin: 8px 0 0; font-size: 14px; color: var(--muted); line-height: 1.4; }
.pd-pick-help .linkish { color: var(--accent-fg); font-size: 14px; font-weight: 700; }

/* Catálogo único: 4 filtros en 2 columnas */
.cat-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.all-progs span small { display: block; font-size: 14px; font-weight: 500; color: var(--muted); }

/* Catálogo: segundo nivel, botón de filtros y panel */
.cat-sub { margin: -4px 0 12px; }
.cat-tools { display: flex; gap: 10px; margin: 0 0 12px; }
.cat-tools .btn { flex: 1 1 0; height: 46px; font-size: 15px; background: var(--surface); }
.cat-tools .btn svg { width: 19px; height: 19px; }
.cat-filter-btn.on { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent-fg); }
.cat-badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: inline-grid; place-items: center; background: var(--grad-brand); color: #fff; font-size: 13px; font-weight: 800; }
.cat-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin: 0 0 14px; padding: 14px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.cat-panel .field { margin: 0; }
.cat-panel .field:first-child { grid-column: 1 / -1; }
.cat-panel .btn-ghost { grid-column: 1 / -1; justify-self: start; }
.cat-cardio { margin: 0 0 14px; }
/* Nivel 1 del catálogo: 4 opciones siempre visibles (2 × 2) */
.sess-chips.cat-main { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; overflow: visible; flex-wrap: initial; margin-bottom: 12px; }
.sess-chips.cat-main .chip { justify-content: center; width: 100%; height: 44px; font-size: 15px; }
/* Panel de filtros sin salirse de la pantalla */
.cat-panel > * { min-width: 0; }
.cat-panel .select { width: 100%; min-width: 0; }
.sess-chips.cat-main .chip { padding: 0 8px; font-size: 14.5px; white-space: nowrap; }
.chips.sub.cat-sub { flex-wrap: wrap; overflow: visible; }

/* Descanso terminado: un solo botón "Continuar" a todo lo ancho */
.rest-timer .rt-actions.rt-done { display: flex; width: 100%; }
.rest-timer .rt-actions.rt-done .rt-continue { flex: 1; width: 100%; height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: var(--radius-pill); background: var(--grad-brand); color: #fff; font-size: 16.5px; font-weight: 800; }
.rest-timer .rt-actions.rt-done .rt-continue svg { width: 20px; height: 20px; stroke-width: 2.6; }

/* =========================================================
   Versión Pro
   ========================================================= */
.pro-badge, .pro-tag { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 8px; border-radius: var(--radius-pill); background: #1d1f24; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.pro-badge svg { width: 12px; height: 12px; stroke-width: 2.6; }
.pro-tag { background: var(--grad-brand); }
.pc-lock { position: absolute; right: 12px; bottom: 12px; z-index: 3; }
.paywall { position: relative; gap: 14px; }
.pw-close { position: absolute; top: 0; right: 0; }
.pw-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding-top: 6px; }
.pw-logo { width: 72px; height: 72px; border-radius: 20px; }
.pw-hero h2 { margin: 6px 0 0; display: flex; align-items: center; gap: 8px; font-size: 21px; }
.pw-sub { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.pw-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pw-list li { display: flex; gap: 12px; align-items: flex-start; }
.pw-list li > span:last-child { display: flex; flex-direction: column; font-size: 15px; }
.pw-list small { color: var(--muted); font-size: 14px; }
.pw-ck { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-fg); }
.pw-ck svg { width: 15px; height: 15px; stroke-width: 3; }
.pw-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pw-price { display: flex; flex-direction: column; align-items: center; padding: 12px; border: 1px solid var(--border-strong); border-radius: 16px; }
.pw-price.best { border-color: var(--brand-2); background: var(--accent-soft); }
.pw-price b { font-size: 19px; } .pw-price span, .pw-price small { font-size: 14px; color: var(--muted); }
.pw-buy { width: 100%; height: 54px; font-size: 16.5px; }
.pw-note { margin: -4px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.pw-dev { align-self: center; font-size: 14px; color: var(--muted); }
.sg-locked .sg-text svg { color: var(--accent-fg); }
/* Requisitos de contraseña al crear cuenta o cambiarla */
.pass-rules { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pass-rules li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.pass-rules li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid var(--border-strong); box-sizing: border-box; }
.pass-rules li.ok { color: var(--success-2); }
.pass-rules li.ok::before { border-color: var(--success-2); background: var(--success-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 10px no-repeat; }
.gate-legal a { color: var(--accent-fg); font-weight: 600; }

/* Confirmación para borrar la cuenta */
.del-acc .field { width: 100%; text-align: left; }
.del-acc .field input { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.del-acc .btn[disabled] { opacity: .45; pointer-events: none; }

/* =========================================================
   Mapa del cuerpo (app/bodymap.js)
   ========================================================= */
:root {
  --bm-skin: #e4ddd5;        /* silueta */
  --bm-muscle: #cfc6bc;      /* músculo sin marcar */
  --bm-on: #ef4b3c;          /* músculo principal */
  --bm-sec: #f6a59a;         /* músculo secundario */
}
:root[data-theme="dark"] { --bm-skin: #2b2d33; --bm-muscle: #3d4048; --bm-on: #ff5a4a; --bm-sec: #a8554c; }
.bodymap { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bm-fig { margin: 0; display: flex; flex-direction: column; align-items: center; }
.bm-fig svg { width: 100%; height: auto; aspect-ratio: 1 / 2; max-height: 300px; overflow: visible; }
.bm-fig figcaption { margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.bm-base { fill: var(--bm-skin); stroke: none; }
.bm-fig svg { stroke: none; flex: none; }
.bm-m { fill: var(--bm-muscle); stroke: var(--bm-skin); stroke-width: 1.2; stroke-linejoin: round; transition: fill .15s; }
.bm-m.sec { fill: var(--bm-sec); }
.bm-m.on { fill: var(--bm-on); }
.bm-m.heat { fill: color-mix(in srgb, var(--bm-on) calc(var(--h) * 100%), var(--bm-muscle)); }
.bm-m[data-action] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bodymap:not(.bm-rec) .bm-m[data-action]:hover:not(.on) { fill: color-mix(in srgb, var(--bm-on) 35%, var(--bm-muscle)); }
.bm-m[data-action]:focus-visible { outline: none; stroke: var(--brand-2); stroke-width: 2.5; }

/* Biblioteca: filtro con el cuerpo */
.bm-filter { margin-top: 12px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); padding: 6px 12px 12px; }
.bm-toggle { display: flex; align-items: center; gap: 10px; width: 100%; height: 44px; border: 0; background: none; color: var(--text); font: inherit; font-size: 15px; font-weight: 700; text-align: left; padding: 0; }
.bm-toggle span { flex: 1; }
.bm-toggle svg { width: 18px; height: 18px; color: var(--muted); }
.bm-toggle svg:first-child { color: var(--accent-fg); }
.bm-lib .bm-fig svg { max-height: 260px; }
.bm-picked { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.bm-picked .chip svg { width: 13px; height: 13px; }
.bm-hint { margin: 8px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
/* Ficha del ejercicio */
.ex-bodymap { padding: 10px 0 2px; }
.bm-sm .bm-fig svg { max-height: 190px; }
.bm-sm .bm-fig figcaption { font-size: 12px; }
.bm-legend { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.bm-legend span { width: 12px; height: 12px; border-radius: 4px; margin-left: 8px; }
.bm-legend span.on { background: var(--bm-on); } .bm-legend span.sec { background: var(--bm-sec); }
/* Progreso: músculos trabajados */
.bm-card { margin: 0 0 16px; padding: 16px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); }
.bm-card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.bm-card-h b { font-size: 16px; } .bm-card-h span { font-size: 14px; color: var(--muted); }
.bm-card-body { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .bm-card-body { grid-template-columns: 1.1fr 1fr; align-items: center; } }
.bm-top { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bm-top li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 14px; }
.bm-top li span { font-weight: 600; }
.bm-top li b { font-weight: 700; color: var(--muted); font-size: 13px; }
.bm-top li i { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--bm-on) var(--w), var(--surface-2) var(--w)); }

/* =========================================================
   Progreso: resumen del periodo
   ========================================================= */
:root { --chart-bar: #ff5b1f; --chart-bar-soft: color-mix(in srgb, #ff5b1f 45%, transparent); }
:root[data-theme="dark"] { --chart-bar: #f2581c; --chart-bar-soft: color-mix(in srgb, #f2581c 45%, transparent); }
.sum-card { margin: 0 0 16px; padding: 16px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); display: flex; flex-direction: column; gap: 14px; }
.sum-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sum-h > b { font-size: 16px; }
.sum-seg button { font-size: 14px; padding: 0 12px; height: 34px; }
.sum-hero { display: flex; flex-direction: column; gap: 2px; }
.sum-k { font-size: 14px; color: var(--muted); font-weight: 600; }
.sum-big { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.sum-big small { font-size: 16px; color: var(--muted); font-weight: 700; }
.sum-delta { font-size: 14px; font-weight: 700; color: var(--muted); }
.sum-delta.up { color: var(--success-2); } .sum-delta.down { color: var(--danger-2); }
.sum-delta em { font-style: normal; font-weight: 500; color: var(--muted); }
.sum-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sum-stats div { padding: 10px; border-radius: 14px; background: var(--surface-2); display: flex; flex-direction: column; }
.sum-stats b { font-size: 20px; font-weight: 800; } .sum-stats span { font-size: 13px; color: var(--muted); }
.vchart-tip { margin: 0 0 8px; min-height: 20px; font-size: 14px; color: var(--muted); }
.vchart-tip b { color: var(--text); }
.vchart-plot { position: relative; height: 150px; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--border); padding-top: 18px; }
.vchart-plot::before { content: ""; position: absolute; left: 0; right: 0; top: 18px; border-top: 1px dashed var(--border); }
.vchart-max { position: absolute; top: 0; right: 0; font-size: 12px; color: var(--muted); }
.vbar { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; border: 0; background: none; padding: 0 1px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.vbar i { display: block; width: 100%; max-width: 34px; border-radius: 4px 4px 0 0; background: var(--chart-bar); transition: opacity .15s; }
.vbar.now i { background: var(--chart-bar-soft); outline: 1.5px dashed var(--chart-bar); outline-offset: -1.5px; }
.vchart-plot:has(.vbar.on) .vbar:not(.on) i { opacity: .45; }
.vbar:hover i { opacity: .85; }
.vchart-x { display: flex; gap: 2px; margin-top: 6px; }
.vchart-x span { flex: 1 1 0; text-align: center; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: visible; }
.sum-prs { display: flex; flex-direction: column; gap: 8px; }
.sum-prs .section-label { margin: 0; }
.sum-pr { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); text-align: left; font: inherit; }
.sum-pr > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sum-pr b { font-size: 15px; } .sum-pr small { font-size: 13px; color: var(--success-2); font-weight: 600; }
.sum-medal { font-size: 20px; }
.sum-pr-v { white-space: nowrap; }
.sum-pr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; }
.sum-pr > span:nth-child(2) b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Récords: mismo formato que "Récords del periodo" */
.rec-list { display: flex; flex-direction: column; gap: 8px; }
.pr-row.flat small { color: var(--muted); font-weight: 500; }

/* =========================================================
   Modo entrenamiento: encabezado en vivo, columna "Anterior", agregar serie
   ========================================================= */
.wo-live { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 2px 16px 10px; }
.wo-live div { display: flex; flex-direction: column; align-items: center; padding: 8px 6px; border-radius: 14px; background: var(--surface-2); }
.wo-live span { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.wo-live b { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wo-live small { font-size: 13px; color: var(--muted); font-weight: 700; }
.setlog.big.with-prev .sl-row { grid-template-columns: 34px 62px 1fr 1fr 50px; gap: 8px; }
.setlog.big.with-prev.no-w .sl-row { grid-template-columns: 34px 62px 1fr 50px; }
.setlog.big.time.with-prev .sl-row { grid-template-columns: 34px 58px 1fr 1fr 46px 46px; gap: 6px; }
.setlog.big.time.with-prev.no-w .sl-row { grid-template-columns: 34px 58px 1fr 46px 46px; }
.sl-prev { font-size: 13px; color: var(--muted); font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-row.extra .sl-n { color: var(--accent-fg); }
.sl-add { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 44px; margin-top: 8px; border: 1.5px dashed var(--border-strong); border-radius: 14px; background: none; color: var(--text); font: inherit; font-size: 15px; font-weight: 700; }
.sl-add svg { width: 16px; height: 16px; }
.sl-add:hover { border-color: var(--accent-border); color: var(--accent-fg); }

/* Agregar / quitar serie y reloj detenido */
.sl-addrow { display: flex; gap: 8px; }
.sl-addrow .sl-add { flex: 1 1 0; }
.sl-add[data-action="wo-delset"]:hover { border-color: var(--border-strong); color: var(--text); }
.wo-live .wo-dur.stopped b { color: var(--success-2); }

/* Biblioteca: equipo con íconos */
.eq-tiles { display: flex; gap: 10px; overflow-x: auto; margin: 12px -16px 0; padding: 4px 16px 6px; scrollbar-width: none; }
.eq-tiles::-webkit-scrollbar { display: none; }
.eq-tile { flex: none; width: 72px; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; padding: 0; color: var(--text); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.eq-ic { position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--border); color: var(--muted); transition: border-color .15s, background .15s; }
.eq-ic > svg { width: 28px; height: 28px; stroke-width: 1.7; }
.eq-tile.on .eq-ic { border-color: var(--brand-2); background: var(--accent-soft); color: var(--accent-fg); }
.eq-ic i { position: absolute; top: -3px; right: -3px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-brand); color: #fff; }
.eq-ic i svg { width: 12px; height: 12px; stroke-width: 3; }
.eq-l { font-size: 13px; font-weight: 600; line-height: 1.2; text-align: center; }
.eq-tile.on .eq-l { color: var(--accent-fg); font-weight: 700; }
.eq-tile:hover .eq-ic { border-color: var(--border-strong); }

/* Biblioteca simplificada: Todos / Favoritos / Míos y filas de íconos con título */
.lib-scope { margin-top: 12px; }
.eq-block { margin-top: 12px; }
.eq-title { margin: 0 0 2px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.eq-block .eq-tiles { margin-top: 4px; }
.search-row:has(> .search:only-child) { grid-template-columns: 1fr; }
/* Tarjeta para compartir */
.share-card { gap: 14px; }
.share-img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 6px 20px rgba(0, 0, 0, .12); background: #fff1e7; }

.share-note { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45; text-align: center; }
.share-note .linkish { color: var(--accent-fg); font-weight: 700; font-size: 14px; }

/* =========================================================
   Resumen semanal (Hoy)
   ========================================================= */
.wk-card { margin: 0 0 16px; padding: 16px; border-radius: 22px; background: linear-gradient(160deg, var(--accent-soft), var(--surface) 70%); border: 1px solid var(--accent-border); display: flex; flex-direction: column; gap: 12px; }
.wk-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.wk-h > div { display: flex; flex-direction: column; }
.wk-k { font-size: 13px; font-weight: 800; color: var(--accent-fg); text-transform: uppercase; letter-spacing: .06em; }
.wk-h b { font-size: 20px; font-weight: 800; }
.wk-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wk-days span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.wk-days i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1.5px solid var(--border); }
.wk-days span.on { color: var(--accent-fg); }
.wk-days span.on i { background: var(--grad-brand); border-color: transparent; color: #fff; }
.wk-days i svg { width: 15px; height: 15px; stroke-width: 3; }
.wk-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wk-stats div { display: flex; flex-direction: column; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.wk-stats b { font-size: 22px; font-weight: 800; line-height: 1.1; }
.wk-stats span { font-size: 13px; color: var(--muted); }
.wk-stats em { font-style: normal; font-size: 13px; font-weight: 700; margin-top: 2px; }
.wk-stats em.up { color: var(--success-2); } .wk-stats em.down { color: var(--danger-2); }
.wk-high { display: flex; flex-direction: column; gap: 4px; }
.wk-high p { margin: 0; font-size: 15px; }
.wk-msg { margin: 0; font-size: 15px; font-weight: 600; color: var(--text); }
.wk-actions { display: flex; gap: 8px; }
.wk-actions .btn { flex: 1 1 0; height: 46px; text-decoration: none; }

/* =========================================================
   Tipos de serie y superseries
   ========================================================= */
button.sl-n { border: 0; font: inherit; font-weight: 800; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sl-n.t-w { background: var(--blue-soft); color: var(--blue); }
.sl-n.t-d { background: var(--violet-soft); color: var(--violet); }
.sl-n.t-f { background: color-mix(in srgb, var(--danger-2) 14%, transparent); color: var(--danger-2); }
.ss-badge { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; width: fit-content; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-fg); font-size: 12px; font-weight: 800; }
.ss-badge svg { width: 13px; height: 13px; }
.ss-in { position: relative; }
.ss-in::before { content: ""; position: absolute; left: -7px; top: 0; bottom: 0; width: 3px; background: var(--brand-2); }
/* la línea cruza el espacio entre tarjetas (12px) para unir el grupo */
.ss-in.ss-first::before { top: 14px; bottom: -12px; border-radius: 3px 3px 0 0; }
.ss-in.ss-mid::before { top: -12px; bottom: -12px; }
.ss-in.ss-last::before { top: 0; bottom: 14px; border-radius: 0 0 3px 3px; }
.wo-ss { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 14px; color: var(--accent-fg); }
.wo-ss svg { width: 16px; height: 16px; flex: none; }
.wo-ss b { font-weight: 800; }
.ss-toggle { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.ss-toggle > svg { width: 20px; height: 20px; flex: none; color: var(--muted); }
.ss-toggle span { flex: 1; display: flex; flex-direction: column; }
.ss-toggle b { font-size: 15px; }
.ss-toggle small { font-size: 13px; color: var(--muted); }
.ss-sw { flex: none; width: 42px; height: 24px; border-radius: var(--radius-pill); background: var(--surface-3); position: relative; transition: background .15s; }
.ss-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.ss-toggle.on { border-color: var(--accent-border); background: var(--accent-soft); }
.ss-toggle.on > svg { color: var(--accent-fg); }
.ss-toggle.on .ss-sw { background: var(--brand-2); }
.ss-toggle.on .ss-sw::after { transform: translateX(18px); }

/* =========================================================
   Mi cuerpo: peso y medidas (Progreso y resumen semanal)
   ========================================================= */
.body-card { margin: 0 0 16px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.body-empty { background: linear-gradient(160deg, var(--accent-soft), var(--surface) 70%); border-color: var(--accent-border); }
.body-empty-top { display: flex; gap: 12px; align-items: flex-start; }
.body-empty-top b { font-size: 17px; font-weight: 800; }
.body-empty-top p { margin: 4px 0 0; font-size: 15px; color: var(--text-2); line-height: 1.45; }
.body-ic { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-brand); color: #fff; }
.body-ic svg { width: 24px; height: 24px; }
.body-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.body-h > div { display: flex; flex-direction: column; }
.body-h b { font-size: 17px; font-weight: 800; }
.body-h span { font-size: 13px; color: var(--muted); }
.body-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; }
.body-chips::-webkit-scrollbar { display: none; }
.body-chip { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 92px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.body-chip span { font-size: 13px; color: var(--muted); font-weight: 600; }
.body-chip b { font-size: 18px; font-weight: 800; }
.body-chip.on { border-color: var(--brand-2); background: var(--accent-soft); }
.body-chip.on span { color: var(--accent-fg); }
.body-delta { margin: 0; font-size: 15px; color: var(--text-2); }
.body-delta b { color: var(--text); }
.body-hist { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.body-hist svg { width: 16px; height: 16px; }
.body-sheet { display: flex; flex-direction: column; gap: 12px; }
.body-sh-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.body-sh-h h2 { margin: 0; font-size: 20px; }
.body-wf input { font-size: 22px; font-weight: 800; height: 56px; }
.body-opt { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; }
.body-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.body-tip { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.body-del { color: var(--danger-2); }
.body-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.body-row { width: 100%; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "d ic" "v ic"; align-items: center; gap: 2px 10px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.body-row-d { grid-area: d; font-size: 13px; color: var(--muted); font-weight: 700; }
.body-row-v { grid-area: v; font-size: 14px; color: var(--text-2); line-height: 1.4; }
.body-row-v b { color: var(--text); font-size: 16px; }
.body-row > svg { grid-area: ic; width: 18px; height: 18px; color: var(--muted); }
.wk-body { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px dashed var(--accent-border); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.wk-body > svg:first-child { width: 22px; height: 22px; flex: none; color: var(--accent-fg); }
.wk-body > svg:last-child { width: 18px; height: 18px; flex: none; color: var(--muted); }
.wk-body span { flex: 1; display: flex; flex-direction: column; }
.wk-body b { font-size: 15px; }
.wk-body small { font-size: 13px; color: var(--muted); }
.body-grid > .field { min-width: 0; }
.body-grid input { width: 100%; min-width: 0; box-sizing: border-box; }

/* Candados Pro en filtros, pestañas y medidas */
.sum-seg button svg, .metric-seg button svg { width: 12px; height: 12px; margin-left: 4px; vertical-align: -1px; stroke-width: 2.6; }
.menu button .pro-badge, .add-row .btn .pro-badge { margin-left: auto; }
.add-row .btn .pro-badge { margin-left: 6px; }
.pro-note { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px dashed var(--border-strong); background: var(--surface-2); color: var(--text-2); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.pro-note .pro-badge { flex: none; }
.body-lock { display: flex; flex-direction: column; align-items: stretch; gap: 6px; border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.body-lock-in { display: flex; align-items: center; height: 46px; padding: 0 12px; border-radius: var(--radius-sm); border: 1.5px dashed var(--border-strong); background: var(--surface-2); }

/* Mapa muscular bloqueado (sin Pro) */
.bm-locked { position: relative; }
.bm-blur { filter: blur(7px) saturate(.9); opacity: .75; pointer-events: none; user-select: none; }
.bm-unlock { position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%); white-space: nowrap; }

/* Primer uso: dos filas (planes semanales y sesiones de un día) */
.onboard .car-block { display: flex; flex-direction: column; gap: 10px; }
.car-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.car-h > div { display: flex; flex-direction: column; }
.car-h b { font-size: 18px; font-weight: 800; }
.car-h small { font-size: 14px; color: var(--muted); }
.car-all { display: inline-flex; align-items: center; gap: 2px; flex: none; font-weight: 700; white-space: nowrap; }
.car-all svg { width: 16px; height: 16px; }
.tpl-carousel .pc-wrap { flex: 0 0 min(320px, 86%); scroll-snap-align: start; }
.onboard .blank-row { margin-top: 4px; }

/* Planes y sesiones Pro sin Pro: ficha borrosa con botón para desbloquear */
.pc-locked > :not(.pc-unlock) { filter: blur(6px); }
.pc-locked .pc-unlock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; white-space: nowrap; pointer-events: none; }
.pc-wrap:has(.pc-locked) .sess-fav { display: none; }

/* =========================================================
   Cuestionario inicial (onboarding.js)
   ========================================================= */
.onb { position: fixed; inset: 0; z-index: 58; background: var(--bg); overflow-y: auto; display: flex; flex-direction: column; padding: calc(12px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom)); }
.onb[hidden] { display: none; }
body.onb-open { overflow: hidden; }
.onb > * { width: 100%; max-width: 560px; margin-left: auto; margin-right: auto; }
.onb-top { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.onb-back-ph { width: 40px; flex: none; }
.onb-prog { flex: 1; height: 8px; border-radius: var(--radius-pill); background: var(--surface-3); overflow: hidden; }
.onb-prog i { display: block; height: 100%; border-radius: inherit; background: var(--grad-brand); transition: width .35s ease; }
.onb-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px 0 16px; }
.onb-body.onb-anim, .onb-loading, .onb-result { animation: onb-in .3s ease; }
@keyframes onb-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.onb-q { margin: 0; font-size: 27px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.onb-sub { margin: 0; font-size: 16px; color: var(--muted); line-height: 1.45; }
.onb-content { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.onb-foot { position: sticky; bottom: 0; display: flex; flex-direction: column; gap: 6px; padding-top: 12px; background: linear-gradient(to bottom, transparent, var(--bg) 22%); }
.onb-foot .btn { height: var(--btn-h-lg); font-size: 17px; }
.onb-foot .btn-ghost { height: var(--btn-h); font-size: 15px; }
/* Tarjetas de opción */
.onb-opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 18px; border: 2px solid var(--border); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; -webkit-tap-highlight-color: transparent; }
.onb-opt:active { transform: scale(.98); }
.onb-emo { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: var(--surface-2); }
.onb-ol { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.onb-ol b { font-size: 17px; }
.onb-ol small { font-size: 14px; color: var(--muted); }
.onb-ck { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--border-strong); color: transparent; }
.onb-ck svg { width: 15px; height: 15px; stroke-width: 3; }
.onb-opt.on { border-color: var(--brand-2); background: var(--accent-soft); }
.onb-opt.on .onb-emo { background: var(--surface); }
.onb-opt.on .onb-ck { background: var(--grad-brand); border-color: transparent; color: var(--on-brand); }
/* Mapa del cuerpo */
.onb-map .bm-onb { max-width: 340px; margin: 0 auto; }
.onb-map [data-muscle] { cursor: pointer; }
.onb-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
/* Días y minutos */
.onb-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.onb-day { min-width: 0; padding: 0; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--border); background: var(--surface); color: var(--text); font: inherit; display: grid; place-items: center; cursor: pointer; }
.onb-day b { font-size: 14px; }
.onb-day.on { background: var(--grad-brand); border-color: transparent; color: var(--on-brand); }
.onb-days.sm { gap: 4px; }
.onb-days.sm .onb-day { cursor: default; border-width: 1.5px; }
.onb-days.sm .onb-day b { font-size: 12px; }
.onb-count { margin: 6px 0 0; text-align: center; font-weight: 700; color: var(--accent-fg); }
.onb-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.onb-tile { padding: 22px 10px; border-radius: 18px; border: 2px solid var(--border); background: var(--surface); color: var(--text); font: inherit; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
.onb-tile b { font-size: 34px; font-weight: 800; line-height: 1; }
.onb-tile small { color: var(--muted); font-size: 14px; }
.onb-tile.on { border-color: var(--brand-2); background: var(--accent-soft); }
/* Peso y estatura */
.onb-unit { align-self: center; }
.onb-num { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; border: 2px solid var(--border); background: var(--surface); }
.onb-num span { flex: 1; font-weight: 700; color: var(--muted); }
.onb-num input { width: 120px; border: 0; background: none; text-align: right; font: inherit; font-size: 32px; font-weight: 800; color: var(--text); outline: none; }
.onb-num em { font-style: normal; font-weight: 700; color: var(--muted); width: 26px; }
.onb-num:focus-within { border-color: var(--brand-2); }
/* Pantallas informativas */
.onb-art { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.onb-mock-card { padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--accent-border); display: flex; flex-direction: column; gap: 8px; }
.onb-mock-h { display: flex; align-items: center; gap: 8px; }
.onb-mock-h > svg { width: 20px; height: 20px; color: var(--accent-fg); }
.onb-mock-h b { flex: 1; }
.onb-mock-card p { margin: 0; font-size: 15px; line-height: 1.45; }
.onb-mock-btns { display: flex; gap: 8px; }
.onb-mock-btns .btn { pointer-events: none; }
.onb-spark { width: 100%; height: auto; }
.onb-mock-toast { align-self: center; padding: 10px 16px; border-radius: var(--radius-pill); background: var(--ink-card); color: #fff; font-weight: 700; font-size: 14px; }
.onb-ring { position: relative; width: 170px; height: 170px; margin: 0 auto; }
.onb-ring svg, .onb-loader svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.onb-ring-bg { fill: none; stroke: var(--surface-3); stroke-width: 9; }
.onb-ring-fg { fill: none; stroke: var(--brand-2); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 110; }
.onb-ring span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.onb-ring small { color: var(--accent-fg); font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .06em; }
.onb-ring b { font-size: 40px; font-weight: 800; }
.onb-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.onb-feats li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.onb-feats li > span { font-size: 24px; }
.onb-feats li div { display: flex; flex-direction: column; }
.onb-feats small { color: var(--muted); font-size: 14px; }
.onb-notif { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); margin-top: 24px; }
.onb-notif img { width: 44px; height: 44px; border-radius: 12px; }
.onb-notif div { display: flex; flex-direction: column; }
.onb-notif small { color: var(--muted); font-size: 12px; }
.onb-notif span { font-size: 14px; color: var(--text-2); }
/* Creando tu plan */
.onb-loading { align-items: center; justify-content: center; text-align: center; }
.onb-loader { position: relative; width: 150px; height: 150px; }
.onb-loader b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; font-weight: 800; }
.onb-ring-run { animation: onb-ring 2.8s ease-out forwards; }
@keyframes onb-ring { from { stroke-dashoffset: 327; } to { stroke-dashoffset: 0; } }
.onb-checks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.onb-checks li { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--faint); transition: color .2s; }
.onb-checks i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--border-strong); color: transparent; transition: all .2s; }
.onb-checks i svg { width: 14px; height: 14px; stroke-width: 3; }
.onb-checks li.on { color: var(--text); font-weight: 600; }
.onb-checks li.on i { background: var(--grad-brand); border-color: transparent; color: var(--on-brand); }
/* Resultado */
.onb-kicker { margin: 0; font-weight: 800; color: var(--accent-fg); }
.onb-mine { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 20px; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; }
.onb-mine b { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.onb-mine small { font-size: 13.5px; opacity: .92; }
.onb-free { align-self: flex-start; margin-bottom: 8px; padding: 3px 10px; border-radius: var(--radius-pill); background: #fff; color: var(--c2); font-size: 12px; font-weight: 700; }
.onb-note { display: flex; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 16px; background: var(--accent-soft); color: var(--text); font-size: 14px; line-height: 1.4; }
.onb-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--accent-fg); }
.onb-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.onb-week span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 10.5px; overflow: hidden; }
.onb-week span b { font-size: 12px; color: var(--text); }
.onb-week span small { font-size: inherit; color: inherit; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.onb-week .on { background: var(--accent-soft); border: 1px solid var(--accent-border); color: var(--accent-fg); }
.onb-week .cd { border: 1px dashed var(--border-strong); color: var(--text-2); }
.onb-why { padding: 12px 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.onb-why p { margin: 0 0 6px; font-weight: 700; }
.onb-why div { display: flex; gap: 10px; padding: 7px 0; border-top: 1px solid var(--border); font-size: 14px; line-height: 1.4; color: var(--text-2); }
.onb-why div b { color: var(--text); font-weight: 700; }
.onb-why div svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--accent-fg); }
.onb-alt b .pro-badge { margin-left: 6px; vertical-align: 1px; }
.onb-alts { display: flex; flex-direction: column; gap: 8px; }
.onb-alt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.onb-alt i { width: 40px; height: 40px; border-radius: 12px; flex: none; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.onb-alt span { flex: 1; display: flex; flex-direction: column; }
.onb-alt small { color: var(--muted); font-size: 13px; }
.onb-alt > svg { width: 18px; height: 18px; color: var(--muted); }
/* ---------- Cuestionario: estilo premium oscuro ----------
   Siempre oscuro (aunque la app esté en claro): fondo con brillos naranjas, tarjetas de vidrio,
   íconos de línea propios (ONB_IC) y fotos reales en app/onb/ (ONB_READY). */
.onb {
  --bg: #0c0d10; --surface: #15171c; --surface-2: #1b1e24; --surface-3: #262a31;
  --border: rgba(255, 255, 255, .09); --border-strong: rgba(255, 255, 255, .18);
  --text: #f6f3f0; --text-2: #d2ccc7; --muted: #9b958f; --faint: #6b6662;
  --accent-soft: rgba(255, 91, 31, .14); --accent-fg: #ff8a5b; --accent-border: rgba(255, 120, 60, .45);
  --onb-glass: rgba(255, 255, 255, .045); --onb-glass-2: rgba(255, 255, 255, .08);
  --onb-sel: linear-gradient(135deg, rgba(255, 91, 31, .22), rgba(255, 138, 61, .05));
  --onb-glow: 0 10px 34px rgba(255, 91, 31, .28);
  --onb-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;
  color-scheme: dark; color: var(--text);
  background: radial-gradient(90% 45% at 100% 0%, rgba(255, 91, 31, .16), transparent 70%), radial-gradient(70% 40% at 0% 100%, rgba(255, 138, 61, .07), transparent 70%), var(--bg);
}
.onb-prog { height: 4px; background: rgba(255, 255, 255, .08); }
.onb-prog i { box-shadow: 0 0 12px rgba(255, 91, 31, .75); }
.onb .icon-btn { background: var(--onb-glass); border: 1px solid var(--border); color: var(--text); }
.onb-q { letter-spacing: -.025em; }
.onb .btn-primary:not(:disabled) { box-shadow: var(--onb-glow); }
.onb-foot { background: linear-gradient(to bottom, transparent, var(--bg) 26%); }
.onb svg .f { fill: currentColor; }

/* Opciones: vidrio + ícono o foto */
.onb-opt { gap: 14px; padding: 12px 14px; border: 1px solid var(--border); background: var(--onb-glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: border-color .2s, background .2s, box-shadow .2s, transform .15s; }
.onb-opt.on { border-color: var(--accent-border); background: var(--onb-sel); box-shadow: 0 0 0 1px rgba(255, 91, 31, .55), var(--onb-glow); }
.onb-ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--onb-glass-2); border: 1px solid var(--border); color: var(--accent-fg); transition: background .2s, color .2s; }
.onb-ico svg, .onb-kick svg, .onb-feats li > span svg, .onb-mock-toast svg, .onb-kicker svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.onb-ico svg { width: 24px; height: 24px; }
.onb-opt.on .onb-ico { background: var(--grad-brand); border-color: transparent; color: #fff; }
.onb-ck { border-width: 1.5px; }
.onb-ol b { font-size: 16.5px; font-weight: 700; }

/* Fotos (y espacio temporal mientras no exista la foto) */
.onb-photo { position: relative; display: block; overflow: hidden; background: linear-gradient(150deg, #23262d, #111317); }
.onb-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.onb-photo.ph { display: grid; place-items: center; color: rgba(255, 138, 91, .6); }
.onb-photo.ph::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 72% 18%, rgba(255, 91, 31, .24), transparent 70%), repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 10px); }
.onb-photo.ph svg { position: relative; width: 38%; max-width: 64px; height: auto; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.onb-thumb { flex: none; width: 56px; height: 56px; border-radius: 14px; border: 1px solid var(--border); }
.onb-opt.on .onb-thumb { border-color: rgba(255, 120, 60, .75); }

/* Género: dos tarjetas con foto */
.onb-sex { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.onb-sexcard { position: relative; aspect-ratio: 3 / 4; padding: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: box-shadow .2s, border-color .2s, transform .15s; }
.onb-sexcard .onb-photo { position: absolute; inset: 0; }
.onb-sexcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 9, 11, .92), transparent 55%); }
.onb-sexcard > b { position: absolute; left: 14px; bottom: 12px; z-index: 1; font-size: 18px; }
.onb-sexcard .onb-ck { position: absolute; right: 12px; top: 12px; z-index: 1; background: rgba(0, 0, 0, .35); }
.onb-sexcard.on { border-color: var(--accent-border); box-shadow: 0 0 0 2px var(--brand-2), var(--onb-glow); }
.onb-sexcard.on .onb-ck { background: var(--grad-brand); border-color: transparent; color: var(--on-brand); }
.onb-sexcard:active, .onb-opt:active, .onb-tile:active { transform: scale(.98); }

/* Lugar: tarjetas grandes con la foto de fondo */
.onb-step-place .onb-opt { position: relative; min-height: 128px; overflow: hidden; padding: 14px 16px; }
.onb-step-place .onb-thumb { position: absolute; inset: 0; width: auto; height: auto; border: 0; border-radius: 0; }
.onb-step-place .onb-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 9, 11, .92), rgba(8, 9, 11, .5) 60%, rgba(8, 9, 11, .1)); }
.onb-step-place .onb-photo.ph svg { position: absolute; right: 62px; top: 50%; width: 40px; transform: translateY(-50%); opacity: .7; }
.onb-step-place .onb-ol { padding-right: 58px; }
.onb-step-place .onb-thumb img { object-position: 65% 55%; }
.onb-step-place .onb-ol, .onb-step-place .onb-ck { position: relative; z-index: 1; }

/* Mensajes motivadores: foto grande + texto que sube */
.onb-msg { gap: 20px; }
.onb-hero-ph { height: min(46vh, 380px); border-radius: 28px; border: 1px solid var(--border); box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.onb-hero-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 13, 16, .8), transparent 45%); }
.onb-hero-ph img, .onb-wbg img { animation: onb-kb 10s ease-out forwards; }
.onb-hero-ph.ph svg { max-width: 84px; }
.onb-msg-txt { display: flex; flex-direction: column; gap: 10px; animation: onb-up .55s .12s ease both; }
.onb-msg .onb-q { font-size: 30px; }
.onb-kick { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-fg); }
.onb-kick svg { width: 18px; height: 18px; }
@keyframes onb-kb { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes onb-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Zonas a enfocar: escáner corporal */
.onb-scan { position: relative; padding: 18px 10px 12px; border-radius: 24px; border: 1px solid rgba(255, 120, 60, .22); overflow: hidden;
  background: radial-gradient(60% 50% at 50% 45%, rgba(255, 91, 31, .16), transparent 70%), linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 100% 22px, linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 22px 100%, #0e0f13; }
.onb-scan-c { position: absolute; width: 18px; height: 18px; border: 0 solid var(--brand-2); opacity: .85; }
.onb-scan-c.tl { left: 10px; top: 10px; border-width: 2px 0 0 2px; border-top-left-radius: 6px; }
.onb-scan-c.tr { right: 10px; top: 10px; border-width: 2px 2px 0 0; border-top-right-radius: 6px; }
.onb-scan-c.bl { left: 10px; bottom: 10px; border-width: 0 0 2px 2px; border-bottom-left-radius: 6px; }
.onb-scan-c.br { right: 10px; bottom: 10px; border-width: 0 2px 2px 0; border-bottom-right-radius: 6px; }
.onb-scan-line { position: absolute; left: 0; right: 0; top: -70px; height: 70px; z-index: 2; pointer-events: none; background: linear-gradient(to bottom, transparent, rgba(255, 91, 31, .14) 75%, rgba(255, 150, 100, .55)); border-bottom: 1px solid rgba(255, 170, 120, .85); animation: onb-scan 3.4s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes onb-scan { to { top: 100%; } }
.onb-scan .bm-onb { max-width: 340px; margin: 0 auto; }
.onb-scan .bm-fig svg { max-height: 280px; }
.onb-scan .bm-base { fill: rgba(255, 255, 255, .04); stroke: rgba(255, 255, 255, .16); stroke-width: .8; }
.onb-scan .bm-m { fill: rgba(255, 255, 255, .07); stroke: rgba(255, 150, 100, .3); stroke-width: .8; transition: fill .25s; }
.onb-scan .bm-m.on { fill: #ff5b1f; stroke: #ffb08a; filter: drop-shadow(0 0 5px rgba(255, 91, 31, .9)); animation: onb-pulse 2.4s ease-in-out infinite; }
.onb-scan .bodymap .bm-m[data-action]:hover:not(.on) { fill: rgba(255, 91, 31, .3); }
@keyframes onb-pulse { 50% { fill: #ff8a3d; } }
.onb-scan .bm-fig figcaption { font-family: var(--onb-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .22em; color: rgba(255, 160, 120, .75); }
.onb-scan-read { display: flex; flex-direction: column; align-items: center; gap: 3px; margin: 8px 0 0; font-family: var(--onb-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.onb-scan-read b { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-fg); font-weight: 700; }
.onb-scan-read b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 8px var(--brand-2); animation: onb-blink 1.4s infinite; }
.onb-scan-read small { font-size: 10.5px; letter-spacing: .08em; color: var(--text-2); }
@keyframes onb-blink { 50% { opacity: .25; } }
.onb .onb-chips .chip { background: var(--onb-glass); border: 1px solid var(--border); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.onb .onb-chips .chip.on { background: linear-gradient(135deg, rgba(255, 91, 31, .32), rgba(255, 138, 61, .12)); border-color: var(--accent-border); color: #fff; box-shadow: 0 0 14px rgba(255, 91, 31, .3); }

/* Días, tiempo y medidas */
.onb-day { border: 1px solid var(--border); background: var(--onb-glass); transition: background .2s, box-shadow .2s, transform .15s; }
.onb-day.on { box-shadow: var(--onb-glow); transform: translateY(-2px); }
.onb-tile { gap: 8px; padding: 18px 10px 14px; border: 1px solid var(--border); background: var(--onb-glass); transition: border-color .2s, background .2s, box-shadow .2s, transform .15s; }
.onb-tile.on { border-color: var(--accent-border); background: var(--onb-sel); box-shadow: 0 0 0 1px rgba(255, 91, 31, .55), var(--onb-glow); }
.onb-dial { position: relative; width: 78px; height: 78px; display: grid; place-items: center; }
.onb-dial svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.onb-dial .bg { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 2.6; }
.onb-dial .fg { fill: none; stroke: rgba(255, 138, 91, .45); stroke-width: 2.6; stroke-linecap: round; }
.onb-tile.on .onb-dial .fg { stroke: var(--brand-2); filter: drop-shadow(0 0 4px rgba(255, 91, 31, .8)); }
.onb-tile .onb-dial b { font-size: 26px; }
.onb-tile small { font-size: 13px; }
.onb-num { border: 1px solid var(--border); background: var(--onb-glass); }

/* Pantallas informativas, avisos y carga */
.onb-mock-card, .onb-feats li, .onb-notif { background: var(--onb-glass); border: 1px solid var(--border); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.onb-feats li > span { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-fg); }
.onb-feats li > span svg { width: 22px; height: 22px; }
.onb-mock-toast { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .08); border: 1px solid var(--border); }
.onb-mock-toast svg { width: 17px; height: 17px; color: #ffc46b; }
.onb-ring-bg { stroke: rgba(255, 255, 255, .07); }
.onb-ring-fg { filter: drop-shadow(0 0 6px rgba(255, 91, 31, .7)); }
.onb-loading { background: radial-gradient(50% 35% at 50% 35%, rgba(255, 91, 31, .14), transparent 70%); }

/* Resultado */
.onb-kicker { display: inline-flex; align-items: center; gap: 8px; }
.onb-kicker svg { width: 18px; height: 18px; }
.onb-why, .onb-alt { background: var(--onb-glass); }
.onb-mine { box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }

/* Bienvenida: foto a pantalla completa */
.onb-welcome { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 22px; }
.onb-wbg { position: fixed; inset: 0; z-index: 0; }
.onb-wbg img { object-position: 50% 20%; }
.onb-sexcard img { object-position: 50% 15%; }
.onb-wbg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 10%, rgba(12, 13, 16, .72) 42%, rgba(12, 13, 16, .12) 78%); }
.onb-wbg.ph::before { background: radial-gradient(70% 45% at 75% 22%, rgba(255, 91, 31, .3), transparent 70%), radial-gradient(50% 35% at 15% 45%, rgba(255, 138, 61, .12), transparent 70%), repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 12px); }
.onb-welcome > :not(.onb-wbg) { position: relative; z-index: 1; }
.onb-wtxt { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; animation: onb-up .6s ease both; }
.onb-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; letter-spacing: .02em; color: var(--text-2); }
.onb-brand img { width: 34px; height: 34px; border-radius: 10px; }
.onb-wtxt h1 { margin: 0; font-size: 40px; line-height: 1.04; font-weight: 800; letter-spacing: -.035em; }
.onb-wtxt h1 em { font-style: normal; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.onb-welcome .onb-foot { background: none; }
@media (prefers-reduced-motion: reduce) {
  .onb-scan-line, .onb-scan .bm-m.on, .onb-scan-read b::before, .onb-hero-ph img, .onb-wbg img { animation: none; }
}

/* "Guarda tu plan" (pantalla de cuenta al terminar el cuestionario) */
.gate-plan { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; background: var(--grad-brand); color: var(--on-brand); }
.gate-plan-ic { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .22); }
.gate-plan-ic svg { width: 24px; height: 24px; stroke-width: 3; }
.gate-plan > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gate-plan small { font-size: 13px; font-weight: 700; opacity: .9; }
.gate-plan b { font-size: 19px; font-weight: 800; }
.gate-plan-days { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.gate-plan-days i { font-style: normal; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .25); }
.gate-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gate-perks li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-2); }
.gate-perks svg { flex: none; width: 20px; height: 20px; color: var(--accent-fg); }
.gate-guest-note { margin: -6px 0 0; text-align: center; font-size: 12.5px; color: var(--faint); }

/* =========================================================
   Hazte Pro (pantalla completa)
   ========================================================= */
dialog.dlg.pw-full { width: min(520px, 100vw); max-width: 100vw; height: min(860px, 100dvh); max-height: 100dvh; padding: 0; border-radius: 28px; overflow: hidden; }
@media (max-width: 560px) { dialog.dlg.pw-full { width: 100vw; height: 100dvh; border-radius: 0; } }
.pw { height: 100%; overflow-y: auto; display: flex; flex-direction: column; background: var(--bg); }
.pw-top { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: calc(14px + env(safe-area-inset-top)) 20px 26px; background: var(--grad-brand); color: var(--on-brand); border-radius: 0 0 32px 32px; }
.pw-x { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 10px; z-index: 2; background: rgba(255, 255, 255, .2); color: var(--on-brand); border: 0; }
.pw-art { position: relative; width: 230px; height: 190px; margin-top: 8px; }
.pw-art .pw-map { width: 100%; height: 100%; }
.pw-chip { position: absolute; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--surface); color: var(--text); font-size: 13px; font-weight: 800; white-space: nowrap; }
.pw-chip.c1 { left: -28px; top: 26px; transform: rotate(-6deg); }
.pw-chip.c2 { right: -30px; top: 70px; transform: rotate(5deg); }
.pw-chip.c3 { left: -10px; bottom: 14px; transform: rotate(3deg); }
.pw-badge { margin-top: 4px; padding: 4px 14px; border-radius: var(--radius-pill); background: #1d1f24; color: #fff; font-size: 13px; font-weight: 900; letter-spacing: .12em; }
.pw-top h2 { margin: 2px 0 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.pw-top p { margin: 0; max-width: 380px; font-size: 15.5px; line-height: 1.45; opacity: .95; }
.pw-body { padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 12px; }
.pw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pw-ben { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.pw-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 21px; background: var(--accent-soft); margin-bottom: 4px; }
.pw-ben b { font-size: 15px; line-height: 1.25; }
.pw-ben small { font-size: 13px; color: var(--muted); line-height: 1.35; }
.pw-sec { margin: 8px 0 0; }
.pw-table { border-radius: 18px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.pw-tr { display: grid; grid-template-columns: 1fr 74px 96px; align-items: center; min-height: 46px; border-top: 1px solid var(--border); font-size: 14px; }
.pw-tr:first-child { border-top: 0; }
.pw-tr > span { padding: 8px 10px; }
.pw-tr > span:not(:first-child) { text-align: center; color: var(--muted); font-weight: 600; }
.pw-tr > .pw-procol { align-self: stretch; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-fg); font-weight: 800; }
.pw-th { font-size: 13px; font-weight: 800; }
.pw-th .pw-procol { background: var(--grad-brand); color: var(--on-brand); letter-spacing: .08em; }
.pw-yes { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--grad-brand); color: var(--on-brand); }
.pw-yes svg { width: 14px; height: 14px; stroke-width: 3; }
.pw-no { color: var(--faint); }
.pw-foot { position: sticky; bottom: 0; margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(to bottom, transparent, var(--bg) 18px); }
.pw-foot .pw-buy { height: var(--btn-h-lg); font-size: 17px; }
.pw-foot .pw-note { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
.pw-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-size: 13px; color: var(--text-2); }
.pw-trust span { display: inline-flex; align-items: center; gap: 4px; }
.pw-trust svg { width: 15px; height: 15px; stroke-width: 2.6; color: var(--success-1); }
.pw-legal { margin: 0; text-align: center; font-size: 12px; line-height: 1.5; color: var(--muted); }
.pw-legal a, .pw-legal .linkish { color: var(--text-2); text-decoration: underline; font-size: inherit; }
.pw-foot .pw-dev { align-self: center; font-size: 13px; color: var(--muted); }
.pw-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pw-price { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 10px 12px; border-radius: 16px; border: 2px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.pw-price.on { border-color: var(--brand-2); background: var(--accent-soft); }
.pw-price span { font-size: 14px; color: var(--muted); font-weight: 700; }
.pw-price b { font-size: 20px; }
.pw-best { position: absolute; top: -10px; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--grad-brand); color: var(--on-brand); font-size: 11px; font-weight: 800; }
.pw-art::before { content: ""; position: absolute; left: 50%; top: 50%; width: 200px; height: 200px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(255, 255, 255, .9); }
.pw-art .pw-map { position: relative; }
.sum-seg button { white-space: nowrap; font-size: 13.5px; padding-left: 6px; padding-right: 6px; }

/* =========================================================
   Calculadora de discos (plates.js)
   Colores estándar de discos de competencia (iguales en claro y oscuro)
   ========================================================= */
:root {
  --plate-25: #e23b3b; --plate-20: #2f6fe0; --plate-15: #f2c230; --plate-10: #2fa65a;
  --plate-5: #f4f4f2; --plate-2_5: #2b2d33; --plate-1_25: #b9bcc3; --plate-0_5: #d6d8dc;
  --plate-45: #2f6fe0; --plate-35: #f2c230;
}
.sl-wwrap { position: relative; display: block; min-width: 0; }
.sl-wwrap .sl-in { width: 100%; padding-right: 26px; }
.sl-plate { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border: 0; border-radius: 50%; padding: 0; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-fg); cursor: pointer; }
.sl-plate svg { width: 16px; height: 16px; }
.pl-sheet { display: flex; flex-direction: column; gap: 12px; }
.pl-h { display: flex; align-items: center; justify-content: space-between; }
.pl-h h2 { margin: 0; font-size: 20px; }
.pl-total { display: flex; align-items: center; justify-content: center; gap: 14px; }
.pl-total label { display: flex; align-items: baseline; gap: 6px; }
.pl-total input { width: 140px; border: 0; background: none; text-align: center; font: inherit; font-size: 40px; font-weight: 800; color: var(--text); outline: none; border-bottom: 2px solid var(--border); }
.pl-total input:focus { border-color: var(--brand-2); }
.pl-total span { font-size: 18px; font-weight: 700; color: var(--muted); }
.pl-step { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 22px; font-weight: 700; cursor: pointer; }
.pl-draw { padding: 8px; border-radius: 18px; background: var(--surface-2); }
.pl-svg { display: block; width: 100%; height: auto; }
.pl-bar { fill: var(--faint); }
.pl-collar { fill: var(--muted); }
.plate { stroke: rgba(0, 0, 0, .25); stroke-width: 1; }
.plate.p-25 { fill: var(--plate-25); } .plate.p-20 { fill: var(--plate-20); } .plate.p-15 { fill: var(--plate-15); } .plate.p-10 { fill: var(--plate-10); }
.plate.p-5 { fill: var(--plate-5); } .plate.p-2_5 { fill: var(--plate-2_5); } .plate.p-1_25 { fill: var(--plate-1_25); } .plate.p-0_5 { fill: var(--plate-0_5); }
.plate.p-45 { fill: var(--plate-45); } .plate.p-35 { fill: var(--plate-35); }
.plate-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .25); flex: none; }
.plate-dot.p-25 { background: var(--plate-25); } .plate-dot.p-20 { background: var(--plate-20); } .plate-dot.p-15 { background: var(--plate-15); } .plate-dot.p-10 { background: var(--plate-10); }
.plate-dot.p-5 { background: var(--plate-5); } .plate-dot.p-2_5 { background: var(--plate-2_5); } .plate-dot.p-1_25 { background: var(--plate-1_25); } .plate-dot.p-0_5 { background: var(--plate-0_5); }
.plate-dot.p-45 { background: var(--plate-45); } .plate-dot.p-35 { background: var(--plate-35); }
.pl-side { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.pl-g { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); font-weight: 800; font-size: 15px; }
.pl-per, .pl-none { color: var(--muted); font-weight: 600; font-size: 14px; }
.pl-msg { margin: 0; text-align: center; font-size: 14px; color: var(--accent-fg); }
.pl-msg:empty { display: none; }
.pl-sheet .section-label { margin: 4px 0 0; }
.pl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-av { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: var(--radius-pill); border: 1.5px solid var(--border); background: var(--surface); color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; opacity: .55; }
.pl-av.on { opacity: 1; color: var(--text); border-color: var(--brand-2); background: var(--accent-soft); }
.plate.p-5, .plate.p-0_5, .plate.p-1_25 { stroke: rgba(0, 0, 0, .55); stroke-width: 1.5; }

.pl-unitrow { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--muted); }
.pl-conv { margin: -6px 0 0; text-align: center; font-size: 14px; font-weight: 700; color: var(--accent-fg); }
.pl-conv:empty { display: none; }

/* =========================================================
   Calentamiento automático (warmup.js)
   ========================================================= */
.warm-card { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--accent-soft); border: 1px solid var(--accent-border); }
.warm-top { display: flex; align-items: flex-start; gap: 10px; }
.warm-card .warm-ic { font-size: 22px; line-height: 1.2; }
.warm-top > span:nth-child(2), .warm-on > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.warm-card b { font-size: 15px; }
.warm-card small { font-size: 14px; color: var(--text-2); }
.warm-blur { filter: blur(5px); user-select: none; }
.warm-actions { display: flex; gap: 8px; }
.warm-actions .btn { flex: 1; }
.warm-on { flex-direction: row; align-items: center; background: var(--surface); border-color: var(--border); }
.warm-on .linkish { flex: none; font-weight: 700; }
.sl-row.warm .sl-in { border-style: dashed; }

/* =========================================================
   Notas del entrenamiento (notes.js)
   ========================================================= */
.dn { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; background: var(--surface-2); text-align: left; }
.dn-q { margin: 0; font-weight: 800; font-size: 15px; }
.dn-moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.dn-mood { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 14px; border: 2px solid transparent; background: var(--surface); color: var(--muted); font: inherit; cursor: pointer; }
.dn-mood span { font-size: 24px; line-height: 1.1; }
.dn-mood small { font-size: 11px; font-weight: 700; white-space: nowrap; }
.dn-mood.on { border-color: var(--brand-2); background: var(--accent-soft); color: var(--accent-fg); }
.dn-t, .exn textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 56px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; }
.dn-t:focus, .exn textarea:focus { outline: none; border-color: var(--brand-2); }
.dn-dlg { display: flex; flex-direction: column; gap: 12px; }
.wo-topr { display: flex; align-items: center; gap: 6px; }
.wo-topr .icon-btn { font-size: 18px; }
.exn { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.exn span { font-size: 14px; font-weight: 700; color: var(--muted); }
.exn-add { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-weight: 700; }
.exn-last { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px dashed var(--border-strong); }
.exn-last p { margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.exn-last small { font-size: 12px; font-weight: 700; color: var(--muted); }
.cal-cell { position: relative; }
.dn-add { display: inline-flex; align-items: center; gap: 4px; margin: 2px 0 8px; font-weight: 700; }
.cal-day .dn { margin-bottom: 10px; }
.cd-note { color: var(--accent-fg) !important; }
.st-note { grid-column: 1 / -1; font-size: 13px; color: var(--accent-fg); padding-bottom: 4px; }
.summary .dn { margin: 4px 0; }

/* Tabla de series sin columna "Anterior" (lo de la vez pasada está en "Última vez") */
.setlog.big.no-w .sl-row { grid-template-columns: 44px 1fr 54px; }
.setlog.big.time .sl-row { grid-template-columns: 44px 1fr 1fr 50px 54px; gap: 8px; }
.setlog.big.time.no-w .sl-row { grid-template-columns: 44px 1fr 50px 54px; }

/* Nota fija del ejercicio (📌) y selector Solo hoy / Siempre */
.exn-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.exn-seg button { font-size: 13px; padding: 0 10px; }
.exn-help { font-size: 12.5px; color: var(--muted); }
.exn-pin { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--accent-border); }
.exn-pin p { flex: 1; margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.exn-pin small { font-size: 12px; font-weight: 700; color: var(--accent-fg); }
.exn-pin .linkish { flex: none; font-weight: 700; }
.exn-pin.sm { margin: 0; font-size: 14px; align-items: center; }
.exn-sheet { margin: 4px 0; }
.card-pin { margin-right: 4px; font-size: 13px; }
.dxn { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 12px; }
.dxn .section-label { margin: 0; }
.dxn-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--accent-border); background: var(--accent-soft); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.dxn-item .thumb { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.dxn-item span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dxn-item b { font-size: 14px; }
.dxn-item small { font-size: 14px; color: var(--text-2); }

/* Recordatorio para entrenar (Ajustes y cuestionario) */
.rmd-opts { display: flex; flex-direction: column; gap: 10px; padding: 10px 0 4px; }
.rmd-time { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; }
.rmd-time input { height: 42px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 17px; font-weight: 800; }
.rmd-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.rmd-days button { min-width: 0; height: 38px; padding: 0; border-radius: var(--radius-pill); border: 1.5px solid var(--border); background: var(--surface); color: var(--muted); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.rmd-days button.on { background: var(--grad-brand); border-color: transparent; color: var(--on-brand); }
.rmd-opts small { font-size: 13px; color: var(--muted); }
.onb-rtime input { width: auto; font-size: 26px; }

/* =========================================================
   Logros e insignias (achievements.js)
   Medallas: bronce, plata, oro y el naranja de la marca
   ========================================================= */
:root { --medal-b: linear-gradient(135deg, #e0a46b, #a8622b); --medal-s: linear-gradient(135deg, #eef0f4, #9aa3b2); --medal-g: linear-gradient(135deg, #ffd86b, #e0a000); }
.ach-card { margin: 0 0 16px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.ach-h { display: flex; align-items: baseline; justify-content: space-between; }
.ach-h b { font-size: 17px; font-weight: 800; }
.ach-h span { font-size: 14px; font-weight: 800; color: var(--accent-fg); }
.ach-bar, .ach-prog { height: 6px; border-radius: var(--radius-pill); background: var(--surface-3); overflow: hidden; }
.ach-bar i, .ach-prog i { display: block; height: 100%; border-radius: inherit; background: var(--grad-brand); }
.ach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 6px; margin-top: 4px; }
.ach-item { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; padding: 0; color: var(--text); font: inherit; cursor: pointer; }
.ach-item small { font-size: 11.5px; font-weight: 700; line-height: 1.2; text-align: center; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ach-item.on small { color: var(--text); }
.ach-item .ach-prog { width: 70%; height: 4px; }
.ach-medal { position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; }
.ach-medal::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); }
.ach-medal.t-b { background: var(--medal-b); } .ach-medal.t-s { background: var(--medal-s); } .ach-medal.t-g { background: var(--medal-g); } .ach-medal.t-brand { background: var(--grad-brand); }
.ach-medal.off { background: var(--surface-3); filter: grayscale(1); }
.ach-medal.off > span { opacity: .4; }
.ach-medal.off::after { border-color: transparent; }
.ach-lock { position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--muted); filter: none; }
.ach-lock svg { width: 11px; height: 11px; }
.ach-medal.big { width: 120px; height: 120px; font-size: 58px; margin: 0 auto; }
.ach-all { align-self: center; font-weight: 700; }
.ach-dlg { overflow: hidden; }
.ach-pop { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.ach-pop h2 { margin: 0; font-size: 24px; }
.ach-kicker { margin: 6px 0 0; font-weight: 800; color: var(--accent-fg); }
.ach-desc { margin: 0; color: var(--muted); }
.ach-more { margin: 0; font-weight: 700; }
.ach-when { margin: 0; font-weight: 700; color: var(--accent-fg); }
.ach-prog.big { width: 100%; height: 8px; }
.ach-pop .choice { width: 100%; margin-top: 8px; }
.ach-confetti { position: absolute; inset: -20px 0 auto; height: 0; pointer-events: none; }
.ach-confetti i { position: absolute; top: 0; left: var(--x); width: 8px; height: 14px; border-radius: 2px; background: var(--brand-2); opacity: 0; transform: rotate(var(--r)); animation: ach-fall 1.6s ease-in var(--d) forwards; }
.ach-confetti i:nth-child(3n) { background: #ffd86b; } .ach-confetti i:nth-child(3n+1) { background: var(--success-1); }
@keyframes ach-fall { 0% { opacity: 1; transform: translateY(0) rotate(var(--r)); } 100% { opacity: 0; transform: translateY(380px) rotate(calc(var(--r) + 300deg)); } }
.wk-ach { margin: 0; font-size: 15px; }
/* Logros: 3 por fila en el celular para que los nombres largos ("entrenamientos") no se encimen */
.ach-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; }
.ach-item small { font-size: 12.5px; overflow-wrap: anywhere; hyphens: auto; max-width: 100%; }
.ach-medal { width: 64px; height: 64px; font-size: 30px; }
@media (min-width: 560px) { .ach-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ach-grid { gap: 16px 4px; }
.ach-item small { font-size: 11.5px; letter-spacing: -.01em; -webkit-line-clamp: 3; }

/* =========================================================
   Modo enfoque (focus.js): siempre oscuro, letras y botones grandes
   ========================================================= */
#workout.wo-focus {
  --bg: #0e0f12; --surface: #17181d; --surface-2: #1f2127; --surface-3: #292c33;
  --border: #25272e; --border-strong: #353841; --text: #f3f3f5; --text-2: #c9cbd1; --muted: #9a9ea8; --faint: #656975;
  --accent-soft: color-mix(in srgb, var(--brand-2) 16%, transparent); --accent-fg: color-mix(in srgb, var(--brand-2) 80%, #fff);
  --accent-border: color-mix(in srgb, var(--brand-2) 45%, transparent);
  color-scheme: dark; background: var(--bg); color: var(--text);
}
.fz-tog { font-size: 18px; }
.fz-tog.on { background: var(--accent-soft); outline: 2px solid var(--brand-2); }
.fz-live { margin: 2px 0 6px; text-align: center; font-size: 15px; font-weight: 700; color: var(--muted); }
.fz-live #wo-dur { color: var(--text); }
.fz { display: flex; flex-direction: column; gap: 14px; padding: 12px 0 calc(16px + env(safe-area-inset-bottom)); }
.fz-ex { display: flex; align-items: center; gap: 12px; }
.fz-thumb { flex: none; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #fff; cursor: pointer; }
.fz-thumb img { width: 100%; height: 100%; object-fit: contain; }
.fz-ex h2 { margin: 0; font-size: 21px; line-height: 1.2; }
.fz-ex small { font-size: 14px; color: var(--muted); }
.fz-set.sl-row { display: flex; flex-direction: column; gap: 14px; padding: 18px 14px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
.fz-n { display: flex; align-items: center; gap: 10px; justify-content: center; }
.fz-n b { font-size: 20px; font-weight: 800; }
.fz-n small { font-size: 13px; color: var(--accent-fg); font-weight: 700; }
.fz-n .sl-n { width: 36px; height: 36px; border-radius: 12px; background: var(--surface-2); color: var(--text); }
.fz-row { position: relative; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; gap: 10px; }
.fz-step { height: 64px; border-radius: 20px; border: 0; background: var(--surface-2); color: var(--text); font: inherit; font-size: 32px; font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fz-step:active { background: var(--surface-3); transform: scale(.97); }
.fz-val { display: flex; align-items: baseline; justify-content: center; gap: 6px; min-width: 0; }
.fz-val .sl-in { width: 100%; min-width: 0; height: auto; border: 0; background: none; padding: 0; text-align: center; font: inherit; font-size: 48px; font-weight: 800; color: var(--text); -moz-appearance: textfield; }
.fz-val .sl-in::-webkit-outer-spin-button, .fz-val .sl-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fz-val span { font-size: 17px; font-weight: 700; color: var(--muted); flex: none; }
.fz-plate { position: absolute; right: 70px; top: -6px; transform: none; }
.fz-done { height: 68px; font-size: 20px; border-radius: 22px; }
.fz-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.fz-dot { display: flex; flex-direction: column; align-items: center; min-width: 48px; padding: 6px 8px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--border); }
.fz-dot b { font-size: 14px; }
.fz-dot small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.fz-dot.ok { border-color: transparent; background: var(--accent-soft); }
.fz-dot.ok b::before { content: "✓ "; color: var(--accent-fg); }
.fz-dot.cur { border-color: var(--brand-2); }
.fz-donecard { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px; border-radius: 24px; background: var(--surface); }
.fz-donecard span { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-brand); color: #fff; font-size: 32px; font-weight: 800; }
.fz-donecard b { font-size: 20px; }
.fz-foot { display: grid; grid-template-columns: 56px 1fr 56px; gap: 10px; }
.fz-foot .btn { height: 52px; }
.fz-note { margin: 0 0 8px; padding: 8px 12px; border-radius: 12px; background: var(--surface); font-size: 13px; color: var(--muted); text-align: center; }
#workout.wo-focus .wo-top .btn-sm { height: 36px; }
.fz-set .fz-done.sl-check { width: 100%; height: 68px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--on-brand); background: var(--grad-brand); border: 0; }
.fz-set .fz-done.sl-check svg { width: 22px; height: 22px; stroke-width: 3; }

/* =========================================================
   Encabezado del entrenamiento: X · Ejercicio N de M · Terminar,
   barra por ejercicio, botones redondos con nombre y datos en vivo
   ========================================================= */
.wo-head { display: flex; flex-direction: column; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; }
.wo-h1 { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 8px; }
.wo-x { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.wo-x svg { width: 22px; height: 22px; }
.wo-num { display: flex; flex-direction: column; align-items: center; line-height: 1.05; }
.wo-num small { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.wo-num b { font-size: 28px; font-weight: 800; }
.wo-num b span { font-size: 17px; font-weight: 700; color: var(--muted); }
.wo-end { height: 46px; padding: 0 18px; font-size: 16px; }
.wo-segs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; }
.wo-segs i { position: relative; height: 7px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.wo-segs i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--f); background: var(--grad-brand); border-radius: inherit; }
.wo-segs i.cur { outline: 2px solid var(--accent-border); outline-offset: 1px; }
.wo-acts { display: flex; justify-content: center; gap: 32px; }
.wo-act { display: flex; flex-direction: column; align-items: center; gap: 5px; border: 0; background: none; padding: 0; color: var(--muted); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.wo-act > span { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text); }
.wo-act > span svg { width: 24px; height: 24px; }
.wo-act em { font-style: normal; font-size: 26px; }
.wo-act small { font-size: 12.5px; font-weight: 700; }
.wo-act.on > span { background: var(--grad-brand); border-color: transparent; color: var(--on-brand); }
.wo-act.on small, .wo-act.has small { color: var(--accent-fg); }
.wo-act.has > span { border-color: var(--accent-border); background: var(--accent-soft); }
.wo-head .wo-live { padding: 0; }
.fz { padding-left: 16px; padding-right: 16px; }
/* Encabezado: 4 botones redondos iguales (Salir · Enfoque · Nota · Terminar) */
.wo-acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.wo-act small { white-space: nowrap; }
.wo-act.end > span { background: var(--grad-brand); border-color: transparent; color: var(--on-brand); }
.wo-act.end small { color: var(--accent-fg); }
.wo-head .wo-num { padding-top: 2px; }
/* Modo enfoque: tarjeta del ejercicio compacta (miniatura chica, nombre y nota en una línea) */
.fz-ex { gap: 10px; }
.fz-thumb { width: 44px; height: 44px; border-radius: 12px; }
.fz-ex > div { min-width: 0; }
.fz-ex h2 { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz-ex small { font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz .exn-pin { padding: 6px 10px; align-items: center; }
.fz .exn-pin p { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz .exn-pin small { display: none; }

/* Mover / recorrer rutinas (move.js) */
.mv-go { width: 100%; margin-top: 10px; }
.mv-row { display: flex; justify-content: center; margin: -4px 0 10px; }
.mv-pick { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.mv-pick svg, .mv-note svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }

/* Explorar: Planes · Sesiones · Ejercicios */
.ex-head, #view-planes .page-head.ex-head { margin-bottom: 10px; } /* mismo encabezado en las 3 pestañas de Explorar */
.seg.prog-tabs.ex-tabs { grid-template-columns: 1fr 1fr 1fr; margin-bottom: 10px; }
.seg.prog-tabs.ex-tabs button { padding: 0 6px; gap: 6px; font-size: 14px; }
.ex-sub { margin: 0 0 12px; }
.ex-rec { margin: 4px 0 14px; }

/* Explorar · Planes: carruseles por categoría */
.ex-tools { margin: 2px 0 14px; }
.ex-rows { display: flex; flex-direction: column; gap: 26px; }
.ex-rows .car-block { display: flex; flex-direction: column; gap: 10px; }
.ex-n { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: var(--radius-pill); background: var(--surface-3); color: var(--muted); font-size: 12px; font-weight: 700; vertical-align: 2px; }
.ex-fav-empty .car-h { padding: 14px 16px; border-radius: var(--radius); border: 1.5px dashed var(--border-strong); }
.ex-cat-head { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.ex-cat-head > div { display: flex; flex-direction: column; }
.ex-cat-head b { font-size: 20px; font-weight: 800; }
.ex-cat-head small { font-size: 14px; color: var(--muted); }
.ex-cat-back { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.ex-cat-back svg { width: 20px; height: 20px; }

/* Cardio libre: actividades en tarjetas + minutos */
.cf-sub { margin: -4px 0 4px; color: var(--muted); font-size: 14px; }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cf-act { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px 12px; border-radius: var(--radius); border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font: inherit; text-align: center; cursor: pointer; }
.cf-act img { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; background: #fff; }
.cf-act b { font-size: 14px; font-weight: 700; line-height: 1.2; }
.cf-act.on { border-color: var(--brand-2); background: var(--accent-soft); }
.cf-ok { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; display: none; place-items: center; background: var(--brand-2); color: #fff; }
.cf-ok svg { width: 14px; height: 14px; }
.cf-act.on .cf-ok { display: grid; }
.cf-mins { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 8px 0; }
.cf-step { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 24px; font-weight: 700; cursor: pointer; }
.cf-val { display: flex; align-items: baseline; gap: 4px; min-width: 96px; justify-content: center; }
.cf-val b { font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
.cf-val span { color: var(--muted); font-weight: 700; }
.cf-quick { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.cf-quick button { height: 34px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.cf-quick button.on { border-color: var(--brand-2); background: var(--accent-soft); color: var(--accent-fg); }

/* Mis planes / Mis sesiones (mine.js) */
.ex-mine { margin-bottom: 26px; }
.tpl-carousel .my-new { flex: 0 0 min(200px, 56%); scroll-snap-align: start; }
.my-new { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 100%; padding: 16px; border-radius: var(--radius-lg, 22px); border: 2px dashed var(--accent-border); background: var(--accent-soft); color: var(--accent-fg); font: inherit; text-align: center; cursor: pointer; }
.my-new b { font-size: 17px; font-weight: 800; color: var(--text); }
.my-new small { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; font-weight: 600; }
.my-new small svg { width: 14px; height: 14px; }
.my-new-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-brand); color: #fff; }
.my-new-ic svg { width: 24px; height: 24px; }
.sess-fav.my-share svg { fill: none; stroke: currentColor; }
.pc-model.my-active { background: rgba(255, 255, 255, .95); color: #1a1b1f; }
.my-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.my-tools .btn { height: 44px; font-size: 14px; padding: 0 6px; }
/* Crear sesión */
.dlg-mb .mb { display: flex; flex-direction: column; gap: 14px; }
.mb-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mb-steps i { height: 5px; border-radius: var(--radius-pill); background: var(--surface-3); }
.mb-steps i.on { background: var(--grad-brand); }
.mb-body { display: flex; flex-direction: column; gap: 12px; }
.mb-q { margin: 0; font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.mb-tag { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-fg); }
.mb-help { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.mb-types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mb-type { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 2px; min-height: 92px; padding: 14px; border: 0; border-radius: 18px; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; font: inherit; text-align: left; cursor: pointer; box-shadow: inset 0 0 0 3px transparent; }
.mb-type b { font-size: 18px; font-weight: 800; }
.mb-type small { font-size: 13px; opacity: .9; }
.mb-type.on { box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--brand-2); }
.mb-type:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 72px; }
.mb-parts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mb-parts li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius); background: var(--surface-2); }
.mb-parts .thumb { width: 48px; height: 48px; flex: none; }
.mb-pn { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mb-pn b { font-size: 14.5px; line-height: 1.25; }
.mb-sr { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.mb-sr input { width: 52px; height: 34px; padding: 0 6px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; text-align: center; }
.mb-pa { display: flex; gap: 2px; flex: none; }
.mb-add { width: 100%; border-style: dashed; }
.mb-row { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--radius); background: var(--surface-2); }
.mb-l { font-weight: 700; font-size: 14.5px; }
.mb-stepper { display: flex; align-items: center; gap: 18px; }
.mb-stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 22px; font-weight: 700; cursor: pointer; }
.mb-stepper b { min-width: 70px; text-align: center; font-size: 26px; font-weight: 800; }
.mb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mb-chips button { height: 38px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.mb-chips button.on { border-color: var(--brand-2); background: var(--accent-soft); color: var(--accent-fg); }
.mb-total { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 14px; }
.mb-total svg { width: 18px; height: 18px; }
.mb-total b { color: var(--text); }
.mb-sum { display: flex; flex-direction: column; gap: 3px; padding: 16px; border-radius: 18px; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; }
.mb-sum small { opacity: .9; font-weight: 700; }
.mb-sum b { font-size: 20px; font-weight: 800; }
.mb-sum span { font-size: 13px; opacity: .9; }
.mb-foot { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; position: sticky; bottom: 0; padding-top: 6px; background: var(--surface); }
.mb-foot .btn { height: 52px; }
/* Enlace listo */
.sl { display: flex; flex-direction: column; gap: 12px; }
.sl-url { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-fg); font-weight: 800; font-size: 15px; word-break: break-all; }
.sl-url svg { width: 20px; height: 20px; flex: none; }
.sl-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; }
.sl-actions .btn { height: 50px; }

/* Botón "?" junto al título de cada fila (explicación) */
.row-help { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 6px; padding: 0; border-radius: 50%; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--muted); font: inherit; font-size: 13px; font-weight: 800; line-height: 1; vertical-align: 2px; cursor: pointer; }
.row-help:hover { border-color: var(--accent-border); color: var(--accent-fg); }

/* Ficha del ejercicio: Favorito · YouTube · Compartir, músculos y alternativos */
.ex-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.ex-acts .ex-fav, .ex-act { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 64px; padding: 0 4px; border-radius: 18px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.ex-act svg { width: 20px; height: 20px; }
.ex-act:hover { border-color: var(--accent-border); color: var(--accent-fg); }
.exm { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--radius); background: var(--surface-2); }
.exm-main { display: flex; align-items: center; gap: 12px; }
.exm-main > span:last-child { display: flex; flex-direction: column; }
.exm-main small, .exm-sec small { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.exm-main b { font-size: 19px; font-weight: 800; }
.exm-dot { width: 34px; height: 34px; border-radius: 50%; flex: none; background: var(--grad-brand); box-shadow: 0 0 0 5px var(--accent-soft); }
.exm-sec { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--border); }
.exm-tag { background: var(--accent-soft); color: var(--accent-fg); border-color: transparent; }
.pd-h .row-help { text-transform: none; letter-spacing: 0; }
.exalt-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 2px 6px; margin: 0 -2px; scrollbar-width: none; }
.exalt-row::-webkit-scrollbar { display: none; }
.exalt-card { flex: 0 0 132px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.exalt-card img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 12px; background: #fff; }
.exalt-card b { font-size: 13px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.exalt-card small { color: var(--muted); font-size: 12px; }

/* Biblioteca simplificada: buscador + Filtros, atajos en una fila, panel de filtros */
.lib-search { display: flex; gap: 8px; align-items: stretch; }
.lib-search .search { flex: 1; min-width: 0; }
.lib-fbtn { position: relative; flex: none; gap: 6px; padding: 0 14px; }
.lib-fbtn.on { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent-fg); }
.lib-fbtn svg { width: 18px; height: 18px; }
.lib-toolbar .lib-scope { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 10px -16px 0; padding: 0 16px 2px; }
.lib-toolbar .lib-scope::-webkit-scrollbar { display: none; }
.lib-toolbar .lib-scope .chip { flex: none; }
.lib-active { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lib-active .chip svg, .bm-picked .chip svg { width: 13px; height: 13px; }
.lib-cta { margin: 18px 0 8px; }
.dlg-libf .lf { display: flex; flex-direction: column; gap: 6px; }
.lf-head-r { display: inline-flex; align-items: center; gap: 4px; }
.lf-go { position: sticky; bottom: 0; width: 100%; height: 54px; margin-top: 12px; box-shadow: 0 -10px 18px var(--surface); }
/* Músculos secundarios: mismo formato que el principal, en tono más suave */
.exm-2 { padding-top: 10px; border-top: 1px solid var(--border); }
.exm-2 .exm-dot { background: var(--accent-soft); box-shadow: inset 0 0 0 3px var(--brand-1); }
.exm-2 b { font-size: 16px; }

/* =========================================================
   Mapa muscular: Recuperación (recovery.js) + Volumen
   ========================================================= */
:root { --rec-ok: var(--success-1); --rec-mid: #f5a524; --rec-lo: var(--brand-2); }
.bm-m.rs-ok { fill: var(--rec-ok); }
.bm-m.rs-mid { fill: var(--rec-mid); }
.bm-m.rs-lo { fill: var(--rec-lo); }
.bm-m.rs-none { fill: var(--bm-muscle); }
.rec-card .bm-card-h b { display: inline-flex; align-items: center; }
.rec-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin: 4px 0 12px; }
.rec-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.rec-tabs .pro-lock, .rec-tabs svg { width: 14px; height: 14px; }
.rec-sum { display: flex; justify-content: center; margin-bottom: 4px; }
.rec-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.rec-pill.rs-ok { background: color-mix(in srgb, var(--rec-ok) 18%, transparent); color: var(--success-2); }
.rec-pill.rs-mid { background: color-mix(in srgb, var(--rec-mid) 20%, transparent); color: #9a5b05; }
.rec-pill.rs-lo { background: var(--accent-soft); color: var(--accent-fg); }
.rec-pill.rs-none { background: var(--surface-2); color: var(--muted); }
:root:not([data-theme="light"]) .rec-pill.rs-ok { color: var(--success-on-dark); }
:root:not([data-theme="light"]) .rec-pill.rs-mid { color: #ffc766; }
.rec-leg { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; margin: 6px 0 2px; font-size: 12.5px; color: var(--muted); }
.rec-leg span { display: inline-flex; align-items: center; gap: 5px; }
.rec-leg i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.rec-leg i.rs-ok { background: var(--rec-ok); } .rec-leg i.rs-mid { background: var(--rec-mid); } .rec-leg i.rs-lo { background: var(--rec-lo); }
.rec-leg i.rs-none { background: var(--bm-muscle); outline: 1.5px dashed var(--border-strong); }
.rec-tip { margin: 10px 0 0; padding: 10px 12px; border-radius: var(--radius); background: var(--accent-soft); font-size: 14px; line-height: 1.45; }
.rec-period { margin: 0 0 6px; color: var(--muted); font-size: 13px; text-align: center; }
.rec-rows { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; }
.rec-row { display: grid; grid-template-columns: 98px minmax(0, 1fr) 104px; align-items: center; gap: 12px; min-height: 48px; padding: 0 2px; border-bottom: 1px solid var(--border); cursor: pointer; }
.rec-row:last-child { border-bottom: 0; }
.rec-n { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-bat { height: 8px; border-radius: var(--radius-pill); background: var(--surface-2); overflow: hidden; }
.rec-bat i { display: block; height: 100%; border-radius: var(--radius-pill); }
.rec-bat.rs-ok i { background: var(--rec-ok); } .rec-bat.rs-mid i { background: var(--rec-mid); } .rec-bat.rs-lo i { background: var(--rec-lo); } .rec-bat.rs-none i { background: transparent; }
.rec-row .rec-pill { justify-content: center; width: 100%; font-variant-numeric: tabular-nums; }
.rec-alert { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 12px; border-radius: var(--radius); border: 1px solid var(--accent-border); background: var(--accent-soft); font-size: 14px; line-height: 1.4; }
.rec-alert-ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--accent-fg); }
.rec-alert-ic svg { width: 18px; height: 18px; }
.rec-alert .btn { flex: none; }
.dlg-rec .rec-card { border: 0; padding: 0; margin: 0; }

.rec-alert { flex-wrap: wrap; }
.rec-alert > span:nth-child(2) { flex: 1 1 160px; }
.rec-alert-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; flex: 1 1 100%; }
.rec-alert-btns .btn { width: 100%; justify-content: center; }
.rec-alert-btns .btn-ghost { background: var(--surface); }

/* Elegir un músculo: lo elegido se queda con su color y lo demás se atenúa */
.bm-rec .bm-m { transition: opacity .18s, fill .15s; }
.bm-rec .bm-m:focus { outline: none; }
.bm-rec.has-sel .bm-m { opacity: .22; }
.bm-rec.has-sel .bm-m.rec-sel { opacity: 1; stroke: var(--surface); stroke-width: 1.6; }
.bm-rec .bm-m.rs-none.rec-sel { fill: color-mix(in srgb, var(--text) 28%, var(--bm-muscle)); }
.rec-info { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); font-size: 14px; }
.rec-info.muted { justify-content: center; color: var(--muted); }
.rec-info.muted svg { width: 16px; height: 16px; flex: none; }
.rec-info-on { border: 1px solid var(--border); background: var(--surface); }
.rec-info-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--bm-muscle); }
.rec-info-dot.rs-ok { background: var(--rec-ok); } .rec-info-dot.rs-mid { background: var(--rec-mid); } .rec-info-dot.rs-lo { background: var(--rec-lo); }
.rec-info-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rec-info-t b { font-size: 15.5px; }
.rec-info-t small { color: var(--muted); font-size: 12.5px; }
.rec-row.on { background: var(--surface-2); border-radius: 12px; }
.rec-row.on .rec-n { color: var(--accent-fg); }
.bm-rec, .rec-rows { touch-action: manipulation; } /* tocar dos veces no hace zoom */

/* Volumen: periodo, escala y filas (mismo formato que Recuperación) */
.vol-periods { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 8px; padding: 0 16px 2px; }
.vol-periods::-webkit-scrollbar { display: none; }
.vol-periods .chip { flex: none; }
.vol-leg { align-items: center; }
.vol-scale { width: 90px !important; height: 10px !important; border-radius: var(--radius-pill) !important; background: linear-gradient(90deg, color-mix(in srgb, var(--bm-on) 25%, var(--bm-muscle)), var(--bm-on)); }
.vol-bat i { background: var(--bm-on); }
.vol-row { cursor: default; }
.rec-pill.vol-n { background: var(--accent-soft); color: var(--accent-fg); }


/* Análisis del entrenamiento (analysis.js) */
.sum-ana { width: 100%; margin-top: 12px; }
.ana-date { margin: -6px 0 6px; color: var(--muted); font-size: 14px; }
.ana-date::first-letter { text-transform: uppercase; }
.ana { display: flex; flex-direction: column; gap: 14px; }
.ana-cmp { margin: 0; font-size: 14px; color: var(--muted); }
.ana-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ana-kpis > div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: var(--radius); background: var(--surface-2); text-align: center; }
.ana-kpis span:first-child { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ana-kpis b { font-size: 18px; font-weight: 800; }
.ana-d { font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.ana-d.up { color: var(--success-2); } .ana-d.dn { color: var(--accent-fg); } .ana-d.eq, .ana-d.new { color: var(--muted); }
:root:not([data-theme="light"]) .ana-d.up { color: var(--success-on-dark); }
.ana-note { display: flex; align-items: center; gap: 6px; margin: -4px 0 0; color: var(--muted); font-size: 13.5px; }
.ana-note svg { width: 16px; height: 16px; }
.ana-sec .section-label { margin: 0 0 6px; }
.ana-mus { display: grid; grid-template-columns: 1fr; gap: 6px; }
.ana-map { max-width: 240px; margin: 0 auto; }
.ana-ex { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.ana-ex:last-child { border-bottom: 0; }
.ana-ex b { font-size: 14.5px; }
.ana-ex small { color: var(--muted); font-size: 12.5px; }
.ana-ex small:last-child { text-align: right; }
.ana-stack { display: flex; height: 12px; border-radius: var(--radius-pill); overflow: hidden; background: var(--surface-2); }
.ana-stack i { display: block; height: 100%; }
.ana-stack .z0, .ana-zleg .z0 { background: color-mix(in srgb, var(--brand-2) 70%, #000); }
.ana-stack .z1, .ana-zleg .z1 { background: var(--brand-2); }
.ana-stack .z2, .ana-zleg .z2 { background: color-mix(in srgb, var(--brand-2) 35%, var(--surface)); }
.ana-zleg { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.ana-zleg span { display: inline-flex; align-items: center; gap: 5px; }
.ana-zleg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ana-locked { position: relative; }
.ana-locked .bm-unlock { position: absolute; left: 50%; top: 160px; transform: translateX(-50%); }
/* Botones del día en el calendario de Progreso: mismo estilo que los de Hoy */
.cd-actions { margin-top: 16px; justify-content: center; }
.cd-actions .btn.btn { flex: 0 0 auto; width: auto; height: 46px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.cd-actions .btn.btn:hover { border-color: var(--border-strong); background: var(--surface-2); color: var(--text); }
.cd-actions .btn.btn-primary { border: 0; color: var(--accent-ink); background: var(--grad-brand); box-shadow: var(--shadow-btn); }
.cd-actions .btn.btn-primary:hover { background: var(--grad-brand-hover); color: var(--accent-ink); }

/* =========================================================
   Resumen unificado (recap.js)
   ========================================================= */
.sum-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 10px; }
.sum-nav b { display: flex; flex-direction: column; align-items: center; font-size: 16px; font-weight: 800; text-align: center; }
.sum-nav b small { font-size: 12px; font-weight: 700; color: var(--success-2); }
.sum-nav .icon-btn[disabled] { opacity: .3; }
.sum-full { width: 100%; margin-top: 14px; height: 46px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.sum-full svg { width: 18px; height: 18px; }
.rc { display: flex; flex-direction: column; gap: 14px; }
.rc-hero { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 22px; background: var(--grad-brand); color: #fff; }
.rc-hero span { font-size: 13px; font-weight: 700; opacity: .9; }
.rc-hero b { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.rc-hero p { margin: 0; font-size: 14.5px; font-weight: 600; opacity: .95; }
.rc-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rc-kpis > div { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: var(--radius); background: var(--surface-2); }
.rc-kpis span { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.rc-kpis b { font-size: 19px; font-weight: 800; }
.rc-kpis em { font-style: normal; font-size: 12.5px; font-weight: 800; }
.rc-kpis em.up { color: var(--success-2); } .rc-kpis em.down { color: var(--accent-fg); } .rc-kpis em.flat { color: var(--muted); font-weight: 600; }
:root:not([data-theme="light"]) .rc-kpis em.up { color: var(--success-on-dark); }
.rc-vs { margin: -6px 0 0; color: var(--muted); font-size: 12.5px; text-align: right; }
.rc-sec .section-label { margin: 0 0 8px; }
.rc-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.rc-week span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.rc-week i { width: 100%; aspect-ratio: 1; max-width: 40px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; }
.rc-week span.on i { background: var(--grad-brand); color: #fff; }
.rc-week i svg { width: 16px; height: 16px; }
.rc-week span.fut i, .rc-grid i.fut { opacity: .45; }
.rc-month { display: flex; flex-direction: column; gap: 4px; max-width: 320px; }
.rc-dow, .rc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.rc-dow span { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); }
.rc-grid i { aspect-ratio: 1; border-radius: 6px; background: var(--surface-2); display: block; }
.rc-grid i.on { background: var(--brand-2); }
.rc-grid i.pad { background: transparent; }
.rc-high p { margin: 0 0 6px; font-size: 14.5px; }
.rc-share { width: 100%; height: 52px; margin-top: 16px; }
.rc-tile { position: relative; margin: 0 0 12px; }
.rc-tile-main { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 44px 14px 14px; border: 0; border-radius: 20px; background: var(--grad-brand); color: #fff; font: inherit; text-align: left; cursor: pointer; box-shadow: var(--shadow-btn); }
.rc-tile-month .rc-tile-main { background: linear-gradient(135deg, var(--brand-2), color-mix(in srgb, var(--brand-2) 70%, #000)); }
.rc-tile-main > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.rc-tile-main small { font-size: 12.5px; opacity: .9; font-weight: 600; }
.rc-tile-main b { font-size: 16px; font-weight: 800; }
.rc-tile-main > svg { width: 20px; height: 20px; flex: none; }
.rc-tile-ic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .22); font-size: 20px; }
.rc-tile-x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; color: #fff; background: rgba(255, 255, 255, .18); }
.rc-tile-x svg { width: 15px; height: 15px; }

/* Nivel de fuerza (strength.js) */
.str-card .bm-card-h b { display: inline-flex; align-items: center; }
.str-miss { width: 100%; margin: 0 0 10px; padding: 12px; border-radius: var(--radius); border: 1.5px dashed var(--accent-border); background: var(--accent-soft); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.str-over { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; padding: 12px; border-radius: var(--radius); background: var(--accent-soft); }
.str-over > span:last-child { display: flex; flex-direction: column; }
.str-over small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.str-over b { font-size: 18px; font-weight: 800; }
.str-ic { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--grad-brand); font-size: 20px; }
.str-row { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.str-row:last-of-type { border-bottom: 0; }
.str-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.str-h b { font-size: 15px; }
.str-sub { color: var(--muted); font-size: 12.5px; }
.str-lv { flex: none; height: 24px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 800; }
.str-lv.lv0 { background: var(--surface-2); color: var(--muted); }
.str-lv.lv1 { background: color-mix(in srgb, var(--rec-mid) 22%, transparent); color: #9a5b05; }
.str-lv.lv2 { background: var(--accent-soft); color: var(--accent-fg); }
.str-lv.lv3 { background: var(--text); color: var(--surface); }
.str-lv.lv-none { background: var(--surface-2); color: var(--muted); font-weight: 700; }
:root:not([data-theme="light"]) .str-lv.lv1 { color: #ffc766; }
.str-scale { position: relative; height: 8px; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--surface-2) 0 25%, color-mix(in srgb, var(--rec-mid) 35%, var(--surface-2)) 25% 50%, color-mix(in srgb, var(--brand-2) 40%, var(--surface-2)) 50% 75%, color-mix(in srgb, var(--brand-2) 80%, var(--surface-2)) 75% 100%); }
.str-dot { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand-2); transform: translate(-50%, -50%); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.str-ticks { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 6px; font-size: 11.5px; color: var(--muted); text-align: center; }
.str-ex { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--radius); background: var(--surface-2); }
.str-ex-lock { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.str-how { margin: -2px 0 10px; color: var(--muted); font-size: 13px; }
/* Mensaje motivador sin foto: ícono grande con anillos que se expanden */
.onb-hero-ic { position: relative; height: min(40vh, 320px); display: grid; place-items: center; border-radius: 28px; border: 1px solid rgba(255, 120, 60, .2); overflow: hidden;
  background: radial-gradient(45% 45% at 50% 50%, rgba(255, 91, 31, .28), transparent 70%), linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 100% 24px, linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 24px 100%, #0e0f13; }
.onb-hero-ic span { position: relative; z-index: 1; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--grad-brand); box-shadow: 0 0 0 10px rgba(255, 91, 31, .12), 0 20px 60px rgba(255, 91, 31, .55); animation: onb-up .6s ease both; }
.onb-hero-ic span svg { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.onb-hero-ic i { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 1.5px solid rgba(255, 120, 60, .55); animation: onb-ring-out 2.8s ease-out infinite; }
.onb-hero-ic i + i { animation-delay: 1.4s; }
@keyframes onb-ring-out { from { transform: scale(1); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .onb-hero-ic i { animation: none; opacity: 0; } }
/* "¿Te identificas?": una frase a la vez */
.onb-pain { display: flex; flex-direction: column; gap: 22px; margin-top: 8px; }
.onb-pain-dots { display: flex; justify-content: center; gap: 8px; }
.onb-pain-dots i { width: 28px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); transition: background .25s; }
.onb-pain-dots i.cur { background: var(--brand-2); box-shadow: 0 0 10px rgba(255, 91, 31, .7); }
.onb-pain-dots i.y { background: rgba(255, 138, 91, .7); }
.onb-pain-dots i.n { background: rgba(255, 255, 255, .28); }
.onb-pain-card { position: relative; min-height: 220px; padding: 28px 22px; border-radius: 26px; display: flex; flex-direction: column; justify-content: center; gap: 18px; overflow: hidden; animation: onb-card .45s cubic-bezier(.2, .8, .2, 1) both;
  border: 1px solid rgba(255, 120, 60, .25); background: radial-gradient(80% 70% at 100% 0%, rgba(255, 91, 31, .22), transparent 70%), var(--onb-glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 24px 50px rgba(0, 0, 0, .35); }
.onb-pain-card p { margin: 0; font-size: 27px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.onb-pain-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-fg); }
.onb-pain-ic svg, .onb-sols li > span svg, .onb-pain-btns svg, .onb-inj-fig { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.onb-pain-ic svg { width: 24px; height: 24px; stroke-width: 1.6; }
@keyframes onb-card { from { opacity: 0; transform: translateX(40px) rotate(2deg); } to { opacity: 1; transform: none; } }
.onb-pain-btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.onb-pain-btns button { height: 58px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 16.5px; font-weight: 700; cursor: pointer; transition: transform .15s, box-shadow .2s; }
.onb-pain-btns button:active { transform: scale(.97); }
.onb-pain-btns svg { width: 18px; height: 18px; stroke-width: 2.4; }
.onb-pain-no { border: 1px solid var(--border-strong); background: var(--onb-glass); color: var(--text); }
.onb-pain-yes { border: 0; background: var(--grad-brand); color: var(--on-brand); box-shadow: var(--onb-glow); }
/* Soluciones (mensaje después de "¿Te identificas?") */
.onb-sols { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.onb-sols li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 18px; border: 1px solid var(--border); background: var(--onb-glass); animation: onb-up .5s calc(.15s + var(--i) * .12s) ease both; }
.onb-sols li > span { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; }
.onb-sols li > span svg { width: 21px; height: 21px; stroke-width: 1.7; }
.onb-sols li div { display: flex; flex-direction: column; gap: 3px; }
.onb-sols small { color: var(--muted); font-size: 13px; text-decoration: line-through; text-decoration-color: rgba(255, 138, 91, .6); }
.onb-sols b { font-size: 15px; line-height: 1.35; font-weight: 600; }
/* Molestias o lesiones: figura con el punto de la articulación */
.onb-inj { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.onb-inj-t { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px 14px; border-radius: 20px; border: 1px solid var(--border); background: var(--onb-glass); color: var(--text); font: inherit; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s, transform .15s; }
.onb-inj-t:active { transform: scale(.98); }
.onb-inj-t b { font-size: 15px; }
.onb-inj-t .onb-ck { position: absolute; right: 10px; top: 10px; width: 22px; height: 22px; }
.onb-inj-t.on { border-color: var(--accent-border); background: var(--onb-sel); box-shadow: 0 0 0 1px rgba(255, 91, 31, .55), var(--onb-glow); }
.onb-inj-t.on .onb-ck { background: var(--grad-brand); border-color: transparent; color: var(--on-brand); }
.onb-inj-fig { width: 52px; height: 78px; stroke: rgba(255, 255, 255, .38); stroke-width: 1.4; }
.onb-inj-fig .dot { fill: rgba(255, 138, 91, .35); stroke: none; }
.onb-inj-fig .dot.on { fill: #ff5b1f; filter: drop-shadow(0 0 4px rgba(255, 91, 31, .95)); animation: onb-blink 1.4s infinite; }
.onb-inj-t.on .onb-inj-fig { stroke: rgba(255, 255, 255, .7); }
.onb-step-inj .onb-opt { margin-top: 2px; }
.onb-legal { margin: 4px 2px 0; font-size: 12.5px; line-height: 1.45; color: var(--faint); }
@media (prefers-reduced-motion: reduce) { .onb-pain-card, .onb-sols li { animation: none; } }
.onb-foot:empty { display: none; }
/* Foto de fondo en cada frase de "¿Te identificas?" */
.onb-pain-card { min-height: 300px; justify-content: flex-end; }
.onb-pain-bg { position: absolute; inset: 0; z-index: 0; }
.onb-pain-bg img { object-position: 75% 40%; animation: onb-kb 9s ease-out forwards; }
.onb-pain-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 11, 14, .95) 12%, rgba(10, 11, 14, .55) 50%, rgba(10, 11, 14, .1) 85%), linear-gradient(90deg, rgba(10, 11, 14, .6), transparent 65%); }
.onb-pain-card > :not(.onb-pain-bg) { position: relative; z-index: 1; }
.onb-pain-card .onb-pain-ic { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); background: rgba(255, 91, 31, .22); }
.onb-pain-card p { text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
/* Género: "Prefiero no decirlo" solo texto */
.onb-sex-skip { align-self: center; margin-top: 6px; padding: 12px 18px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 15.5px; font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .2); text-underline-offset: 4px; }
.onb-sex-skip:active { color: var(--text); }
/* Regla deslizable de peso y estatura */
.onb-rl { padding: 16px 0 12px; border-radius: 22px; border: 1px solid var(--border); background: var(--onb-glass); overflow: hidden; }
.onb-rl-head { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 16px; }
.onb-rl-head > span { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.onb-rl-head b { display: flex; align-items: baseline; gap: 6px; font-size: 44px; font-weight: 800; letter-spacing: -.03em; color: var(--faint); font-variant-numeric: tabular-nums; transition: color .2s; }
.onb-rl-head em { font-style: normal; font-size: 17px; font-weight: 700; color: var(--muted); }
.onb-rl-head small { font-size: 12.5px; color: var(--accent-fg); }
.onb-rl.rl-on .onb-rl-head b { color: var(--text); }
.onb-rl.rl-on .onb-rl-head small { visibility: hidden; }
.onb-rl-track { position: relative; margin-top: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; outline: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); }
.onb-rl-track::-webkit-scrollbar { display: none; }
.onb-rl-track.drag { cursor: grabbing; scroll-snap-type: none; }
.onb-rl-strip { display: flex; align-items: flex-start; width: max-content; height: 62px; padding: 0 calc(50% - 5px); }
.onb-rl-strip i { position: relative; flex: none; width: 10px; height: 100%; scroll-snap-align: center; }
.onb-rl-strip i::before { content: ""; position: absolute; left: 50%; top: 0; width: 1.5px; height: 14px; margin-left: -.75px; border-radius: 2px; background: rgba(255, 255, 255, .22); }
.onb-rl-strip i.mid::before { height: 20px; background: rgba(255, 255, 255, .35); }
.onb-rl-strip i.big::before { height: 28px; width: 2px; margin-left: -1px; background: rgba(255, 255, 255, .6); }
.onb-rl-strip i span { position: absolute; left: 50%; top: 36px; transform: translateX(-50%); font-size: 12px; font-weight: 600; color: var(--muted); }
.onb-rl { position: relative; }
.onb-rl::after { content: ""; position: absolute; left: 50%; bottom: 46px; width: 3px; height: 38px; margin-left: -1.5px; border-radius: 3px; background: var(--brand-2); box-shadow: 0 0 12px rgba(255, 91, 31, .9); pointer-events: none; }
.onb-rl-track:focus-visible { box-shadow: inset 0 0 0 2px var(--accent-border); }
/* Tiempo: "min" dentro del anillo */
.onb-dial { flex-direction: column; }
.onb-dial b { line-height: 1; }
.onb-dial small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.onb-tile > small { font-weight: 600; color: var(--text-2); }
/* Molestias con foto (cuando exista onb-inj-*.webp) */
.onb-inj-t.has-ph { aspect-ratio: 1; padding: 0; justify-content: flex-end; overflow: hidden; }
.onb-inj-t.has-ph .onb-inj-ph { position: absolute; inset: 0; }
.onb-inj-t.has-ph .onb-inj-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 9, 11, .9), transparent 55%); }
.onb-inj-t.has-ph > b { position: relative; z-index: 1; padding: 0 0 12px; }
.onb-inj-t.has-ph .onb-ck { z-index: 1; background: rgba(0, 0, 0, .35); }
.onb-inj-t.has-ph.on .onb-ck { background: var(--grad-brand); }
/* Resultado más limpio: semana dentro de la tarjeta, etiquetas y "por qué" plegado */
.onb-result { gap: 14px; }
.onb-result .onb-q { font-size: 32px; }
.onb-mine { padding: 18px 18px 14px; border-radius: 26px; gap: 4px; }
.onb-mine b { font-size: 24px; }
.onb-mine-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin-top: 12px; }
.onb-mine-week span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 6px; border-radius: 12px; background: rgba(0, 0, 0, .18); color: rgba(255, 255, 255, .5); overflow: hidden; }
.onb-mine-week b { font-size: 13px; font-weight: 800; color: rgba(255, 255, 255, .55); }
.onb-mine-week small { max-width: 100%; font-size: 9.5px; font-weight: 600; opacity: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.onb-mine-week .on { background: rgba(255, 255, 255, .95); color: var(--c2); }
.onb-mine-week .on b { color: #1a1206; }
.onb-mine-week .cd { background: rgba(255, 255, 255, .22); color: #fff; }
.onb-mine-week .cd b { color: #fff; }
.onb-result .onb-note { padding: 10px 12px; font-size: 13.5px; }
.onb-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.onb-tags span { padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--onb-glass); font-size: 13px; font-weight: 600; color: var(--text-2); }
details.onb-why { padding: 0 14px; }
details.onb-why summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 0; list-style: none; cursor: pointer; font-weight: 700; color: var(--text); }
details.onb-why summary::-webkit-details-marker { display: none; }
details.onb-why summary svg { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
details.onb-why[open] summary svg { transform: rotate(180deg); }
details.onb-why > div:last-child { padding-bottom: 12px; }
/* Pro en momentos de logro (tarjeta oscura, se distingue de los avisos naranjas) */
.pm-tile .rc-tile-main { background: radial-gradient(90% 120% at 100% 0%, rgba(255, 91, 31, .35), transparent 60%), var(--ink-card); }
.pm-tile .rc-tile-ic { background: var(--grad-brand); }
.pm-tile .rc-tile-ic svg { width: 22px; height: 22px; }
.pm-tile .rc-tile-main small { color: #ffb08a; opacity: 1; }
.pm-tile .rc-tile-main em { font-style: normal; font-size: 12.5px; opacity: .75; }
.pm-tile .rc-tile-main em i { font-style: normal; font-weight: 800; letter-spacing: .06em; color: #ff8a5b; }

/* =========================================================
   Estilo 3 — oscuro premium (por defecto). Un solo acento (naranja) en distintas
   intensidades, tarjetas de vidrio, brillos y fondo con luces naranjas.
   El modo claro no cambia (salvo "hoy" en naranja, igual que en oscuro).
   ========================================================= */
/* Hoy / día actual en naranja (antes verde) en los dos temas */
:root, :root[data-theme="light"] {
  --success-1: var(--brand-1);
  --success-2: var(--brand-2);
  --success-ring: var(--brand-2);
  --success-on-dark: #ff9a66;
}
:root:not([data-theme="light"]) {
  --bg: #0c0d10;
  --solid: #15171c;          /* fondos que deben ser opacos: ventanas, menús, barras fijas */
  --solid-2: #1c1e24;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .07);
  --surface-3: rgba(255, 255, 255, .11);
  --border: rgba(255, 255, 255, .085);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #f6f3f0; --text-2: #d2ccc7; --muted: #9b958f; --faint: #6b6662;
  --accent-soft: rgba(255, 91, 31, .15);
  --accent-fg: #ff8a5b;
  --accent-border: rgba(255, 120, 60, .42);
  /* Un solo color: los acentos secundarios pasan a ser intensidades de naranja */
  --violet: #ffb08a; --violet-soft: rgba(255, 176, 138, .14);
  --teal: #ff8a3d;   --teal-soft: rgba(255, 138, 61, .14);
  --blue: #ff6a2b;   --blue-soft: rgba(255, 106, 43, .14);
  --pink: #ff5b1f;   --pink-soft: rgba(255, 91, 31, .14);
  --grad-amrap: linear-gradient(135deg, #ff8a3d, #c2410c);
  --shadow-btn: 0 10px 28px rgba(255, 91, 31, .35);
  --glow: 0 0 0 3px rgba(255, 91, 31, .16), 0 0 16px rgba(255, 91, 31, .65);
  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, .04);
  --ink-card: #1a1b20;
  --nav-bg: rgba(20, 21, 26, .72);
  --hero-bg: radial-gradient(90% 120% at 100% 0%, rgba(255, 91, 31, .28), transparent 60%), linear-gradient(160deg, #1d1e24, #131418);
  --hero-text: #f6f3f0; --hero-sub: #d2ccc7; --hero-faint: #9b958f;
  --hero-chip: rgba(255, 255, 255, .08); --hero-chip-text: #ffd2bd;
  --hero-ring-track: rgba(255, 255, 255, .08); --hero-ring-hole: #141519;
  --hero-thumb-more: rgba(255, 255, 255, .08);
  --hero-shadow: inset 0 0 0 1px rgba(255, 120, 60, .22), 0 18px 40px rgba(0, 0, 0, .45);
  --chart-bar: #ff5b1f; --chart-bar-soft: rgba(255, 91, 31, .4);
  --bm-skin: rgba(255, 255, 255, .06); --bm-muscle: rgba(255, 255, 255, .1); --bm-on: #ff5b1f; --bm-sec: #a8554c;
}
/* Fondo con luces naranjas (fijo detrás de todo) */
:root:not([data-theme="light"]) body {
  background: radial-gradient(90% 45% at 100% 0%, rgba(255, 91, 31, .13), transparent 70%), radial-gradient(70% 40% at 0% 100%, rgba(255, 138, 61, .06), transparent 70%), var(--bg) fixed;
  background-attachment: fixed;
}
/* Lo que se pinta encima de otras cosas necesita fondo opaco */
:root:not([data-theme="light"]) .dlg,
:root:not([data-theme="light"]) .mb-foot,
:root:not([data-theme="light"]) .gate { background: var(--solid); }
:root:not([data-theme="light"]) .menu { background: var(--solid-2); }
:root:not([data-theme="light"]) .dlg { border-color: rgba(255, 255, 255, .1); background: radial-gradient(80% 40% at 100% 0%, rgba(255, 91, 31, .1), transparent 70%), var(--solid); }
/* Menú de abajo / lateral: vidrio */
:root:not([data-theme="light"]) .nav { -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); }
:root:not([data-theme="light"]) .nav-links a.active { background: rgba(255, 91, 31, .18); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 120, 60, .45), 0 0 16px rgba(255, 91, 31, .3); }
:root:not([data-theme="light"]) .nav-links a.active svg { color: #ff8a5b; filter: drop-shadow(0 0 5px rgba(255, 91, 31, .8)); }
/* Botones y selecciones con brillo */
:root:not([data-theme="light"]) .seg button.on { background: rgba(255, 91, 31, .2); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 120, 60, .5); }
:root:not([data-theme="light"]) .chip.on { box-shadow: 0 0 12px rgba(255, 91, 31, .3); }
/* Semana: hoy en naranja con brillo, días hechos en naranja suave */
:root:not([data-theme="light"]) .ws-day:not(.active):not(.done) .ws-n { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08) !important; }
:root:not([data-theme="light"]) .ws-day.done:not(.active) .ws-n { background: rgba(255, 91, 31, .22); color: #ffb08a; box-shadow: inset 0 0 0 1px rgba(255, 120, 60, .45) !important; }
:root:not([data-theme="light"]) .ws-day.today:not(.active):not(.done) .ws-n { color: #fff; box-shadow: inset 0 0 0 2px var(--brand-2), 0 0 14px rgba(255, 91, 31, .55) !important; }
:root:not([data-theme="light"]) .ws-day.done.today:not(.active) .ws-n { box-shadow: inset 0 0 0 2px var(--brand-2), 0 0 14px rgba(255, 91, 31, .55) !important; }
:root:not([data-theme="light"]) .ws-day.active .ws-n { background: var(--grad-brand); color: #fff; box-shadow: var(--glow) !important; }
/* Tarjetas de la rutina de hoy y portadas: un solo color (oscuro → naranja profundo) */
:root:not([data-theme="light"]) [style*="--c1"] { --c1: #2a2c33 !important; --c2: #8a2f0c !important; }
/* Miniaturas de ejercicios (fondo blanco): un poco menos de brillo para no deslumbrar */
:root:not([data-theme="light"]) img.still, :root:not([data-theme="light"]) .thumb, :root:not([data-theme="light"]) .ex-thumb img { filter: brightness(.88); }
/* Gráficas y anillos con brillo */
:root:not([data-theme="light"]) .ch-line { filter: drop-shadow(0 0 4px rgba(255, 91, 31, .85)); }
:root:not([data-theme="light"]) .th2-ring, :root:not([data-theme="light"]) .th-ring { filter: drop-shadow(0 0 10px rgba(255, 91, 31, .35)); }
/* Etiquetas de sección: más finas y espaciadas */
:root:not([data-theme="light"]) .section-label { letter-spacing: .12em; color: var(--muted); }
/* Explorar: foto de fondo detrás del título y las pestañas (solo tema oscuro) */
#view-planes, #view-ejercicios { position: relative; isolation: isolate; }
.ex-hero-bg { position: absolute; z-index: -1; top: calc(-22px - env(safe-area-inset-top)); left: -18px; right: -18px; height: calc(250px + env(safe-area-inset-top)); background: center 40% / cover no-repeat; opacity: .95;
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent); mask-image: linear-gradient(to bottom, #000 35%, transparent); pointer-events: none; }
.ex-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(12, 13, 16, .2), rgba(12, 13, 16, .55)); }
:root[data-theme="light"] .ex-hero-bg { display: none; }
@media (min-width: 861px) { .ex-hero-bg { top: -28px; left: -36px; right: -36px; height: 280px; } }
:root:not([data-theme="light"]) .ex-tabs { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); background: rgba(12, 13, 16, .45); }
/* Botón de Google: siempre blanco con texto oscuro (sus colores oficiales) */
.btn.btn-google { background: #fff; color: #1f1f1f; border-color: transparent; }
.btn.btn-google:hover { background: #f2f2f2; }
/* =========================================================
   Pantalla Pro: siempre oscura premium (como el cuestionario), foto de encabezado,
   íconos de línea, vidrio y brillos naranjas.
   ========================================================= */
dialog.dlg.pw-full {
  --bg: #0c0d10; --surface: rgba(255, 255, 255, .045); --surface-2: rgba(255, 255, 255, .07); --surface-3: rgba(255, 255, 255, .11);
  --border: rgba(255, 255, 255, .09); --border-strong: rgba(255, 255, 255, .18);
  --text: #f6f3f0; --text-2: #d2ccc7; --muted: #9b958f; --faint: #6b6662;
  --accent-soft: rgba(255, 91, 31, .15); --accent-fg: #ff8a5b; --accent-border: rgba(255, 120, 60, .45);
  color-scheme: dark; color: var(--text); background: #0c0d10; border: 0;
}
dialog.dlg.pw-full .pw { background: radial-gradient(80% 30% at 100% 35%, rgba(255, 91, 31, .12), transparent 70%), #0c0d10; }
.pw-top { min-height: 300px; justify-content: flex-end; padding-bottom: 20px; background: none; color: var(--text); overflow: hidden; isolation: isolate; }
.pw-hero-img { position: absolute; inset: 0; z-index: -1; background: url(bg/explore-planes.webp) center 40% / cover no-repeat; animation: onb-kb 12s ease-out forwards; }
.pw-hero-img::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 45%, rgba(255, 91, 31, .18), transparent 70%), linear-gradient(to bottom, rgba(12, 13, 16, .35), rgba(12, 13, 16, .55) 45%, #0c0d10 96%); }
.pw-x { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .12); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pw-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; background: var(--grad-brand); color: #fff; box-shadow: 0 0 0 4px rgba(255, 91, 31, .16), 0 10px 30px rgba(255, 91, 31, .55); }
.pw-badge svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.pw-badge i { margin-left: 4px; padding-left: 8px; border-left: 1px solid rgba(255, 255, 255, .45); font-style: normal; font-weight: 700; letter-spacing: .04em; text-transform: none; }
.pw-top h2 { font-size: 30px; text-shadow: 0 2px 20px rgba(0, 0, 0, .6); }
.pw-top p { color: var(--text-2); opacity: 1; }
.pw-ben { position: relative; background: var(--surface); border-color: var(--border); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pw-ic { background: var(--accent-soft); color: var(--accent-fg); border: 1px solid rgba(255, 120, 60, .25); font-size: 0; }
.pw-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pw-ok { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-brand); color: #fff; box-shadow: 0 0 10px rgba(255, 91, 31, .6); }
.pw-ok svg { width: 13px; height: 13px; stroke-width: 3; }
.pw-table { background: var(--surface); border-color: var(--border); }
.pw-tr > span.pw-procol { background: rgba(255, 91, 31, .1); color: #ffb08a; }
.pw-tr.pw-th > span.pw-procol { background: var(--grad-brand); color: #fff; box-shadow: 0 0 18px rgba(255, 91, 31, .45); }
.pw-yes { box-shadow: 0 0 10px rgba(255, 91, 31, .55); }
.pw-price { background: var(--surface); border: 1px solid var(--border-strong); }
.pw-price.on { border-color: var(--accent-border); background: linear-gradient(135deg, rgba(255, 91, 31, .2), rgba(255, 138, 61, .05)); box-shadow: 0 0 0 1px rgba(255, 91, 31, .55), 0 10px 30px rgba(255, 91, 31, .28); }
.pw-foot { background: linear-gradient(to bottom, transparent, #0c0d10 26%); }
.pw-foot .pw-buy { box-shadow: 0 10px 30px rgba(255, 91, 31, .45); }
/* Tabla Gratis vs Pro: columnas iguales para los valores y textos que caben */
.pw-tr { grid-template-columns: minmax(0, 1fr) 84px 84px; min-height: 48px; }
.pw-tr > span:first-child { display: flex; flex-direction: column; gap: 2px; padding: 9px 8px 9px 12px; font-size: 14px; line-height: 1.3; }
.pw-tr > span:first-child small { font-size: 11.5px; line-height: 1.3; color: var(--muted); font-weight: 500; }
.pw-tr > span:not(:first-child) { padding: 8px 4px; font-size: 12px; line-height: 1.25; }
.pw-th { min-height: 40px; }
/* Tabla: cada fila se despliega (acordeón) con la explicación de la función */
.pw-tr[data-pwi] { cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .2s; }
.pw-tr[data-pwi]:hover, .pw-tr.open { background: rgba(255, 255, 255, .03); }
.pw-tr > span:first-child { display: block; }
.pw-chev { display: inline-flex; vertical-align: -2px; margin-left: 5px; color: var(--faint); transition: transform .25s, color .2s; }
.pw-chev svg { width: 14px; height: 14px; stroke-width: 2.4; }
.pw-tr.open .pw-chev { transform: rotate(180deg); color: var(--accent-fg); }
.pw-tr > span.pw-desc { grid-column: 1 / -1; display: none; padding: 0 14px 12px 12px; text-align: left; font-size: 12.5px; font-weight: 500; line-height: 1.45; color: var(--muted); }
.pw-tr.open > span.pw-desc { display: block; animation: onb-up .3s ease both; }
.pw-tr[data-pwi]:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent-border); }
/* La flecha va a la derecha del nombre, centrada, para que nunca quede sola en otra línea */
.pw-tr > span:first-child { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 6px; }
.pw-chev { flex: none; margin-left: 0; vertical-align: 0; }

/* =========================================================
   Íconos de línea en festejos, caritas y logros (sin emojis) + popups animados
   ========================================================= */
.ic-line { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic-line .f { fill: currentColor; stroke: none; }

/* Resumen: insignia que aparece con brillo, anillos que se expanden y chispas */
.sum-hero { position: relative; display: grid; place-items: center; width: 132px; height: 132px; margin: 4px auto 6px; font-size: 0; }
.sh-badge { position: relative; z-index: 2; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--grad-brand);
  box-shadow: 0 0 0 8px rgba(255, 91, 31, .14), 0 16px 44px rgba(255, 91, 31, .55); animation: shPop .6s cubic-bezier(.3, 1.6, .5, 1) both; }
.sh-badge .ic-line { width: 46px; height: 46px; stroke-width: 2.4; }
.sh-badge .ic-draw { stroke-dasharray: 24; stroke-dashoffset: 24; animation: shDraw .5s .35s ease-out forwards; }
.sh-ring { position: absolute; inset: 20px; border-radius: 50%; border: 2px solid rgba(255, 120, 60, .6); animation: shRing 1.6s .3s ease-out infinite; }
.sh-ring + .sh-ring { animation-delay: 1.1s; }
.sum-hero:not(.full) .sh-ring { animation-iteration-count: 1; }
.sh-spark { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #ff8a3d; box-shadow: 0 0 8px #ff5b1f; opacity: 0;
  transform: rotate(var(--a)) translateY(0); animation: shSpark .8s calc(.25s + var(--d)) ease-out forwards; }
.sum-hero:not(.full) .sh-spark { display: none; }
@keyframes shPop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes shDraw { to { stroke-dashoffset: 0; } }
@keyframes shRing { from { transform: scale(.8); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
@keyframes shSpark { 0% { opacity: 1; transform: rotate(var(--a)) translateY(-30px) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-66px) scale(.4); } }
.summary h2 { text-align: center; }
.sum-pr-ic { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-fg); }
.sum-pr-ic .ic-line { width: 19px; height: 19px; }

/* Caritas: línea gris; la elegida en naranja con brillo y un pequeño salto */
.dn-mood { color: var(--muted); border-width: 1px; background: var(--surface); transition: color .2s, background .2s, box-shadow .2s, transform .15s; }
.dn-mood span { display: grid; place-items: center; font-size: 0; }
.dn-mood .ic-line { width: 30px; height: 30px; stroke-width: 1.5; }
.dn-mood:active { transform: scale(.94); }
.dn-mood.on { color: #fff; border-color: var(--accent-border); background: linear-gradient(135deg, rgba(255, 91, 31, .32), rgba(255, 138, 61, .1)); box-shadow: 0 0 0 1px rgba(255, 91, 31, .5), 0 8px 22px rgba(255, 91, 31, .3); }
.dn-mood.on span { animation: moodPop .45s cubic-bezier(.3, 1.6, .5, 1); }
.dn-mood.on .ic-line { color: #ff8a5b; filter: drop-shadow(0 0 5px rgba(255, 91, 31, .8)); }
.dn-mood.on small { color: var(--text); }
:root[data-theme="light"] .dn-mood.on { color: var(--accent-fg); }
:root[data-theme="light"] .dn-mood.on small { color: var(--accent-fg); }
@keyframes moodPop { 0% { transform: scale(.7); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.wo-act em .ic-line { width: 24px; height: 24px; color: var(--accent-fg); }

/* Medallas de logros: ícono de línea blanco */
.ach-medal > span { display: grid; place-items: center; color: #fff; font-size: 0; }
.ach-medal > span .ic-line { width: 30px; height: 30px; stroke-width: 1.8; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25)); }
.ach-medal.big > span .ic-line { width: 56px; height: 56px; stroke-width: 1.7; }
.ach-medal.off > span { color: var(--muted); }
.ach-dlg .ach-medal.big { animation: shPop .7s cubic-bezier(.3, 1.6, .5, 1) both; box-shadow: 0 0 0 10px rgba(255, 91, 31, .12), 0 18px 50px rgba(255, 91, 31, .45); }
.ach-dlg .ach-medal.big .ic-line { animation: achShine 2.4s 1s ease-in-out infinite; }
@keyframes achShine { 50% { filter: drop-shadow(0 0 8px rgba(255, 255, 255, .9)); } }

/* Popups: entran con escala, desenfoque y un ícono que salta */
.dlg[open] { animation: dlgIn .32s cubic-bezier(.2, .9, .3, 1.15) backwards; }
.dlg::backdrop { animation: dlgFade .25s ease-out both; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(14px) scale(.94); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes dlgFade { from { opacity: 0; } }
.dlg-ask .ask-icon { animation: shPop .5s .08s cubic-bezier(.3, 1.6, .5, 1) both; box-shadow: 0 0 0 6px rgba(255, 91, 31, .1), 0 10px 28px rgba(255, 91, 31, .3); }
:root[data-theme="light"] .dlg-ask .ask-icon { box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  .sh-badge, .sh-ring, .sh-spark, .dn-mood.on span, .ach-dlg .ach-medal.big, .ach-dlg .ach-medal.big .ic-line, .dlg[open], .dlg-ask .ask-icon { animation: none; }
  .sh-badge .ic-draw { animation: none; stroke-dashoffset: 0; }
}
.rc-tile-ic .ic-line { width: 22px; height: 22px; stroke-width: 1.8; }
/* Cronómetro de descanso: la tarjeta necesita fondo sólido (las superficies del tema oscuro son translúcidas) */
:root:not([data-theme="light"]) .rest-timer:not(.mini):not(.blk-timer) { background: rgba(5, 6, 8, .78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
:root:not([data-theme="light"]) .rt-card { background: radial-gradient(90% 60% at 50% 0%, rgba(255, 91, 31, .16), transparent 70%), var(--solid); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
:root:not([data-theme="light"]) .rt-min { background: rgba(255, 255, 255, .08); }

/* =========================================================
   Mapa muscular realista + colores propios de recuperación y volumen
   (aquí sí hay varios colores: el color ES la información)
   ========================================================= */
:root, :root[data-theme="light"] {
  --rec-ok: #2fd39f;   /* listo */
  --rec-mid: #ffc14d;  /* casi listo */
  --rec-lo: #ff4d4d;   /* descansando */
  --vl-1: #8c2d10;     /* volumen poco */
  --vl-2: #ff5b1f;     /* medio */
  --vl-3: #ff9a4d;     /* bueno */
  --vl-4: #ffe08a;     /* mucho */
}
:root[data-theme="light"] { --rec-ok: #13a77a; --rec-mid: #e09a12; --rec-lo: #e23a3a; --vl-4: #f2b300; }
/* Figura */
.bm-realmap { gap: 6px; }
.bm-real svg { aspect-ratio: auto; max-height: 360px; overflow: visible; }
.bm-sm .bm-real svg, .bm-realmap.bm-sm .bm-real svg { max-height: 300px; }
.bm-real image { filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .25)); }
.bm-real .bm-m { fill: transparent; stroke: none; mix-blend-mode: color; transition: fill .3s, opacity .3s, filter .3s; }
.bm-real .bm-m.rs-ok, .bm-real .bm-m.rs-mid, .bm-real .bm-m.rs-lo, .bm-real .bm-m.on, .bm-real .bm-m.sec, .bm-real .bm-m.heat, .bm-real .bm-m[class*="vl-"] { mix-blend-mode: overlay; opacity: 1; }
.bm-real .bm-m.rs-ok { fill: var(--rec-ok); color: var(--rec-ok); }
.bm-real .bm-m.rs-mid { fill: var(--rec-mid); color: var(--rec-mid); }
.bm-real .bm-m.rs-lo { fill: var(--rec-lo); color: var(--rec-lo); }
.bm-real .bm-m.rs-none { fill: transparent; }
.bm-real .bm-m.on { fill: #ff5b1f; color: #ff5b1f; }
.bm-real .bm-m.sec { fill: #ff9a4d; color: #ff9a4d; opacity: .55; }
.bm-real .bm-m.heat { fill: #ff5b1f; color: #ff5b1f; opacity: calc(.25 + var(--h) * .75); }
.bm-real .bm-m.vl-1 { fill: var(--vl-1); color: var(--vl-1); }
.bm-real .bm-m.vl-2 { fill: var(--vl-2); color: var(--vl-2); }
.bm-real .bm-m.vl-3 { fill: var(--vl-3); color: var(--vl-3); }
.bm-real .bm-m.vl-4 { fill: var(--vl-4); color: var(--vl-4); }
.bodymap.bm-real .bm-m[data-action]:focus-visible { outline: none; stroke: #fff; stroke-width: 4; }
.bm-real figcaption { font-size: 10.5px; letter-spacing: .22em; }
/* Volumen en la figura de líneas (tema claro) */
.bm-m.vl-1 { fill: var(--vl-1); } .bm-m.vl-2 { fill: var(--vl-2); } .bm-m.vl-3 { fill: var(--vl-3); } .bm-m.vl-4 { fill: var(--vl-4); }
/* Leyendas, etiquetas y barras con los mismos colores */
.rec-leg i.rs-ok { background: var(--rec-ok); box-shadow: 0 0 6px var(--rec-ok); }
.rec-leg i.rs-mid { background: var(--rec-mid); box-shadow: 0 0 6px var(--rec-mid); }
.rec-leg i.rs-lo { background: var(--rec-lo); box-shadow: 0 0 6px var(--rec-lo); }
.rec-leg i.vl-1 { background: var(--vl-1); } .rec-leg i.vl-2 { background: var(--vl-2); } .rec-leg i.vl-3 { background: var(--vl-3); }
.rec-leg i.vl-4 { background: var(--vl-4); box-shadow: 0 0 6px var(--vl-4); }
.rec-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.rec-pill.rs-ok { background: color-mix(in srgb, var(--rec-ok) 16%, transparent); color: var(--rec-ok); }
.rec-pill.rs-mid { background: color-mix(in srgb, var(--rec-mid) 16%, transparent); color: var(--rec-mid); }
.rec-pill.rs-lo { background: color-mix(in srgb, var(--rec-lo) 16%, transparent); color: var(--rec-lo); }
:root:not([data-theme="light"]) .rec-pill.rs-ok { color: #5fe3b7; }
:root:not([data-theme="light"]) .rec-pill.rs-mid { color: #ffd37a; }
:root:not([data-theme="light"]) .rec-pill.rs-lo { color: #ff8a8a; }
.rec-bat.rs-ok i { background: var(--rec-ok); } .rec-bat.rs-mid i { background: var(--rec-mid); } .rec-bat.rs-lo i { background: var(--rec-lo); }
.rec-info-dot.rs-ok { background: var(--rec-ok); } .rec-info-dot.rs-mid { background: var(--rec-mid); } .rec-info-dot.rs-lo { background: var(--rec-lo); }
.rec-pill.vol-n.vl-1 { background: color-mix(in srgb, var(--vl-1) 22%, transparent); color: #e0703f; }
.rec-pill.vol-n.vl-2 { background: color-mix(in srgb, var(--vl-2) 16%, transparent); color: #ff8a5b; }
.rec-pill.vol-n.vl-3 { background: color-mix(in srgb, var(--vl-3) 16%, transparent); color: #ffb27a; }
.rec-pill.vol-n.vl-4 { background: color-mix(in srgb, var(--vl-4) 16%, transparent); color: #ffe08a; }
.vol-bat.vl-1 i { background: var(--vl-1); } .vol-bat.vl-2 i { background: var(--vl-2); } .vol-bat.vl-3 i { background: var(--vl-3); } .vol-bat.vl-4 i { background: var(--vl-4); }
.vol-help { font-size: 12px; color: var(--muted); }
/* Resaltado al pasar el mouse solo en computadora (en el celular el "hover" se queda pegado y tapaba el color del músculo tocado) */
@media (hover: hover) { .bodymap.bm-realmap .bm-m[data-action]:hover:not(.on):not(.rec-sel):not([class*="rs-"]):not([class*="vl-"]) { fill: rgba(255, 255, 255, .5); mix-blend-mode: overlay; opacity: 1; } }
.bm-realmap.bm-rec.has-sel .bm-m.rec-sel { stroke: #fff; stroke-width: 6; opacity: 1; }
.bm-realmap.bm-rec .bm-m.rs-none.rec-sel { fill: rgba(255, 255, 255, .55); }
.bm-realmap.bm-rec.has-sel .bm-m:not(.rec-sel) { opacity: .15 !important; }
/* Modo claro: la figura realista sobre fondo claro */
:root[data-theme="light"] .bm-real image { filter: brightness(1.45) drop-shadow(0 8px 18px rgba(30, 25, 20, .22)); }
:root[data-theme="light"] .bm-real figcaption { color: var(--muted); }

/* Escáner del cuestionario con la figura realista: holograma tenue + zonas elegidas que brillan */
.onb-scan .bm-realmap { gap: 4px; }
.onb-scan .bm-real svg { max-height: 300px; }
.onb-scan .bm-real image { filter: brightness(.82) contrast(1.05) sepia(.25) hue-rotate(-12deg); opacity: .92; }
.onb-scan .bm-real .bm-m:not(.on) { fill: rgba(255, 140, 90, .08); mix-blend-mode: overlay; }
.onb-scan .bm-real .bm-m.on { fill: #ff5b1f; mix-blend-mode: overlay; opacity: 1; animation: onbMus 2.2s ease-in-out infinite; filter: none; stroke: none; }
.onb-scan .bm-real .bm-m.on + .bm-m.on { animation-delay: .1s; }
@keyframes onbMus { 0%, 100% { fill: #ff5b1f; } 50% { fill: #ffb08a; } }
.onb-scan .bm-real figcaption { font-family: var(--onb-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .22em; color: rgba(255, 160, 120, .75); }
@media (prefers-reduced-motion: reduce) { .onb-scan .bm-real .bm-m.on { animation: none; } }
/* Nivel de fuerza: pedir el peso en la misma tarjeta y de dónde sale cada 1RM */
.str-bw { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 10px 12px; border-radius: var(--radius); border: 1px dashed var(--accent-border); background: var(--accent-soft); }
.str-bw > span { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 700; font-size: 14px; }
.str-bw > span small { font-weight: 500; font-size: 12px; color: var(--muted); }
.str-bw input { width: 74px; height: 40px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font: inherit; font-size: 17px; font-weight: 800; text-align: center; }
.str-bw em { font-style: normal; font-weight: 700; color: var(--muted); }
.str-src { display: block; margin-top: 2px; font-size: 11.5px; color: var(--accent-fg); }
.str-ic .ic-line { width: 22px; height: 22px; }
.str-ex-lock .ic-line { width: 18px; height: 18px; vertical-align: -3px; }
/* Nivel de fuerza: guía de 3 pasos y acceso directo a cada ejercicio */
.str-steps { margin: 0 0 12px; padding: 12px 14px 12px 34px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; line-height: 1.4; color: var(--text-2); }
.str-steps li::marker { color: var(--accent-fg); font-weight: 800; }
.str-steps b { color: var(--text); }
.str-row.str-empty .str-sub b { color: var(--text); }
.str-go { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 8px; padding: 6px 10px 6px 6px; border-radius: 14px; border: 1px solid var(--accent-border); background: var(--accent-soft); color: var(--accent-fg); font: inherit; font-size: 13.5px; font-weight: 700; text-align: left; cursor: pointer; }
.str-go span:not(.str-go-img) { flex: 1; }
.str-go > svg { width: 16px; height: 16px; }
.str-go-img { width: 42px; height: 42px; flex: none; border-radius: 10px; overflow: hidden; background: #fff; }
.str-go-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Progreso: 6 accesos (se ve una sección a la vez) */
.pg-hub { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 14px; }
.pg-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 10px 10px 9px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s, transform .15s; }
.pg-tile:active { transform: scale(.97); }
.pg-ic { width: 30px; height: 30px; margin-bottom: 4px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-fg); }
.pg-ic .ic-line { width: 18px; height: 18px; stroke-width: 1.8; }
.pg-tile b { font-size: 14px; font-weight: 800; }
.pg-tile small { max-width: 100%; font-size: 11.5px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-tile.on { border-color: var(--accent-border); background: linear-gradient(135deg, color-mix(in srgb, var(--brand-2) 22%, transparent), color-mix(in srgb, var(--brand-1) 6%, transparent)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand-2) 50%, transparent); }
:root:not([data-theme="light"]) .pg-tile.on { box-shadow: 0 0 0 1px rgba(255, 91, 31, .5), 0 8px 22px rgba(255, 91, 31, .25); }
.pg-tile.on .pg-ic { background: var(--grad-brand); color: #fff; }
.pg-tile.on small { color: var(--accent-fg); }
.pg-panel { animation: onb-up .3s ease both; }
.pg-panel > .bm-card, .pg-panel > section { margin-top: 0; }
.pg-panel .mini-stats { margin-bottom: 10px; }
/* Resumen: gráfica por día plegada */
.sum-more { margin-top: 10px; border-top: 1px solid var(--border); }
.sum-more summary { display: flex; align-items: center; gap: 8px; padding: 12px 2px 4px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--text-2); }
.sum-more summary::-webkit-details-marker { display: none; }
.sum-more summary span { flex: 1; }
.sum-more summary svg { width: 18px; height: 18px; color: var(--accent-fg); }
.sum-more summary svg:last-child { color: var(--muted); transition: transform .2s; }
.sum-more[open] summary svg:last-child { transform: rotate(180deg); }
.sum-more[open] .vchart { animation: onb-up .3s ease both; }
/* Progreso: el resumen no hereda el festejo de "Entrenamiento completado" y queda compacto */
.sum-card .sum-hero { display: flex; flex-direction: column; align-items: center; width: auto; height: auto; margin: 0; font-size: inherit; gap: 0; }
.sum-card .sum-stats div { padding: 8px 10px; }
.sum-card .sum-full { margin-top: 0; height: 42px; }
.sum-card .sum-more { margin-top: 0; }
/* Récords en Progreso: nombre completo del ejercicio (hasta 2 líneas) */
.sum-pr.pr-row > span:nth-child(2) b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }

/* Compartir: vista previa con nombre y fondo */
.share-frame { position: relative; }
.share-img { background: #0c0d10; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.share-busy { position: absolute; inset: 0; border-radius: 18px; background: rgba(12, 13, 16, .45) ; }
.share-busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: var(--brand-2, #ff5b1f); animation: sh-spin .8s linear infinite; }
@keyframes sh-spin { to { transform: rotate(360deg); } }
.share-opts { display: flex; flex-direction: column; gap: 10px; }
.share-name { width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-size: 15px; }
.share-bg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.share-bg button { height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.share-bg button.on { background: var(--accent, #ff5b1f); color: #fff; }
.share-card .sl-url { display: flex; align-items: center; gap: 8px; }
.share-card .sl-url span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Ajustes agrupados ---------- */
.settings-v2 { gap: 10px; }
.settings-v2 .set-sec { display: flex; align-items: center; gap: 8px; margin: 14px 2px 0; }
.settings-v2 .set-sec svg { width: 16px; height: 16px; }
.set-group { display: flex; flex-direction: column; padding: 0 16px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); }
.set-group > .set-row, .set-group .prof-acc .set-row { padding: 14px 0; border-top: 1px solid var(--border); }
.set-group > .set-row:first-child { border-top: 0; }
.set-group > .set-row.set-link { padding: 14px 0; }
.prof { padding: 16px; gap: 14px; }
.prof-top { display: flex; align-items: center; gap: 14px; }
.prof-av { position: relative; flex: none; width: 68px; height: 68px; padding: 0; border: 0; border-radius: 50%; background: linear-gradient(135deg, #ff8a3d, #e2490f); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px rgba(255, 122, 61, .9); cursor: pointer; }
.prof-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.prof-av > span { display: grid; place-items: center; width: 100%; height: 100%; color: #fff; font-size: 28px; font-weight: 800; }
.prof-av > span svg { width: 30px; height: 30px; }
.prof-av i { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--solid, #1a1b20); border: 1px solid var(--border); color: var(--text); }
.prof-av i svg { width: 14px; height: 14px; }
.prof-id { min-width: 0; display: flex; flex-direction: column; }
.prof-id b { font-size: 19px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prof-id small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prof-f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.prof-f.wide { grid-column: 1 / -1; }
.prof-f > span:first-child { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.prof-f input, .prof-f select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 15px; min-width: 0; }
.prof-num { position: relative; display: block; }
.prof-num input { padding-right: 44px; }
.prof-num em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 13px; color: var(--muted); pointer-events: none; }
.prof-acc .set-row { border-top: 1px solid var(--border); padding-bottom: 0 !important; }

/* Hoy: compartir el entrenamiento */
.today-hero .th2-share { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; backdrop-filter: blur(8px); }
.today-hero .th2-share svg { width: 18px; height: 18px; }
.today-hero .th2-share span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Mapa de recuperación: el músculo elegido se nota aunque no lo hayas entrenado */
.bm-realmap.bm-rec.has-sel .bm-m.rec-sel:not(.rs-ok):not(.rs-mid):not(.rs-lo) { fill: rgba(255, 255, 255, .26) !important; mix-blend-mode: normal !important; stroke: #fff; stroke-width: 7; stroke-linejoin: round; filter: drop-shadow(0 0 14px rgba(255, 255, 255, .55)); }
.bm-realmap.bm-rec.has-sel .bm-m.rec-sel { animation: recSel 1.6s ease-in-out infinite; }
@keyframes recSel { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .bm-realmap.bm-rec.has-sel .bm-m.rec-sel { animation: none; } }

/* ---------- Análisis: ejercicios y tipo de series más claros ---------- */
.ana-hint { margin: -2px 0 8px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.ana-ex2 { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.ana-ex2:last-child { border-bottom: 0; }
.ana-ex2-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ana-ex2-h b { font-size: 15px; line-height: 1.3; }
.ana-b { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.ana-b.up { background: color-mix(in srgb, var(--brand-2, #ff5b1f) 18%, transparent); color: var(--accent-fg); }
.ana-b.dn { background: color-mix(in srgb, #ff4d4d 14%, transparent); color: #ff8080; }
.ana-b.new { color: var(--text-2); }
.ana-cmp2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ana-cmp2 > div { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); min-width: 0; }
.ana-cmp2 > div:first-child { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-2, #ff5b1f) 35%, transparent); }
.ana-cmp2 span { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ana-cmp2 b { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ana-cmp2 .none b { color: var(--muted); font-weight: 600; }
.ana-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--muted); }
.ana-meta svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
.ana-meta i { font-style: normal; opacity: .6; }
.ana-zmsg { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--brand-2, #ff5b1f) 10%, transparent); font-size: 13.5px; line-height: 1.45; color: var(--text); }
.ana-z { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.ana-z:last-child { border-bottom: 0; }
.ana-z.off { opacity: .5; }
.ana-z-t { display: flex; flex-direction: column; min-width: 0; }
.ana-z-t b { font-size: 14.5px; } .ana-z-t small { font-size: 12.5px; color: var(--muted); }
.ana-z-v { display: flex; align-items: baseline; gap: 4px; } .ana-z-v b { font-size: 18px; font-weight: 800; } .ana-z-v small { font-size: 12px; color: var(--muted); }
.ana-z-bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.ana-z-bar i { display: block; height: 100%; border-radius: 6px; }
.ana-z-bar .z0 { background: color-mix(in srgb, var(--brand-2) 70%, #000); } .ana-z-bar .z1 { background: var(--brand-2); } .ana-z-bar .z2 { background: color-mix(in srgb, var(--brand-2) 45%, #ffd27a); }

.ana-cmp2 small { font-size: 12px; color: var(--muted); }
.ana-work { font-size: 13px; font-weight: 700; }
.ana-work.up { color: var(--accent-fg); } .ana-work.dn { color: #ff8080; }

/* ---------- Tarjetas con foto (rutinas y sesiones) ---------- */
.pc.pc-v2 { background: #0c0d10 !important; color: #fff; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 14px 30px rgba(0, 0, 0, .35); isolation: isolate; }
.pc-v2 .pc-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: 70% 30%; transition: transform .5s ease; }
.pc-v2:hover .pc-bg { transform: scale(1.04); }
.pc-v2::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 11, 14, .96) 0%, rgba(10, 11, 14, .82) 34%, rgba(10, 11, 14, .25) 68%, rgba(10, 11, 14, .05) 100%),
    linear-gradient(0deg, rgba(10, 11, 14, .9) 0%, rgba(10, 11, 14, 0) 55%),
    radial-gradient(120% 90% at 0% 100%, color-mix(in srgb, var(--t) 42%, transparent) 0%, transparent 60%); }
.pc-v2::after { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--t); box-shadow: 0 0 14px var(--t); pointer-events: none; }
.pc-v2 .pc-art { display: none; }
.pc-v2 .pc-txt { width: 72%; color: #fff; }
.pc-v2 .pc-focus { color: var(--t); opacity: 1; filter: brightness(1.15); }
.pc-v2 .pc-name { font-size: 21px; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.pc-v2 .pc-meta { color: rgba(255, 255, 255, .78); }
.pc-v2 .pc-meta .flames i.on { color: var(--t); }
.pc-v2 .pc-days { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pc-v2 .pc-days small { color: rgba(255, 255, 255, .7); }
.pc-v2 .pc-model { background: color-mix(in srgb, var(--t) 85%, #000) !important; color: #fff; box-shadow: none; }
.pc-v2 .pc-model { background: rgba(12, 13, 16, .55) !important; border: 1px solid color-mix(in srgb, var(--t) 60%, transparent); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); gap: 6px; }
.pc-v2 .pc-model::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--t); box-shadow: 0 0 8px var(--t); }
.pc-wrap:has(.pc-v2) .sess-fav { background: rgba(12, 13, 16, .5); border: 1px solid rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: none; }
.pc-v2 .pc-focus { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

.pc-v2 .pc-model.my-active { background: rgba(12, 13, 16, .55) !important; color: #fff; border-color: rgba(47, 211, 159, .6); }
.pc-v2 .pc-model.my-active::before { background: #2fd39f; box-shadow: 0 0 8px #2fd39f; }
.pc.my-new { background: rgba(255, 255, 255, .03) !important; border: 1.5px dashed rgba(255, 255, 255, .18) !important; color: var(--text); box-shadow: none; }
.pc.my-new .my-new-ic { background: color-mix(in srgb, var(--brand-2, #ff5b1f) 18%, transparent); color: var(--accent-fg); }
:root[data-theme="light"] .pc.my-new { background: var(--surface) !important; border-color: var(--border) !important; }

/* ---------- Tarjetas con foto: más variedad (tinte del color propio + encuadre distinto) ---------- */
.pc-v2 .pc-bg { transform: scale(var(--z, 1)); transform-origin: var(--o, 70% 30%); }
.pc-v2:hover .pc-bg { transform: scale(calc(var(--z, 1) * 1.04)); }
.pc-v2 .pc-bg::before, .pc-v2 .pc-bg::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.pc-v2 .pc-bg::after { background: var(--t); mix-blend-mode: color; opacity: .38; }
.pc-v2 .pc-bg::before { background: radial-gradient(90% 120% at 85% 20%, var(--t), transparent 65%); mix-blend-mode: soft-light; opacity: .55; }

/* Crear sesión: tipos con foto */
.mb-type { position: relative; overflow: hidden; isolation: isolate; background: #0c0d10 !important; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.mb-type .mb-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: 75% 35%; transition: transform .4s ease; }
.mb-type .mb-bg::after { content: ""; position: absolute; inset: 0; background: var(--t); mix-blend-mode: color; opacity: .35; }
.mb-type::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(10, 11, 14, .92) 0%, rgba(10, 11, 14, .35) 70%, rgba(10, 11, 14, .15) 100%),
    radial-gradient(110% 90% at 0% 100%, color-mix(in srgb, var(--t) 45%, transparent), transparent 60%); }
.mb-type:hover .mb-bg { transform: scale(1.05); }
.mb-type.on { box-shadow: inset 0 0 0 2px var(--t), 0 0 0 2px var(--t), 0 0 18px color-mix(in srgb, var(--t) 55%, transparent) !important; }
.mb-type.on .mb-bg { transform: scale(1.06); }
.mb-type:last-child:nth-child(odd) .mb-bg { background-position: 70% 40%; }

/* ---------- Ficha de rutina/sesión: encabezado con la foto de su tarjeta ---------- */
.pd-hero.pd-v2 { height: 270px; background: #0c0d10; isolation: isolate; }
.pd-v2 .pc-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: 70% 30%; transform: scale(var(--z, 1)); transform-origin: var(--o, 70% 30%); }
.pd-v2 .pc-bg::before, .pd-v2 .pc-bg::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.pd-v2 .pc-bg::after { background: var(--t); mix-blend-mode: color; opacity: .38; }
.pd-v2 .pc-bg::before { background: radial-gradient(90% 120% at 85% 20%, var(--t), transparent 65%); mix-blend-mode: soft-light; opacity: .55; }
.pd-v2::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 11, 14, .85) 0%, rgba(10, 11, 14, .35) 55%, rgba(10, 11, 14, .05) 100%),
    linear-gradient(0deg, rgba(10, 11, 14, .95) 0%, rgba(10, 11, 14, 0) 60%),
    radial-gradient(110% 90% at 0% 100%, color-mix(in srgb, var(--t) 40%, transparent), transparent 60%); }
.pd-v2::after { content: ""; position: absolute; left: 0; bottom: 22px; height: 64px; width: 3px; border-radius: 0 3px 3px 0; background: var(--t); box-shadow: 0 0 14px var(--t); }
.pd-v2 .pd-title { background: none; padding: 60px 22px 22px; }
.pd-v2 .pd-title small { color: var(--t); filter: brightness(1.15); opacity: 1; }
.pd-v2 .pd-title h2 { text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.pd-v2 .pd-close { background: rgba(12, 13, 16, .5); color: #fff; border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pd-v2 .sess-fav { background: rgba(12, 13, 16, .5); color: #fff; border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: none; }

.mb-pn .mb-unit { display: block; margin-top: 2px; font-size: 12px; font-weight: 700; color: var(--accent-fg); }

/* ---------- Ficha: datos rápidos (vidrio, ícono en el tono de la rutina) ---------- */
.pd-stats.pd-stats2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pd-st { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); text-align: left; }
.pd-st-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--t, var(--accent-fg)); background: color-mix(in srgb, var(--t, #ff5b1f) 16%, transparent); }
.pd-st-ic svg { width: 22px; height: 22px; }
.pd-st-ic .pd-bars rect { fill: none; stroke: currentColor; stroke-width: 1.4; }
.pd-st-ic .pd-bars rect.f { fill: currentColor; }
.pd-st-t { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.pd-st-t b { font-size: 16px; font-weight: 800; color: var(--text); line-height: 1.2; overflow-wrap: anywhere; }
.pd-st-t small { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.pd-st .flames { display: inline-flex; gap: 2px; }
.pd-st .flames svg { width: 18px; height: 18px; }
.pd-st .flames i { color: var(--faint, #4a4d55); }
.pd-st .flames i.on { color: var(--t, var(--accent-fg)); }
@media (min-width: 700px) { .pd-stats.pd-stats2 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Ficha: zonas que trabaja (mapa + barras) ---------- */
.pd-zones { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); }
.pd-zmap .bodymap { margin: 0; }
.pd-zmap svg { max-height: 190px !important; }
.pd-zmap .bm-cap, .pd-zmap .bm-label { display: none; }
.pd-zbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pd-zbars li { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: baseline; }
.pd-zbars span { font-size: 13.5px; font-weight: 700; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-zbars em { font-style: normal; font-size: 12.5px; font-weight: 800; color: var(--t, var(--accent-fg)); }
.pd-zbars i { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.pd-zbars i b { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--t, #ff5b1f) 55%, transparent), var(--t, #ff5b1f)); }
@media (max-width: 360px) { .pd-zones { grid-template-columns: 110px 1fr; } }
/* Anula el estilo anterior de los cuadros de datos */
.pd-stats.pd-stats2 > div.pd-st { flex-direction: row; align-items: center; gap: 12px; padding: 12px; text-align: left; background: var(--surface) !important; color: var(--text); }
.pd-stats.pd-stats2 .pd-st span { text-transform: none; letter-spacing: 0; color: inherit; font-size: inherit; font-weight: inherit; }
.pd-stats.pd-stats2 .pd-st .pd-st-ic { color: var(--t, var(--accent-fg)); }
.pd-stats.pd-stats2 .pd-st b { color: var(--text) !important; font-size: 16px; }
.pd-stats.pd-stats2 .pd-st small { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: none; letter-spacing: 0; }
.pd-stats.pd-stats2 > div.pd-st { gap: 10px; padding: 11px 12px; }
.pd-stats.pd-stats2 .pd-st-ic { width: 34px; height: 34px; border-radius: 11px; }
.pd-stats.pd-stats2 .pd-st-ic svg { width: 20px; height: 20px; }
.pd-stats.pd-stats2 .pd-st b { font-size: 15px; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }

/* Primera vez con un ejercicio: encuentra tu peso */
.wo-first { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--brand-2, #ff5b1f) 35%, transparent); background: color-mix(in srgb, var(--brand-2, #ff5b1f) 9%, var(--surface)); font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.wo-first p { margin: 0; }
.wo-first b { color: var(--text); }
.wf-h { display: flex; align-items: flex-start; gap: 8px; color: var(--text); }
.wf-h > svg { flex: none; width: 20px; height: 20px; color: var(--accent-fg); margin-top: 1px; }
.wf-h > b { font-size: 14.5px; }
.wf-goal { padding-left: 10px; border-left: 2px solid var(--accent-fg); }
.wf-tip { font-size: 12.5px; color: var(--muted); }
.wo-first.wf-ok { border-color: color-mix(in srgb, var(--rec-ok, #2fd39f) 40%, transparent); background: color-mix(in srgb, var(--rec-ok, #2fd39f) 9%, var(--surface)); }
.wo-first.wf-ok .wf-h > svg { color: var(--rec-ok, #2fd39f); }
.wo-first.wf-down .wf-h > svg { color: #ff8080; }

/* ---------- Centro de ayuda ---------- */
.help-dlg { width: min(640px, 100vw); max-width: 100vw; height: min(860px, 100dvh); max-height: 100dvh; padding: 0; overflow: hidden; }
.help-dlg[open] { display: flex; flex-direction: column; }
@media (max-width: 700px) { .help-dlg { width: 100vw; height: 100dvh; border: 0; border-radius: 0; margin: 0; } }
.help-head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 10px 18px; border-bottom: 1px solid var(--border); }
.help-head h2 { flex: 1; min-width: 0; margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.help-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 18px 32px; overscroll-behavior: contain; }
.help-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 48px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); margin-bottom: 16px; }
.help-search > span { display: flex; color: var(--muted); }
.help-search svg { width: 18px; height: 18px; }
.help-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 16px; }
.help-cats, .help-list { display: flex; flex-direction: column; gap: 8px; }
.help-cat, .help-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.help-cat:hover, .help-row:hover { border-color: var(--border-strong); }
.help-cat > svg, .help-row > svg { flex: none; width: 18px; height: 18px; color: var(--muted); }
.help-cat-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--accent-fg); background: color-mix(in srgb, var(--brand-2) 15%, transparent); }
.help-cat-ic svg { width: 22px; height: 22px; }
.help-cat-t, .help-row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.help-cat-t b, .help-row-t b { font-size: 15px; font-weight: 700; line-height: 1.3; }
.help-cat-t small, .help-row-t small { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.help-cat em { flex: none; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.help-lead { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.help-empty { padding: 28px 8px; text-align: center; color: var(--muted); }
.help-pro { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; font-size: 10px; font-weight: 800; letter-spacing: .04em; vertical-align: 2px; color: var(--on-brand, #fff); background: var(--grad-brand); }
.help-art { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.help-art h3 { margin: 0 0 12px; font-size: 22px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; color: var(--text); }
.help-art b { color: var(--text); }
.help-art p { margin: 0 0 12px; }
.help-art ul { margin: 0 0 14px; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 7px; }
.help-art ul.help-steps { list-style: none; padding: 0; counter-reset: st; gap: 10px; }
.help-art ul.help-steps > li { counter-increment: st; position: relative; padding-left: 34px; }
.help-art ul.help-steps > li::before { content: counter(st); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12.5px; font-weight: 800; color: var(--accent-fg); background: color-mix(in srgb, var(--brand-2) 15%, transparent); }
.help-h { margin: 18px 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.help-art > .help-h:first-of-type { margin-top: 16px; }
.help-ex { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; border-left: 3px solid var(--accent-fg); background: var(--surface-2); font-size: 14px; }
.help-note { padding: 10px 12px; border-radius: 12px; font-size: 13px; color: var(--muted); background: var(--surface-2); }
.help-where, .help-tip { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); font-size: 14px; color: var(--text); }
.help-tip { border-color: color-mix(in srgb, var(--brand-2) 35%, transparent); background: color-mix(in srgb, var(--brand-2) 8%, var(--surface)); }
.help-where > svg, .help-tip > svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--accent-fg); }
.help-where span, .help-tip span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.help-where small, .help-tip small { font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.help-term { border-radius: 14px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.help-term button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border: 0; background: none; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.help-term button b { flex: 1; font-size: 15px; font-weight: 700; }
.help-term button svg { flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform .15s; }
.help-term.on button svg { transform: rotate(180deg); }
.help-term p { margin: 0; padding: 0 14px 14px; font-size: 14px; line-height: 1.5; color: var(--text-2); }

/* Enlace a la ayuda: "Más información" */
.help-more { display: inline-flex; align-items: center; gap: 5px; padding: 3px 0; border: 0; background: none; color: var(--accent-fg); font: inherit; font-size: 13px; font-weight: 700; line-height: 1.3; text-align: left; cursor: pointer; }
.help-more svg { flex: none; width: 14px; height: 14px; }
.help-more span { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.ask-text .help-more { margin-top: 10px; }
.pg-more { margin: 10px 2px 0; }
.set-row .l .help-more { display: inline-flex; font-size: 12.5px; }
.pd > .help-more, .pd-body > .help-more { align-self: flex-start; }
.warm-card > .help-more { margin: 4px 0; }
.add-row + .help-more, #view-rutinas .help-more { margin-top: 12px; }

/* Centro de ayuda: "Dónde está" con íconos */
.help-where em.hw { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 5px; font-style: normal; margin-top: 3px; }
.hw-step { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 5px !important; padding: 3px 9px; border-radius: 8px; font-size: 13px; font-weight: 700; background: var(--surface-2); }
.hw-step svg { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--accent-fg); }
.hw-sep { display: inline-flex; color: var(--muted); }
.hw-sep svg { width: 13px; height: 13px; }
/* Centro de ayuda: ilustraciones */
.hf { margin: 4px 0 16px; }
.hf figcaption { margin-top: 7px; font-size: 12.5px; line-height: 1.4; color: var(--muted); text-align: center; }
.hf-stage { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 13px; overflow: hidden; }
.hf-stage svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hf-on { outline: 2px solid var(--brand-2); outline-offset: 2px; border-radius: 9px; box-shadow: 0 0 14px color-mix(in srgb, var(--brand-2) 45%, transparent); color: var(--accent-fg); }
.hf-nav, .hf-acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.hf-nav span, .hf-acts span { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.hf-nav svg { width: 22px; height: 22px; color: var(--accent-fg); }
.hf-nav small, .hf-acts small { font-size: 11px; font-weight: 600; line-height: 1.2; }
.hf-acts i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-style: normal; background: var(--surface); border: 1px solid var(--border); }
.hf-top { display: flex; align-items: center; justify-content: space-between; font-size: 16px; }
.hf-round { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; }
.hf-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 11px; background: var(--surface); }
.hf-tabs span { flex: 1; padding: 6px 4px; border-radius: 8px; font-size: 12.5px; font-weight: 700; text-align: center; color: var(--muted); }
.hf-tabs span.on { color: var(--on-brand, #fff); background: var(--grad-brand); }
.hf-table { display: flex; flex-direction: column; gap: 6px; }
.hf-tr { display: grid; grid-template-columns: 44px 1fr 1fr 44px; gap: 8px; align-items: center; text-align: center; }
.hf-tr > span { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 34px; border-radius: 9px; background: var(--surface); font-weight: 700; }
.hf-th > span { min-height: 0; background: none; font-size: 11px; font-weight: 700; color: var(--muted); }
.hf-w i { display: inline-grid; place-items: center; padding: 2px; font-style: normal; }
.hf-w svg { width: 16px; height: 16px; }
.hf-ck svg { width: 16px; height: 16px; }
.hf-types { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; font-size: 12px; }
.hf-types span { display: inline-flex; align-items: center; gap: 5px; }
.hf-types b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; font-size: 11px; color: var(--accent-fg); background: color-mix(in srgb, var(--brand-2) 16%, transparent); }
.hf-bar { display: flex; align-items: center; justify-content: center; height: 66px; }
.hf-bar i { display: block; font-style: normal; }
.hf-sleeve { width: 26px; height: 8px; border-radius: 3px; background: var(--muted); }
.hf-shaft { flex: 1; max-width: 170px; height: 6px; position: relative; background: var(--muted); }
.hf-shaft small { position: absolute; left: 0; right: 0; top: 10px; font-size: 11px; text-align: center; color: var(--muted); white-space: nowrap; }
.hf-plate { display: grid !important; place-items: center; width: 22px; height: 62px; border-radius: 5px; font-size: 10.5px; font-weight: 800; color: #fff; background: var(--grad-brand); }
.hf-total { margin: 0 !important; text-align: center; font-size: 13.5px; }
.hf-rest { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hf-rest > b { font-size: 26px; font-weight: 800; }
.hf-rest div { display: flex; gap: 8px; }
.hf-rest span { padding: 6px 12px; border-radius: 9px; font-weight: 700; background: var(--surface); }
.hf-ss { display: flex; flex-direction: column; align-items: stretch; }
.hf-card { padding: 9px 12px; border-radius: 10px; font-weight: 700; background: var(--surface); }
.hf-link { display: flex; justify-content: center; margin: 2px 0; color: var(--accent-fg); }
.hf-link svg { width: 15px; height: 15px; }
.hf-toggle { display: flex; align-items: center; gap: 8px; padding: 9px 10px; }
.hf-toggle > span { flex: 1; min-width: 0; color: var(--text); }
.hf-toggle u { flex: none; width: 32px; height: 18px; border-radius: 10px; position: relative; background: var(--brand-2); }
.hf-toggle u::after { content: ""; position: absolute; right: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.hf-menu { display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.hf-menu span { display: flex; align-items: center; gap: 8px; padding: 6px; font-size: 12.5px; }
.hf-menu svg { flex: none; width: 15px; height: 15px; color: var(--muted); }
.hf-plan { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; color: var(--text); }
.hf-plan span { display: flex; flex-direction: column; }
.hf-plan small { font-size: 11px; color: var(--muted); }
.hf-form { display: flex; flex-direction: column; gap: 8px; }
.hf-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.hf-fields span { display: flex; flex-direction: column; gap: 1px; padding: 7px 10px; border-radius: 9px; background: var(--surface); }
.hf-fields small { font-size: 11px; color: var(--muted); }
.hf-sug p { display: flex; gap: 8px; margin: 0 0 8px !important; }
.hf-sug p svg { flex: none; color: var(--accent-fg); }
.hf-sug div { display: flex; gap: 6px; }
.hf-sug div span { flex: 1; padding: 7px 4px; border-radius: 9px; font-size: 12px; font-weight: 700; text-align: center; background: var(--surface); }
.hf-sug div span.on { color: var(--on-brand, #fff); background: var(--grad-brand); }
.hf-rec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.hf-rec span { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.hf-rec i { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--faint, #6b6f78); }
.hf-rec i.ok { background: var(--rec-ok, #2fd39f); }
.hf-rec i.mid { background: var(--rec-mid, #f2b23e); }
.hf-rec i.lo { background: var(--rec-lo, #f0605a); }
.hf-hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.hf-hub span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 2px; border-radius: 10px; background: var(--surface); }
.hf-hub svg { width: 20px; height: 20px; color: var(--accent-fg); }
.hf-hub small { font-size: 11px; font-weight: 600; }

/* Ajustes en acordeón */
.settings-v2 { gap: 8px; }
.set-acc { border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.set-acc > summary { display: flex; align-items: center; gap: 12px; padding: 13px 14px; min-height: 50px; list-style: none; cursor: pointer; border-radius: 18px; color: var(--text); -webkit-tap-highlight-color: transparent; }
.set-acc > summary::-webkit-details-marker { display: none; }
.set-acc > summary:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.set-acc > summary b { flex: 1; min-width: 0; font-size: 15.5px; font-weight: 700; }
.set-acc-ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--accent-fg); background: color-mix(in srgb, var(--brand-2) 14%, transparent); }
.set-acc-ic svg { width: 17px; height: 17px; }
.set-acc-ch { flex: none; display: flex; color: var(--muted); transition: transform .15s; }
.set-acc-ch svg { width: 18px; height: 18px; }
.set-acc[open] > summary .set-acc-ch { transform: rotate(180deg); }
.set-acc-body { padding: 0 10px 10px; }
.set-acc-body > .set-group { border: 0; background: none; padding: 0 6px; box-shadow: none; }
.set-acc-body > .set-group.prof { padding: 6px; }
a.set-row.set-link { color: var(--text); text-decoration: none; }

/* ---------- Popups: se desliza el popup, nunca el fondo ---------- */
html:has(dialog[open]), html:has(dialog[open]) body { overflow: hidden; overscroll-behavior: none; }
.dlg, .dlg * { overscroll-behavior-y: contain; }
.dlg { -webkit-overflow-scrolling: touch; }
/* Todo popup puede deslizarse (estos tres deslizan una parte interna) y cabe en lo que se ve de la pantalla */
.dlg:not(.pw-full):not(.help-dlg):not(.ach-dlg) { overflow-y: auto; }
.dlg:not(.pw-full):not(.help-dlg) { max-height: calc(100dvh - 24px); }
@media (max-width: 860px) { .dlg.sheet:not(.pw-full):not(.help-dlg) { max-height: 88dvh; } }

/* ---------- Calculadora de discos: barra y discos realistas ---------- */
:root { --steel-hi: #eef0f3; --steel-mid: #a9aeb7; --steel-lo: #5b6069; }
.pl-draw { position: relative; padding: 12px 8px 4px; background: radial-gradient(90% 90% at 50% 20%, color-mix(in srgb, var(--surface) 70%, transparent), transparent 75%), var(--surface-2); }
.plate { stroke: rgba(0, 0, 0, .3); stroke-width: .6; }
.plate.p-5, .plate.p-0_5, .plate.p-1_25 { stroke: rgba(0, 0, 0, .4); stroke-width: .6; }
.plate-front .plate { stroke-width: 1; }
.plate-face { stroke: rgba(0, 0, 0, .35); stroke-width: .5; filter: brightness(.72); }
.plate-face.p-25 { fill: var(--plate-25); } .plate-face.p-20 { fill: var(--plate-20); } .plate-face.p-15 { fill: var(--plate-15); } .plate-face.p-10 { fill: var(--plate-10); }
.plate-face.p-5 { fill: var(--plate-5); } .plate-face.p-2_5 { fill: var(--plate-2_5); } .plate-face.p-1_25 { fill: var(--plate-1_25); } .plate-face.p-0_5 { fill: var(--plate-0_5); }
.plate-face.p-45 { fill: var(--plate-45); } .plate-face.p-35 { fill: var(--plate-35); }
.plate-num { font: 800 9px Inter, system-ui, sans-serif; fill: rgba(255, 255, 255, .92); text-anchor: middle; }
.plate-num.dark { fill: rgba(0, 0, 0, .72); }
.plate-face-num { font: 800 15px Inter, system-ui, sans-serif; fill: rgba(255, 255, 255, .95); text-anchor: middle; }
.plate-face-num.dark { fill: rgba(0, 0, 0, .75); }
.pl-groove { fill: rgba(0, 0, 0, .35); }
.pl-frame { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1; }
.pl-barlabel { font: 700 10.5px Inter, system-ui, sans-serif; fill: var(--muted); text-anchor: middle; }
.pl-g { gap: 7px; padding: 4px 12px 4px 5px; }
.pl-g em { font-style: normal; color: var(--accent-fg); }
.pl-rack { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 8px; }
.pl-av { position: relative; flex-direction: column; justify-content: flex-end; gap: 3px; width: 70px; height: auto; min-height: 90px; padding: 8px 4px 6px; border-radius: 16px; opacity: 1; }
.pl-av-d { display: flex; align-items: center; justify-content: center; height: 58px; transition: filter .15s; filter: grayscale(.92) brightness(.72); opacity: .55; }
.pl-av.on .pl-av-d { filter: none; opacity: 1; }
.pl-av b { font-size: 13px; font-weight: 800; }
.pl-av-ck { display: none; position: absolute; top: 5px; right: 5px; width: 17px; height: 17px; border-radius: 50%; place-items: center; color: var(--on-brand, #fff); background: var(--grad-brand); }
.pl-av-ck svg { width: 11px; height: 11px; }
.pl-av.on .pl-av-ck { display: grid; }
.hf-plates { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 6px; }
.hf-plates span { display: flex; }
.hf-stage .pl-svg { display: block; width: 100%; height: auto; }
.hf-stage .plate-front { width: auto; }
/* Dibujos de discos: sin el trazo de los íconos de línea; solo lo que pide cada pieza */
svg.pl-svg, svg.plate-front { flex: none; stroke: none; stroke-width: 0; fill: none; }
svg.pl-svg .plate, svg.plate-front .plate { stroke: rgba(0, 0, 0, .3); stroke-width: .6; }
svg.pl-svg .plate-face { stroke: rgba(0, 0, 0, .35); stroke-width: .5; }
svg.pl-svg .pl-frame { stroke: var(--border-strong); stroke-width: 1; }
svg.pl-svg text, svg.plate-front text { stroke: none; }
.pl-av.on { background: var(--surface); }

/* Enlaces informativos discretos, como "Ver ficha ›": más pequeños, sin negritas y subrayados */
.help-more, .set-row .l .help-more { font-size: 12px; font-weight: 400; padding: 2px 0; }
.help-more span { text-decoration-color: currentColor; }
.is-grid > .help-more { grid-column: 1 / -1; justify-self: start; margin-top: -4px; white-space: nowrap; }
/* Superserie: el enlace va dentro del recuadro */
.ss-box { display: flex; flex-direction: column; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--surface); }
.ss-box .ss-toggle { border: 0; background: none; padding-bottom: 4px; }
.ss-box .help-more { align-self: flex-start; margin: 0 14px 10px 46px; }
.ss-box:has(.ss-toggle.on) { border-color: var(--accent-border); background: var(--accent-soft); }

/* Tarjetas: encuadres, close-ups y espejo. La foto va en .pc-img; el tinte de color no se voltea. */
.pc-bg .pc-img { position: absolute; inset: 0; z-index: -1; background-size: cover; background-repeat: no-repeat; }
.pc-bg .pc-img { transform: translateX(var(--sx, 0%)); }
.pc-bg .pc-img.flip { transform: translateX(var(--sx, 0%)) scaleX(-1); }
/* Lado izquierdo de las fotos recorridas: se funde con el fondo oscuro, para que el texto se lea y no se note el corte */
.pc-bg .pc-fade { position: absolute; inset: 0; pointer-events: none; text-decoration: none; background: linear-gradient(to right, #0c0d10 var(--f0), rgba(12, 13, 16, .72) calc((var(--f0) + var(--f1)) / 2), transparent var(--f1)); }

/* ---------- Tarjetas: títulos variados (fuente, color y tamaño) ----------
   Cada tarjeta y su ficha usan siempre el mismo estilo. --tt-c: el color de su tarjeta aclarado para que se lea. */
.pc-bg ~ .pc-txt, .pc-bg ~ .pd-title { --tt-c: color-mix(in srgb, var(--t, #ff7a3d) 58%, #fff); }
.pc-bg.tt-1 ~ .pc-txt .pc-name { font-family: "Bebas Neue", Inter, sans-serif; font-size: 31px; font-weight: 400; letter-spacing: .02em; line-height: 1.02; padding-top: 2px; }
.pc-bg.tt-2 ~ .pc-txt .pc-name { font-family: Oswald, Inter, sans-serif; font-size: 22px; font-weight: 600; letter-spacing: .01em; line-height: 1.16; text-transform: uppercase; color: var(--tt-c); padding-top: 2px; }
.pc-bg.tt-3 ~ .pc-txt .pc-name { font-family: "Barlow Condensed", Inter, sans-serif; font-size: 28px; font-weight: 800; font-style: italic; letter-spacing: 0; line-height: 1.04; text-transform: uppercase; padding-top: 2px; }
.pc-bg.tt-4 ~ .pc-txt .pc-name { font-family: Anton, Inter, sans-serif; font-size: 24px; font-weight: 400; letter-spacing: .015em; line-height: 1.14; text-transform: uppercase; color: var(--tt-c); padding-top: 2px; }
.pc-bg.tt-1 ~ .pd-title h2 { font-family: "Bebas Neue", Inter, sans-serif; font-size: 40px; font-weight: 400; letter-spacing: .02em; line-height: 1.02; }
.pc-bg.tt-2 ~ .pd-title h2 { font-family: Oswald, Inter, sans-serif; font-size: 29px; font-weight: 600; letter-spacing: .01em; line-height: 1.16; text-transform: uppercase; color: var(--tt-c); }
.pc-bg.tt-3 ~ .pd-title h2 { font-family: "Barlow Condensed", Inter, sans-serif; font-size: 37px; font-weight: 800; font-style: italic; letter-spacing: 0; line-height: 1.04; text-transform: uppercase; }
.pc-bg.tt-4 ~ .pd-title h2 { font-family: Anton, Inter, sans-serif; font-size: 31px; font-weight: 400; letter-spacing: .015em; line-height: 1.14; text-transform: uppercase; color: var(--tt-c); }
/* Las fuentes angostas aprovechan más ancho y bajan un poco de tamaño: así los nombres largos no chocan con las etiquetas de arriba */
.pc-bg.tt-1 ~ .pc-txt, .pc-bg.tt-3 ~ .pc-txt, .pc-bg.tt-2 ~ .pc-txt, .pc-bg.tt-4 ~ .pc-txt { width: 84%; }
.pc-bg.tt-1 ~ .pc-txt .pc-name { font-size: 28px; }
.pc-bg.tt-2 ~ .pc-txt .pc-name { font-size: 21px; }
.pc-bg.tt-3 ~ .pc-txt .pc-name { font-size: 25px; }
.pc-bg.tt-4 ~ .pc-txt .pc-name { font-size: 22px; }

/* ---------- Acceso en computadora: foto a toda altura, sin miniaturas ---------- */
@media (min-width: 861px) {
  .gate-brand { justify-content: space-between; padding: clamp(32px, 3.4vw, 56px); border-right: 0; background: #0c0d10; isolation: isolate; }
  .gate-brand::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url(onb/onb-level-3-m.webp) 50% 22% / cover no-repeat; animation: onb-kb 14s ease-out forwards; }
  .gate-brand::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
    linear-gradient(to top, #0c0d10 6%, rgba(12, 13, 16, .9) 30%, rgba(12, 13, 16, .2) 58%, rgba(12, 13, 16, .55) 100%),
    linear-gradient(to right, transparent 70%, var(--solid, #0c0d10) 100%),
    radial-gradient(70% 45% at 8% 100%, rgba(255, 91, 31, .34), transparent 70%); }
  .gate-brand .gate-logo b { font-size: 18px; font-weight: 800; text-shadow: 0 1px 12px rgba(0, 0, 0, .55); }
  .gate-pitch h1 { margin: 0 0 clamp(20px, 2.2vw, 32px); font-size: clamp(44px, 4.9vw, 84px); line-height: .98; letter-spacing: -.045em; color: #fff; }
  .gate-pitch h1 span { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .gate-pitch ul.gate-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; color: inherit; }
  .gate-pitch .gate-feats li { align-items: flex-start; gap: 10px; padding: 14px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .gate-pitch .gate-feats li svg { flex: none; width: 30px; height: 30px; padding: 7px; border-radius: 10px; color: #fff; stroke-width: 2.2; background: var(--grad-brand); }
  .gate-feats b { display: block; font-size: 14px; font-weight: 700; letter-spacing: -.01em; color: #fff; }
  .gate-feats small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.35; color: rgba(255, 255, 255, .68); }
}
@media (min-width: 861px) and (max-width: 1279px) {
  .gate-pitch ul.gate-feats { grid-template-columns: 1fr; gap: 12px; }
  .gate-pitch .gate-feats li { align-items: center; padding: 0; border: 0; border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (min-width: 861px) and (prefers-reduced-motion: reduce) { .gate-brand::before { animation: none; } }
/* Bienvenida: la barra queda en la parte alta de la foto */
.onb-wbg img { object-position: 50% 30%; }
