/* FORJA — tema oscuro épico pero cómodo a la vista */
:root {
  --bg: #0B0D12; --bg2: #0F1218; --card: #151922; --card2: #1C212B; --line: #262C38;
  --text: #E8EAF0; --muted: #9AA3B2; --faint: #6B7385;
  --accent: #E11D2E; --accent2: #FF5A5F; --accent-soft: rgba(225, 29, 46, .14);
  --blood: #9E0B12; --blood-hi: #FF3B3B;
  --ok: #3DDC84; --warn: #F5B841; --bad: #FF5C5C; --info: #4DA3FF;
  --body: #262C38;
  --r: 16px; --r-sm: 10px;
  --font: Inter, Manrope, "Segoe UI", Roboto, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-d: "Bebas Neue", Oswald, "Barlow Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Impact, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --nav-h: 68px;
  --badge: 0px; /* espacio para la etiqueta "Powered by Netlify" */
}
html.nl-badge { --badge: 64px; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.45;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(225, 29, 46, .10), transparent 60%),
    radial-gradient(80% 40% at 100% 0%, rgba(77, 163, 255, .05), transparent 60%), var(--bg);
  background-attachment: fixed;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
}
body.modal-open { overflow: hidden; }
a { color: var(--accent2); text-decoration: none; }
b, strong { font-weight: 700; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; }
svg { display: block; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.pad { padding: 16px 0; }
.mt { margin-top: 10px; }
.lead { font-size: 16px; line-height: 1.55; }
.ok { color: var(--ok); } .warn { color: var(--warn); } .info { color: var(--info); }

/* ---------- Splash ---------- */
#splash { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; gap: 26px; padding: 24px; transition: opacity .5s;
  background: radial-gradient(70% 45% at 50% 50%, rgba(158, 11, 18, .35), transparent 70%), radial-gradient(120% 60% at 50% 110%, rgba(225, 29, 46, .18), transparent 60%), var(--bg); }
