:root {
  --bg: #12202B; --bg-deep: #0C1720; --surface: #1B2D3A; --surface2: #223646; --border: #2C4352;
  --text: #F3EEE6; --muted: #A9B8C2; --amber: #F2B25C; --amber-soft: rgba(242, 178, 92, 0.16);
  --teal: #7FC8B8; --rose: #E58CA0; --danger: #F09A8E; --ink: #12202B;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg-deep); color-scheme: dark; }
body { margin: 0; background: var(--bg-deep); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.4; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
a { color: var(--amber); }

.app { max-width: 480px; min-height: 100dvh; margin: 0 auto; background: var(--bg); position: relative; padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
.app.bare { padding-bottom: 0; }
.boot { padding: 80px 24px; text-align: center; color: var(--muted); }
.screen { padding: 28px 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }

.h1 { font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1.15; }
.h2 { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.2; }
.quote { font-family: var(--display); font-weight: 500; font-size: 20px; line-height: 1.3; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); }
.eyebrow.teal { color: var(--teal); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.hidden { display: none !important; }

/* Tarjetas */
.card { background: var(--surface); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.card.line { border: 1px solid var(--border); }
.card.soft { background: var(--surface2); }
.card.amber { background: var(--amber); color: var(--ink); }
.card.amber .eyebrow { color: var(--ink); }
.card.done { background: rgba(127, 200, 184, 0.14); border: 1px solid var(--teal); }

/* Botones */
.btn { min-height: 52px; padding: 0 20px; border: 0; border-radius: 14px; background: var(--amber); color: var(--ink); font-size: 17px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn.block { width: 100%; }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); font-weight: 500; }
.btn.outline { background: transparent; color: var(--amber); border: 1px solid var(--amber); }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); font-weight: 500; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.link { background: none; border: 0; padding: 8px 4px; min-height: 44px; color: var(--amber); font-weight: 500; }
.iconbtn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }

/* Opciones y chips */
.opts { display: flex; flex-direction: column; gap: 12px; }
.opt { min-height: 60px; text-align: left; padding: 12px 18px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--border); font-size: 17px; display: flex; flex-direction: column; gap: 2px; width: 100%; }
.opt .sub { font-size: 14px; color: var(--muted); }
.opt[aria-pressed="true"] { background: var(--amber-soft); border-color: var(--amber); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 22px; background: var(--surface); border: 1.5px solid var(--border); font-size: 15px; }
.chip[aria-pressed="true"] { background: var(--amber-soft); border-color: var(--amber); }
.chip.static { display: inline-flex; align-items: center; cursor: default; }
.tag { font-size: 12px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.pill b { color: var(--amber); font-size: 18px; }

/* Barras */
.bar { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 4px; background: var(--teal); }
.bar.amber > i { background: var(--amber); }

/* Checklist */
.checks { display: flex; flex-direction: column; gap: 8px; }
.check-wrap { display: flex; align-items: stretch; gap: 4px; }
.check { flex: 1; min-height: 60px; display: flex; align-items: center; gap: 14px; padding: 8px 16px; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.check .box { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--muted); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.check .box svg { opacity: 0; }
.check .ct { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.check .t { font-size: 16px; }
.check .a { font-size: 12px; color: var(--muted); }
.check.done { color: var(--muted); }
.check.done .t { text-decoration: line-through; }
.check.done .box { background: var(--amber); border-color: var(--amber); }
.check.done .box svg { opacity: 1; }
.addrow { display: flex; gap: 8px; }
.addrow input { flex: 1; min-width: 0; }

/* Formularios */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 14px; color: var(--muted); }
input[type="text"], input[type="password"], input[type="number"], input[type="time"], input[type="date"], textarea, select { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; background: var(--bg); border: 1.5px solid var(--border); }
textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: #7D909C; }
input[type="range"] { width: 100%; min-height: 44px; accent-color: var(--amber); background: transparent; }
.err { color: var(--danger); font-size: 14px; min-height: 20px; }
.daychips { display: flex; gap: 6px; }
.daychips label { flex: 1; }
.daychips input { position: absolute; opacity: 0; pointer-events: none; }
.daychips span { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--bg); font-weight: 700; font-size: 14px; }
.daychips input:checked + span { background: var(--amber-soft); border-color: var(--amber); color: var(--amber); }
.daychips input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.switch { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.switch input { width: 22px; height: 22px; accent-color: var(--amber); }

/* Navegación inferior */
.nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 20; display: flex; background: var(--surface); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
.nav button { flex: 1; min-height: 72px; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: 12px; }
.nav button[aria-current="page"] { color: var(--amber); }

/* Hoja inferior */
.sheet-back { position: fixed; inset: 0; background: rgba(5, 12, 18, 0.7); z-index: 40; }
.sheet { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; max-height: 92dvh; overflow-y: auto; z-index: 50; background: var(--surface); border-radius: 22px 22px 0 0; padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--border); margin: -10px auto 4px; }
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); max-width: min(440px, calc(100% - 32px)); background: var(--text); color: var(--ink); padding: 12px 18px; border-radius: 14px; font-size: 15px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 60; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Entrada / marca */
.brand { display: flex; flex-direction: column; gap: 14px; }
.sun { width: 64px; height: 64px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 12px var(--amber-soft); margin: 4px 0 12px 12px; }
.auth { padding: 56px 24px 32px; display: flex; flex-direction: column; gap: 22px; min-height: 100dvh; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); }
.seg button { flex: 1; min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--surface2); color: var(--text); }

