/* styles.css — Hera web
   Identidad de marca Hera (vera-backlog#60): ciruela, marfil, Fraunces + Inter. */

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Marca Hera: fondos y textos del sistema de marca; acentos de la guía en imagen */
  --ivory: #FAF8F5;
  --card: #FFFFFF;
  --deep: #693D55;
  --sage: #56695A;
  --mist: #DCEBE4;
  --gold: #8A5A6E;
  --gold-soft: #F4E6E8;
  --ink: #2E2630;
  --ink-soft: #655B61;
  --text: #4C444C;
  --rose: #9A4A5E;
  --rose-soft: #F4E6E8;
  --line: #E6DFE2;
  --gold-dark: #6E4659;
  --focus: #B76587;
  --st: #693D55;
  --st-mid: #8E6178;
  --st-soft: #DCEBE4;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --tabbar-h: 64px;
  --maxw: 480px;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
  min-height: 100dvh;
}
body.sheet-open { overflow: hidden; }
button, input, label { font: inherit; color: inherit; }
/* Cifras alineadas (como el serif del sistema en iOS) */
.brand, .ob-logo, .ob-weight, .dial-num, .wd-n, .stat-v, [class^="serif-"], [class*=" serif-"] { font-variant-numeric: lining-nums; }
button { background: none; border: 0; cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
hr { border: 0; border-top: 1px solid var(--line); }
ul { list-style: none; }
a { color: inherit; }
.ic { flex: none; display: inline-block; vertical-align: middle; }

.splash {
  min-height: 100vh; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 300; font-size: 48px; color: var(--st);
}
.noscript { padding: 40px 24px; text-align: center; color: var(--ink-soft); }

/* ── Layout ─────────────────────────────────────────── */
.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px);
}
.app-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(20px + env(safe-area-inset-top)) 18px 16px;
}
.brand { font-family: var(--serif); font-weight: 400; font-size: 30px; color: var(--st); line-height: 1.05; }
.brand-tag { font-size: 11px; letter-spacing: 5px; color: var(--gold); margin-top: 2px; }
.gear {
  width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--st);
}
.content { padding: 0 18px 24px; }
.foot { text-align: center; font-size: 11px; color: var(--ink-soft); padding: 4px 0 16px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: center;
  background: color-mix(in srgb, var(--ivory) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar::before { content: ''; }
.tab {
  flex: 1; max-width: calc(var(--maxw) / 3); height: var(--tabbar-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--ink-soft);
}
.tab span { font-size: 10px; font-weight: 500; letter-spacing: 1px; }
.tab.on .ic { color: var(--gold); }
.tab.on span { color: var(--st); }

/* ── Tarjetas y tipografía ──────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 8px 14px rgba(63, 88, 75, 0.06);
  width: 100%;
}
.card .card { box-shadow: 0 8px 14px rgba(63, 88, 75, 0.06); }
.pad { padding: 20px; }
.pad-0 { padding: 0; }
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 4px; color: var(--gold); text-transform: uppercase; }

.serif-19 { font-family: var(--serif); font-weight: 500; font-size: 19px; color: var(--st); line-height: 1.25; }
.serif-22 { font-family: var(--serif); font-weight: 500; font-size: 21px; color: var(--st); }
.serif-24 { font-family: var(--serif); font-weight: 500; font-size: 23px; color: var(--st); }
.serif-28 { font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--st); line-height: 1.1; }
.serif-34 { font-family: var(--serif); font-weight: 400; font-size: 31px; color: var(--st); line-height: 1.05; }

.t-10 { font-size: 10px; } .t-11 { font-size: 11px; } .t-12 { font-size: 12px; } .t-125 { font-size: 12.5px; }
.t-13 { font-size: 13px; } .t-135 { font-size: 13.5px; } .t-14 { font-size: 14px; } .t-15 { font-size: 15px; } .t-17 { font-size: 17px; }
.w-500 { font-weight: 500; } .light { font-weight: 300; } .italic { font-style: italic; }
.upper { text-transform: uppercase; } .cap { text-transform: capitalize; } .track-1 { letter-spacing: 1px; }
.lh-3 { line-height: 1.45; } .lh-4 { line-height: 1.5; } .lh-5 { line-height: 1.6; } .lh-6 { line-height: 1.65; }
.soft { color: var(--ink-soft); } .soft-70 { color: color-mix(in srgb, var(--ink-soft) 70%, transparent); }
.c-deep { color: var(--st); } .c-sage { color: var(--sage); } .c-gold { color: var(--gold); } .c-rose { color: var(--rose); }
.c-ink { color: var(--ink); }
.bg-rose { background: var(--rose); } .bg-sage { background: var(--sage); } .bg-gold { background: var(--gold); }
.bg-goldsoft { background: var(--gold-soft); } .bg-goldsoft60 { background: color-mix(in srgb, var(--gold-soft) 60%, transparent); }
.bg-rose55 { background: color-mix(in srgb, var(--rose) 55%, transparent); }
.bg-rose70 { background: color-mix(in srgb, var(--rose) 70%, transparent); }
.bg-rose45 { background: color-mix(in srgb, var(--rose) 45%, transparent); }
.text-center { text-align: center; } .nowrap { white-space: nowrap; } .left { text-align: left; } .block { display: block; }

/* ── Flex helpers ───────────────────────────────────── */
.row { display: flex; }
.row.center, .center { align-items: center; }
.row.baseline { align-items: baseline; }
.row.top { align-items: flex-start; }
.between { justify-content: space-between; }
.justify-center { justify-content: center; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.center-x { display: flex; flex-direction: column; align-items: center; }
.gap-4 { gap: 4px; } .gap-5 { gap: 5px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; }
.gap-12 { gap: 12px; } .gap-14 { gap: 14px; } .gap-18 { gap: 18px; } .gap-20 { gap: 20px; }
[class*="stack-"] { display: flex; flex-direction: column; }
.stack-0 { gap: 0; } .stack-4 { gap: 4px; } .stack-6 { gap: 6px; } .stack-7 { gap: 7px; } .stack-8 { gap: 8px; }
.stack-10 { gap: 10px; } .stack-12 { gap: 12px; } .stack-14 { gap: 14px; } .stack-16 { gap: 16px; }
.stack-18 { gap: 18px; } .stack-20 { gap: 20px; }
.pad-x { padding-left: 18px; padding-right: 18px; max-width: var(--maxw); }
.px-4 { padding: 0 4px; } .px-8 { padding: 0 8px; } .px-20 { padding-left: 20px; padding-right: 20px; } .pt-20 { padding-top: 20px; }
.py-4 { padding-top: 4px; padding-bottom: 4px; }
.mx-12 { margin-left: 12px; margin-right: 12px; } .ml-36 { margin-left: 36px; }
.mt-1 { margin-top: 1px; display: inline-flex; } .mt-4 { margin-top: 4px; } .mt-6 { margin-top: 6px; } .mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; } .mt-16 { margin-top: 16px; } .mt--8 { margin-top: -8px; }
.mb-6 { margin-bottom: 6px; } .mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-14 { margin-bottom: 14px; }
.mb-16 { margin-bottom: 16px; } .mb-20 { margin-bottom: 20px; } .mb-22 { margin-bottom: 22px; } .mb-24 { margin-bottom: 24px; }
.mb-28 { margin-bottom: 28px; } .mb-30 { margin-bottom: 30px; } .mb-32 { margin-bottom: 32px; } .mb-36 { margin-bottom: 36px; }
.mb-44 { margin-bottom: 44px; } .mb-48 { margin-bottom: 48px; }

/* ── Controles ──────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13.5px; white-space: nowrap; padding: 9px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  transition: background .18s, color .18s, border-color .18s;
}
.chip.on { color: #fff; }
.chip.tone-deep.on { background: var(--st); border-color: var(--st); }
.chip.tone-gold.on { background: var(--gold); border-color: var(--gold); }
.chip.tone-rose.on { background: var(--rose); border-color: var(--rose); }
.chip.tone-sage.on { background: var(--sage); border-color: var(--sage); }
.chip.tone-inksoft.on { background: var(--ink-soft); border-color: var(--ink-soft); }

.btn-primary {
  width: 100%; padding: 15px; border-radius: 14px; background: var(--st); color: #fff;
  font-size: 14px; font-weight: 500; letter-spacing: .8px; transition: background .2s;
}
.btn-primary:hover { filter: brightness(.92); }
.btn-primary:disabled { opacity: .5; }

.pill-dark { background: var(--st); color: #fff; font-size: 12.5px; font-weight: 500; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.pill-outline { font-size: 13px; color: var(--st); padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; }
.outline-sage, .outline-gold {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 12px; color: var(--st); font-size: 13px; font-weight: 500; padding: 11px;
  border: 1px solid var(--st-mid);
}
a.outline-sage { text-decoration: none; }
a.gear { text-decoration: none; }
.bg-white { background: #fff; }
.google-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px; border-radius: 12px; background: #fff; border: 1px solid #dadce0;
  font-size: 14px; font-weight: 500; color: #3c4043;
}
.google-btn:hover { background: #f8faff; }
.sync-box { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.sync-pill { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--sage); background: #fff; border: 1px solid var(--line); }
.sync-pill.warn { color: var(--rose); border-color: color-mix(in srgb, var(--rose) 40%, transparent); }
.sheet.dialog { max-width: 400px; }
@media (max-width: 699px) { .sheet.dialog { border-radius: 22px 22px 0 0; } }
.contact-card { padding: 18px 20px; border-radius: 22px; background: var(--st-soft); border: 1px solid var(--st-mid); }
.contact-ic { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--st); display: grid; place-items: center; flex: none; }
.outline-gold { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 35%, transparent); font-size: 12px; font-weight: 400; padding: 6px; border-radius: 10px; gap: 5px; }
.link-soft { color: var(--ink-soft); font-size: 12px; align-self: flex-start; }
.link-soft.row { display: inline-flex; }
.link-deep { color: var(--st); font-size: 14px; }
.link-danger { color: var(--rose); font-size: 12px; display: inline-flex; align-self: flex-start; }
.icon-btn { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.sq-btn { width: 28px; height: 28px; border-radius: 8px; background: var(--st-soft); color: var(--ink-soft); display: grid; place-items: center; }
.sq-btn:disabled { opacity: .35; }
.nav-btn { width: 36px; height: 36px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 18px; color: var(--st); }

.field {
  width: 100%; font-size: 14px; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px;
}
.field::placeholder { color: color-mix(in srgb, var(--ink-soft) 70%, transparent); }
label.field { padding: 8px 14px; }
.field.date { font-size: 15px; min-height: 48px; appearance: none; -webkit-appearance: none; }
.field.big { font-size: 18px; text-align: center; }
.time { border: 0; background: var(--st-soft); border-radius: 8px; padding: 6px 10px; font-size: 15px; color: var(--st); }

/* Sliders con el aspecto de iOS */
.range {
  --c: var(--st);
  flex: 1; width: 100%; height: 28px; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer;
}
.range.tone-rose { --c: var(--rose); }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--c) var(--p, 50%), var(--line) var(--p, 50%)); }
.range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
.range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--c); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2), 0 0 0 .5px rgba(0,0,0,.06);
}
.range::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--st-mid); }
.range-val { font-size: 14px; font-weight: 500; min-width: 60px; text-align: right; }
.range-out { display: none; }