.splash-q { display: grid; justify-items: center; gap: 18px; max-width: 360px; }
.splash-line { display: block; width: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: line-in .9s .1s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes line-in { to { width: 160px; } }
.splash-quote { margin: 0; text-align: center; font: 800 42px/1.02 var(--font-d); letter-spacing: .03em; text-transform: uppercase; color: #EDEFF4;
  text-shadow: 0 2px 0 #000, 0 0 22px rgba(0, 0, 0, .8); opacity: 0; transform: translateY(10px) scale(.97); animation: quote-in .7s .15s cubic-bezier(.2, .9, .3, 1.1) forwards; }
.splash-quote em { font-style: normal; color: #C3111D; -webkit-text-stroke: 1.2px var(--blood-hi); paint-order: stroke fill;
  text-shadow: 0 0 2px #000, 0 0 18px rgba(225, 29, 46, .7), 0 0 44px rgba(158, 11, 18, .6); }
@keyframes quote-in { to { opacity: 1; transform: none; } }
#splash { cursor: pointer; }
.splash-tap { margin: 0; text-align: center; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: 0; animation: tap-in .5s 1.2s forwards, tap-blink 1.8s 1.7s ease-in-out infinite; }
@keyframes tap-in { to { opacity: 1; } }
@keyframes tap-blink { 50% { opacity: .35; } }
#splash.ready .splash-bar { display: none; }
#splash.hide { opacity: 0; pointer-events: none; }
.splash-logo { font: 800 64px/1 var(--font-d); letter-spacing: .14em; color: var(--blood); -webkit-text-stroke: 1.5px var(--blood-hi); paint-order: stroke fill; text-shadow: 0 0 2px #000, 0 0 24px rgba(225, 29, 46, .65), 0 0 60px rgba(158, 11, 18, .55); }
.splash-bar { width: 120px; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; margin: 0 auto; }
.splash-bar i { display: block; width: 40%; height: 100%; background: var(--accent); animation: load 1s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ---------- Cabecera y navegación ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: calc(10px + var(--safe-t)) 16px 10px; background: rgba(11, 13, 18, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(38, 44, 56, .6);
}
.brand { display: flex; align-items: center; gap: 9px; margin-right: auto; }
.top-day { margin-right: auto; color: var(--text); font: 700 17px/1 var(--font); letter-spacing: .01em; text-transform: none; }
.brand-name { font: 800 28px/1 var(--font-d); letter-spacing: .16em; color: var(--blood); -webkit-text-stroke: 1px var(--blood-hi); paint-order: stroke fill; text-shadow: 0 0 1px #000, 0 0 12px rgba(225, 29, 46, .55), 0 0 28px rgba(158, 11, 18, .45); }
.brand-mark { width: 30px; height: 30px; filter: drop-shadow(0 0 8px rgba(225, 29, 46, .55)); }
.offline-badge { font-size: 11px; color: var(--ok); border: 1px solid rgba(61, 220, 132, .3); padding: 3px 8px; border-radius: 20px; display: none; }
.offline-badge.show { display: inline-block; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 0;
  background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; flex: none;
}
.icon-btn:active { background: var(--card2); }
.icon-btn.danger { color: var(--bad); }
.icon-btn[disabled] { opacity: .3; }

.view { padding: 16px 16px calc(var(--nav-h) + var(--safe-b) + var(--badge) + 28px); max-width: 640px; margin: 0 auto; }
.view.enter { animation: enter .22s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(7, 1fr);
  height: calc(var(--nav-h) + var(--safe-b) + var(--badge)); padding-bottom: calc(var(--safe-b) + var(--badge));
  background: rgba(15, 18, 24, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line);
}
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--faint); font-size: 10px; font-weight: 600; min-width: 0; }
.nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav a.on { color: var(--text); }
.nav a.on svg { stroke: var(--accent); filter: drop-shadow(0 0 6px rgba(225, 29, 46, .6)); }
.nav-main svg { width: 46px; height: 46px; padding: 10px; margin-top: -14px; border-radius: 16px; background: linear-gradient(135deg, var(--accent), #8E0B12); stroke: #fff !important; box-shadow: 0 6px 20px rgba(225, 29, 46, .4); }
.nav-main.live svg { animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(225, 29, 46, .55); } 50% { box-shadow: 0 0 0 9px rgba(225, 29, 46, 0); } }

/* ---------- Tipografía de páginas ---------- */
.page-h { font: 800 34px/1 var(--font-d); letter-spacing: .04em; text-transform: uppercase; margin: 4px 0 14px; }
.sec-h { font: 800 20px/1 var(--font-d); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 22px 2px 10px; }
.sec-h small { font: 500 12px var(--font); letter-spacing: 0; text-transform: none; color: var(--faint); margin-left: 6px; }
.back { display: inline-block; color: var(--muted); padding: 4px 0 10px; font-weight: 600; }

/* ---------- Tarjetas ---------- */
.card { background: linear-gradient(180deg, var(--card), #12161E); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 12px; display: block; color: inherit; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.card-h h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.notice { border-color: rgba(225, 29, 46, .35); background: linear-gradient(180deg, rgba(225, 29, 46, .10), var(--card)); }
.notice.warn { border-color: rgba(245, 184, 65, .35); background: linear-gradient(180deg, rgba(245, 184, 65, .10), var(--card)); }
.notice p { margin: 6px 0 10px; color: var(--muted); font-size: 14px; }
.ios-steps { margin: 8px 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
.ios-steps li { margin: 4px 0; }
.ios-ico { display: inline-block; padding: 0 5px; border: 1px solid var(--line); border-radius: 6px; color: var(--info); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 18px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--card2); color: var(--text);
  font-weight: 700; font-size: 15px; cursor: pointer; transition: transform .12s, background .15s; text-align: center; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn.primary { background: linear-gradient(135deg, var(--accent), #8E0B12); border-color: transparent; color: #fff; }
.btn.ghost { background: transparent; }
.btn.danger { background: rgba(255, 92, 92, .14); border-color: rgba(255, 92, 92, .35); color: var(--bad); }
.btn.ghost.danger { background: transparent; border-color: rgba(255, 92, 92, .25); }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn.xl { min-height: 62px; font-size: 18px; border-radius: 18px; letter-spacing: .02em; }
.btn.full { width: 100%; }
.btn.glow { box-shadow: 0 8px 28px rgba(225, 29, 46, .35), inset 0 1px 0 rgba(255, 255, 255, .2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.link-sm { color: var(--accent2); font-size: 13px; font-weight: 600; background: none; border: 0; cursor: pointer; padding: 0; }
.hero-card .link-sm { display: block; text-align: center; margin-top: 10px; }
.file-btn { cursor: pointer; }

/* ---------- Segmentados ---------- */
.seg { display: flex; gap: 4px; padding: 4px; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
.seg > * { flex: 1; min-height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 700; font-size: 14px; display: grid; place-items: center; cursor: pointer; }
.seg > .on { background: var(--card2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line), 0 0 0 0 transparent; }
.seg.tabs > .on, .seg.period > .on { color: var(--accent2); }
.seg.small > *, .seg.mini > * { min-height: 34px; font-size: 13px; }
.seg.mini { margin: 0; padding: 3px; }
.card-h .seg.mini { flex: none; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--text); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.chip i, .fchip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.chip small { color: var(--muted); font-weight: 500; }
.chip-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.chip-scroll::-webkit-scrollbar { display: none; }
.fchip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.fchip:not([style]) i { display: none; }
.fchip.on { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }

.mbar { display: flex; gap: 2px; height: 8px; border-radius: 6px; overflow: hidden; margin: 10px 0; background: var(--bg2); }
.mbar span { min-width: 3px; }
.mbar.empty { opacity: .5; }

.info-btn { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--faint); background: transparent; color: var(--muted); font: 700 11px/1 Georgia, serif; font-style: italic; cursor: pointer; display: inline-grid; place-items: center; padding: 0; vertical-align: middle; flex: none; }

/* ---------- Estado vacío ---------- */
.empty-state { text-align: center; padding: 36px 18px; display: grid; gap: 10px; justify-items: center; }
.empty-ico { font-size: 44px; filter: drop-shadow(0 0 16px rgba(225, 29, 46, .35)); }
.empty-state h3 { font-size: 18px; }
.empty-state p { color: var(--muted); margin: 0 0 8px; max-width: 340px; }
.empty-state .btn { width: 100%; max-width: 320px; }

/* ---------- Formularios ---------- */
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field > span { font-size: 13px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.input { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font-size: 16px; outline: none; transition: border-color .15s; -webkit-appearance: none; appearance: none; }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
textarea.input { resize: vertical; }
.input:focus { border-color: var(--accent); }
.input.big { font-size: 20px; font-weight: 700; }
.input.search { margin-bottom: 10px; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(38, 44, 56, .6); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { opacity: 0; position: absolute; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 20px; background: var(--line); transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(20px); }

/* ---------- Listas de ejercicios ---------- */
.ex-list { display: grid; gap: 6px; margin-bottom: 12px; }
.ex-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); text-align: left; cursor: pointer; }
.ex-row:active { background: var(--card2); }
.ex-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 8px currentColor; }
.ex-txt { flex: 1; display: grid; min-width: 0; }
.ex-txt b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-txt small { color: var(--muted); font-size: 12px; }
.ex-go { color: var(--faint); font-size: 22px; }
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sec { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--muted); font-size: 13px; cursor: pointer; text-align: left; }
.sec i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.sec b { margin-left: auto; font-size: 12px; }
.sec.on { color: var(--text); border-color: color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); }

/* ---------- Inicio ---------- */
.hello-name { font: 800 40px/1.05 var(--font); letter-spacing: -.01em; text-transform: none; margin: 6px 0 16px; background: linear-gradient(180deg, #FFFFFF 10%, #C9CED8 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-card { position: relative; overflow: hidden; padding: 20px; border-color: rgba(225, 29, 46, .35); background: radial-gradient(120% 120% at 100% 0%, rgba(225, 29, 46, .22), transparent 55%), linear-gradient(180deg, var(--card), #12161E); }
.hero-card small { color: var(--accent2); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.hero-card h2 { font: 800 34px/1.05 var(--font-d); letter-spacing: .03em; text-transform: uppercase; margin: 6px 0 4px; }
.hero-card .btn { margin-top: 10px; }
.hero-card.rest { border-color: var(--line); background: linear-gradient(180deg, var(--card), #12161E); }
.resume { display: grid; gap: 2px; border-color: rgba(61, 220, 132, .4); background: linear-gradient(180deg, rgba(61, 220, 132, .12), var(--card)); }
.resume b { font-size: 20px; color: var(--text); }
.resume span:last-child { color: var(--muted); font-size: 13px; }
.live { color: var(--ok); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .45; } }

.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.kpi { background: linear-gradient(180deg, var(--card), #12161E); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 2px; align-content: start; }
.kpi.wide { grid-column: 1 / -1; }
.kpi small { color: var(--muted); font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.kpi b { font: 800 30px/1.05 var(--font-d); letter-spacing: .02em; }
.delta { font-size: 12px; color: var(--faint); }
.delta.up { color: var(--ok); } .delta.down { color: var(--bad); }

.body-wrap { display: grid; place-items: center; }
.chart.body { width: 100%; max-width: 300px; }
.rec-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 12px; color: var(--muted); margin: 8px 0 4px; }
.rec-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rec-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.st-low { color: var(--info) !important; } .st-ok { color: var(--ok) !important; } .st-high { color: var(--warn) !important; }

.last { display: grid; gap: 8px; color: inherit; }
.last small { display: block; color: var(--muted); font-size: 13px; }
.last-stats, .hist-stats { display: flex; gap: 18px; }
.last-stats span, .hist-stats span { display: grid; font-size: 11px; color: var(--muted); }
.last-stats b, .hist-stats b { font-size: 17px; color: var(--text); }

/* ---------- Rutinas ---------- */
.r-card { display: flex; align-items: center; gap: 12px; }
.r-card.col { display: block; }
.r-top { display: flex; align-items: center; gap: 10px; }
.r-info { flex: 1; min-width: 0; display: grid; }
.r-info b { font-size: 17px; }
.r-info small { color: var(--muted); font-size: 12px; }
.r-btns { display: flex; gap: 6px; }
.r-ms { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.r-ms span { display: inline-flex; align-items: center; gap: 5px; }
.r-ms i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.item-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.item-h b { flex: 1; min-width: 0; }
.item-btns { display: flex; }
.item-btns .icon-btn { width: 34px; height: 34px; }
.item-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.item-grid label { display: grid; gap: 4px; }
.item-grid span { font-size: 11px; color: var(--muted); font-weight: 600; }
.item-grid .input { min-height: 42px; padding: 8px 10px; text-align: center; }
.item-grid select.input { text-align: left; font-size: 14px; }
.plan-row { display: grid; grid-template-columns: 96px 1fr auto auto; align-items: center; gap: 8px; padding: 6px 0; }
.plan-row > span { font-weight: 600; font-size: 14px; }
.plan-row em { font-style: normal; font-size: 11px; color: var(--accent2); display: block; font-weight: 700; text-transform: uppercase; }
.plan-row.today select { border-color: var(--accent); }

/* ---------- Entrenamiento ---------- */
.wk-top { position: sticky; top: calc(61px + var(--safe-t)); z-index: 10; display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: -6px -4px 12px; border-radius: 14px; background: rgba(21, 25, 34, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); }
.wk-title { flex: 1; min-width: 0; }
.wk-title h2 { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-clock { font: 800 26px/1 var(--font-d); letter-spacing: .04em; color: var(--accent2); }
.wchip { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; max-width: 210px; }
.wchip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wchip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.wchip b { font-size: 12px; color: var(--faint); }
.wchip.on { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.wchip.done b { color: var(--ok); }
.ex-head { display: flex; align-items: flex-start; gap: 8px; }
.ex-head > div { flex: 1; min-width: 0; }
.ex-name { font: 800 30px/1.05 var(--font-d); letter-spacing: .02em; text-transform: uppercase; }
.ex-meta { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; margin: 10px 0 12px; }
.ex-meta div { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; gap: 2px; min-width: 0; }
.ex-meta small { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.ex-meta b { font-size: 13px; overflow-wrap: anywhere; }
.ex-notes { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.sets { display: grid; gap: 4px; margin-bottom: 10px; }
.set-row { display: grid; grid-template-columns: 30px 1fr 1fr 44px 52px 36px; align-items: center; gap: 4px; min-height: 46px; padding: 0 10px; border-radius: 12px; border: 1px solid transparent; background: var(--bg2); font-size: 17px; font-weight: 700; text-align: center; cursor: pointer; width: 100%; }
.set-row.head { min-height: 24px; background: none; font-size: 11px; color: var(--faint); font-weight: 600; cursor: default; text-transform: uppercase; letter-spacing: .05em; }
.set-row .n { color: var(--muted); font-size: 14px; }
.set-row .rest-c { font-size: 12px; color: var(--faint); font-weight: 600; }
.set-row .st { color: var(--ok); }
.set-row.sel { border-color: var(--accent); background: var(--accent-soft); }
.set-row.done:not(.sel) { background: rgba(61, 220, 132, .07); }
.set-row.t-warmup { color: var(--muted); }
.set-row.t-warmup .n { color: var(--warn); }
.pr-badge { font-style: normal; font-size: 10px; font-weight: 800; color: #1a1205; background: linear-gradient(135deg, #FFD54A, #F5A623); border-radius: 6px; padding: 2px 5px; box-shadow: 0 0 10px rgba(245, 184, 65, .6); }
.editor { border-color: rgba(225, 29, 46, .3); }
.editor.is-done { border-color: rgba(61, 220, 132, .3); }
.ed-title { font-weight: 700; margin-bottom: 10px; }
.steppers { display: grid; gap: 12px; margin: 4px 0 12px; }
.stepper label { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .06em; }
.st-row { display: grid; grid-template-columns: 64px 1fr 64px; gap: 8px; align-items: center; }
.st-btn { height: 64px; border-radius: 16px; border: 1px solid var(--line); background: var(--card2); font-size: 30px; font-weight: 600; cursor: pointer; }
.st-btn:active { background: var(--accent-soft); border-color: var(--accent); transform: scale(.96); }
.st-val { height: 64px; width: 100%; text-align: center; border-radius: 16px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: 800 46px/1 var(--font-d); letter-spacing: .02em; outline: none; -moz-appearance: textfield; }
.st-val::-webkit-outer-spin-button, .st-val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.st-val:focus { border-color: var(--accent); }
.rir-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.rir-row > span { font-size: 12px; color: var(--muted); font-weight: 700; display: flex; gap: 5px; align-items: center; white-space: nowrap; }
.rir-row .seg { flex: 1; margin: 0; }
.editor .btn.xl { margin-bottom: 8px; }
.wk-nav { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.wk-nav .btn { padding: 0 8px; font-size: 14px; }

/* Descanso */
.rest-sheet { position: fixed; inset: 0; z-index: 40; background: rgba(5, 6, 9, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: flex-end; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.rest-inner { width: 100%; max-width: 640px; margin: 0 auto; background: linear-gradient(180deg, #171B25, var(--bg)); border: 1px solid var(--line); border-bottom: 0; border-radius: 26px 26px 0 0; padding: 14px 20px calc(20px + var(--safe-b) + var(--badge)); display: grid; gap: 14px; animation: up .28s cubic-bezier(.2, .9, .3, 1.1); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.rest-head { display: flex; justify-content: space-between; align-items: center; font: 800 18px var(--font-d); letter-spacing: .2em; color: var(--muted); }
.rest-ring { position: relative; display: grid; place-items: center; margin: 0 auto; }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 12; }
.ring-fg { fill: none; stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset .25s linear, stroke .3s; filter: drop-shadow(0 0 10px rgba(225, 29, 46, .55)); }
.rest-ring.over .ring-fg { filter: drop-shadow(0 0 10px rgba(245, 184, 65, .6)); }
.rest-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.rest-time { font: 800 76px/1 var(--font-d); letter-spacing: .02em; }
.rest-ring.over .rest-time { color: var(--warn); }
.rest-sub { font-size: 13px; color: var(--muted); }
.rest-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rest-btns .btn { min-height: 52px; font-size: 17px; }
.rest-next { display: grid; text-align: center; gap: 2px; padding: 10px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); }
.rest-next small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.rest-next b { font-size: 16px; }
.rest-next span { color: var(--muted); font-size: 14px; }
.rest-mini { position: fixed; left: 16px; right: 16px; bottom: calc(var(--nav-h) + var(--safe-b) + var(--badge) + 10px); z-index: 35; display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 608px; margin: 0 auto; padding: 12px 18px; border-radius: 16px; border: 1px solid var(--accent); background: rgba(30, 12, 14, .95); cursor: pointer; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
.rest-mini b { font: 800 30px/1 var(--font-d); color: var(--accent2); }
.rest-mini span { font-size: 12px; color: var(--muted); }
.rest-mini.over { border-color: var(--warn); }
.rest-mini.over b { color: var(--warn); }

/* PR */
.pr-burst { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; pointer-events: none; background: radial-gradient(circle, rgba(245, 184, 65, .25), transparent 60%); animation: fade .25s; transition: opacity .4s; }
.pr-burst.out { opacity: 0; }
.pr-burst-inner { display: grid; justify-items: center; gap: 4px; padding: 22px 28px; border-radius: 22px; background: rgba(21, 25, 34, .96); border: 1px solid rgba(245, 184, 65, .5); box-shadow: 0 0 50px rgba(245, 184, 65, .35); animation: popin .5s cubic-bezier(.2, 1.4, .4, 1); text-align: center; max-width: 86vw; }
.pr-burst-inner b { font: 800 34px/1 var(--font-d); letter-spacing: .08em; color: #FFD54A; }
.pr-burst-inner span { color: var(--muted); font-size: 14px; }
.trophy { font-size: 52px; animation: bounce .8s ease-out; }
@keyframes popin { from { transform: scale(.6); opacity: 0; } }
@keyframes bounce { 0% { transform: translateY(20px) scale(.6); } 60% { transform: translateY(-8px) scale(1.1); } 100% { transform: none; } }
.feel { display: flex; gap: 8px; }
.feel button { flex: 1; height: 54px; font-size: 26px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg2); cursor: pointer; filter: grayscale(.7); opacity: .7; }
.feel button.on { filter: none; opacity: 1; border-color: var(--accent); background: var(--accent-soft); transform: scale(1.05); }
.feel-s { font-size: 22px; }

/* ---------- Gráficas ---------- */
.chart { width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .ax { fill: var(--faint); font-size: 10px; font-family: var(--font); }
.chart .lbl { fill: var(--muted); font-size: 11px; font-family: var(--font); font-weight: 600; }
.chart .val { fill: var(--text); font-size: 11px; font-weight: 700; font-family: var(--font); }
.chart .val.st-low { fill: var(--info); } .chart .val.st-ok { fill: var(--ok); } .chart .val.st-high { fill: var(--warn); }
.chart .band { fill: rgba(61, 220, 132, .08); stroke: rgba(61, 220, 132, .35); stroke-dasharray: 3 3; }
.chart .refline { stroke: var(--text); stroke-width: 2; opacity: .8; }
.chart [data-tip] { cursor: pointer; }
.donut-wrap { display: grid; place-items: center; margin: 6px 0 12px; }
.donut-seg { animation: dash .9s cubic-bezier(.3, .8, .3, 1) both; animation-delay: calc(var(--i) * 60ms); transition: stroke-width .15s; }
.donut-seg:active { stroke-width: 30; }
@keyframes dash { from { stroke-dasharray: 0 999; } }
.donut-c { fill: var(--text); font: 800 34px var(--font-d); }
.donut-s { fill: var(--muted); font-size: 12px; font-family: var(--font); font-weight: 600; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 1s ease-out both; }
@keyframes draw { from { stroke-dashoffset: 1; } }
.fade-in { animation: fade .8s both; }
.grow { transform-box: fill-box; transform-origin: left; animation: growx .7s cubic-bezier(.3, .8, .3, 1) both; animation-delay: calc(var(--i) * 35ms); }
@keyframes growx { from { transform: scaleX(0); } }
.grow-v { transform-box: fill-box; transform-origin: bottom; animation: growy .6s cubic-bezier(.3, .8, .3, 1) both; animation-delay: calc(var(--i) * 25ms); }
@keyframes growy { from { transform: scaleY(0); } }
.rise { transform-box: fill-box; transform-origin: bottom; animation: growy .7s cubic-bezier(.3, .8, .3, 1) both; animation-delay: calc(var(--i) * 50ms); }
.pop { transform-box: fill-box; transform-origin: center; animation: popin .7s cubic-bezier(.2, 1.2, .4, 1) both; }
.legend { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.legend li { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; cursor: pointer; }
.legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend span { flex: 1; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-scroll { overflow-x: auto; scrollbar-width: none; direction: rtl; }
.hm-scroll > svg { direction: ltr; }
.hm-scroll::-webkit-scrollbar { display: none; }
.hm { fill: #1A1F29; }
.hm.l1 { fill: #3F0C10; } .hm.l2 { fill: #721018; } .hm.l3 { fill: #B5141F; } .hm.l4 { fill: #FF4D4D; }
.hm-leg i.hm { width: 12px; height: 12px; border-radius: 3px; }
.hm-leg i.l0 { background: #1A1F29; } .hm-leg i.l1 { background: #3F0C10; } .hm-leg i.l2 { background: #721018; } .hm-leg i.l3 { background: #B5141F; } .hm-leg i.l4 { background: #FF4D4D; }
.chart.radar { max-width: 320px; margin: 0 auto; }

.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.mini-kpis div { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; text-align: center; }
.mini-kpis b { font: 800 24px/1.1 var(--font-d); }
.mini-kpis small { font-size: 11px; color: var(--muted); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11px; color: var(--faint); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 8px 4px; border-bottom: 1px solid rgba(38, 44, 56, .5); }
.tbl .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 20px; white-space: nowrap; background: var(--card2); color: var(--muted); }
.pill.s-ok, .pill.p-up { background: rgba(61, 220, 132, .14); color: var(--ok); }
.pill.s-mid, .pill.p-flat { background: rgba(245, 184, 65, .14); color: var(--warn); }
.pill.s-low, .pill.p-down { background: rgba(255, 92, 92, .14); color: var(--bad); }
b.p-up { color: var(--ok); } b.p-flat { color: var(--warn); } b.p-down { color: var(--bad); } b.p-datos { color: var(--muted); }
.bar-split { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; margin: 4px 0; }
.b-ok { background: var(--ok); } .b-warn { background: var(--warn); } .b-info { background: var(--info); }
.insight { margin: 12px 0 0; padding: 12px; border-radius: 12px; background: rgba(77, 163, 255, .08); border: 1px solid rgba(77, 163, 255, .25); font-size: 14px; }
.insight.warn { background: rgba(245, 184, 65, .08); border-color: rgba(245, 184, 65, .3); }
.imb { display: grid; gap: 6px; margin-top: 8px; }
.imb-row { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); font-size: 14px; }
.imb-row small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.imb-row.ok span { color: var(--ok); } .imb-row.warn span { color: var(--warn); }
.prog-list { display: grid; gap: 6px; }
.prog-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); color: inherit; }
.pr-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(38, 44, 56, .5); font-size: 14px; align-items: center; }
.pr-row span:nth-child(2) { color: var(--muted); font-size: 12px; }
.pr-row b { color: #FFD54A; }
.pr-card { border-color: rgba(245, 184, 65, .4); background: linear-gradient(180deg, rgba(245, 184, 65, .10), var(--card)); }
.hist-ex { display: grid; grid-template-columns: 80px 1fr; gap: 2px 10px; padding: 9px 0; border-bottom: 1px solid rgba(38, 44, 56, .5); color: inherit; font-size: 14px; }
.hist-ex span:first-child { color: var(--muted); font-size: 12px; }
.hist-ex small { grid-column: 2; color: var(--faint); font-size: 12px; }
.sets-inline { font-weight: 600; }

/* ---------- Historial ---------- */
.hist { display: grid; gap: 10px; }
.hist-top { display: flex; justify-content: space-between; gap: 10px; }
.hist-top b { font-size: 17px; }
.hist-top small { display: block; color: var(--muted); font-size: 13px; }
.hist .mbar { margin: 0; }
.done-hero { text-align: center; padding: 18px 0 20px; }
.done-ico { font-size: 58px; animation: bounce .8s ease-out; filter: drop-shadow(0 0 20px rgba(225, 29, 46, .5)); }
.done-hero h1 { font: 800 36px/1.05 var(--font-d); text-transform: uppercase; letter-spacing: .03em; margin-top: 6px; }
.done-hero p { color: var(--muted); margin: 6px 0 0; }
.det-ex { padding: 8px 0 14px; }
.det-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.sets-tbl td, .sets-tbl th { text-align: center; }
.sets-tbl tr.warm td { color: var(--muted); }
.edit-set { display: grid; grid-template-columns: 22px 1fr 1fr 1fr 34px; gap: 6px; align-items: end; margin-bottom: 8px; }
.edit-set > span { color: var(--muted); padding-bottom: 12px; text-align: center; }
.edit-set label { display: grid; gap: 2px; }
.edit-set small { font-size: 11px; color: var(--muted); }
.edit-set .input { min-height: 42px; padding: 8px; text-align: center; }
.danger-zone { border-color: rgba(255, 92, 92, .25); }

/* ---------- Modales ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 5, 8, .7); opacity: 0; transition: opacity .2s; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal { position: relative; width: 100%; max-width: 560px; max-height: 88vh; display: flex; flex-direction: column; background: linear-gradient(180deg, #181C26, var(--card)); border: 1px solid var(--line); border-bottom: 0; border-radius: 24px 24px 0 0; transform: translateY(100%); transition: transform .26s cubic-bezier(.2, .9, .3, 1); padding-bottom: calc(var(--safe-b) + var(--badge)); }
.modal.wide { max-height: 92vh; }
.modal-wrap.show .modal-backdrop { opacity: 1; }
.modal-wrap.show .modal { transform: none; }
.modal-grip { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 8px auto 0; flex: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px 6px 20px; flex: none; }
.modal-head h2 { font-size: 18px; }
.modal-body { padding: 6px 20px 12px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal-body .chip-scroll { margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
.modal-actions { display: grid; gap: 8px; padding: 10px 20px 18px; flex: none; }
.modal-actions:has(> :nth-child(2):last-child) { grid-template-columns: 1fr 1fr; }
.modal-actions:has(> :nth-child(3):last-child) { grid-template-columns: 1fr 1fr 1fr; }
.modal-actions.inline { padding: 8px 0 4px; grid-auto-flow: column; }
.modal .ex-list { max-height: none; }

/* ---------- Avisos y tooltips ---------- */
#toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b) + var(--badge) + 14px); z-index: 80; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 520px; padding: 12px 16px; border-radius: 14px; background: #222836; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); font-size: 14px; opacity: 0; transform: translateY(12px); transition: all .25s; }
.toast.show { opacity: 1; transform: none; }
.toast.ok { border-color: rgba(61, 220, 132, .45); }
.toast.warn { border-color: rgba(245, 184, 65, .5); }
.toast button { border: 0; background: var(--accent); color: #fff; font-weight: 700; border-radius: 10px; padding: 8px 12px; cursor: pointer; white-space: nowrap; }
.tip { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; padding: 7px 11px; border-radius: 10px; background: #F2F4F8; color: #0B0D12; font-size: 13px; font-weight: 600; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); opacity: 0; transition: opacity .15s; max-width: 260px; }
.tip.show { opacity: 1; }

/* ---------- Pantallas pequeñas / grandes ---------- */
@media (max-width: 360px) {
  .ex-meta { grid-template-columns: 1fr 1fr; }
  .ex-meta div:first-child { grid-column: 1 / -1; }
  .st-row { grid-template-columns: 56px 1fr 56px; }
  .item-grid { grid-template-columns: repeat(2, 1fr); }
  .legend { grid-template-columns: 1fr; }
}
@media (min-width: 700px) { .kpis { grid-template-columns: repeat(4, 1fr); } .kpi.wide { grid-column: span 2; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ================= v1.1 ================= */
.ico { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: -0.16em; flex: none; }
.tiny { font-size: 11px; margin: 8px 0 0; }
.empty-ico .ico { width: 46px; height: 46px; color: var(--accent2); stroke-width: 1.6; }
.empty-ico { filter: drop-shadow(0 0 16px rgba(225, 29, 46, .45)); }

/* Inicio */
.hero-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hero-ico .ico { width: 54px; height: 54px; color: var(--muted); stroke-width: 1.4; }
.forge-title { font-size: 46px !important; letter-spacing: .06em !important; color: #fff; text-shadow: 0 0 18px rgba(225, 29, 46, .55); }
.anvil-svg { flex: none; filter: drop-shadow(0 6px 16px rgba(225, 29, 46, .35)); }
.anvil-svg .hammer { transform-box: fill-box; transform-origin: 30% 90%; animation: strike 2.6s ease-in-out infinite; }
.anvil-svg .sparks circle { animation: spark 2.6s ease-out infinite; opacity: 0; }
.anvil-svg .sparks circle:nth-child(2) { animation-delay: .05s; } .anvil-svg .sparks circle:nth-child(3) { animation-delay: .1s; }
@keyframes strike { 0%, 60%, 100% { transform: rotate(-28deg); } 70% { transform: rotate(-2deg); } 76% { transform: rotate(-10deg); } }
@keyframes spark { 0%, 68% { opacity: 0; transform: none; } 72% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }

.streak { display: flex; align-items: center; gap: 16px; padding: 18px 20px; position: relative; overflow: hidden;
  border-color: rgba(225, 29, 46, .45);
  background: radial-gradient(90% 140% at 0% 100%, rgba(225, 29, 46, .32), transparent 60%), radial-gradient(60% 80% at 10% 90%, rgba(255, 160, 40, .14), transparent 70%), linear-gradient(180deg, #1A1013, #120B0D); }
.streak.off { filter: saturate(.25); opacity: .85; }
.streak-fire { flex: none; filter: drop-shadow(0 0 18px rgba(232, 38, 28, .65)); }
.flame-svg .fl-out { transform-origin: 50% 90%; animation: flick 1.6s ease-in-out infinite; }
.flame-svg .fl-mid { transform-origin: 50% 90%; animation: flick 1.1s ease-in-out infinite reverse; }
.flame-svg .fl-core { transform-origin: 50% 90%; animation: flick .8s ease-in-out infinite; }
@keyframes flick { 0%, 100% { transform: scale(1, 1) skewX(0); } 30% { transform: scale(.97, 1.04) skewX(-2deg); } 60% { transform: scale(1.03, .97) skewX(2deg); } }
.streak-txt { display: grid; gap: 0; min-width: 0; }
.streak-n { font: 800 76px/.9 var(--font-d); letter-spacing: .02em; background: linear-gradient(180deg, #FFF3C4 0%, #FFB22E 38%, #E8261C 75%, #8E0B12 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 14px rgba(232, 38, 28, .45)); }
.streak-txt span { font: 800 20px/1.1 var(--font-d); letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.streak-txt small { color: var(--muted); font-size: 12px; margin-top: 4px; }
.pr-kpi small .ico { color: #FFD54A; }
.pr-kpi .delta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Activación muscular (desplegable) */
.act-dd { margin: 8px 0 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); }
.act-dd summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; font-size: 13px; font-weight: 700; }
.act-dd summary::-webkit-details-marker { display: none; }
.act-dd summary > .ico { width: 22px; height: 22px; padding: 4px; border-radius: 7px; background: var(--accent-soft); color: var(--accent2); stroke-width: 2.4; }
.act-dd summary small { color: var(--faint); font-weight: 600; margin-left: auto; }
.chev { width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -3px 4px 0 6px; transition: transform .2s; flex: none; }
details[open] > summary .chev { transform: rotate(-135deg); margin-top: 3px; }
.act-dd > :not(summary) { margin-left: 12px; margin-right: 12px; }
.act-dd > .btn { margin-bottom: 4px; }
.act-dd > p { margin-bottom: 10px; }
.act-list { display: grid; gap: 6px; padding: 2px 0 10px; }
.act-row { display: grid; grid-template-columns: 112px 1fr 40px; align-items: center; gap: 8px; font-size: 13px; }
.act-row span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-row b { text-align: right; font-size: 13px; }
.act-bar { height: 8px; border-radius: 6px; background: var(--card2); overflow: hidden; }
.act-bar i { display: block; height: 100%; border-radius: 6px; background: var(--c); box-shadow: 0 0 8px color-mix(in srgb, var(--c) 60%, transparent); }
.act-edit { display: grid; gap: 8px; }
.act-ed-row { display: grid; grid-template-columns: 1fr 1.3fr 64px; align-items: center; gap: 8px; font-size: 13px; }
.act-ed-row span { display: flex; align-items: center; gap: 7px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-ed-row span i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.act-ed-row input[type=range] { width: 100%; accent-color: var(--c); }
.act-num { min-height: 38px !important; padding: 6px !important; text-align: center; font-size: 15px !important; }
.act-add { margin-top: 10px; }
.act-add .chips { margin-top: 6px; }
.act-add .fchip { padding: 6px 10px; font-size: 12px; }
.rest-grid { display: grid; gap: 6px; }
.rest-grid label { display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; gap: 10px; }
.rest-grid small { font-size: 13px; color: var(--muted); font-weight: 600; }
.rest-grid .input { min-height: 42px; padding: 8px 30px 8px 12px; font-size: 15px; }

/* Entrenamiento */
.ex-title { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
.ex-hint { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--accent2); font-weight: 700; margin-top: 4px; }
.last-box { border: 1px solid rgba(225, 29, 46, .25); background: linear-gradient(180deg, rgba(225, 29, 46, .07), var(--bg2)); border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; }
.last-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.last-h span { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--accent2); }
.last-h small { color: var(--faint); font-size: 12px; }
.last-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.last-list li { display: grid; grid-template-columns: 38px 1fr 14px 1fr 54px; align-items: baseline; gap: 4px; padding: 5px 4px; border-bottom: 1px dashed rgba(38, 44, 56, .8); font-size: 16px; font-weight: 700; }
.last-list li:last-child { border-bottom: 0; }
.last-list em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--muted); text-align: center; border-radius: 6px; padding: 1px 0; background: var(--card2); }
.last-list small { font-size: 11px; color: var(--faint); font-weight: 600; }
.last-list .lx { color: var(--faint); text-align: center; }
.last-list .lrir { font-size: 12px; color: var(--muted); text-align: right; }
.last-list li.t-warm { color: var(--muted); font-size: 14px; }
.last-list li.t-warm em { color: var(--warn); }
.last-list li.t-rp em { color: var(--info); }
.last-list li.t-fail em { color: var(--accent2); }
.last-best { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.last-best span { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.last-best b { color: var(--text); white-space: nowrap; font-size: 14px; }
.ex-notes .ico { color: var(--muted); }
.set-row { grid-template-columns: 36px 1.25fr 1fr 1fr 34px 30px; padding: 0 8px; }
.set-row .prev { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-row .prev small { color: var(--faint); font-size: 11px; margin-left: 2px; }
.set-row .rir-c { font-size: 14px; color: var(--muted); }
.set-row .st .ico { width: 18px; height: 18px; stroke-width: 3; }
.set-row.t-warm .n { color: var(--warn); } .set-row.t-warm { color: var(--muted); }
.set-row.t-rp .n { color: var(--info); font-size: 12px; }
.set-row.t-fail .n { color: var(--accent2); }
.set-row.t-rp { margin-left: 14px; width: calc(100% - 14px); border-left: 2px solid rgba(77, 163, 255, .45); }
.add-sets { margin-top: 2px; }
.ed-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ed-title em { font-style: normal; color: var(--muted); margin-left: 4px; }
.ed-prev { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: -2px 0 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg2); border: 1px dashed var(--line); }
.ed-prev b { color: var(--text); }
.seg.types > * { font-size: 12px; padding: 0 2px; white-space: nowrap; letter-spacing: -.01em; }
.editor.t-rp { border-color: rgba(77, 163, 255, .35); }
.editor .btn.xl .ico { width: 22px; height: 22px; stroke-width: 3; }
.trophy .ico { width: 56px; height: 56px; color: #FFD54A; stroke-width: 1.6; filter: drop-shadow(0 0 14px rgba(255, 213, 74, .6)); }
.feel button { display: grid; place-items: center; gap: 0; font-size: 18px; filter: none; opacity: .6; height: 58px; }
.feel button b { font: 800 22px/1 var(--font-d); }
.feel button small { font-size: 10px; color: var(--muted); }
.feel-s { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 20px; background: var(--card2); color: var(--muted); white-space: nowrap; height: fit-content; }
.feel-s.f5 { background: rgba(225, 29, 46, .18); color: var(--accent2); } .feel-s.f4 { color: var(--ok); } .feel-s.f1, .feel-s.f2 { color: var(--warn); }

/* Gráfica del ejercicio */
.ex-chart .card-h h3 .ico { color: var(--accent2); }
.ex-chart .seg.mini { margin-bottom: 8px; }
.chart-val { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 2px; }
.chart-val b { font: 800 30px/1 var(--font-d); letter-spacing: .02em; }
.chart-val small { color: var(--muted); font-size: 12px; }
.chart .ax.day { fill: var(--muted); font-size: 10.5px; font-weight: 600; }
.chart .ax.month { fill: var(--accent2); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.chart .msep { stroke: var(--line); stroke-dasharray: 2 3; }
.chart circle.best { filter: drop-shadow(0 0 6px rgba(225, 29, 46, .8)); }
.kpi b .x, .kpi b small { font-size: 18px; color: var(--muted); margin: 0 2px; }
.ex-sub { margin: -4px 0 6px; }
.ex-panel .kpis { margin-top: 2px; }
.pills { display: flex; flex-wrap: wrap; gap: 4px; }
.spill { display: inline-flex; align-items: baseline; gap: 3px; padding: 3px 7px; border-radius: 8px; background: var(--card2); font-size: 13px; font-weight: 700; }
.spill em { font-style: normal; font-size: 10px; color: var(--muted); margin-right: 2px; }
.spill small { color: var(--faint); font-weight: 600; font-size: 11px; }
.spill .rir { margin-left: 3px; }
.spill.t-warm { color: var(--muted); } .spill.t-warm em { color: var(--warn); }
.spill.t-rp em { color: var(--info); } .spill.t-fail em { color: var(--accent2); }
.pr-dot { width: 6px; height: 6px; border-radius: 50%; background: #FFD54A; align-self: center; margin-left: 2px; box-shadow: 0 0 6px #FFD54A; }
.hist-ex .pills { min-width: 0; }
.card-h h3 .ico { color: #FFD54A; }
.card-h h3 .ico:not(:first-child) { color: inherit; }

/* Rutinas */
.r-exs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.r-ex { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font-size: 12px; font-weight: 600; cursor: pointer; max-width: 100%; }
.r-ex i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.r-ex span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-ex small { color: var(--faint); font-weight: 700; }
.r-ex:active { background: var(--card2); }
.r-card .r-top .btn.primary { min-width: 52px; }
.item-name { flex: 1; min-width: 0; display: grid; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
.item-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-name small { display: inline-flex; align-items: center; gap: 4px; color: var(--accent2); font-size: 11px; font-weight: 700; }
.item-grid.two { grid-template-columns: 1fr 1fr; }
.cnt { display: grid; gap: 6px; }
.cnt > span { font-size: 11px; color: var(--muted); font-weight: 600; }
.cnt-row { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 6px; }
.cnt-row b { text-align: center; font: 800 28px/1 var(--font-d); }
.st-btn.sm { height: 44px; border-radius: 12px; font-size: 22px; }

/* Progreso: grupos desplegables */
.grp-list { display: grid; gap: 6px; }
.grp { border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); }
.grp summary { list-style: none; display: grid; grid-template-columns: 10px 84px 1fr 52px 16px; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; font-size: 14px; font-weight: 700; }
.grp summary::-webkit-details-marker { display: none; }
.grp summary > i:first-child, .grp-m > i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.grp summary b, .grp-m b { text-align: right; }
.grp-bar { height: 8px; border-radius: 6px; background: var(--card2); overflow: hidden; }
.grp-bar em { display: block; height: 100%; background: var(--c); border-radius: 6px; }
.grp-ms { display: grid; gap: 6px; padding: 0 12px 12px 12px; }
.grp-m { display: grid; grid-template-columns: 10px 100px 1fr 52px; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding-left: 10px; }
.grp-m > i { width: 7px; height: 7px; border-radius: 50%; }
.grp-m b { color: var(--text); font-size: 13px; }

/* Historial */
.det-h { width: 100%; background: none; border: 0; padding: 0; color: inherit; text-align: left; cursor: pointer; font-size: 15px; }
.det-h small { margin-left: auto; color: var(--accent2); }
.sets-tbl em.tag { font-style: normal; font-weight: 800; font-size: 12px; }
.sets-tbl tr.t-warm td { color: var(--muted); } .sets-tbl tr.t-warm em.tag { color: var(--warn); }
.sets-tbl tr.t-rp em.tag { color: var(--info); } .sets-tbl tr.t-fail em.tag { color: var(--accent2); }
.edit-set { grid-template-columns: 1.35fr 1fr .9fr .8fr 34px; align-items: center; }
.edit-set.head { margin-bottom: 2px; }
.edit-set.head span { font-size: 11px; color: var(--faint); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; text-align: center; padding: 0; }
.edit-set .input { min-height: 42px; padding: 8px 4px; text-align: center; }
.edit-ex .card-h h3 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.det-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.det-actions { display: flex; gap: 6px; }
.hist-r { display: flex; align-items: center; gap: 8px; }
.hist-edit { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); color: var(--muted); }
.hist-edit .ico { width: 18px; height: 18px; }
.type-sel { min-height: 42px !important; padding: 6px 18px 6px 8px !important; font-size: 13px !important; background-position: calc(100% - 10px) 50%, calc(100% - 5px) 50% !important; }
.done-ico .ico { width: 60px; height: 60px; color: var(--accent2); stroke-width: 1.6; margin: 0 auto; }

@media (max-width: 360px) {
  .act-row { grid-template-columns: 96px 1fr 36px; }
  .last-list li { grid-template-columns: 34px 1fr 12px 1fr 46px; font-size: 15px; }
}
.kpi b.kpi-set { white-space: nowrap; font-size: 26px; }
.kpi b.kpi-set small { font-size: 14px; color: var(--muted); margin: 0 1px; }

/* Aviso de cambio de ejercicio */
.switch-sheet { position: fixed; inset: 0; z-index: 45; display: flex; align-items: flex-end; background: rgba(5, 6, 9, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade .2s; }
.switch-inner { width: 100%; max-width: 640px; margin: 0 auto; display: grid; gap: 12px; padding: 20px 20px calc(22px + var(--safe-b) + var(--badge)); border-radius: 26px 26px 0 0; border: 1px solid rgba(225, 29, 46, .5); border-bottom: 0;
  background: radial-gradient(120% 70% at 50% 0%, rgba(225, 29, 46, .28), transparent 60%), linear-gradient(180deg, #1A1114, var(--bg)); box-shadow: 0 -10px 50px rgba(225, 29, 46, .25); animation: up .32s cubic-bezier(.2, .9, .3, 1.1); }
.sw-top { display: flex; justify-content: space-between; align-items: center; }
.sw-top span { display: flex; align-items: center; gap: 8px; color: var(--accent2); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; animation: blink 1.4s infinite; }
.sw-top b { color: var(--muted); font-size: 14px; }
.sw-name { font: 800 40px/1.02 var(--font-d); letter-spacing: .02em; text-transform: uppercase; }
.sw-first { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); }
.sw-first small { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.sw-first b { font-size: 20px; }
.sw-first em { font-style: normal; font-size: 12px; color: var(--muted); background: var(--card2); border-radius: 6px; padding: 2px 6px; margin-right: 4px; vertical-align: 3px; }
.sw-prev { display: grid; gap: 6px; }
.sw-prev > small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }

/* ================= v1.2 ================= */
.top-tips.on, .top-tips:active { color: #FFD54A; }
/* Consejo del día */
.tip-day { display: grid; gap: 6px; border-color: rgba(255, 213, 74, .3); background: radial-gradient(90% 120% at 100% 0%, rgba(255, 213, 74, .10), transparent 60%), linear-gradient(180deg, var(--card), #12161E); color: inherit; }
.tip-day-h { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #FFD54A; }
.tip-day-h .ico { width: 18px; height: 18px; }
.tip-day-h small { margin-left: auto; color: var(--faint); letter-spacing: .04em; text-transform: none; font-weight: 600; }
.tip-day b { font-size: 17px; }
.tip-day p { margin: 0; color: var(--muted); font-size: 14px; }
/* Consejos */
.tips-tabs { overflow-x: auto; scrollbar-width: none; }
.tips-tabs > * { font-size: 13px; white-space: nowrap; padding: 0 6px; }
.tipc { padding: 0; }
.tipc summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; }
.tipc summary::-webkit-details-marker { display: none; }
.tipc summary > div { flex: 1; min-width: 0; display: grid; gap: 3px; }
.tipc summary b { font-size: 16px; }
.tipc summary p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.tipc[open] summary { border-bottom: 1px solid var(--line); }
.tipc > :not(summary) { margin-left: 16px; margin-right: 16px; }
.tip-ul { padding: 12px 0 4px 18px; margin-top: 0; display: grid; gap: 8px; font-size: 14px; line-height: 1.5; }
.tip-ul li::marker { color: var(--accent2); }
.tip-ex { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; margin-bottom: 8px; }
.tip-app { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); border: 1px solid rgba(225, 29, 46, .3); font-size: 13.5px; margin-top: 8px; margin-bottom: 12px; }
.tip-app .ico { color: var(--accent2); margin-top: 2px; }
.refs { list-style: none; padding: 8px 0 14px; margin: 0; display: grid; gap: 6px; border-top: 1px dashed var(--line); }
.refs li { font-size: 12px; line-height: 1.4; }
.refs a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); }
.card > .refs { border-top: 0; padding: 0; }
.best-row { width: calc(100% - 32px); display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 0; background: none; border: 0; border-bottom: 1px solid rgba(38, 44, 56, .6); color: inherit; cursor: pointer; }
.best-row:first-of-type { margin-top: 4px; }
.best-row > div { flex: 1; display: grid; gap: 2px; }
.best-row b { font-size: 15px; }
.best-row small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.elong { font-style: normal; justify-self: start; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--info); background: rgba(77, 163, 255, .12); border: 1px solid rgba(77, 163, 255, .35); border-radius: 6px; padding: 1px 6px; }
/* Programas */
.seg.tabs > a { font-size: 13px; }
.filter-h { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 10px 2px 6px; }
.filter-h .link-sm { letter-spacing: 0; text-transform: none; font-weight: 600; }
.prog-count { margin: 0 2px 10px; }
.prog-src { color: var(--faint); font-size: 12px; font-weight: 600; }
.prog-source { margin: -4px 0 12px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.prog-source span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.prog-card { display: grid; gap: 10px; color: inherit; }
.prog-h { display: flex; align-items: center; gap: 10px; }
.prog-h > div { flex: 1; display: grid; gap: 2px; }
.prog-h b { font: 800 24px/1.05 var(--font-d); letter-spacing: .03em; text-transform: uppercase; }
.prog-h small { color: var(--muted); font-size: 13px; }
.prog-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ptag { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 8px; background: var(--card2); color: var(--muted); }
.ptag.lvl1 { color: var(--ok); background: rgba(61, 220, 132, .12); } .ptag.lvl2 { color: var(--warn); background: rgba(245, 184, 65, .12); } .ptag.lvl3 { color: var(--accent2); background: var(--accent-soft); }
.prog-goals { display: flex; flex-wrap: wrap; gap: 6px; }
.prog-goals span { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; border: 1px solid rgba(225, 29, 46, .4); color: var(--text); background: var(--accent-soft); }
.program .prog-tags, .program .prog-goals { margin-bottom: 12px; }
.prog-tagline { color: var(--accent2); font-weight: 700; margin: -8px 0 10px; }
.prog-p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.prog-ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; line-height: 1.5; }
.prog-ul li::marker { color: var(--accent2); }
.prog-pri { display: flex; flex-wrap: wrap; gap: 6px; }
.prog-pri span { font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); }
.prog-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.prog-week div { display: grid; gap: 4px; align-content: start; text-align: center; padding: 8px 2px; border-radius: 10px; background: var(--accent-soft); border: 1px solid rgba(225, 29, 46, .3); }
.prog-week div.rest { background: var(--bg2); border-color: var(--line); }
.prog-week small { font-size: 10px; color: var(--muted); font-weight: 800; text-transform: uppercase; }
.prog-week b { font-size: 10px; line-height: 1.2; overflow-wrap: anywhere; }
.prog-week div.rest b { color: var(--faint); font-weight: 600; }
.prog-day .card-h small { font-size: 12px; }
.prog-ex { width: 100%; display: grid; grid-template-columns: 1fr auto 14px; align-items: center; gap: 8px; text-align: left; padding: 10px 0; background: none; border: 0; border-bottom: 1px solid rgba(38, 44, 56, .6); color: inherit; cursor: pointer; font-size: 14.5px; font-weight: 600; }
.prog-ex:last-child { border-bottom: 0; }
.prog-ex small { color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.prog-ex .ex-go { font-style: normal; font-size: 18px; }
.row-dt { display: grid; grid-template-columns: 1fr 92px; gap: 10px; }
.row-dt input[type=datetime-local] { font-size: 15px; padding: 10px; min-width: 0; }
.tipc { scroll-margin-top: 72px; }

/* Bienvenida (nombre la primera vez) */
#welcome { position: fixed; inset: 0; z-index: 99; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 24px; transition: opacity .4s;
  background: radial-gradient(70% 45% at 50% 40%, rgba(158, 11, 18, .32), transparent 70%), var(--bg); animation: fade .35s; }
#welcome.hide { opacity: 0; pointer-events: none; }
.welcome-inner { width: 100%; max-width: 380px; display: grid; justify-items: center; gap: 14px; text-align: center; }
.welcome-inner h1 { font: 800 44px/1 var(--font-d); letter-spacing: .05em; text-transform: uppercase; color: #fff; text-shadow: 0 0 24px rgba(225, 29, 46, .55); }
.welcome-inner p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.welcome-input { text-align: center; font-size: 24px !important; font-weight: 700; min-height: 60px; margin-top: 6px; }
.welcome-inner .btn { margin-top: 4px; }

/* Programas en uso dentro de Rutinas */
.prog-group { border: 1px solid rgba(225, 29, 46, .35); border-radius: calc(var(--r) + 4px); padding: 12px 10px 2px; margin-bottom: 14px; background: linear-gradient(180deg, rgba(225, 29, 46, .08), transparent 120px); }
.prog-group-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px; }
.prog-group-h > div { display: grid; gap: 2px; min-width: 0; }
.prog-group-h small { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent2); }
.prog-group-h b { font: 800 24px/1.05 var(--font-d); letter-spacing: .03em; text-transform: uppercase; }
.prog-group-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 12px; }
.prog-group-btns .btn { font-size: 13px; padding: 0 8px; }
.hero-links { display: flex; justify-content: center; gap: 18px; margin-top: 12px; }
.hero-links a { color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }

/* ================= Inicio sin cajas (v1.3) ================= */
.hello { margin: 2px 0 4px; }
.hello small { color: var(--faint); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.home .hello-name { margin: 0; }

/* Bloque principal: directo sobre el fondo, con brillo de brasas detrás */
.forge { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; margin: 0 -16px 8px; padding: 10px 16px 22px; isolation: isolate; }
.forge::before { content: ""; position: absolute; inset: -10px 0 0; z-index: -1; pointer-events: none;
  background: radial-gradient(55% 45% at 50% 62%, rgba(225, 29, 46, .22), transparent 70%), radial-gradient(35% 22% at 50% 18%, rgba(255, 90, 40, .10), transparent 70%); }
.forge.calm::before { background: radial-gradient(55% 45% at 50% 40%, rgba(77, 163, 255, .08), transparent 70%); }
.forge .anvil-svg { margin-bottom: -4px; }
.forge-eyebrow { color: var(--accent2); font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; }
.forge .forge-title { font: 800 52px/1 var(--font-d); font-size: 52px !important; letter-spacing: .06em; text-transform: uppercase; margin: 4px 0 0; color: #fff; text-shadow: 0 0 22px rgba(225, 29, 46, .55); }
.forge.calm .forge-title { font-size: 40px !important; text-shadow: none; }
.forge .forge-title.routine-t { font-size: 38px !important; letter-spacing: .04em !important; }
.forge p { margin: 6px 0 0; }
.forge-mbar { width: 100%; max-width: 260px; }
.forge-moon .ico { width: 48px; height: 48px; color: var(--muted); stroke-width: 1.4; margin-bottom: 6px; }

/* Botón redondo con anillo que respira */
.forge-btn { position: relative; width: 148px; height: 148px; margin: 20px 0 6px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; color: #fff;
  background: radial-gradient(circle at 35% 28%, #FF4A55 0%, var(--accent) 42%, #7A0910 100%);
  box-shadow: 0 14px 40px rgba(225, 29, 46, .45), inset 0 2px 0 rgba(255, 255, 255, .22), inset 0 -8px 18px rgba(0, 0, 0, .35);
  display: grid; place-items: center; transition: transform .12s; -webkit-tap-highlight-color: transparent; }
.forge-btn::before, .forge-btn::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(225, 29, 46, .45); pointer-events: none; }
.forge-btn::after { inset: -10px; border-color: rgba(225, 29, 46, .35); animation: breathe 2.8s ease-out infinite; }
.forge-btn:active { transform: scale(.95); }
.forge-btn-in { display: grid; justify-items: center; gap: 4px; }
.forge-btn .ico { width: 40px; height: 40px; fill: #fff; stroke: #fff; stroke-width: 1; margin-left: 5px; }
.forge-btn b { font: 800 19px/1 var(--font-d); letter-spacing: .14em; text-transform: uppercase; }
@keyframes breathe { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.18); opacity: 0; } }

.pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; margin-top: 14px; border-radius: 999px; border: 1px solid rgba(225, 29, 46, .45); color: var(--accent2); font-size: 14px; font-weight: 600; }
.pill:active { background: var(--accent-soft); }
.forge .hero-links { margin-top: 14px; }

/* Títulos de sección: espacio y una línea fina en vez de cajas */
.home-sec { display: flex; align-items: center; gap: 10px; margin: 26px 2px 12px; color: var(--faint); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.home-sec::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }

/* Racha sin recuadro */
.home .streak { display: flex; align-items: center; gap: 14px; padding: 0 4px; margin: 0; border: 0; background: none; overflow: visible; filter: none; opacity: 1; }
.home .streak.off .streak-fire { filter: grayscale(.85) brightness(.75); }
.home .streak.off .streak-n { filter: grayscale(.8); opacity: .7; }
.home .streak-top { display: flex; align-items: center; gap: 12px; }
.home .streak-n { font-size: 80px; }
.home .streak-txt span { font-size: 19px; line-height: 1.05; }
.streak-weeks { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin: 14px 4px 0; }
.streak-weeks i { height: 6px; border-radius: 3px; background: var(--line); }
.streak-weeks i.on { background: linear-gradient(90deg, #E8261C, #FF8A2E); box-shadow: 0 0 10px rgba(232, 38, 28, .45); }
.streak-weeks i.now:not(.on) { background: transparent; box-shadow: inset 0 0 0 1px var(--faint); }
.streak-weeks span { grid-column: 1 / 5; font-size: 11px; color: var(--faint); }
.streak-weeks span + span { grid-column: 5 / -1; text-align: right; }

/* Números en franja, separados por líneas finas */
.stats { display: grid; grid-template-columns: 1.2fr 1fr 1fr; margin-top: 22px; }
.stat { display: grid; align-content: start; gap: 2px; padding: 0 10px; border-left: 1px solid var(--line); min-width: 0; }
.stat:first-child { border-left: 0; padding-left: 4px; }
.stat b { font: 800 30px/1.05 var(--font-d); letter-spacing: .02em; white-space: nowrap; }
.stat small { color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.stat small .ico { color: #FFD54A; }
.stat .delta { font-size: 11px; }
.last-pr { margin: 12px 4px 0; font-size: 13px; color: var(--muted); }
.last-pr b { color: var(--text); font-weight: 600; }

/* Consejo como cita */
.tip-quote { display: grid; gap: 6px; margin-top: 26px; padding: 2px 4px 2px 16px; border-left: 3px solid #FFD54A; color: inherit; }
.tip-quote b { font-size: 17px; }
.tip-quote p { margin: 0; color: var(--muted); font-size: 14px; font-style: italic; }
.tip-quote .link-sm { justify-self: start; }

/* ---------- v1.4: figuras, pestañas del entrenamiento, guía, objetivos, recuperación ---------- */
:root { --body-m: #252B37; }
.chart.body { max-width: 340px; }
.bm-sil path, .bm-sil ellipse, .bm-sil rect { fill: #161A22; stroke: #313847; stroke-width: 1.1; }
.bm { stroke: #0B0D12; stroke-width: .9; stroke-linejoin: round; transition: fill .4s; cursor: pointer; }
.bm.hot { filter: url(#bmGlow); animation: bm-hot 2.2s ease-in-out infinite; }
@keyframes bm-hot { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
.bm-det path { fill: none; stroke: rgba(11, 13, 18, .55); stroke-width: .8; stroke-linecap: round; pointer-events: none; }
.bm-shine path { fill: url(#bmShine); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .bm.hot { animation: none; } }

.xp { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); }
.xp > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 12px; cursor: pointer; font-weight: 700; font-size: 14px; min-height: 48px; }
.xp > summary::-webkit-details-marker { display: none; }
.xp > summary small { margin-left: auto; color: var(--faint); font-weight: 600; font-size: 12px; text-align: right; }
.xp > summary .chev { flex: none; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; margin: 0 4px 3px 2px; }
.xp[open] > summary .chev { transform: rotate(-135deg); margin-bottom: -3px; }
.xp > :not(summary) { margin: 0 12px 12px; }
.xp.big { margin: 0; border: 0; background: none; }
.xp.big > summary { padding: 4px 0; font: 800 17px/1.1 var(--font-d); letter-spacing: .06em; text-transform: uppercase; }
.xp.big > summary small { font: 600 12px var(--font); letter-spacing: 0; text-transform: none; }
.xp.big > :not(summary) { margin: 8px 0 0; }

.rec-rows { display: grid; gap: 6px; }
.rec-row { display: grid; grid-template-columns: 10px 96px 1fr 62px; align-items: center; gap: 8px; font-size: 13px; }
.rec-row .dot { width: 8px; height: 8px; border-radius: 50%; }
.rec-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-bar { height: 8px; border-radius: 5px; background: var(--card2); overflow: hidden; }
.rec-bar i { display: block; height: 100%; border-radius: 5px; }
.rec-row small { color: var(--faint); text-align: right; font-weight: 600; }
.rec-row.s-low small { color: var(--bad); }

/* Objetivos por músculo */
.tg-list { display: grid; gap: 4px; margin: 6px 0 4px; }
.tg-row { display: grid; grid-template-columns: 118px 1fr 50px; align-items: center; gap: 8px; min-height: 40px; padding: 4px 6px; border: 1px solid transparent; border-radius: 10px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.tg-row:active { background: var(--card2); border-color: var(--line); }
.tg-n { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-n i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.tg-bar { position: relative; height: 14px; border-radius: 6px; background: var(--card2); overflow: hidden; }
.tg-band { position: absolute; top: 0; bottom: 0; background: rgba(61, 220, 132, .16); border-left: 1px dashed rgba(61, 220, 132, .55); border-right: 1px dashed rgba(61, 220, 132, .55); }
.tg-bar b { position: absolute; left: 0; top: 3px; bottom: 3px; border-radius: 4px; background: var(--c); animation: grow-x .6s ease-out; transform-origin: left; }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: none; } }
.tg-v { display: grid; justify-items: end; line-height: 1.1; }
.tg-v b { font-size: 14px; }
.tg-v small { font-size: 10px; color: var(--faint); font-weight: 600; }
.tg-row.s-low .tg-v b { color: var(--info); } .tg-row.s-ok .tg-v b { color: var(--ok); } .tg-row.s-high .tg-v b { color: var(--warn); }

/* Gráfica de fuerza */
.sel-ex { margin: 2px 0 10px; min-height: 44px; }
.str-card .seg.mini { margin-bottom: 8px; }
.chart-val b.up, .chart-val .up { color: var(--ok); } .chart-val b.down, .chart-val .down { color: var(--warn); }

/* Inicio: botón de guía */
.hello { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.help-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 12px; border-radius: 14px; border: 1px solid rgba(225, 29, 46, .35); background: var(--accent-soft); color: var(--text); font: 700 12px/1.15 var(--font); text-align: left; cursor: pointer; }
.help-btn .ico { width: 22px; height: 22px; color: var(--accent2); }

/* Entrenamiento: cabecera, herramientas y pestañas */
.ex-card .ex-head { align-items: center; }
.ex-card .ex-name { flex: 1; min-width: 0; font-size: 28px; }
.ex-fig-btn { flex: none; width: 62px; height: 62px; padding: 0; border-radius: 14px; border: 1px solid var(--line); background: var(--bg2); cursor: pointer; overflow: hidden; }
.ex-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0; }
.ex-tools button { display: grid; justify-items: center; gap: 4px; min-height: 56px; padding: 6px 2px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: 700 11px/1.1 var(--font); cursor: pointer; }
.ex-tools button .ico { width: 20px; height: 20px; color: var(--accent2); }
.ex-tools button:active { background: var(--accent-soft); border-color: var(--accent); }
.wk-tabs { margin: 0 0 12px; }
.wk-tabs > * { min-height: 44px; }
.wk-tabs small { font-size: 11px; color: var(--faint); font-weight: 600; margin-left: 4px; }

/* Figuras de ejercicios */
.exfig { display: block; width: 100%; height: auto; }
.exfig.thumb { background: radial-gradient(circle at 50% 60%, rgba(225, 29, 46, .08), transparent 70%); }
.exfig.anim .fx { opacity: 0; animation: 3.6s ease-in-out infinite; }
.exfig.anim .fx-a { animation-name: fx-a; } .exfig.anim .fx-m { animation-name: fx-m; } .exfig.anim .fx-b { animation-name: fx-b; }
/* Secuencia: inicio → mitad → final → mitad → inicio */
@keyframes fx-a { 0%, 20% { opacity: 1; } 25%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes fx-m { 0%, 20% { opacity: 0; } 25%, 45% { opacity: 1; } 50%, 70% { opacity: 0; } 75%, 95% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fx-b { 0%, 45% { opacity: 0; } 50%, 70% { opacity: 1; } 75%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .exfig.anim .fx { animation: none; } .exfig.anim .fx-b { opacity: 1; } }
.exfig.trio { margin-top: 2px; }
.howto-fig { max-width: 300px; margin: 0 auto; border-radius: 16px; background: radial-gradient(circle at 50% 55%, rgba(225, 29, 46, .1), var(--bg2) 70%); border: 1px solid var(--line); }
.howto-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 8px 0; font-size: 12px; color: var(--muted); }
.howto-legend span { display: inline-flex; align-items: center; gap: 5px; }
.howto-legend i { width: 9px; height: 9px; border-radius: 50%; }
.howto-pair { margin: 4px 0 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.howto-steps { margin: 6px 0 8px; padding-left: 22px; display: grid; gap: 8px; font-size: 15px; line-height: 1.45; }
.howto-steps li::marker { color: var(--accent2); font-weight: 800; }
.fr-dot.a { background: var(--muted); } .fr-dot.b { background: var(--accent); }
.extip-main { display: flex; gap: 10px; align-items: flex-start; }
.extip-main .ico { flex: none; width: 26px; height: 26px; color: var(--warn); margin-top: 2px; }
.extip-best { margin: 12px 0; padding: 10px 12px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); }
.extip-best small { color: var(--accent2); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.extip-best p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.act-panel .act-dd { margin: 0; }
.sw-fig { width: 140px; margin: 0 auto 4px; }

/* Rutina: ejercicios con imagen */
.r-exs:has(.r-ex2) { display: grid; gap: 6px; }
.r-ex2 { display: flex; align-items: stretch; gap: 8px; border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: 12px; background: var(--bg2); overflow: hidden; }
.r-thumb { flex: none; width: 56px; height: 56px; padding: 0; border: 0; border-right: 1px solid var(--line); background: #10131A; cursor: pointer; }
.r-ex2-n { flex: 1; min-width: 0; display: grid; align-content: center; gap: 2px; padding: 6px 10px 6px 0; border: 0; background: none; color: var(--text); text-align: left; font: 600 14px/1.2 var(--font); cursor: pointer; }
.r-ex2-n span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-ex2-n small { color: var(--faint); font-size: 12px; font-weight: 600; }

/* Terminar: descartar en una fila aparte */
.modal-actions:has(> .ghost.danger:nth-child(3):last-child) { grid-template-columns: 1fr; }

/* Gesto volver */
.back-hint { position: fixed; left: 0; top: 0; z-index: 120; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(30, 35, 48, .92); border: 1px solid var(--line); pointer-events: none; opacity: 0; transition: background .15s; }
.back-hint svg { width: 22px; height: 22px; fill: none; stroke: var(--text); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.back-hint.go { background: var(--accent); border-color: var(--accent); }

/* Guía "Cómo usar la app" */
#guide { position: fixed; inset: 0; z-index: 98; display: grid; place-items: center; padding: 18px; background: rgba(6, 7, 10, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: enter .25s ease-out; overflow-y: auto; }
#guide.hide { opacity: 0; transition: opacity .3s; }
.guide-inner { width: 100%; max-width: 420px; display: grid; gap: 12px; padding: 16px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.guide-top { display: flex; justify-content: space-between; align-items: center; color: var(--faint); font-weight: 700; }
.guide-top .link-sm { min-height: 40px; padding: 0 6px; }
.guide-ill { width: 100%; height: auto; border-radius: 14px; background: radial-gradient(circle at 50% 40%, rgba(225, 29, 46, .1), var(--bg2) 75%); border: 1px solid var(--line); }
.guide-ill text { font-family: var(--font); }
.guide-inner h2 { margin: 4px 0 0; font: 800 28px/1.05 var(--font-d); letter-spacing: .03em; text-transform: uppercase; }
.guide-inner ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.guide-inner ul b { color: var(--text); }
.guide-inner li::marker { color: var(--accent); }
.guide-dots { display: flex; justify-content: center; gap: 6px; }
.guide-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--line); transition: width .2s; }
.guide-dots i.on { width: 20px; background: var(--accent); }
.guide-btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.guide-btns .btn { min-height: 56px; }
.guide-top small { text-align: center; flex: 1; padding: 0 6px; }
.guide-sub { margin: -4px 0 2px; color: var(--muted); font-size: 14px; }
.guide-secs { display: grid; gap: 10px; }
.guide-sec { display: grid; grid-template-columns: 44px 1fr 14px; align-items: center; gap: 12px; min-height: 72px; padding: 12px 14px; text-align: left; border-radius: 16px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); cursor: pointer; }
.guide-sec:active { border-color: var(--accent); }
.guide-sec svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--accent-soft); fill: none; stroke: var(--accent2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.guide-sec span { display: grid; gap: 3px; }
.guide-sec b { font: 800 18px/1.1 var(--font-d); letter-spacing: .03em; text-transform: uppercase; }
.guide-sec small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.guide-sec i { color: var(--faint); font-style: normal; font-size: 20px; }

/* ---------- v1.5: encuesta de sueño y comida ---------- */
.chk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.chk-opt { display: grid; place-items: center; align-content: center; gap: 2px; min-height: 58px; padding: 6px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: 700 14px/1.15 var(--font); text-align: center; cursor: pointer; }
.chk-opt small { color: var(--faint); font-size: 11px; font-weight: 600; }
.chk-opt.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.field > span .ico { width: 16px; height: 16px; vertical-align: -3px; color: var(--accent2); }
.chk-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: 100%; margin: 0 0 10px; padding: 0; border: 0; background: none; color: var(--muted); font: 600 12px var(--font); text-align: left; cursor: default; }
button.chk-chips { cursor: pointer; min-height: 40px; }
.chk-chips.empty { color: var(--accent2); }
.chk-chips .ico { width: 14px; height: 14px; vertical-align: -2px; }
.chk { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg2); }
.chk b { color: var(--c, var(--text)); }
.chk-edit { display: inline-grid; place-items: center; color: var(--faint); }
.sleep-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; margin-right: 4px; }
.cond-h { display: flex; align-items: center; gap: 6px; margin: 12px 0 6px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.cond-h .ico { width: 15px; height: 15px; color: var(--accent2); }
.cond-rows { display: grid; gap: 6px; }
.cond-row { display: grid; grid-template-columns: 108px 1fr 52px; grid-template-rows: auto auto; column-gap: 8px; align-items: center; font-size: 13px; }
.cond-row small { grid-column: 1 / -1; color: var(--faint); font-size: 11px; margin-left: 14px; }
.cond-row.off { opacity: .45; }
.cond-l { display: flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cond-l i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.cond-bar { position: relative; height: 12px; border-radius: 6px; background: var(--card2); }
.cond-bar::after { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--muted); }
.cond-bar b { position: absolute; top: 2px; bottom: 2px; border-radius: 4px; }
.cond-bar b.pos { background: var(--ok); } .cond-bar b.neg { background: var(--warn); }
.cond-v { text-align: right; font-weight: 800; }
.cond-v.up { color: var(--ok); } .cond-v.down { color: var(--warn); }

/* ---------- v1.6: semana de descarga ---------- */
.dl-card { border-color: var(--line); }
.dl-card.suggest { border-color: rgba(245, 184, 65, .45); background: linear-gradient(180deg, rgba(245, 184, 65, .08), var(--card)); }
.dl-card.active { border-color: rgba(77, 163, 255, .45); background: linear-gradient(180deg, rgba(77, 163, 255, .08), var(--card)); }
.dl-card .card-h h3 .ico, .dl-banner .ico { width: 18px; height: 18px; vertical-align: -3px; color: var(--warn); }
.dl-card p { margin: 6px 0; }
.dl-card .row2 { margin-top: 8px; }
.dl-card .link-sm { display: block; margin: 10px auto 0; min-height: 36px; }
.dl-why { margin: 8px 0; padding: 10px 12px; border-radius: 12px; background: rgba(245, 184, 65, .08); border: 1px solid rgba(245, 184, 65, .35); }
.dl-why p { margin: 4px 0; font-size: 14px; }
.dl-why .ico { width: 15px; height: 15px; color: var(--warn); vertical-align: -2px; }
.dl-steps li b { color: var(--text); }
.dl-box { margin: 8px 0; padding: 10px 12px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); }
.dl-box b { font-size: 13px; }
.dl-box p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.dl-banner { display: flex; align-items: flex-start; gap: 8px; width: 100%; margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(77, 163, 255, .45); background: rgba(77, 163, 255, .08); color: var(--text); font: 600 13px/1.35 var(--font); text-align: left; cursor: pointer; }
.dl-banner .ico { flex: none; color: var(--info); margin-top: 1px; }
.cond-h small { text-transform: none; letter-spacing: 0; color: var(--faint); font-weight: 600; }

/* ---------- v1.7: racha épica ---------- */
.streak2 { position: relative; margin: 4px 0 14px; padding: 14px 14px 12px; border-radius: 22px; border: 1px solid rgba(225, 29, 46, .28); background: radial-gradient(120% 80% at 20% 0%, rgba(225, 29, 46, .16), transparent 60%), linear-gradient(180deg, #14161D, #0F1117); overflow: hidden; }
.streak2::before { content: ''; position: absolute; inset: auto -20% -60% -20%; height: 120%; background: radial-gradient(closest-side, rgba(255, 106, 30, .14), transparent); pointer-events: none; }
.streak2.lv-blue { border-color: rgba(31, 107, 255, .4); background: radial-gradient(120% 80% at 20% 0%, rgba(31, 107, 255, .2), transparent 60%), linear-gradient(180deg, #121620, #0F1117); }
.streak2.lv-titan { border-color: rgba(19, 181, 207, .4); background: radial-gradient(120% 80% at 20% 0%, rgba(19, 181, 207, .18), transparent 60%), linear-gradient(180deg, #11171B, #0F1117); }
.streak2.lv-gold, .streak2.lv-immortal { border-color: rgba(255, 212, 94, .45); background: radial-gradient(120% 80% at 20% 0%, rgba(255, 180, 46, .2), transparent 60%), linear-gradient(180deg, #17140E, #0F1117); }
.streak2.off { border-color: var(--line); background: linear-gradient(180deg, #13161D, #0F1117); }
.st-hero { position: relative; display: flex; align-items: center; gap: 10px; }
.st-fire { flex: none; margin: -10px -6px -6px -8px; }
.st-txt { flex: 1; min-width: 0; display: grid; gap: 4px; }
.st-level { font: 800 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--accent2); }
.lv-blue .st-level { color: #7FC4FF; } .lv-titan .st-level { color: #8DF0FF; } .lv-gold .st-level, .lv-immortal .st-level { color: #FFD45E; } .off .st-level { color: var(--faint); }
.st-num { display: flex; align-items: center; gap: 10px; }
.st-num b { font: 800 84px/.86 var(--font-d); letter-spacing: .01em; background: linear-gradient(180deg, #FFF3C4 0%, #FFB22E 38%, #E8261C 75%, #8E0B12 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 16px rgba(232, 38, 28, .5)); }
.lv-blue .st-num b { background-image: linear-gradient(180deg, #F2FAFF, #7FC4FF 45%, #1F6BFF 80%, #0A2A6B); filter: drop-shadow(0 0 16px rgba(31, 107, 255, .55)); }
.lv-titan .st-num b { background-image: linear-gradient(180deg, #FFFFFF, #8DF0FF 45%, #13B5CF 80%, #0B4552); filter: drop-shadow(0 0 16px rgba(19, 181, 207, .55)); }
.lv-gold .st-num b, .lv-immortal .st-num b { background-image: linear-gradient(180deg, #FFFBE0, #FFD45E 45%, #E0961C 80%, #6B3A00); filter: drop-shadow(0 0 18px rgba(255, 180, 46, .55)); }
.off .st-num b { background: none; color: #4A505C; filter: none; -webkit-background-clip: initial; background-clip: initial; }
.st-num span { font: 800 18px/1.05 var(--font-d); letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.st-next { display: grid; gap: 4px; }
.st-bar { height: 7px; border-radius: 4px; background: #1E222B; overflow: hidden; box-shadow: inset 0 0 0 1px #262C38; }
.st-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #8E0B12, #E8261C, #FFB22E); box-shadow: 0 0 10px rgba(255, 120, 40, .6); animation: grow-x .8s ease-out; transform-origin: left; }
.lv-blue .st-bar i { background: linear-gradient(90deg, #0A2A6B, #1F6BFF, #7FC4FF); } .lv-titan .st-bar i { background: linear-gradient(90deg, #0B4552, #13B5CF, #8DF0FF); }
.lv-gold .st-bar i, .lv-immortal .st-bar i { background: linear-gradient(90deg, #6B3A00, #E0961C, #FFD45E); }
.st-next small, .st-max { color: var(--muted); font-size: 12px; }
.st-next small b { color: var(--text); }
/* Semana: lingotes que se forjan al entrenar */
.st-week { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 12px 0 8px; }
.ingot { display: grid; justify-items: center; gap: 4px; }
.ingot i { width: 100%; height: 26px; border-radius: 7px 7px 4px 4px; clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%); background: linear-gradient(180deg, #2A303B, #1A1E26); }
.ingot span { font-size: 11px; font-weight: 800; color: var(--faint); }
.ingot.hot i { background: linear-gradient(180deg, #FFF3B0 0%, #FFB22E 30%, #E8261C 75%, #8E0B12 100%); box-shadow: 0 0 14px rgba(255, 110, 30, .6); animation: ingot-glow 2.4s ease-in-out infinite; }
.lv-blue .ingot.hot i { background: linear-gradient(180deg, #F2FAFF, #7FC4FF 35%, #1F6BFF 80%, #0A2A6B); box-shadow: 0 0 14px rgba(31, 107, 255, .6); }
.lv-titan .ingot.hot i { background: linear-gradient(180deg, #FFFFFF, #8DF0FF 35%, #13B5CF 80%, #0B4552); box-shadow: 0 0 14px rgba(19, 181, 207, .6); }
.lv-gold .ingot.hot i, .lv-immortal .ingot.hot i { background: linear-gradient(180deg, #FFFBE0, #FFD45E 35%, #E0961C 80%, #6B3A00); box-shadow: 0 0 14px rgba(255, 180, 46, .6); }
.ingot.hot span { color: var(--text); }
.ingot.today i { background: #1A1E26; box-shadow: inset 0 0 0 2px var(--accent); animation: today-pulse 1.6s ease-in-out infinite; }
.ingot.today span { color: var(--accent2); }
.ingot.future i { opacity: .45; }
.ingot.cold i { background: linear-gradient(180deg, #23272F, #16191F); opacity: .8; }
@keyframes ingot-glow { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.18); } }
@keyframes today-pulse { 0%, 100% { box-shadow: inset 0 0 0 2px var(--accent); } 50% { box-shadow: inset 0 0 0 2px var(--accent), 0 0 12px rgba(225, 29, 46, .55); } }
.st-goal { position: relative; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.st-goal b { color: var(--text); }
.st-goal .link-sm { min-height: 36px; }
.st-risk { position: relative; display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.4; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.st-risk .ico { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.st-risk.safe { border-color: rgba(61, 220, 132, .4); background: rgba(61, 220, 132, .08); } .st-risk.safe .ico { color: var(--ok); }
.st-risk.ok .ico { color: var(--accent2); }
.st-risk.warn { border-color: rgba(245, 184, 65, .45); background: rgba(245, 184, 65, .08); } .st-risk.warn .ico { color: var(--warn); }
.st-risk.danger { border-color: rgba(255, 92, 92, .55); background: rgba(225, 29, 46, .12); animation: danger-pulse 2s ease-in-out infinite; } .st-risk.danger .ico { color: var(--bad); }
@keyframes danger-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(225, 29, 46, 0); } 50% { box-shadow: 0 0 18px 0 rgba(225, 29, 46, .35); } }
.st-foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.st-freeze { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.st-freeze .ico { width: 16px; height: 16px; } .st-freeze.ok .ico { color: var(--info); } .st-freeze.used .ico { color: var(--faint); }
.st-freeze b { color: var(--text); }
.st-foot .btn .ico { width: 16px; height: 16px; vertical-align: -3px; color: var(--warn); }
/* Llama */
.forge-flame { display: block; overflow: visible; }
.forge-flame .ff-body { transform-box: fill-box; }
.forge-flame .fl-out { transform-origin: 50% 100%; transform-box: fill-box; animation: ff-flick 1.6s ease-in-out infinite; }
.forge-flame .fl-mid { transform-origin: 50% 100%; transform-box: fill-box; animation: ff-flick 1.2s ease-in-out infinite reverse; }
.forge-flame .fl-core { transform-origin: 50% 100%; transform-box: fill-box; animation: ff-flick .9s ease-in-out infinite; }
.forge-flame .ff-glow { animation: ff-glow 2.2s ease-in-out infinite; }
.forge-flame .ff-spark { animation: ff-spark 2s ease-out infinite; opacity: 0; }
.forge-flame.lv-off .fl-out, .forge-flame.lv-off .fl-mid, .forge-flame.lv-off .fl-core, .forge-flame.lv-off .ff-glow { animation: none; }
.forge-flame .ff-crown { animation: ff-glow 2.2s ease-in-out infinite; }
@keyframes ff-flick { 0%, 100% { transform: scale(1, 1) skewX(0); } 30% { transform: scale(1.03, .96) skewX(-2deg); } 60% { transform: scale(.97, 1.05) skewX(2deg); } }
@keyframes ff-glow { 0%, 100% { opacity: .8; } 50% { opacity: 1; } }
@keyframes ff-spark { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx, 0), -70px); } }
@media (prefers-reduced-motion: reduce) { .forge-flame *, .ingot i, .st-risk.danger { animation: none !important; } .forge-flame .ff-spark { opacity: 0; } }
/* Vitrina */
.trophy-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.trophy-top b { display: block; font: 800 30px/1 var(--font-d); }
.trophy-top small { color: var(--muted); }
.lv-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.lv-chip { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); opacity: .4; filter: grayscale(.9); }
.lv-chip.on { opacity: 1; filter: none; border-color: rgba(225, 29, 46, .4); }
.lv-chip span { font-size: 10.5px; font-weight: 800; text-align: center; line-height: 1.1; }
.lv-chip small { font-size: 10px; color: var(--faint); }
.medals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.medal { display: grid; justify-items: center; gap: 2px; text-align: center; padding: 8px 4px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); }
.medal svg { width: 62px; height: 62px; }
.medal.got svg { filter: drop-shadow(0 0 8px rgba(255, 180, 46, .35)); }
.medal b { font-size: 12px; line-height: 1.15; }
.medal small { font-size: 10.5px; color: var(--faint); }
.medal.locked b { color: var(--muted); }
.goal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.goal-grid .chk-opt b { font: 800 26px/1 var(--font-d); }
/* Celebración */
.streak-burst { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); background: radial-gradient(circle at 50% 45%, rgba(225, 29, 46, .38), rgba(6, 7, 10, .97) 62%); animation: sb-in .35s ease-out; cursor: pointer; }
.streak-burst.lv-blue { background: radial-gradient(circle at 50% 45%, rgba(31, 107, 255, .35), rgba(6, 7, 10, .94) 65%); }
.streak-burst.lv-titan { background: radial-gradient(circle at 50% 45%, rgba(19, 181, 207, .32), rgba(6, 7, 10, .94) 65%); }
.streak-burst.lv-gold, .streak-burst.lv-immortal { background: radial-gradient(circle at 50% 45%, rgba(255, 180, 46, .35), rgba(6, 7, 10, .94) 65%); }
.streak-burst.out { opacity: 0; transition: opacity .45s; }
.sb-inner { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 24px; }
.sb-fire { animation: sb-pop .7s cubic-bezier(.2, 1.6, .4, 1); }
.sb-up { font: 800 16px/1 var(--font); font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: #FFD45E; }
.sb-title { font: 800 44px/1 var(--font-d); letter-spacing: .04em; text-transform: uppercase; color: #fff; text-shadow: 0 0 24px rgba(225, 29, 46, .8); }
.sb-num { margin: 4px 0 0; font: 800 20px/1.2 var(--font-d); letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.sb-num span { font-size: 56px; color: #FFB22E; vertical-align: -6px; margin-right: 6px; }
.sb-sub { margin: 0; color: var(--muted); }
.sb-inner > small { margin-top: 14px; color: var(--faint); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
@keyframes sb-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sb-pop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.toast .ico { width: 16px; height: 16px; vertical-align: -3px; color: var(--warn); }

/* ---------- v1.8: pestaña Racha, Entrenar al centro e Inicio resumido ---------- */
.nav a { font-size: 9.5px; letter-spacing: -.01em; }
.nav svg { width: 22px; height: 22px; }
.nav-main { position: relative; }
.nav-main svg { width: 60px !important; height: 60px !important; padding: 14px; margin-top: -30px; border-radius: 20px; border: 3px solid var(--bg); box-shadow: 0 8px 26px rgba(225, 29, 46, .55), 0 0 0 1px rgba(255, 90, 95, .35) inset; }
.nav-main span { font-weight: 800; color: var(--text); font-size: 10.5px; margin-top: 1px; }
.nav-main.on span { color: var(--accent2); }
.hello-quote { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; font: 800 20px/1.15 var(--font-d); letter-spacing: .04em; text-transform: uppercase; color: #E8EAF0; }
.hello-quote i { flex: none; width: 4px; align-self: stretch; border-radius: 2px; background: linear-gradient(180deg, var(--accent), #8E0B12); box-shadow: 0 0 10px rgba(225, 29, 46, .6); }
.hello-quote em { font-style: normal; color: var(--accent2); text-shadow: 0 0 14px rgba(225, 29, 46, .55); }
.mini-card { display: block; color: var(--text); margin-bottom: 12px; }
.mini-h { display: flex; justify-content: space-between; align-items: center; font: 800 13px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.mini-h span { display: inline-flex; align-items: center; gap: 6px; }
.mini-h .ico { width: 16px; height: 16px; color: var(--accent2); }
.mini-val { display: flex; align-items: baseline; gap: 8px; }
.mini-val b { font: 800 34px/1 var(--font-d); } .mini-val b.up { color: var(--ok); } .mini-val b.down { color: var(--warn); }
.mini-val small { color: var(--muted); font-size: 12px; }
.spark { display: block; width: 100%; height: 64px; margin-top: 4px; }
.mini-body { display: grid; place-items: center; }
.mini-body .chart.body { max-width: 230px; }
.mini-streak { display: flex; align-items: center; gap: 10px; color: var(--text); margin-bottom: 12px; padding: 10px 12px; border-color: rgba(225, 29, 46, .3); background: radial-gradient(120% 90% at 0% 0%, rgba(225, 29, 46, .14), transparent 60%), var(--card); }
.mini-streak.lv-blue { border-color: rgba(31, 107, 255, .4); background: radial-gradient(120% 90% at 0% 0%, rgba(31, 107, 255, .18), transparent 60%), var(--card); }
.mini-streak.lv-titan { border-color: rgba(19, 181, 207, .4); }
.mini-streak.lv-gold, .mini-streak.lv-immortal { border-color: rgba(255, 212, 94, .45); background: radial-gradient(120% 90% at 0% 0%, rgba(255, 180, 46, .16), transparent 60%), var(--card); }
.mini-streak.off { border-color: var(--line); background: var(--card); }
.ms-fire { flex: none; margin: -6px -2px -4px -4px; }
.ms-txt { flex: 1; min-width: 0; display: grid; gap: 5px; }
.ms-top { display: flex; align-items: center; gap: 8px; }
.ms-top b { font: 800 44px/.9 var(--font-d); background: linear-gradient(180deg, #FFF3C4, #FFB22E 40%, #E8261C 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lv-blue .ms-top b { background-image: linear-gradient(180deg, #F2FAFF, #7FC4FF 45%, #1F6BFF); } .lv-titan .ms-top b { background-image: linear-gradient(180deg, #fff, #8DF0FF 45%, #13B5CF); }
.lv-gold .ms-top b, .lv-immortal .ms-top b { background-image: linear-gradient(180deg, #FFFBE0, #FFD45E 45%, #E0961C); }
.off .ms-top b { background: none; color: #4A505C; }
.ms-top span { display: grid; font: 800 15px/1 var(--font-d); letter-spacing: .1em; text-transform: uppercase; }
.ms-top small { font: 700 11px/1.3 var(--font); letter-spacing: .04em; text-transform: none; color: var(--accent2); }
.lv-blue .ms-top small { color: #7FC4FF; } .lv-gold .ms-top small, .lv-immortal .ms-top small { color: #FFD45E; } .off .ms-top small { color: var(--faint); }
.ms-week { display: flex; align-items: center; gap: 4px; }
.ms-week i { flex: 1; height: 8px; border-radius: 3px; background: #23272F; }
.ms-week i.hot { background: linear-gradient(90deg, #E8261C, #FFB22E); box-shadow: 0 0 8px rgba(255, 110, 30, .55); }
.lv-blue .ms-week i.hot { background: linear-gradient(90deg, #1F6BFF, #7FC4FF); box-shadow: 0 0 8px rgba(31, 107, 255, .55); }
.lv-gold .ms-week i.hot, .lv-immortal .ms-week i.hot { background: linear-gradient(90deg, #E0961C, #FFD45E); }
.ms-week i.today { box-shadow: inset 0 0 0 1.5px var(--accent); }
.ms-week em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--muted); margin-left: 4px; }
.ms-risk { margin: 0; font-size: 12px; line-height: 1.3; color: var(--muted); }
.ms-risk.danger { color: var(--bad); font-weight: 700; } .ms-risk.warn { color: var(--warn); } .ms-risk.safe { color: var(--ok); }
/* Historial de semanas en Racha */
.wk-hist { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: end; margin: 6px 0 4px; }
.wh { display: grid; justify-items: center; gap: 3px; }
.wh-col { position: relative; width: 100%; height: 70px; border-radius: 5px; background: #171A21; overflow: hidden; }
.wh-col i { position: absolute; left: 2px; right: 2px; bottom: 0; border-radius: 4px 4px 2px 2px; background: #3A414F; }
.wh-col em { position: absolute; left: 0; right: 0; border-top: 1.5px dashed rgba(255, 255, 255, .35); }
.wh.ok i { background: linear-gradient(180deg, #FFB22E, #E8261C 60%, #8E0B12); box-shadow: 0 0 8px rgba(255, 110, 30, .45); }
.wh.frozen i { background: linear-gradient(180deg, #7FC4FF, #1F6BFF); }
.wh.miss i { background: #2E333D; }
.wh.cur .wh-col { box-shadow: inset 0 0 0 1.5px var(--accent); }
.wh small { font-size: 10px; color: var(--faint); }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.lg.ok { background: #E8261C; } .lg.frozen { background: #1F6BFF; } .lg.miss { background: #2E333D; } .lg.goal { height: 0; border-top: 1.5px dashed rgba(255, 255, 255, .5); border-radius: 0; }
/* Catálogo de rutinas */
.tpl-card { display: grid; gap: 10px; }
.tpl-h > div { display: grid; gap: 2px; }
.tpl-h b { font: 800 22px/1.05 var(--font-d); letter-spacing: .03em; text-transform: uppercase; }
.tpl-h small { color: var(--muted); font-size: 13px; }
.tpl-ex summary { cursor: pointer; color: var(--accent2); font-weight: 700; font-size: 14px; min-height: 40px; display: flex; align-items: center; }
.tpl-ex[open] summary { margin-bottom: 4px; }
.tpl-card .btn.full { min-height: 56px; }
/* Modos Gym / Calistenia / Casa */
.mode-seg { margin: 0 0 12px; }
.mode-seg button { min-height: 44px; font-weight: 800; letter-spacing: .02em; }
.home-mode { margin: 4px 0 14px; }
.equip-line { margin: -4px 2px 12px; }
.mode-note { margin: -4px 2px 10px; }
.equip-grid { display: grid; gap: 8px; margin: 10px 0 14px; }
.equip-opt { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg2); font-weight: 600; cursor: pointer; }
.equip-opt input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.equip-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.miss { display: block; color: var(--warn); font-size: 12px; font-weight: 700; }
.prog-card.dim { opacity: .62; }
.ex-name small.ex-level { display: block; margin-top: 3px; font: 700 12px/1.3 var(--font); letter-spacing: 0; text-transform: none; color: var(--accent2); }
.lastre-hint { margin: -2px 0 8px; }
.lv-list { list-style: none; margin: 8px 0 10px; padding: 0; display: grid; gap: 6px; }
.lv-list a { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); color: var(--muted); font-weight: 600; font-size: 14px; }
.lv-list em { font-style: normal; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--card2); color: var(--muted); font-weight: 800; font-size: 13px; }
.lv-list .past a { color: var(--text); }
.lv-list .past em { background: rgba(61, 220, 132, .15); color: var(--ok); }
.lv-list .on a { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.lv-list .on em { background: var(--accent); color: #fff; }
.lv-list small { color: var(--accent2); font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.kv small.muted { display: block; font-size: 12px; font-weight: 500; }
/* Consigue la app */
.ga-tabs { margin-top: 14px; }
.ga-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ga-step { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
.ga-ill { width: 96px; height: auto; }
.ga-step small { color: var(--accent2); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
.ga-step b { display: block; font: 800 19px/1.15 var(--font-d); letter-spacing: .02em; text-transform: uppercase; margin: 2px 0 4px; }
.ga-step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.ga-step p b { display: inline; font: inherit; text-transform: none; color: var(--text); font-weight: 700; }
.ga-link { display: flex; gap: 8px; align-items: center; }
.ga-link code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 10px 12px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); font-size: 13px; }
.ga-card { display: block; color: inherit; }
.ok-card b { color: var(--ok); }
.install .link-sm { display: inline-block; margin-top: 8px; }
.ga-quick { display: grid; gap: 10px; } .ga-quick > b { font: 800 20px/1.1 var(--font-d); text-transform: uppercase; letter-spacing: .02em; } .ga-quick p { margin: 0; }