/* Cuestionario */
.ob { padding: 24px 22px 28px; display: flex; flex-direction: column; gap: 18px; min-height: 100dvh; }
.ob-head { display: flex; align-items: center; gap: 12px; }
.steps { flex: 1; display: flex; gap: 4px; }
.steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--border); }
.steps i.on { background: var(--amber); }
.ob-foot { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.rueda-row { display: flex; flex-direction: column; gap: 0; padding: 4px 0; }
.rueda-row .top { display: flex; justify-content: space-between; align-items: baseline; }
.rueda-row output { font-weight: 700; color: var(--amber); min-width: 28px; text-align: right; }
.plan-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.plan-item input[type="checkbox"] { width: 22px; height: 22px; margin-top: 12px; accent-color: var(--amber); flex: none; }
.plan-item .grow { display: flex; flex-direction: column; gap: 6px; }

/* Camino */
.wheel { display: flex; flex-direction: column; gap: 10px; }
.wheel-row { display: grid; grid-template-columns: 128px 1fr 24px; align-items: center; gap: 10px; font-size: 14px; }
.wheel-row b { text-align: right; font-weight: 500; color: var(--muted); }
.goal { text-align: left; width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.goal.finished .gt { text-decoration: line-through; color: var(--muted); }
.goal .gt { font-size: 16px; }
.item { width: 100%; text-align: left; min-height: 60px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.item.paused { opacity: 0.55; }
.item .it { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* Espiritual */
.entry { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.entry p { white-space: pre-wrap; font-size: 15px; line-height: 1.5; }
.entry .prompt { font-style: italic; color: var(--muted); font-size: 14px; }
.breath { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 8px 0; }
.breath-circle { width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #F8CC8B, var(--amber)); box-shadow: 0 0 0 14px var(--amber-soft); transition: transform 6s ease-in-out; }
.breath-circle.in { transform: scale(1.3); transition-duration: 4s; }
.breath-circle.out { transform: scale(1); transition-duration: 6s; }
@media (prefers-reduced-motion: reduce) { .breath-circle, .breath-circle.in, .breath-circle.out { transition: none; } .toast { transition: none; } }

/* Semana */
.wk { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 150px; }
.wk .col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.wk .b { width: 100%; max-width: 34px; border-radius: 8px 8px 4px 4px; background: var(--teal); min-height: 6px; }
.wk .b.none { background: var(--border); }
.wk .b.today { background: var(--amber); }
.wk .d { font-size: 12px; color: var(--muted); }
.wk .d.today { color: var(--amber); font-weight: 700; }
.wk .v { font-size: 11px; color: var(--muted); height: 14px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { background: var(--surface); border-radius: 14px; padding: 14px 10px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.tile b { font-family: var(--display); font-size: 26px; color: var(--amber); font-weight: 600; }
.tile span { font-size: 12px; color: var(--muted); }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 16px; }
details summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-weight: 500; }
details[open] { padding-bottom: 14px; }
.hr { height: 1px; background: var(--border); border: 0; margin: 4px 0; }
.list-plain { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 15px; }

@media (min-width: 520px) {
  .app { margin-top: 0; box-shadow: 0 0 0 1px var(--border), 0 20px 60px rgba(0, 0, 0, 0.4); }
}

/* v0.2 */
.nav button { font-size: 11.5px; }
.segs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); }
.segs button { flex: 1; min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 500; }
.segs button[aria-pressed="true"] { background: var(--surface2); color: var(--text); }
.menu-list { display: flex; flex-direction: column; gap: 10px; }
.item .arrow { margin-left: auto; color: var(--muted); }
.vasos { display: flex; gap: 6px; flex-wrap: wrap; }
.vaso { width: 26px; height: 34px; border-radius: 4px 4px 8px 8px; border: 2px solid var(--border); background: transparent; }
.vaso.on { background: #6FB6E8; border-color: #6FB6E8; }
.meal { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.meal .when { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); min-width: 74px; padding-top: 2px; }
.meal .what { flex: 1; font-size: 15px; }
.meal .kc { font-size: 13px; color: var(--muted); white-space: nowrap; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 56px; }
.spark i { flex: 1; background: var(--teal); border-radius: 3px 3px 1px 1px; min-height: 4px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .h { text-align: center; font-size: 12px; color: var(--muted); padding: 4px 0; }
.cal button { aspect-ratio: 1; min-height: 40px; border-radius: 12px; border: 1.5px solid transparent; background: var(--surface); font-size: 14px; position: relative; }
.cal button.out { opacity: .35; }
.cal button.periodo { background: rgba(229,140,160,.35); border-color: var(--rose); }
.cal button.prev { border: 1.5px dashed var(--rose); }
.cal button.fertil { background: rgba(127,200,184,.22); }
.cal button.ov { background: var(--amber-soft); border-color: var(--amber); }
.cal button.hoy { box-shadow: 0 0 0 2px var(--text) inset; font-weight: 700; }
.cal button .dot { position: absolute; bottom: 4px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 5px; vertical-align: -1px; }
.chat { display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 86%; padding: 12px 14px; border-radius: 16px; font-size: 15.5px; line-height: 1.45; white-space: pre-wrap; }
.bubble.user { align-self: flex-end; background: var(--amber); color: var(--ink); border-bottom-right-radius: 4px; }
.bubble.coach { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.bubble.wait { color: var(--muted); }
.chatform { position: sticky; bottom: calc(80px + env(safe-area-inset-bottom)); display: flex; gap: 8px; background: var(--bg); padding: 8px 0; }
.chatform textarea { min-height: 48px; height: 48px; resize: none; }
.stars { display: flex; gap: 6px; }
.stars label { flex: 1; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars span { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--bg); font-weight: 700; }
.stars input:checked + span { background: var(--amber-soft); border-color: var(--amber); color: var(--amber); }
.stars input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.rose { border-color: var(--rose) !important; }
.code { font-family: var(--display); font-size: 34px; letter-spacing: .18em; text-align: center; padding: 10px 0; color: var(--amber); }
.chip-r input { position: absolute; opacity: 0; pointer-events: none; }
.chip-r span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 22px; background: var(--surface); border: 1.5px solid var(--border); font-size: 15px; }
.chip-r input:checked + span { background: var(--amber-soft); border-color: var(--amber); }
.chip-r input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.sheet .chip-r span { background: var(--bg); }
.switch input { flex: none; }

/* ---------- v0.3: temas, tamaño de texto, impresión ---------- */
html[data-tema="claro"] { color-scheme: light; }
@media (prefers-color-scheme: light) { html[data-tema="auto"] { color-scheme: light; } }
html[data-tema="claro"] {
  --bg: #FBF7F0; --bg-deep: #EFE8DB; --surface: #FFFFFF; --surface2: #F4EDE1; --border: #D9CDB9;
  --text: #1F2A33; --muted: #55626C; --amber: #B5640A; --amber-soft: rgba(181, 100, 10, 0.12);
  --teal: #2B7A69; --rose: #BE4B66; --danger: #B3382B; --ink: #FFFFFF;
}
@media (prefers-color-scheme: light) {
  html[data-tema="auto"] {
    --bg: #FBF7F0; --bg-deep: #EFE8DB; --surface: #FFFFFF; --surface2: #F4EDE1; --border: #D9CDB9;
    --text: #1F2A33; --muted: #55626C; --amber: #B5640A; --amber-soft: rgba(181, 100, 10, 0.12);
    --teal: #2B7A69; --rose: #BE4B66; --danger: #B3382B; --ink: #FFFFFF;
  }
}
html[data-texto="90"] body { zoom: 0.9; }
html[data-texto="115"] body { zoom: 1.15; }
html[data-texto="130"] body { zoom: 1.3; }
.note { font-size: 13px; color: var(--muted); border-left: 3px solid var(--border); padding: 2px 0 2px 10px; }
.warn { background: rgba(240, 154, 142, 0.14); border: 1px solid var(--danger); border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.meter { height: 10px; border-radius: 6px; background: var(--surface2); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--teal); border-radius: 6px; }
.meter.amber > span { background: var(--amber); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--surface2); color: var(--muted); border: 1px solid var(--border); }
.pill[aria-pressed="true"] { background: var(--amber-soft); border-color: var(--amber); color: var(--text); }
.range { width: 100%; accent-color: var(--amber); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; }
.bars span { flex: 1; background: var(--teal); border-radius: 4px 4px 0 0; min-height: 3px; }
.bars span.b2 { background: var(--amber); }
.bigtime { font-family: var(--display); font-size: 56px; font-weight: 600; text-align: center; }
.print-only { display: none; }
@media print {
  body { background: #fff !important; zoom: 1 !important; }
  .nav, .toast, .sheet-back, .noprint, button, .link { display: none !important; }
  .app { max-width: none; background: #fff; padding: 0; }
  .sheet { position: static !important; transform: none !important; max-height: none !important; background: #fff !important; color: #111 !important; padding: 0 !important; }
  .sheet * { color: #111 !important; }
  .screen { display: none !important; }
  .print-only { display: block !important; }
}
.addrow.wrap { flex-wrap: wrap; } .addrow.wrap input[type=text] { flex: 1 1 100%; } .addrow.wrap select, .addrow.wrap input[type=date] { flex: 1 1 120px; min-width: 0; }

/* ===== v0.4 ===== */
.cal button .dots { position: absolute; bottom: 4px; left: 0; right: 0; display: flex; justify-content: center; gap: 2px; }
.cal button .dots i { width: 5px; height: 5px; border-radius: 50%; display: block; }
.ringcard { align-items: center; gap: 10px; }
.ring { width: min(260px, 74vw); height: auto; display: block; }
.ring-big { font-family: var(--display); font-size: 54px; font-weight: 600; fill: var(--text); }
.ring-small { font-size: 12px; letter-spacing: .14em; font-weight: 700; fill: var(--muted); }
.ring-sub { font-size: 12.5px; fill: var(--muted); }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--surface); border-radius: 14px; padding: 12px 8px; text-align: center; display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--border); }
.stat b { font-family: var(--display); font-size: 26px; color: var(--amber); }
.stat span { font-size: 11.5px; color: var(--muted); line-height: 1.25; }
.bars.bars-lg { height: 110px; }
.bars-lbl { display: flex; gap: 6px; }
.bars-lbl span { flex: 1; text-align: center; font-size: 11px; color: var(--muted); min-height: 14px; }
.linechart { width: 100%; height: 76px; }
.det { border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; }
.det summary { cursor: pointer; font-weight: 500; min-height: 28px; display: flex; align-items: center; }
.chip.static { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; font-size: 13px; cursor: default; }
.sheet .chip { background: var(--bg); }

/* v0.5 Home */
.donut { margin: 0; display: flex; flex-direction: column; align-items: center; position: relative; width: var(--s, 92px); }
.donut svg { width: var(--s, 92px); height: var(--s, 92px); display: block; }
.donut b { position: absolute; top: 0; left: 0; width: 100%; height: var(--s, 92px); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: calc(var(--s, 92px) * .22); font-weight: 600; }
.donut figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
.rings3 { display: flex; justify-content: space-around; gap: 8px; flex-wrap: wrap; }
.tool-g { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 6px 2px 0; }
.seg5 button { font-size: 13px; padding: 0 2px; min-width: 0; }
/* v0.7: ejercicios y recetas */
.ej-card { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 8px 12px 8px 8px; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.ej-card img, .ej-noimg { flex: none; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: #fff; }
.ej-card .it { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ej-card .dot, .dot { flex: none; width: 22px; height: 22px; border-radius: 50%; }
.ej-noimg { display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); background: var(--bg); border: 1px dashed var(--border); text-align: center; }
.ej-noimg.grande { width: 100%; height: 140px; font-size: 13px; }
.ej-fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ej-fotos img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; background: #fff; }
.ej-filtros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ej-filtros select { min-width: 0; padding: 8px 6px; font-size: 14px; }
.ej-fila { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; width: 100%; background: transparent; border: 0; padding: 4px 0; color: inherit; text-align: left; font-size: 15px; }
.ej-fila .ok { text-decoration: line-through; opacity: .75; }
.ej-edit { background: var(--bg); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.rec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rec-card { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; color: inherit; }
.rec-card b { font-size: 14px; line-height: 1.25; }
.rec-viz { width: 100%; height: auto; background: var(--bg); border-radius: 10px; }
.rec-viz.big { max-height: 190px; }
input[type="search"] { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; background: var(--bg); border: 1.5px solid var(--border); }
/* v0.8 */
.minibars { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.minibars i { flex: 1; background: var(--teal); border-radius: 4px 4px 0 0; min-height: 6px; }
.pet { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.pet-op { flex-direction: column; height: auto; padding: 8px 10px; gap: 2px; cursor: pointer; }
.pet-op input { position: absolute; opacity: 0; pointer-events: none; }
.pet-op:has(input:checked) { background: var(--amber-soft); border-color: var(--amber); }
.pet-op:has(input:focus-visible) { outline: 2px solid var(--amber); outline-offset: 2px; }
[hidden] { display: none !important; }