/* ── HOY ────────────────────────────────────────────── */
.dial { position: relative; width: min(290px, 78vw); aspect-ratio: 1; }
.dial svg { display: block; overflow: visible; }
.dial-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dial-dia { font-size: 11px; font-weight: 500; letter-spacing: 6px; color: var(--ink-soft); padding-left: 6px; margin-bottom: 2px; }
.dial-num { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 17vw, 64px); color: var(--st); line-height: 1; }
.dial-phase { font-size: 13px; letter-spacing: 2px; color: var(--gold); margin-top: 4px; }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-soft); }
.legend i { width: 18px; height: 5px; border-radius: 2px; display: inline-block; }
.legend.small { font-size: 10px; gap: 5px; }
.legend i.sq { width: 12px; height: 10px; border-radius: 3px; }
.legend.box i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid; }
.legend.box i.ph-rose { background: color-mix(in srgb, var(--rose) 25%, transparent); border-color: var(--rose); }
.legend.box i.ph-sage { background: color-mix(in srgb, var(--sage) 25%, transparent); border-color: var(--sage); }
.legend.box i.ph-gold { background: color-mix(in srgb, var(--gold) 25%, transparent); border-color: var(--gold); }
.legend i.dot { width: 5px; height: 5px; border-radius: 50%; background: color-mix(in srgb, var(--ink-soft) 45%, transparent); }

.stat-row .stat { box-shadow: 0 8px 14px rgba(63, 88, 75, 0.06); }
.stat { padding: 16px 10px; text-align: center; flex: 1; }
.stat-v { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; color: var(--st); }
.stat-v.c-rose { color: var(--rose); }
.stat-l { font-size: 11px; letter-spacing: 1.5px; color: var(--ink-soft); margin-top: 4px; }
.card > .stat-row { padding: 0; }
.card > .stat-row .stat { border-radius: 22px; }
.date-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.date-row > span { width: 24px; display: grid; place-items: center; }
.vsep { width: 1px; height: 36px; background: var(--line); }

.tips { display: flex; flex-direction: column; gap: 8px; }
.tips li { position: relative; padding-left: 15px; font-size: 13px; line-height: 1.45; }
.tips li::before { content: ''; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.tag { font-size: 12px; font-weight: 500; color: var(--st); padding: 5px 10px; background: var(--st-soft); border-radius: 999px; }
.minibar { width: 80px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.minibar i { display: block; height: 100%; border-radius: 3px; }

.qchip {
  --qc: color-mix(in srgb, var(--gold) 40%, transparent);
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; padding: 5px 9px; border-radius: 20px;
  background: color-mix(in srgb, var(--qc) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--qc) 30%, transparent);
}
.qchip.q1 { --qc: color-mix(in srgb, var(--gold) 70%, transparent); }
.qchip.q2 { --qc: color-mix(in srgb, var(--sage) 70%, transparent); }
.qchip.q3 { --qc: var(--sage); }
.qchip b { font-weight: 500; }
.qdots { display: inline-flex; gap: 3px; }
.qdots i { width: 5px; height: 5px; border-radius: 50%; background: var(--line); }
.qdots i.on { background: var(--qc); }

.reminder {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px;
  background: var(--gold-soft); border: 1px solid var(--gold);
}
.reminder-bell { font-size: 17px; }
.nudge {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px;
  background: #fff; border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); text-align: left;
}
.nudge-ic { width: 36px; height: 36px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; flex: none; }
.nudge .t-12 { margin-top: 2px; line-height: 1.4; }

/* ── CICLO ──────────────────────────────────────────── */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.wday {
  --pc: transparent;
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0; border-radius: 12px;
  background: color-mix(in srgb, var(--pc) 12%, transparent); border: 1.5px solid transparent;
}
.wday.ph-rose { --pc: var(--rose); } .wday.ph-sage { --pc: var(--sage); } .wday.ph-gold { --pc: var(--gold); }
.wd-l { font-size: 9px; font-weight: 500; letter-spacing: 1px; color: var(--ink-soft); text-transform: uppercase; }
.wd-n { font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--st); line-height: 1; }
.wd-dot { width: 4px; height: 4px; border-radius: 50%; background: color-mix(in srgb, var(--pc) 60%, transparent); }
.wday.logged .wd-dot { background: color-mix(in srgb, var(--ink-soft) 40%, transparent); }
.wday.today { border-color: var(--st-mid); }
.wday.future .wd-n { color: color-mix(in srgb, var(--ink-soft) 40%, transparent); }
.wday.sel { background: var(--st); }
.wday.sel .wd-l, .wday.sel .wd-n { color: #fff; }
.wday.sel .wd-dot { background: rgba(255,255,255,.5); }

.hscroll-wrap { position: relative; }
.hscroll-wrap::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 56px; pointer-events: none;
  background: linear-gradient(to right, rgba(255,255,255,0), #fff); border-radius: 0 22px 22px 0;
}
.hscroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 12px 48px 16px 20px; }
.hscroll::-webkit-scrollbar { display: none; }
.flow-picker { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--rose) 15%, transparent); }
.flow-picker .hscroll { padding: 1px; }
.flow-opt {
  display: flex; flex-direction: column; align-items: center; gap: 3px; white-space: nowrap;
  padding: 9px 14px; border-radius: 999px; background: var(--rose-soft);
  border: 1px solid color-mix(in srgb, var(--rose) 20%, transparent); color: var(--ink);
}
.flow-opt .t-10 { color: var(--ink-soft); }
.flow-opt.on { background: var(--rose); border-color: var(--rose); color: #fff; }
.flow-opt.on .t-13 { font-weight: 500; }
.flow-opt.on .t-10 { color: rgba(255,255,255,.8); }

.med-row { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: background .2s, border-color .2s; }
.med-row.taken { background: var(--st-soft); border-color: var(--st-mid); }
.med-check { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: #fff; display: grid; place-items: center; flex: none; }
.med-row.taken .med-check { background: var(--st); border-color: var(--st); }

/* Calendario */
.month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mg-h { text-align: center; font-size: 11px; font-weight: 500; letter-spacing: 2px; color: var(--ink-soft); padding: 6px 0; }
.cal-cell {
  --pc: transparent;
  position: relative; height: 44px; border-radius: 10px; font-size: 14px; color: var(--ink);
  background: color-mix(in srgb, var(--pc) 18%, transparent); border: 1.5px solid transparent;
}
.cal-cell.ph-rose { --pc: var(--rose); color: var(--rose); }
.cal-cell.ph-sage { --pc: var(--sage); color: var(--sage); }
.cal-cell.ph-gold { --pc: var(--gold); color: var(--gold); }
.cal-cell.future { color: var(--ink-soft); }
.cal-cell.today { border-color: var(--st-mid); }
.cal-cell.today[class*="ph-"] { border-color: var(--pc); }
.cal-cell.sel { background: var(--st); color: #fff; }
.cal-cell.logged::after { content: ''; position: absolute; top: 4px; right: 4px; width: 4px; height: 4px; border-radius: 50%; background: color-mix(in srgb, var(--ink-soft) 50%, transparent); }
.cal-cell.sel.logged::after { background: rgba(255,255,255,.7); }
.cal-cell:not(:disabled):hover { box-shadow: inset 0 0 0 1px var(--line); }

/* ── PATRONES ───────────────────────────────────────── */
.split-bar { display: flex; gap: 3px; height: 22px; }
.split-bar div { border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 500; color: var(--st); overflow: hidden; }
.swatch { width: 14px; height: 10px; border-radius: 2px; display: inline-block; }

.hist-row { display: flex; align-items: center; gap: 8px; }
.hist-d { width: 46px; text-align: right; font-size: 11px; color: var(--ink-soft); flex: none; }
.hist-n { width: 28px; text-align: right; font-size: 11px; font-weight: 500; flex: none; }
.hist-track { position: relative; flex: 1; height: 18px; border-radius: 5px; background: var(--st-soft); display: flex; }
.hist-track i { height: 100%; border-radius: 5px; display: block; }
.hist-mean { position: absolute; top: -2px; width: 1.5px; height: 22px; margin-left: -.75px; background: color-mix(in srgb, var(--ink-soft) 45%, transparent); }
.hist-now { position: absolute; top: 5px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--st); }
.hist-meanlabel { position: relative; flex: 1; height: 30px; }
.hist-meanlabel span {
  position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 500; color: var(--st);
  padding: 3px 7px; background: var(--st-soft); border-radius: 8px; border: 1px solid color-mix(in srgb, var(--ink-soft) 20%, transparent);
}
.hist-meanlabel span::after { content: ''; position: absolute; left: 50%; top: 100%; width: 1.5px; height: 8px; background: color-mix(in srgb, var(--ink-soft) 35%, transparent); }

.bubble-grid { display: grid; grid-template-columns: 104px repeat(4, 1fr); align-items: center; row-gap: 2px; }
.bubble-h { justify-self: center; font-size: 11px; font-weight: 500; padding: 4px 8px; border-radius: 20px; margin-bottom: 10px; white-space: nowrap; }
.bubble-name { font-size: 13px; height: 42px; display: flex; align-items: center; line-height: 1.15; padding-right: 4px; overflow-wrap: anywhere; }
.bubble-cell { display: grid; place-items: center; height: 42px; }
.bubble { display: inline-block; border-radius: 50%; flex: none; }
@media (max-width: 360px) {
  .bubble-grid { grid-template-columns: 88px repeat(4, 1fr); }
  .bubble-h { font-size: 10px; padding: 3px 5px; }
  .bubble-name { font-size: 12px; }
}

.vbar { height: 7px; border-radius: 4px; background: var(--st-soft); overflow: hidden; }
.vbar i { display: block; height: 100%; border-radius: 4px; background: var(--st-mid); transition: width .4s ease-out; }
.empty { padding: 32px 20px; text-align: center; display: flex; flex-direction: column; gap: 10px; }

/* ── Sheets ─────────────────────────────────────────── */
.sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(45, 43, 38, .28); }
.sheet-backdrop:has(+ .sheet.anim) { animation: fade .2s ease; }
.sheet {
  position: fixed; z-index: 41; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: var(--maxw); max-height: 92vh; max-height: 92dvh;
  background: var(--ivory); border-radius: 22px 22px 0 0; display: flex; flex-direction: column;
  box-shadow: 0 -10px 40px rgba(45,43,38,.12);
}
.sheet.anim { animation: rise .28s cubic-bezier(.2,.8,.2,1); }
@media (min-width: 700px) {
  .sheet { bottom: auto; top: 50%; transform: translate(-50%, -50%); border-radius: 22px; max-height: 86vh; }
  .sheet.anim { animation: pop .22s ease; }
}
.sheet-handle { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 12px auto 4px; flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px 12px; flex: none; }
.sheet-title { font-size: 16px; font-weight: 500; color: var(--ink); }
.sheet-body { overflow-y: auto; padding: 8px 22px calc(32px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
@keyframes rise { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -48%); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes fade { from { opacity: 0; } }

.type-btn { flex: 1; padding: 10px; border-radius: 10px; background: #fff; border: 1.5px solid var(--line); font-size: 13px; color: var(--ink-soft); transition: all .15s; }
.type-btn.on { background: var(--st-soft); border-color: var(--st-mid); color: var(--st); font-weight: 500; }
.period-item { display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 12px; background: var(--st-soft); border: 1px solid var(--line); border-radius: 12px; }
.note-mist { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--st-soft); border-radius: 10px; font-size: 12px; color: var(--ink-soft); }
.note-mist b { color: var(--ink); font-weight: 600; }
.data-box { margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ── Onboarding ─────────────────────────────────────── */
.ob {
  max-width: var(--maxw); margin: 0 auto; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
.ob-top { height: 52px; padding: 8px 20px 0; display: flex; align-items: center; }
.ob-content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 16px 30px; animation: slidein .3s ease; }
@keyframes slidein { from { opacity: 0; transform: translateX(24px); } }
.ob-steps, .sub-dots { display: flex; gap: 8px; justify-content: center; padding-bottom: 48px; }
.ob-steps i { width: 8px; height: 8px; border-radius: 4px; background: var(--line); transition: all .25s; }
.ob-steps i.on { width: 22px; background: var(--gold); }
.sub-dots { justify-content: flex-start; gap: 6px; padding-bottom: 0; }
.sub-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: all .2s; }
.sub-dots i.on { width: 18px; background: var(--st); }
.ob-logo { font-family: var(--serif); font-weight: 300; font-size: 64px; letter-spacing: 4px; color: var(--st); line-height: 1.1; }
.ob-tag { font-size: 12px; letter-spacing: 6px; color: var(--gold); margin-bottom: 36px; }
.ob-content .link-soft.mt-16 { align-self: center; text-decoration: underline; text-underline-offset: 3px; }
.ob-h { font-family: var(--serif); font-weight: 500; font-size: 30px; color: var(--st); line-height: 1.15; margin-bottom: 10px; }
.ob-h.mb-22 { margin-bottom: 22px; }
.ob-weight { font-family: var(--serif); font-weight: 400; font-size: 56px; color: var(--st); text-align: center; margin-bottom: 24px; }
.option {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px;
  background: #fff; border: 1.5px solid var(--line); text-align: left; transition: all .15s;
}
.option.compact { padding: 13px 16px; border-radius: 14px; }
.option.on { background: var(--st-soft); border-color: var(--st-mid); }
.option .t-15.w-500 { color: var(--ink); }
.option.on .t-15.w-500 { color: var(--st); }
.opt-ic { width: 36px; display: grid; place-items: center; color: var(--ink-soft); }
.option.on .opt-ic { color: var(--st); }
.opt-check { color: var(--line); display: inline-flex; }
.option.on .opt-check { color: var(--st); }
.option .block + .block { margin-top: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Embarazo y posparto ────────────────────────────── */
.urgent-pill {
  display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px; border-radius: 999px;
  font-size: 12px; font-weight: 500; color: #fff; background: var(--rose);
}
.urgent-card {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; text-align: left;
  background: var(--rose-soft); border: 1px solid color-mix(in srgb, var(--rose) 45%, transparent);
}
.urgent-ic { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--rose); display: grid; place-items: center; flex: none; }
.alarm-list { display: flex; flex-direction: column; gap: 8px; }
.alarm-list li { position: relative; padding-left: 18px; font-size: 13.5px; line-height: 1.45; }
.alarm-list li::before { content: ''; position: absolute; left: 2px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--rose); }
.btn-urgent {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 14px;
  background: var(--rose); color: #fff; font-size: 15px; font-weight: 500; text-decoration: none;
}
.btn-urgent.small { display: inline-flex; padding: 8px 14px; font-size: 13px; border-radius: 999px; }
.alarm-banner {
  display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 18px;
  background: var(--rose-soft); border: 1.5px solid var(--rose);
}
.preg-weeks { font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: .9; color: var(--st); font-variant-numeric: lining-nums; }
.preg-bar { height: 6px; margin-top: 6px; }
.preg-bar i { background: var(--rose); }
.tl-item { display: flex; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); }
.tl-item.now { background: var(--st-soft); border-color: color-mix(in srgb, var(--st-mid) 60%, transparent); }
.tl-weeks { flex: none; width: 64px; font-size: 11px; font-weight: 500; color: var(--gold); letter-spacing: .5px; padding-top: 2px; }
.faq-link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink);
}
.faq-link:last-of-type { border-bottom: 0; }
.now-tag { font-size: 11px; font-weight: 500; color: #fff; background: var(--st-mid); padding: 3px 9px; border-radius: 999px; }
.faq { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 13px 26px 13px 0; font-size: 14px; font-weight: 500; color: var(--ink); position: relative; line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.5px solid var(--ink-soft); border-bottom: 1.5px solid var(--ink-soft); transform: rotate(45deg); transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-a { padding: 0 0 14px; font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); display: flex; flex-direction: column; gap: 8px; }
.faq-a .tips li { font-size: 13.5px; color: var(--ink-soft); }
.search { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 14px; }
.guide-sec[hidden], .faq-item[hidden] { display: none; }

/* Selector de etapa y barra de guardar */
.stage-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 6px 10px;
  border-radius: 12px; background: #fff; border: 1.5px solid var(--line); font-size: 13px; color: var(--ink-soft); transition: all .15s;
}
.stage-btn.on { background: var(--st-soft); border-color: var(--st-mid); color: var(--st); font-weight: 500; }
.stage-current {
  font-style: normal; display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 500;
  color: #fff; background: var(--st-mid); padding: 2px 7px; border-radius: 999px;
}
.save-bar {
  flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 22px calc(12px + env(safe-area-inset-bottom));
  background: var(--gold-soft); border-top: 1px solid var(--gold); border-radius: 0 0 22px 22px;
}
@media (max-width: 699px) { .save-bar { border-radius: 0; } }

/* Selector segmentado (fecha de parto / última regla) */
.segs { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--st-soft); }
.seg { font-size: 12px; padding: 5px 11px; border-radius: 999px; color: var(--ink-soft); }
.seg.on { background: #fff; color: var(--st); font-weight: 500; box-shadow: 0 1px 3px rgba(63,88,75,.12); }

/* ── Mi bebé y Cuidados ─────────────────────────────── */
.tabbar.many .tab span { font-size: 9px; letter-spacing: .6px; }
.self-start { align-self: flex-start; }
.pt-4 { padding-top: 4px; }
.bw-strip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; scroll-snap-type: x proximity; }
.bw-strip::-webkit-scrollbar { display: none; }
.bw-chip {
  flex: none; width: 36px; height: 36px; border-radius: 50%; font-size: 13px; color: var(--ink-soft);
  border: 1px solid var(--line); background: #fff; scroll-snap-align: center; font-variant-numeric: lining-nums;
}
.bw-chip.cur { border-color: var(--st-mid); color: var(--st); font-weight: 500; }
.bw-chip.on { background: var(--st); border-color: var(--st); color: #fff; }
.baby-fig { margin: 0; border-radius: 16px; overflow: hidden; display: grid; place-items: center; min-height: 160px; background: var(--st-soft); }
.baby-fig.ultrasound { background: #111; }
.baby-fig img { display: block; max-width: 100%; max-height: 280px; object-fit: contain; }
.baby-fig.illustration { background: #fff; border: 1px solid var(--line); }
.baby-fig.illustration img { width: 160px; height: 160px; }
.segs.wide { display: flex; width: 100%; }
.segs.wide .seg { flex: 1; padding: 8px 6px; font-size: 13px; }
.appt { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.appt.past { opacity: .6; }
.appt-date { flex: none; width: 46px; height: 50px; border-radius: 12px; background: var(--st-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--st); }
.appt-date b { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1; font-variant-numeric: lining-nums; }
.appt-date span { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.appt-time { flex: none; width: 112px; }
.wchart { width: 100%; height: auto; display: block; }
.wc-t { font-size: 9px; fill: var(--ink-soft); font-family: var(--sans); }
.legend i.dot-rose { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); }
.hscroll.flat { padding: 0; }
.foods { display: flex; flex-direction: column; }
.food { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.food[hidden] { display: none; }
.food-tag { flex: none; font-size: 11px; font-weight: 500; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.food-tag.tone-sage { color: var(--sage); background: var(--mist); }
.food-tag.tone-gold { color: var(--gold-dark); background: var(--gold-soft); }
.food-tag.tone-rose { color: var(--rose); background: var(--rose-soft); }
.credits summary { cursor: pointer; list-style: none; }
.credits ul { margin-top: 8px; padding-left: 16px; list-style: disc; }
.credits a, .baby-fig + p a { color: inherit; }

/* ── Consulta con el ginecólogo (ayuda contextual discreta) ── */
.cav {
  flex: none; border-radius: 50%; background: var(--st-mid); color: #fff; display: inline-grid; place-items: center;
  font-weight: 500; object-fit: cover; letter-spacing: .3px;
}
.cav.xs { width: 20px; height: 20px; font-size: 8px; }
.cav.sm { width: 30px; height: 30px; font-size: 11px; background: var(--st); }
.cav.lg { width: 52px; height: 52px; font-size: 17px; background: var(--st); }
.avatar-btn { padding: 0; overflow: hidden; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.ask-link {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-soft);
}
.ask-link u, .inline-link { text-decoration: none; color: var(--st); border-bottom: 1px solid var(--st-mid); }
.text-center > .ask-link { justify-content: center; border-top: 0; }
.faq-a .ask-link { margin-top: 2px; }
.inline-link { font-size: inherit; padding: 0; }
.soft-note {
  font-size: 13px; line-height: 1.5; color: var(--ink); padding: 12px 14px; border-radius: 14px;
  background: #F8EEF0; border: 1px solid color-mix(in srgb, var(--rose) 25%, transparent);
}
.soft-note .inline-link { border-color: var(--rose); color: var(--rose); margin-left: 2px; }
.soft-note a { color: inherit; }
.urgent-sec { padding-top: 6px; padding-bottom: 6px; border-top: 1px solid var(--line); }
.urgent-sec summary { color: var(--ink-soft); font-weight: 500; }
.urgent-sec .faq-a a { color: var(--st); }
.ctx-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 5px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-dark); }
.ask-text { resize: vertical; min-height: 110px; line-height: 1.5; font-family: inherit; }
.ask-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.ask-check input { margin-top: 3px; accent-color: var(--st); width: 16px; height: 16px; flex: none; }
.ask-done { align-items: center; padding: 10px 0 20px; }
.self-center { align-self: center; }

/* Campos numéricos del diario (peso, sueño, temperatura) */
.num-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stepper { display: flex; align-items: center; gap: 6px; flex: none; }
.step-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  font-size: 18px; line-height: 1; color: var(--st); display: grid; place-items: center;
}
.step-btn:active { background: var(--st-soft); }
.num-box {
  display: flex; align-items: baseline; gap: 4px; padding: 7px 10px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; cursor: text;
}
.num-box.filled { border-color: var(--st-mid); background: var(--st-soft); }
.num-box:focus-within { border-color: var(--st); }
.num-input {
  width: 52px; border: 0; outline: 0; background: transparent; text-align: right;
  font-size: 16px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums;
}
.num-input::placeholder { color: color-mix(in srgb, var(--ink-soft) 55%, transparent); font-weight: 400; }
.num-box span { font-size: 12px; color: var(--ink-soft); }
.self-end { align-self: flex-end; }

.num-label { display: flex; align-items: flex-start; gap: 6px; min-width: 0; }
.num-label .ic { margin-top: 3px; }

.baby-w { flex: none; width: 110px; }

.faq-ext { color: var(--st); text-decoration: none; border-bottom: 1px solid var(--st-mid); }
.ob-tag { letter-spacing: 3.5px; white-space: nowrap; font-size: 11px; }

/* Hoy compacto (embarazo y posparto) */
.preg-weeks.sm { font-size: 56px; }
.text-right { text-align: right; }
.hq-list { display: flex; flex-direction: column; }
.hq { border-top: 1px solid var(--line); }
.hq-list .hq:first-child { border-top: 0; }
.hq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; position: relative;
  padding: 12px 22px 12px 0; font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--ink);
}
.hq summary::-webkit-details-marker { display: none; }
.hq summary::after {
  content: ''; position: absolute; right: 4px; top: 50%; width: 7px; height: 7px; margin-top: -6px;
  border-right: 1.5px solid var(--ink-soft); border-bottom: 1.5px solid var(--ink-soft); transform: rotate(45deg); transition: transform .2s;
}
.hq[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.hq-a { padding: 0 0 12px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.55; color: var(--ink-soft); }
.hq.now summary .tl-w { color: var(--st-mid); }
.tl-w { flex: none; min-width: 62px; font-size: 11px; font-weight: 500; color: var(--gold); letter-spacing: .4px; }

/* Lista de tareas: Lo que toca ahora */
.hq.todo summary { align-items: flex-start; gap: 12px; padding-top: 11px; padding-bottom: 11px; }
.todo-check {
  flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid color-mix(in srgb, var(--ink-soft) 55%, transparent); background: #fff; color: #fff; transition: all .15s;
}
.todo-check:active { transform: scale(.92); }
.todo-check.on { background: var(--st); border-color: var(--st); }
.todo-t { display: block; font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.todo-s { display: block; font-size: 11.5px; font-weight: 400; color: var(--ink-soft); margin-top: 2px; }
.hq.todo.done .todo-t { text-decoration: line-through; color: var(--ink-soft); font-weight: 400; }
.hq.todo.done .todo-s { opacity: .7; }
.hq.todo.later .todo-t { color: var(--ink-soft); }
.hq.todo.later .todo-check { border-color: var(--line); }
.todo-a { padding-left: 36px; }

/* Pendientes de semanas anteriores */
.pend { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 2px; }
.pend > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 22px 10px 0; position: relative;
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
}
.pend > summary::-webkit-details-marker { display: none; }
.pend > summary::after {
  content: ''; position: absolute; right: 4px; top: 50%; width: 7px; height: 7px; margin-top: -6px;
  border-right: 1.5px solid var(--ink-soft); border-bottom: 1.5px solid var(--ink-soft); transform: rotate(45deg); transition: transform .2s;
}
.pend[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.pend-n { font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-dark); }


/* ═══════════════════════════════════════════════════════════════════════
   Rediseño: legibilidad (propuesta A) + color por etapa + bloque principal
   ═══════════════════════════════════════════════════════════════════════ */
/* Marca Hera: ciruela en todas las etapas; cada etapa solo cambia el tinte suave (ciclo rosa, embarazo salvia, posparto lavanda) */
body[data-stage="cycle"] { --st-soft: #F4E6E8; }
body[data-stage="postpartum"] { --st-soft: #ECE6F0; }
/* Cada botón de etapa lleva su propio tinte */
.stage-btn[data-v="cycle"], .option[data-action="ob-stage"][data-v="cycle"] { --st-soft: #F4E6E8; }
.stage-btn[data-v="pregnancy"], .option[data-action="ob-stage"][data-v="pregnancy"] { --st-soft: #DCEBE4; }
.stage-btn[data-v="postpartum"], .option[data-action="ob-stage"][data-v="postpartum"] { --st-soft: #ECE6F0; }
.option[data-action="ob-stage"] .opt-ic { color: var(--st); background: var(--st-soft); border-radius: 12px; width: 44px; height: 44px; align-items: center; }
.stage-btn:not(.on) .ic { color: var(--st); }

/* Texto: más grande, más contraste, trazo normal */
.t-11 { font-size: 12px; } .t-12 { font-size: 13px; } .t-125 { font-size: 13px; }
.t-13 { font-size: 14px; } .t-135 { font-size: 14.5px; } .t-14 { font-size: 15px; } .t-15 { font-size: 16px; } .t-17 { font-size: 18px; }
.light { font-weight: 400; }
.soft-70 { color: var(--ink-soft); }
.c-gold { color: var(--gold-dark); } .c-rose { color: var(--rose); } .c-sage { color: var(--sage); }
.ob-tag, .tag { color: var(--gold-dark); }
.tag { color: var(--st); }

/* Tarjetas: borde y sin sombra */
.card { border: 1px solid var(--line); box-shadow: none; border-radius: 20px; }
.card .card { box-shadow: none; }
.contact-card, .stat-row .stat { box-shadow: none; }
.eyebrow { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--st); text-transform: none; }
.brand { font-weight: 500; font-size: 32px; }
.brand-tag { color: var(--st); font-weight: 500; font-size: 12px; letter-spacing: 4px; }
.dial-phase { color: var(--st); font-size: 14px; font-weight: 500; }
.stat-l { font-size: 12px; }
.tips li::before { background: var(--st); }

/* Controles */
.chip { font-size: 14.5px; padding: 9px 16px; border: 1.5px solid #DCD2D7; }
.chip.on { border-color: transparent; }
.todo-check { width: 26px; height: 26px; border: 2px solid var(--st); }
.todo-check.on { border-color: var(--st); }
.hq.todo.later .todo-check { border-color: color-mix(in srgb, var(--st) 45%, transparent); }
.todo-t { font-size: 16px; } .todo-s { font-size: 13px; color: var(--text); }
.hq summary, .faq-item summary { font-size: 16px; }
.hq-a, .faq-a { font-size: 14.5px; }
.step-btn { border-color: var(--st); color: var(--st); }
.num-box.filled { border-color: var(--st); }

/* Barra de pestañas: la activa lleva el color de la etapa */
.tab span { font-size: 11px; }
.tabbar.many .tab span { font-size: 10px; }
.tab.on .ic { color: var(--st); background: var(--st-soft); border-radius: 14px; padding: 4px 16px; box-sizing: content-box; margin: -4px 0; }
.tab.on span { color: var(--st); font-weight: 600; }
.tab .ic { transition: background .15s; }

/* Bloque principal: tarjeta con el tinte de la etapa y texto en ciruela (marca Hera) */
.preg-hero { background: var(--st-soft); border-color: transparent; color: var(--ink); }
.preg-hero .eyebrow { color: var(--st); }
.preg-hero .soft, .preg-hero .soft-70 { color: var(--text); }
.preg-hero .preg-weeks, .preg-hero [class^="serif-"], .preg-hero [class*=" serif-"] { color: var(--st); }
.preg-hero .preg-weeks { font-weight: 500; }
.preg-hero hr { border-color: color-mix(in srgb, var(--st) 16%, transparent); }
.preg-hero .vbar { background: color-mix(in srgb, var(--st) 18%, transparent); }
.preg-hero .preg-bar i { background: var(--st); }
.preg-hero .inline-link, .preg-hero .link-soft { color: var(--st); border-color: color-mix(in srgb, var(--st) 45%, transparent); }
.preg-hero .c-sage, .preg-hero .c-gold { color: var(--st); }
.hero-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-dates > div { display: flex; gap: 8px; align-items: flex-start; }
.hero-dates .ic { margin-top: 3px; color: var(--st); }
/* «Lo normal ahora» sobre una versión más clara del tinte de la etapa */
.card.soft-card { background: color-mix(in srgb, var(--st-soft) 55%, #fff); border-color: transparent; }
.card.soft-card .tips li { font-size: 15px; color: var(--ink); }
.outline-gold { color: var(--st); border-color: color-mix(in srgb, var(--st) 40%, transparent); font-weight: 500; font-size: 13px; }
.outline-sage { color: var(--st); border-color: var(--st-mid); }

/* Visor 3D del feto (BEBÉ → 3D) */
.fetus-stage { position: relative; height: 340px; border-radius: 16px; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 35%, color-mix(in srgb, var(--st) 55%, #2a1018) 0%, #1b0d14 75%); }
.fetus-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.fetus-msg { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; text-align: center;
  padding: 24px; font-size: 14px; color: rgba(255,255,255,.85); pointer-events: none; }
.fetus-stage[data-state="loading"] .fetus-loading, .fetus-stage[data-state="error"] .fetus-error { display: flex; }
.fetus-hint { position: absolute; right: 14px; bottom: 10px; font-size: 12px; color: rgba(255,255,255,.7); text-align: right; pointer-events: none; transition: opacity .6s; }
.fetus-stage[data-state="error"] .fetus-hint, .fetus-stage[data-state="loading"] .fetus-hint { display: none; }

/* Acceso a la consulta en la cabecera: avatar + texto, para que se vea que es un botón */
.ask-pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 5px; border-radius: 999px;
  background: #fff; border: 1px solid color-mix(in srgb, var(--st) 35%, transparent); color: var(--st); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.ask-pill .cav { flex: none; }
@media (max-width: 359px) { .ask-pill .ask-label { display: none; } .ask-pill { padding: 0 5px; } }
.app-header .row:has(.sync-pill) .ask-pill .ask-label { display: none; } .app-header .row:has(.sync-pill) .ask-pill { padding: 0 5px; }

/* Ciclo: regla en rojo y ovulación en azul (vera-backlog#43) */
:root { --period: #B5362B; --ovu: #3B6EA8; }
.bg-period { background: var(--period); } .bg-ovu { background: var(--ovu); }
.wday.ph-period { --pc: var(--period); } .wday.ph-ovu { --pc: var(--ovu); }
.cal-cell.ph-period { --pc: var(--period); color: var(--period); }
.cal-cell.ph-ovu { --pc: var(--ovu); color: var(--ovu); }
.legend.box i.ph-period { background: color-mix(in srgb, var(--period) 22%, transparent); border-color: var(--period); }
.legend.box i.ph-ovu { background: color-mix(in srgb, var(--ovu) 22%, transparent); border-color: var(--ovu); }

/* Agenda: botón visible para recibir aviso en el calendario del móvil (vera-backlog#42) */
.appt-remind { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; color: var(--st); background: var(--st-soft); border: 1px solid color-mix(in srgb, var(--st) 30%, transparent); }

/* Avisos push: fila que abre la hoja (como «Aviso diario» en Florvia) */
.push-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; }
.push-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--st); }

/* Comparación de tamaño con fruta (vera-cycle#6) */
.cmp-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--st-soft); }
.cmp-emo { font-size: 26px; line-height: 1; }
.cmp-emo:empty { display: none; }

/* Registro de contracciones (vera-backlog#45) */
.ct-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.ct-row:first-child { border-top: 0; }
.ct-active { background: var(--rose); }

/* Contracciones destacadas desde la semana 37 */
.ct-prominent { background: var(--st-soft); border: 1.5px solid var(--st-mid); }
.ct-prominent .btn-primary { min-height: 64px; font-size: 17px; }
.ct-shortcut { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--st-soft); border-color: var(--st-mid); }
.ct-ic { background: var(--st); }

/* Dos contactos de consulta: ginecología y matrona (vera-backlog#55) */
.cav.md { width: 40px; height: 40px; font-size: 14px; background: var(--st); }
.cav-pair { display: inline-flex; }
.cav-pair .cav + .cav { margin-left: -3px; background: var(--st-mid); box-shadow: 0 0 0 2px #fff; }
.cav-pair .cav.xs + .cav { margin-left: -2px; box-shadow: 0 0 0 1.5px #fff; }
.ask-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ask-pick { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; padding: 14px 6px 10px; border-radius: 16px;
  background: #fff; border: 1.5px solid var(--line); position: relative; }
.ask-pick .cav { margin-bottom: 4px; }
.ask-pick.on { border-color: var(--st); background: var(--st-soft); }
.ask-badge { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 600; letter-spacing: .3px; color: #fff; background: var(--st); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.btn-primary:disabled { opacity: .5; }

/* Con tres profesionales los avatares de la cabecera se achican para que quepa la píldora */
.ask-pill .cav.sm { width: 26px; height: 26px; font-size: 10px; }
.cav-pair .cav + .cav { margin-left: -2px; }
.ask-pill .cav.sm { font-size: 9.5px; }
.cav-pair .cav:nth-child(3) { background: color-mix(in srgb, var(--st) 70%, #fff); }

/* Consultas con control de gratuitas (vera-backlog#57) */
.free-dots { display: inline-flex; gap: 6px; justify-content: center; }
.free-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.free-dots i.on { background: var(--st); }
.limit-card { background: var(--st-soft); border-radius: 16px; padding: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Marca Hera: logo en la cabecera, la bienvenida y la pantalla de carga (vera-backlog#60) */
.brand img { display: block; height: 34px; width: auto; }
.ob-logo { margin-bottom: 10px; }
.ob-logo img { display: block; margin: 0 auto; width: min(264px, 72vw); height: auto; }
.splash img { display: block; width: 88px; height: auto; }

/* ═══════════════════════════════════════════════════════════════════════
   Marca Hera, fase 3: componentes (vera-backlog#60)
   Botones de 48 px, campos y tarjetas con el radio de la marca, estados de
   hover/pulsado/foco, zonas táctiles de 44 px y movimiento reducido.
   ═══════════════════════════════════════════════════════════════════════ */
:root { --hover: #563146; --active: #452637; --subtle: #F5F0F1; --border-strong: #D9CFD4; }

/* Botón principal: ciruela, 48 px, Inter 600 */
.btn-primary { min-height: 48px; padding: 13px 18px; border-radius: 12px; font-size: 15px; font-weight: 600; letter-spacing: 0; transition: background .18s; }
.btn-primary:hover { filter: none; background: var(--hover); }
.btn-primary:active { background: var(--active); }
.btn-primary:disabled { opacity: .45; background: var(--st); }

/* Botones secundarios: blanco con borde y texto ciruela */
.outline-sage { min-height: 44px; border-radius: 12px; font-size: 14px; font-weight: 600; background: #fff;
  border: 1.5px solid color-mix(in srgb, var(--st) 50%, transparent); transition: background .18s, border-color .18s; }
.outline-sage:hover { background: var(--subtle); border-color: var(--st); }
.pill-outline { border-color: color-mix(in srgb, var(--st) 35%, transparent); font-weight: 500; transition: background .18s; }
.pill-outline:hover { background: var(--subtle); }
.pill-dark:hover { background: var(--hover); }
.google-btn { min-height: 48px; }
.link-deep, .inline-link, .faq-ext { text-underline-offset: 3px; }
.link-deep:hover, .inline-link:hover { text-decoration: underline; }
.link-soft { font-size: 13px; }

/* Campos: radio 12, borde algo más marcado y anillo de foco; 16 px para que iOS no haga zoom */
.field { font-size: 16px; border-radius: 12px; border-color: var(--border-strong); transition: border-color .15s, box-shadow .15s; }
.field:focus { outline: none; border-color: var(--st); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 28%, transparent); }
.field::placeholder { color: color-mix(in srgb, var(--ink-soft) 85%, transparent); }
.num-box { border-color: var(--border-strong); }
.num-box:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 28%, transparent); }
.range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--focus); }

/* Chips, opciones y selectores: seleccionado con borde ciruela */
.chip { min-height: 40px; }
.chip:not(.on):hover { border-color: var(--st-mid); }
.option, .stage-btn, .type-btn { border-color: var(--border-strong); }
.option.on, .stage-btn.on, .type-btn.on { border-color: var(--st); }
.option:not(.on):hover, .stage-btn:not(.on):hover, .type-btn:not(.on):hover { background: var(--subtle); }
.seg.on { box-shadow: 0 1px 3px rgba(105, 61, 85, .16); }
.segs.wide .seg { min-height: 36px; }

/* Avisos y barra de guardar: acento suave en vez de borde fuerte */
.reminder { border-color: color-mix(in srgb, var(--gold) 35%, transparent); }
.save-bar { border-top-color: color-mix(in srgb, var(--gold) 35%, transparent); }

/* Hojas: esquinas de 28 px, título claro y fondo que oscurece en ciruela */
.sheet { border-radius: 28px 28px 0 0; }
@media (min-width: 700px) { .sheet { border-radius: 28px; } }
@media (max-width: 699px) { .sheet.dialog { border-radius: 28px 28px 0 0; } }
.sheet-backdrop { background: rgba(46, 38, 48, .32); }
.sheet-title { font-size: 17px; font-weight: 600; }

/* Zonas táctiles de al menos 44 px sin cambiar el tamaño visible */
.gear { width: 44px; height: 44px; }
.ask-pill { height: 44px; }
.icon-btn, .sq-btn, .step-btn, .nav-btn { position: relative; }
.icon-btn::after, .sq-btn::after { content: ''; position: absolute; inset: -8px; }
.step-btn::after, .nav-btn::after { content: ''; position: absolute; inset: -5px; }
.gap-8 > .sq-btn::after { inset: -8px -4px; } /* botones contiguos: sin solaparse */

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Dos campos en fila (altura y peso previo): mismas columnas e inputs alineados abajo */
.pair-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; }
.pair-fields .field { width: 100%; }

/* Marca Hera, fase 4: ventana fértil en verde salvia propio (el salvia de texto, mezclado al 12 %, se veía gris) */
:root { --fertile: #446E52; }
.bg-fertile { background: var(--fertile); }
.wday.ph-sage, .cal-cell.ph-sage { --pc: var(--fertile); }
.cal-cell.ph-sage { color: var(--fertile); }
.legend.box i.ph-sage { background: color-mix(in srgb, var(--fertile) 22%, transparent); border-color: var(--fertile); }
/* El día seleccionado del calendario siempre en blanco sobre ciruela, también en regla, fértil u ovulación */
.cal-cell.sel[class*="ph-"] { color: #fff; }

/* Marca Hera, fase 6: accesibilidad (contraste AA en textos pequeños) */
:root { --berenjena: #5A3D4A; }
.bg-rose55 { background: color-mix(in srgb, var(--rose) 32%, #fff); } /* barra lútea de Patrones: texto ciruela legible */
.cav-pair .cav:nth-child(3) { background: var(--sage); } /* pediatra en la cabecera: blanco sobre salvia, 5,9:1 */
/* Patrones: con Inter (más ancha) las etiquetas de fase no cabían en móviles normales */
@media (max-width: 420px) {
  .bubble-grid { grid-template-columns: 84px repeat(4, 1fr); }
  .bubble-h { font-size: 10px; padding: 3px 4px; letter-spacing: -.1px; }
  .bubble-name { font-size: 12.5px; }
}
@media (max-width: 360px) {
  .bubble-grid { grid-template-columns: 82px repeat(4, 1fr); }
  .bubble-h { padding: 3px 3px; }
}
