:root {
  color-scheme: light;
  --bg: #FCF7F6; --card: #FFFFFF; --text: #33202A; --muted: #7A6670;
  --primary: #711C41; --primary-ink: #FFFFFF; --accent: #F87361; --accent-soft: #FFE9E4; --plum-soft: #F6E8EE;
  --sage: #7FB5A2; --sage-soft: #E6F2EE;
  --warn: #F2B544; --warn-soft: #FFF3D6; --danger: #D6403A; --danger-soft: #FCE4E2;
  --line: #EBDDE1; --shadow: 0 2px 10px rgba(113, 28, 65, .08);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.4; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.5rem; line-height: 1.2; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

.screen { max-width: 480px; margin: 0 auto; min-height: 100dvh; padding: 12px 14px calc(88px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
.screen.plain { padding-bottom: 28px; }

.card { background: var(--card); border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 10px; align-items: center; }
.spread { justify-content: space-between; }

.btn { min-height: 46px; padding: 10px 16px; border-radius: 14px; border: 0; background: var(--primary); color: var(--primary-ink); font-weight: 650; cursor: pointer; width: 100%; }
.btn:active { transform: scale(.98); }
/* ningún botón es transparente: el principal va en ciruela y los secundarios con relleno suave */
.btn.ghost { background: var(--plum-soft); color: var(--primary); border: 1.5px solid color-mix(in srgb, var(--primary) 28%, var(--card)); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.link { background: var(--plum-soft); color: var(--primary); border: 1.5px solid color-mix(in srgb, var(--primary) 28%, var(--card)); border-radius: 99px; min-height: 44px; width: auto; padding: 8px 18px; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; }

label { font-weight: 600; font-size: .95rem; display: block; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=tel], input[type=number], select {
  width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card);
}
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--primary); }

.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--line); border-radius: 14px; padding: 4px; }
.tabs button { min-height: 44px; border: 0; background: var(--card); border-radius: 11px; font-weight: 600; cursor: pointer; }
.tabs button.on { background: var(--primary); color: var(--primary-ink); box-shadow: var(--shadow); }

.error { background: var(--danger-soft); color: var(--danger); border-radius: 12px; padding: 10px 14px; font-weight: 600; }
.logo { width: 72px; height: 72px; border-radius: 20px; }
.hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 12px; }

.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; background: var(--primary); border-radius: 99px; transition: width .25s; }

.choices { display: grid; gap: 10px; }
.choice { min-height: 56px; padding: 12px 16px; text-align: left; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; font-weight: 600; }
.choice.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, var(--card)); }

.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 99px; background: var(--sage-soft); color: var(--text); font-weight: 650; font-size: .88rem; }
.next { border-left: 6px solid var(--sage); }
.next.warn { border-left-color: var(--warn); background: var(--warn-soft); }
.next.alert { border-left-color: var(--danger); background: var(--danger-soft); }

.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.q { min-height: 96px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-weight: 650; padding: 10px; }
.q .ic { font-size: 1.8rem; line-height: 1; }
.q .sub { font-weight: 400; font-size: .8rem; color: var(--muted); }
.q:active { transform: scale(.97); }

.access { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.a { min-height: 84px; border-radius: 18px; border: 0; cursor: pointer; font-weight: 700; padding: 12px; background: var(--sage-soft); color: var(--text); display: flex; align-items: center; gap: 10px; text-align: left; }
.a .ic { font-size: 1.6rem; }
.a.sos { background: var(--danger); color: #fff; }

.tip { background: var(--warn-soft); }
details.qa { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px; }
details.qa summary { min-height: 48px; display: flex; align-items: center; font-weight: 650; cursor: pointer; }
details.qa p { padding: 0 0 12px; }

.nav { position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.nav > div { max-width: 480px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); }
.nav button { min-height: 64px; border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .72rem; color: var(--muted); }
.nav button .ic { font-size: 1.4rem; line-height: 1; }
.nav button.on { color: var(--primary); font-weight: 700; }

.sheet-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); display: flex; align-items: flex-end; justify-content: center; z-index: 10; }
.sheet { background: var(--card); width: 100%; max-width: 480px; border-radius: 22px 22px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; max-height: 88dvh; overflow-y: auto; }

ul.clean { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
ul.alerts li::marker { color: var(--danger); }
.hito { display: flex; gap: 12px; align-items: center; min-height: 44px; font-weight: 400; }
.hito input { width: 24px; height: 24px; accent-color: var(--sage); }
.logline { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.logline:last-child { border-bottom: 0; }
.x { border: 0; border-radius: 50%; background: var(--plum-soft); color: var(--primary); font-size: 1.2rem; min-width: 44px; min-height: 44px; cursor: pointer; }
a.call { display: flex; justify-content: space-between; align-items: center; min-height: 56px; padding: 12px 16px; border-radius: 14px; background: var(--danger); color: #fff; text-decoration: none; font-weight: 700; }

#toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 99px; font-weight: 600; opacity: 0; pointer-events: none; transition: .2s; z-index: 20; max-width: 90vw; text-align: center; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* láminas de ejercicios */
.eximg { display: block; width: 100%; max-width: 320px; height: auto; margin: 4px auto; border-radius: 16px; background: var(--line); }

/* ---- diseño v2: ilustración, color y jerarquía ---- */
:root { --bg: #FCF7F6; --shadow: 0 6px 20px rgba(113, 28, 65, .10); }
.card { border-radius: 18px; }
h1 { letter-spacing: -.01em; }
h2 { letter-spacing: -.005em; }

  background: linear-gradient(145deg, color-mix(in srgb, var(--primary) 34%, var(--card)), color-mix(in srgb, var(--accent) 30%, var(--card))); box-shadow: var(--shadow); }
.hello { font-weight: 600; opacity: .85; }
.stagename { font-weight: 650; margin-top: 6px; }
.art { position: relative; z-index: 1; width: 150px; flex: none; margin-right: -6px; }
@media (max-width: 360px) { .art { width: 120px; } }

.banner { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 20px; border-radius: 26px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--t) 34%, var(--card)), color-mix(in srgb, var(--t) 12%, var(--card))); box-shadow: var(--shadow); }
.banner p { margin-top: 4px; opacity: .85; }
.banner .eyebrow { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .75; }
.bigic { font-size: 3.2rem; line-height: 1; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .12)); flex: none; }
.dots { display: flex; gap: 6px; margin-top: 12px; }
.dots i { width: 22px; height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--card) 60%, transparent); }
.dots i.on { background: var(--primary); }
.topichead { display: flex; align-items: center; gap: 12px; }
.topichead .bigic { font-size: 2.4rem; }

/* fichas de colores */
.a, .q { background: color-mix(in srgb, var(--t, var(--sage)) 16%, var(--card)); border: 1px solid color-mix(in srgb, var(--t, var(--sage)) 30%, var(--line)); box-shadow: var(--shadow); }
.a { border-radius: 20px; }
.a .ic, .q .ic { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; font-size: 1.5rem; flex: none;
  background: color-mix(in srgb, var(--t, var(--sage)) 34%, var(--card)); }
.q { border-radius: 22px; min-height: 108px; }
.q .ic { width: 52px; height: 52px; font-size: 1.8rem; border-radius: 17px; }
.a.sos { background: var(--danger); border-color: transparent; }
.a.sos .ic { background: rgba(255, 255, 255, .22); }
.a:active, .q:active { transform: scale(.97); }

h2.sec, .screen > div > h2 { display: flex; align-items: center; gap: 8px; }

/* navegación con iconos propios */
.nav { box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); }
.nav button { gap: 3px; min-height: 66px; }
.nav .pill { display: grid; place-items: center; width: 52px; height: 30px; border-radius: 99px; transition: background .2s; }
.nav button.on .pill { background: color-mix(in srgb, var(--primary) 22%, transparent); }
.nav-ic { width: 24px; height: 24px; }
.next { border-radius: 20px; }
details.qa { border-radius: 16px; }
details.qa[open] { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.eximg { max-width: 340px; box-shadow: var(--shadow); }
.access, .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.a { min-width: 0; overflow-wrap: anywhere; font-size: .95rem; padding: 10px; }
.a .ic { width: 40px; height: 40px; font-size: 1.3rem; }

/* estimular */
.weekcard { display: flex; align-items: center; gap: 14px; }
.weekcard .wk { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; background: color-mix(in srgb, var(--primary) 22%, var(--card)); color: var(--primary); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -14px; padding-inline: 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 8px 16px; border-radius: 99px; border: 1.5px solid color-mix(in srgb, var(--t) 45%, var(--line)); background: color-mix(in srgb, var(--t) 14%, var(--card)); font-weight: 650; cursor: pointer; }
.chip.on { background: var(--t); border-color: var(--t); color: #1B1618; }
details.ex { border-left: 6px solid var(--t); padding: 4px 12px 4px 10px; }
details.ex summary { gap: 12px; min-height: 64px; list-style: none; }
details.ex summary::-webkit-details-marker { display: none; }
.exic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: color-mix(in srgb, var(--t) 28%, var(--card)); }
.extx { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.extx small { font-weight: 500; color: var(--muted); font-size: .78rem; }
.exmin { flex: none; font-size: .82rem; font-weight: 600; color: var(--muted); }
details.ex.done .exmin { color: var(--sage); }

/* menú inferior más visible */
.nav { background: var(--primary); border-top: 0; box-shadow: 0 -4px 18px rgba(113, 28, 65, .30); }
.nav button { color: color-mix(in srgb, var(--primary-ink) 82%, transparent); font-weight: 600; font-size: .75rem; }
.nav button.on { color: var(--primary-ink); font-weight: 800; }
.nav button.on .pill { background: var(--primary-ink); color: var(--primary); }
.nav button.on .pill svg { stroke: var(--primary); }

/* respuestas con más dinamismo */
details.qa summary { gap: 10px; }
details.qa[open] summary { color: var(--primary); }
details.qa p { margin: 0; padding: 4px 0 10px; }
.callout { display: flex; gap: 10px; align-items: flex-start; border-radius: 14px; padding: 10px 12px; margin: 6px 0 10px; border: 1px solid transparent; }
.callout b { display: block; font-size: .85rem; letter-spacing: .02em; text-transform: uppercase; }
.callout .tipic { font-size: 1.3rem; line-height: 1.2; }
.callout.ok { background: color-mix(in srgb, #5FAF8A 18%, var(--card)); border-color: color-mix(in srgb, #5FAF8A 40%, var(--line)); }
.callout.no { background: color-mix(in srgb, #D6403A 13%, var(--card)); border-color: color-mix(in srgb, #D6403A 35%, var(--line)); }
.callout.warn { background: color-mix(in srgb, #E3B873 26%, var(--card)); border-color: color-mix(in srgb, #E3B873 55%, var(--line)); }

/* alertas compactas */
.card.next { padding: 10px 14px; border-radius: 16px; border-left-width: 5px; }
.card.next h3 { margin: 0; font-size: 1rem; }
.card.next p { margin: 2px 0 0; font-size: .9rem; line-height: 1.35; }
.a.slim { min-height: 0; padding: 8px 12px; gap: 10px; font-size: .92rem; line-height: 1.3; }
.a.slim .ic { width: 34px; height: 34px; font-size: 1.1rem; border-radius: 11px; }

/* alertas en una línea */
.strip { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 6px 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--warn) 50%, var(--line)); background: var(--warn-soft); color: var(--text); font: inherit; font-size: .92rem; text-align: left; cursor: pointer; }
.strip b { flex: 1; min-width: 0; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip small { color: var(--muted); white-space: nowrap; }
.strip i { font-style: normal; color: var(--muted); }
details.strip { display: block; padding: 0 14px; }
details.strip summary { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; }
details.strip summary::-webkit-details-marker { display: none; }
details.strip p { margin: 0; padding: 0 0 10px; color: var(--muted); font-size: .9rem; }
details.strip:not(.warn) { background: var(--card); border-color: var(--line); }

/* registro rápido compacto */
.quick { gap: 10px; }
.q { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; align-items: center; column-gap: 8px; row-gap: 0; text-align: left; min-height: 56px; padding: 6px 10px; border-radius: 16px; font-size: .95rem; font-weight: 700; }
.q .ic { grid-row: 1 / 3; width: 38px; height: 38px; font-size: 1.25rem; border-radius: 12px; }
.q .sub { font-size: .78rem; line-height: 1.25; }
.access { gap: 10px; }
.a { min-height: 56px; padding: 8px 10px; }
.a .ic { width: 36px; height: 36px; font-size: 1.2rem; border-radius: 12px; }

/* tip arriba */
.tipbar { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 16px; background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 45%, var(--line)); }
.tipbar span { font-size: 1.3rem; line-height: 1.3; }
.tipbar p { margin: 0; font-size: .92rem; line-height: 1.35; }
.tipbar b { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* tarjeta del bebé compacta + campana */
.bell { position: absolute; top: 10px; right: 10px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); font-size: 1.3rem; cursor: pointer; display: grid; place-items: center; }
.bell .dot { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--danger); color: #fff; font-size: .75rem; font-weight: 800; display: grid; place-items: center; }
.alertrow { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; font: inherit; color: var(--text); padding: 12px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--card)); background: color-mix(in srgb, var(--primary) 6%, var(--card)); }
.alertrow.urgent { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); }
.alertrow .aic { font-size: 1.5rem; line-height: 1.2; }
.alertrow b { display: block; }
.alertrow span span { color: var(--muted); font-size: .92rem; }

.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.sheet, .sheet * { min-width: 0; }
.sheet { overflow-x: hidden; overflow-wrap: anywhere; }

/* termómetro */
.thermo { --c: #5FAF8A; display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 20px; background: color-mix(in srgb, var(--c) 14%, var(--card)); border: 1px solid color-mix(in srgb, var(--c) 40%, var(--line)); }
.thermo.cold { --c: #6FA3D8; } .thermo.ok { --c: #5FAF8A; } .thermo.warm { --c: #E3A93D; } .thermo.hot { --c: #D6403A; }
.trow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tbtn { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--c); color: #fff; font-size: 2rem; font-weight: 700; line-height: 1; cursor: pointer; }
.tval { display: flex; align-items: baseline; gap: 4px; }
.tval b { font-size: 3.4rem; line-height: 1; color: var(--c); }
.tval span { font-size: 1.3rem; color: var(--muted); }
.tlabel { margin: 0; text-align: center; font-weight: 700; color: var(--c); }
.trange { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; border-radius: 99px; background: linear-gradient(90deg, var(--c) var(--p, 25%), color-mix(in srgb, var(--muted) 25%, var(--card)) var(--p, 25%)); outline: none; margin: 4px 0; padding: 0; border: 0; }
.trange::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 4px solid var(--c); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.trange::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 4px solid var(--c); }
.tscale { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); padding: 0 6px; }

.moreq { margin-top: 10px; }
.moreq summary { min-height: 44px; display: flex; align-items: center; color: var(--muted); font-size: .92rem; cursor: pointer; }
.moreq p { margin: 0 0 8px; }

/* sueño y diario */
.slcard { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.slcard.sleeping { background: color-mix(in srgb, #9DAAD6 22%, var(--card)); border-color: color-mix(in srgb, #9DAAD6 55%, var(--line)); }
.slcard.soon { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); }
.slcard.late { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.slcard.soft { background: var(--sage-soft); border-color: transparent; }
.slcard > span { font-size: .93rem; line-height: 1.4; }
.sltips { margin: 0; padding-left: 20px; font-size: .93rem; display: flex; flex-direction: column; gap: 4px; }
.wbar { position: relative; height: 12px; border-radius: 99px; background: color-mix(in srgb, var(--muted) 25%, var(--card)); }
.wbar i { display: block; height: 100%; border-radius: 99px; background: #9DAAD6; }
.wbar u { position: absolute; top: -3px; width: 3px; height: 18px; background: var(--text); opacity: .55; border-radius: 2px; }
.wlab { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); }
.dstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dstat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.dstat span { grid-row: 1 / 3; font-size: 1.6rem; }
.dstat b { font-size: 1.15rem; }
.dstat small { color: var(--muted); font-size: .78rem; }
.dstat.hot { background: var(--danger-soft); }
.dstrip { position: relative; height: 18px; border-radius: 99px; background: color-mix(in srgb, var(--muted) 18%, var(--card)); margin: 10px 0 4px; overflow: hidden; }
.dstrip i { position: absolute; top: 0; bottom: 0; background: #9DAAD6; border-radius: 4px; }
.daxis { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); }
.timeline { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 4px 12px; }
.tl { display: grid; grid-template-columns: 52px 38px minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.tl:last-child { border-bottom: 0; }
.tlt { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tli { font-size: 1.3rem; text-align: center; }
.tlx b { display: block; font-weight: 650; }
.tlx small { color: var(--muted); font-size: .82rem; }
.tl.hot .tlx b { color: var(--danger); }
.sheet > * { flex-shrink: 0; }

/* arreglo: iconos aplastados en ventanas */
.callout .tipic, .alertrow .aic, .tli, .sck { flex: none; }
.sheet .banner { padding: 14px 16px; gap: 8px; }
.sheet .banner h1 { font-size: 1.4rem; }
.sheet .banner p { font-size: .9rem; margin: 0; }
.sheet .banner .bigic { font-size: 2.4rem; }

/* etapa */
.scard { padding: 14px 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.scard h2 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin: 0 0 6px; }
.scard h2 > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; font-size: 1.2rem; background: color-mix(in srgb, var(--c, #8DB8A6) 28%, var(--card)); }
.scard h2 small { margin-left: auto; color: var(--muted); font-weight: 600; font-size: .85rem; }
.scard.ok { --c: #8DB8A6; border-left: 5px solid #8DB8A6; }
.scard.todo { --c: #E3B873; border-left: 5px solid #E3B873; }
.scard.alert { --c: #D6403A; border-left: 5px solid var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--card)); }
.scard.self { --c: #E39A94; background: color-mix(in srgb, #E39A94 16%, var(--card)); border-color: color-mix(in srgb, #E39A94 40%, var(--line)); }
.scard p { margin: 0; line-height: 1.45; }
.srow { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; }
.srow + .srow { border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.sck { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; margin-top: 1px; }
.sck.ok { background: color-mix(in srgb, #5FAF8A 30%, var(--card)); color: #2f6b57; }
.sck.n { background: color-mix(in srgb, #E3B873 40%, var(--card)); color: #7a5410; }
.sck.al { background: var(--danger); color: #fff; }
.scard .btn { margin-top: 8px; }
.hbar { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--muted) 22%, var(--card)); overflow: hidden; margin-bottom: 6px; }
.hbar i { display: block; height: 100%; background: #9DAAD6; border-radius: 99px; transition: width .25s; }

/* histórico */
.dnav { display: flex; align-items: center; gap: 8px; }
.dsel { flex: 1; min-width: 0; display: grid; grid-template-columns: 0.8fr 1.5fr 1fr; gap: 6px; }
.dsel select { min-width: 0; padding: 10px 6px; font-size: .95rem; }
.tbtn.sm { width: 44px; height: 44px; font-size: 1.5rem; background: var(--primary); flex: none; }
.tbtn:disabled { background: var(--line); color: var(--muted); cursor: default; }
.dbars { display: flex; align-items: flex-end; gap: 4px; height: 110px; margin: 10px 0 4px; }
.dbar { position: relative; flex: 1; min-width: 0; height: 100%; display: flex; align-items: flex-end; }
.dbar i { display: block; width: 100%; min-height: 3px; background: #9DAAD6; border-radius: 4px 4px 0 0; }
.dbar u { position: absolute; top: -4px; left: 50%; transform: translateX(-50%); width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.dbars.thin { gap: 1px; }
.dsel { grid-template-columns: .8fr 1.8fr 1.1fr; gap: 4px; }
.dsel select { padding: 10px 2px; font-size: .88rem; }

/* ruido para dormir */
.nowplaying { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); max-width: 456px; margin: 0 auto; z-index: 9; display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 14px; border-radius: 99px; background: var(--text); color: var(--bg); box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.nowplaying b { flex: 1; min-width: 0; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nowplaying small { opacity: .8; white-space: nowrap; }
.nowplaying button { min-height: 40px; padding: 0 14px; border-radius: 99px; border: 0; background: var(--primary); color: var(--primary-ink); font-weight: 700; cursor: pointer; }
.slcard .trange { margin: 2px 0; }

/* fechas simples */
.dinp { flex: 1; min-width: 0; width: 100%; }
.dnav .dinp { text-align: center; }
.drange { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.drange label { display: flex; flex-direction: column; gap: 4px; font-weight: 650; font-size: .9rem; }
.slcard .chips, .chips[aria-label="Periodo"] { flex-wrap: wrap; overflow: visible; }

.strip.hito-strip { background: color-mix(in srgb, #9DAAD6 16%, var(--card)); border-color: color-mix(in srgb, #9DAAD6 50%, var(--line)); }
#hitos { scroll-margin-top: 12px; }

.atx { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.atx small { font-weight: 500; font-size: .72rem; color: var(--muted); margin-top: 2px; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: color-mix(in srgb, var(--muted) 16%, var(--card)); }
.seg button { min-height: 48px; border: 0; border-radius: 12px; background: var(--card); font: inherit; font-weight: 650; color: var(--text); cursor: pointer; }
.seg button.on { background: var(--primary); color: var(--primary-ink); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.access .a.wide { grid-column: 1 / -1; }
.access .a { font-size: .88rem; gap: 8px; padding: 8px; overflow-wrap: break-word; }
.access .a .ic { width: 32px; height: 32px; font-size: 1.05rem; border-radius: 10px; }

/* mamá */
.moodrow { padding: 8px 12px; border-radius: 16px; background: color-mix(in srgb, #E39A94 14%, var(--card)); border: 1px solid color-mix(in srgb, #E39A94 40%, var(--line)); }
.moodrow p { margin: 0 0 4px; font-size: .95rem; }
.moods { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.moods button { min-height: 42px; font-size: 1.35rem; line-height: 1; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; }
.moods button.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 18%, var(--card)); }
.strip.mood-done { background: color-mix(in srgb, #E39A94 14%, var(--card)); border-color: color-mix(in srgb, #E39A94 40%, var(--line)); }
.weekm { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 6px; text-align: center; }
.wm span { display: block; font-size: 1.4rem; line-height: 1.5; }
.wm small { color: var(--muted); font-size: .72rem; }
.mq { padding: 8px 0; border-bottom: 1px solid var(--line); }
.mq p { margin: 0 0 6px; }
.btn:disabled { background: var(--line); border-color: var(--line); color: var(--muted); cursor: default; }
.helpmsg { text-decoration: none; margin-top: 4px; }
.breath { display: grid; place-items: center; padding: 20px 0 10px; }
.bcircle { position: relative; width: 150px; height: 150px; border-radius: 50%; background: color-mix(in srgb, #8FB0D0 45%, var(--card)); border: 3px solid #8FB0D0; display: grid; place-items: center; animation: breathe 10s ease-in-out infinite; font-weight: 700; font-size: 1.2rem; }
.bcircle span { position: absolute; }
.bcircle .in { animation: showin 10s infinite; }
.bcircle .out { animation: showout 10s infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.7); } 40% { transform: scale(1.15); } }
@keyframes showin { 0%, 38% { opacity: 1; } 42%, 100% { opacity: 0; } }
@keyframes showout { 0%, 38% { opacity: 0; } 42%, 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bcircle { animation: none; } .bcircle .out { opacity: 0; animation: none; } .bcircle .in { animation: none; } }
.call.soft { background: color-mix(in srgb, #8DB8A6 35%, var(--card)); color: var(--text); border: 1px solid color-mix(in srgb, #8DB8A6 60%, var(--line)); }

.callnum { font-size: 1.25rem; font-weight: 750; margin: 0; }
a.btn { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.callnum.big { font-size: 2rem; color: var(--danger); }

.momadv { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, #8FB0D0 14%, var(--card)); border: 1px solid color-mix(in srgb, #8FB0D0 40%, var(--line)); }
.momadv.low1, .momadv.low2 { background: color-mix(in srgb, #E39A94 14%, var(--card)); border-color: color-mix(in srgb, #E39A94 45%, var(--line)); }
.momadv.good { background: color-mix(in srgb, #8DB8A6 20%, var(--card)); border-color: color-mix(in srgb, #8DB8A6 50%, var(--line)); }
.momadv p { margin: 0; line-height: 1.45; }
.advbtns { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }

.exmat{background:color-mix(in srgb,var(--t) 14%,var(--card));padding:10px 12px;border-radius:12px;margin:0}
.exmore{display:flex;flex-direction:column;gap:6px;padding:10px 12px;border-radius:12px;border:1px dashed var(--line)}
.exmore p{margin:0}

/* selector de etapa */
.stnav { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stnav .tbtn { flex: none; }
.stmid { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.stmid b { font-size: 1.1rem; }
.stmid small { color: var(--muted); }
.stmid .dots { margin-top: 6px; justify-content: center; }
.stmid .dots i { width: 14px; height: 6px; background: color-mix(in srgb, var(--muted) 30%, var(--card)); }
.stmid .dots i.cu { background: color-mix(in srgb, #E3B873 60%, var(--card)); }
.stmid .dots i.on { background: var(--primary); width: 26px; }

/* login con Google */
.gsep { display: flex; align-items: center; gap: 10px; color: var(--muted, #8a7f78); font-size: .9rem; margin: 2px 0; }
.gsep::before, .gsep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.gbtn { display: flex; justify-content: center; align-items: center; height: 52px; }
.gbtn > div { transform: scale(1.3); } /* mismo factor que GSCALE en app.js */
/* colores y medidas del tema claro de las guías de marca de Google: no cambiarlos */
.gapp { width: 100%; height: 48px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 12px; border: 1px solid #747775; border-radius: 99px; background: #fff; color: #1f1f1f; font: 500 16px/20px Roboto, system-ui, sans-serif; }
.gapp svg { width: 22px; height: 22px; flex: none; }
.gbtn:empty { border-radius: 99px; background: var(--line); }
.gbtn:empty::after { content: 'Cargando Google…'; color: var(--muted); font-size: .9rem; }
.legal-link { color: var(--primary); font-weight: 650; }
a.strip { text-decoration: none; color: inherit; }

/* Aviso de prueba gratis en Inicio, con el botón para suscribirse */
.trial { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 18px; box-shadow: var(--shadow);
  background: linear-gradient(145deg, color-mix(in srgb, var(--primary) 12%, var(--card)), color-mix(in srgb, var(--accent) 20%, var(--card)));
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--line)); text-align: center; }
.trial p { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.trial strong { font-size: 1.05rem; color: var(--text); }
.trial span { font-size: .85rem; color: var(--muted); }

/* Ingreso: el logo se ajusta al alto de la pantalla y todo queda centrado */
.screen.auth { justify-content: center; gap: 18px; padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.auth .hero { padding-top: 0; }
.auth .logo-full { width: auto; max-width: 76%; object-fit: contain; height: clamp(150px, 30vh, 300px); height: clamp(150px, 30svh, 300px); }
.auth.mail .logo-full { height: clamp(110px, 18vh, 200px); height: clamp(110px, 18svh, 200px); }
.authbox { width: 100%; max-width: 420px; margin: 0 auto; }
.authbox .center { text-align: center; margin: 0; }
/* Pantallas bajas y anchas (teléfono acostado): logo a un lado, ingreso al otro */
@media (orientation: landscape) and (max-height: 560px) {
  .screen.auth { display: grid; grid-template-columns: 1fr 1fr; align-content: center; align-items: center; max-width: 860px; }
  .auth .logo-full, .auth.mail .logo-full { height: clamp(110px, 48vh, 260px); }
}
.logo-full { width: min(260px, 70vw); height: auto; }

/* SOS fijo y menú Más */
.sosfab { position: fixed; right: 14px; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 30; min-height: 48px; padding: 0 16px; border-radius: 99px; border: 0; background: var(--danger); color: #fff; font-weight: 700; font-size: .95rem; display: flex; align-items: center; gap: 6px; box-shadow: 0 4px 14px rgba(214, 64, 58, .45); cursor: pointer; }
.sosfab:active { transform: scale(.97); }
.strip.more { min-height: 64px; padding: 10px 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.strip.more span { font-size: 1.5rem; }
.strip.more b { white-space: normal; display: flex; flex-direction: column; gap: 2px; }
.strip.more small { font-weight: 400; }
details.card > summary { cursor: pointer; list-style: none; min-height: 44px; display: flex; align-items: center; }
details.card.stack > * + * { margin-top: 10px; } /* dentro de un desplegable no actúa el espaciado de .stack */

/* notificaciones */
.nprompt { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.nprompt p { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.nprompt b { font-size: .9rem; }
.nprompt small { font-size: .76rem; color: var(--muted); }
.nprompt .x { min-width: 40px; min-height: 40px; font-size: 1rem; }
.ntype { min-height: 44px; margin: 0; }
.ntype input { flex: none; }
.ntype span { display: flex; flex-direction: column; }
.ntype small { font-size: .8rem; color: var(--muted); }

/* ---------- Inicio ---------- */
:root { --pink: #F7DCE5; }
.screen.home { gap: 10px; padding: 8px 12px calc(80px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, #FBEDF2 0, var(--bg) 240px); }
.secic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--plum-soft); color: var(--primary); }
.secic .ic { width: 21px; height: 21px; }

.hhead { position: relative; min-height: 128px; display: flex; align-items: center; }
.htxt { position: relative; z-index: 1; width: 54%; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding-left: 4px; }
.htxt .hello { font-size: .9rem; color: var(--muted); opacity: 1; }
.htxt h1 { font-size: 1.75rem; line-height: 1.1; overflow-wrap: anywhere; }
.htxt h1.long { font-size: 1.35rem; }
.hbadge { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 4px 10px; border-radius: 99px; background: var(--pink); color: var(--primary); font-size: .82rem; font-weight: 650; white-space: nowrap; }
.hbadge .ic { width: 18px; height: 18px; }
.hprog { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 7px; }
.hprog small { font-size: .7rem; color: var(--muted); white-space: nowrap; }
.hbar2 { display: block; flex: 1; height: 7px; border-radius: 99px; background: color-mix(in srgb, var(--muted) 22%, var(--card)); overflow: hidden; }
.hbar2 i { display: block; height: 100%; border-radius: 99px; background: var(--primary); }
.hpic { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: min(52%, 220px); aspect-ratio: 8 / 5; display: flex; justify-content: center; align-items: center; }
.hphoto { width: 100%; height: 100%; object-fit: contain; }
.hphoto.own { width: 88%; object-fit: cover; border-radius: 58% 42% 48% 52% / 56% 54% 46% 44%; box-shadow: 8px 5px 0 var(--pink), -6px -3px 0 var(--pink); }
.hpic .art { width: 108px; height: auto; margin: 0 36px 0 0; }
.hcam { position: absolute; right: 42px; bottom: -4px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--card); color: var(--primary); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; }
.hcam .ic { width: 18px; height: 18px; }
.hside { position: absolute; right: -2px; top: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hside .bell { position: relative; top: auto; right: auto; width: 42px; height: 42px; color: var(--primary); box-shadow: var(--shadow); }
.hside .bell .ic { width: 22px; height: 22px; }
.hsos { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--card); background: var(--danger); color: #fff; font-size: .74rem; font-weight: 800; box-shadow: var(--shadow); cursor: pointer; }

.qlinks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 7px 2px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.qlinks button { min-width: 0; min-height: 60px; padding: 0 1px; border: 0; border-left: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: .74rem; font-weight: 650; cursor: pointer; }
.qlinks button:first-child { border-left: 0; }

/* calendario y próximas fechas */
.dash { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 8px; }
.dash.month { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 349px) { .dash { grid-template-columns: minmax(0, 1fr); } }
.dash .card { padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.calhead { display: flex; align-items: center; gap: 5px; min-height: 32px; color: var(--primary); }
.calhead .ic { flex: none; width: 18px; height: 18px; }
.calhead h3 { flex: 1; min-width: 0; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calbtn { flex: none; min-width: 32px; min-height: 32px; padding: 2px 8px; border-radius: 99px; border: 0; background: var(--plum-soft); color: var(--primary); font-size: .68rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.calbtn.add { padding: 0; background: var(--primary); color: var(--primary-ink); font-size: 1rem; }
.calnav { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.calnav b { font-size: .84rem; text-align: center; }
.calarrow { flex: none; width: 30px; height: 28px; border: 0; border-radius: 10px; background: color-mix(in srgb, var(--primary) 7%, var(--card)); color: var(--primary); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.calgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 2px; }
.calgrid small { text-align: center; font-size: .64rem; font-weight: 700; color: var(--muted); }
.cday { min-width: 0; min-height: 38px; padding: 0; border: 0; background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; cursor: pointer; }
.cday b { display: grid; place-items: center; width: 100%; max-width: 26px; aspect-ratio: 1; border-radius: 50%; font-size: .78rem; font-weight: 600; }
.cday.today b { background: var(--pink); color: var(--primary); font-weight: 800; }
.cday.sel b { background: var(--primary); color: var(--primary-ink); }
.cday i { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
.cday i.vacc { background: #3F8F76; }
.cday i.bday { background: var(--accent); }
.month .cday b { max-width: 32px; font-size: .86rem; }
.crow { display: flex; align-items: center; gap: 5px; width: 100%; min-height: 44px; padding: 3px 2px; text-align: left; font: inherit; color: var(--text); border: 0; border-top: 1px solid var(--line); background: var(--card); }
button.crow { cursor: pointer; }
.crow.urgent { background: var(--warn-soft); border-radius: 10px; }
.cdate { flex: none; width: 32px; min-height: 36px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 9px; background: var(--plum-soft); color: var(--primary); font-size: .62rem; font-weight: 700; line-height: 1.05; }
.cdate b { font-size: .92rem; }
.crow.vacc .cdate { background: var(--sage-soft); color: var(--text); }
.crow.bday .cdate { background: var(--accent-soft); color: var(--text); }
.cic { flex: none; font-size: .95rem; }
.ctx { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.ctx b { font-size: .72rem; overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ctx span { font-size: .65rem; color: var(--muted); }
.month .ctx b { font-size: .86rem; }
.month .ctx span { font-size: .76rem; }
@media (max-width: 379px) { .calhead .ic { display: none; } .calbtn { padding: 2px 6px; } }
.cnone { font-size: .76rem; color: var(--muted); }
.calhint { min-height: 40px; border: 0; border-radius: 12px; background: var(--plum-soft); color: var(--primary); font-size: .74rem; font-weight: 700; cursor: pointer; }

/* registro rápido */
.home .qlog { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.sech { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.sech .secic { width: 30px; height: 30px; }
.qgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.qt { min-width: 0; padding: 6px 1px; border: 0; border-radius: 14px; background: var(--q); display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
.qt:active { transform: scale(.97); }
.qt.fever { --q: #FBE1E7; } .qt.sleep { --q: #E3ECFD; } .qt.feed { --q: #FDEBD5; } .qt.diaper { --q: #DFF3EC; }
.qart { width: 36px; height: 36px; }
.qt b { font-size: .72rem; max-width: 100%; white-space: nowrap; }
.qt i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .75); font-style: normal; font-weight: 700; line-height: 1; }
@media (max-width: 349px) { .qt b { font-size: .64rem; } }

/* ánimo y prueba gratis */
.home .moodrow { padding: 8px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.home .moodrow p { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: .9rem; }
.home .moodrow .secic { width: 30px; height: 30px; }
.home .moods button { min-height: 40px; font-size: 1.35rem; }
.trial { flex-direction: row; align-items: center; gap: 10px; padding: 9px 10px; text-align: left; }
.trial p { flex: 1; min-width: 0; align-items: flex-start; }
.trial strong { font-size: .9rem; }
.trial span { font-size: .76rem; }
.trial .crown { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--primary); }
.trial .crown svg { width: 24px; height: 24px; }
.trial .btn { flex: none; width: auto; min-height: 40px; padding: 0 14px; border-radius: 99px; font-size: .82rem; white-space: nowrap; }

@media (max-width: 379px) { .trial strong { font-size: .82rem; } .trial span { font-size: .72rem; } .trial .btn { padding: 0 10px; font-size: .76rem; } }

/* ---------- Progreso ---------- */
.screen.pview { gap: 10px; }
.phead { position: relative; min-height: 150px; margin-bottom: -10px; display: flex; align-items: center; }
.ptitle { position: relative; z-index: 1; width: 58%; min-width: 0; padding-bottom: 8px; }
.ptitle h1 { font-size: 2rem; line-height: 1.1; }
.ptitle p { margin: 6px 0 0; font-size: .84rem; color: var(--muted); }
.ptitle p b { display: block; font-size: 1.25rem; color: var(--primary); overflow-wrap: anywhere; }
.phead img { position: absolute; right: -14px; bottom: 0; width: min(58%, 240px); height: auto; }
.phead img:not(.own) { -webkit-mask-image: linear-gradient(#000 88%, transparent); mask-image: linear-gradient(#000 88%, transparent); }
.phead img.own { right: 0; width: min(44%, 180px); aspect-ratio: 1; object-fit: cover; border-radius: 50% 50% 0 0; box-shadow: 0 0 0 9px var(--pink); }
.phead .art { position: absolute; right: 40px; bottom: 14px; width: 112px; height: auto; margin: 0; }
.phead .hsos { position: absolute; right: -2px; top: 0; z-index: 2; }
.psum { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 12px; background: linear-gradient(120deg, var(--card) 55%, #FDF0F4); }
.ring { position: relative; flex: none; width: 112px; aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; }
.ring circle { stroke-width: 10; stroke-linecap: round; }
.ring .trk { stroke: var(--pink); }
.ring .arc { stroke: var(--primary); }
.ring div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; font-size: .8rem; color: var(--muted); }
.ring div span:first-child { color: var(--text); font-weight: 650; }
.ring div b { font-size: 2.5rem; color: var(--text); }
.pgen { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-left: 12px; border-left: 1px solid var(--line); }
.pgen strong { font-size: 1.45rem; line-height: 1.15; color: var(--primary); }
.pgen > span { font-size: .85rem; color: var(--muted); }
.prow { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.prow > b { font-size: 1.05rem; color: var(--primary); }
.screen.pview h2 { margin: 6px 0 0; font-size: 1.2rem; }
.pcard { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; text-align: left; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); cursor: pointer; }
.pcard .pic { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: var(--pb); color: var(--pf); }
.pcard .pic .ic { width: 32px; height: 32px; }
.pcard.logros { --pb: #FDEDE7; --pf: #8E1840; }
.pcard.vac { --pb: #E3F4EA; --pf: #137A4B; }
.pcard.grow { --pb: #E2F0FC; --pf: #1A639F; }
.pcard.stim { --pb: #F1E5F6; --pf: #5F1D72; }
.ptx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ptx > b { font-size: .98rem; line-height: 1.2; }
.ptx small { color: var(--muted); font-size: .8rem; }
.pfoot { display: flex; align-items: center; gap: 8px; min-height: 18px; margin-top: 2px; }
.pfoot em { flex: none; font-style: normal; font-size: .76rem; color: var(--muted); }
.pfoot em.last { flex: 1; min-width: 0; color: var(--text); font-weight: 650; }
.pcard > i { flex: none; font-style: normal; font-size: 1.6rem; line-height: 1; color: var(--muted); }

/* ---------- Etapas ---------- */
.screen.estage { position: relative; gap: 8px; }
.estage > .hsos { position: absolute; right: 12px; top: 6px; }
.ehead { position: relative; min-height: 150px; margin-bottom: -14px; display: flex; flex-direction: column; justify-content: flex-start; padding-bottom: 16px; }
.ebar { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; min-height: 34px; }
.ebar b { font-size: .92rem; }
.eback { flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin-left: -4px; border: 0; border-radius: 50%; background: var(--card); color: var(--primary); box-shadow: var(--shadow); cursor: pointer; }
.eback .ic { width: 22px; height: 22px; }
.etxt { position: relative; z-index: 1; width: 56%; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; margin-top: 4px; }
.epill { padding: 1px 9px; border-radius: 99px; background: var(--pink); color: var(--primary); font-size: .72rem; font-weight: 700; }
.etxt h1 { margin-top: 3px; font-size: 1.5rem; line-height: 1.1; }
@media (max-width: 359px) { .etxt h1 { font-size: 1.28rem; } }
.etxt p { margin: 0; color: var(--muted); }
.etxt .erange { font-size: .9rem; font-weight: 700; }
.etxt .emotto { font-size: .76rem; line-height: 1.3; }
.esegs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 3px; width: 100%; margin-top: 7px; }
.esegs i { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--muted) 20%, var(--card)); }
.esegs i.on { background: var(--primary); }
.ehead > img { position: absolute; right: -14px; bottom: 0; width: min(50%, 224px); height: auto; }
.ehead > img:not(.own) { -webkit-mask-image: linear-gradient(#000 85%, transparent); mask-image: linear-gradient(#000 85%, transparent); }
.ehead > img.own { right: 0; bottom: 8px; width: min(38%, 160px); aspect-ratio: 1; object-fit: cover; border-radius: 50% 50% 46% 54%; box-shadow: 0 0 0 9px var(--pink); }
.ehead .hsos { position: absolute; right: -2px; top: 0; z-index: 2; }
.etabs { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 4px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.etabs button { min-width: 0; min-height: 46px; padding: 3px 0; border: 0; border-radius: 15px; background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: .72rem; font-weight: 650; color: var(--text); cursor: pointer; }
.etabs button .ic { width: 20px; height: 20px; color: var(--primary); }
.etabs button { position: relative; }
.etabs button:not(.on) + button:not(.on)::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.etabs button.on { background: var(--primary); color: var(--primary-ink); }
.etabs button.on .ic { color: var(--primary-ink); }
.eic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--eb); color: var(--ef); }
.eic .ic { width: 21px; height: 21px; }
.enext { --eb: #E9DCF3; --ef: var(--primary); display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; text-align: left; border: 1px solid #E9DCF3; border-radius: 16px; background: #F6EFF9; box-shadow: var(--shadow); cursor: pointer; }
.entx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.entx b { font-size: .9rem; color: var(--primary); }
.entx span { font-size: .74rem; line-height: 1.3; color: var(--muted); }
.enext > i { flex: none; font-style: normal; font-size: 1.7rem; line-height: 1; color: var(--primary); }
.ecard { flex: none; padding: 7px 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ecard h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .92rem; color: var(--primary); }
.ecard h2 small { margin-left: auto; padding: 3px 10px; border-radius: 99px; background: color-mix(in srgb, var(--muted) 12%, var(--card)); color: var(--text); font-size: .72rem; white-space: nowrap; }
.ecard ul { list-style: none; margin: 2px 0 0; padding: 0; }
.ecard li { position: relative; margin-left: 8px; padding: 5px 0 5px 24px; font-size: .8rem; line-height: 1.3; }
.ecard li::before { content: ''; position: absolute; left: 4px; top: calc(5px + .38em); width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.ecard li + li { border-top: 1px solid var(--line); }
.ecard p { margin: 5px 0 0; font-size: .8rem; line-height: 1.4; }
.ecard .btn { margin-top: 8px; }
.ecard.logros { --eb: #E3F4E6; --ef: #1F7A34; }
.ecard.todo { --eb: #FDF0CF; --ef: #B07200; --dot: #F5C453; }
.ecard.alerta { --eb: #FBDADF; --ef: #C62B30; --dot: #E2453C; }
.ecard.alerta h2 { margin: -7px -10px 0; padding: 7px 10px 4px; border-radius: 15px 15px 0 0; background: #FDEBEF; }
.ecard.alerta li + li { border-top: 0; }
.ecard.normal { --eb: #E3F4EA; --ef: #137A4B; --dot: #5FAF8A; }
.ecard.self { --eb: var(--pink); --ef: var(--primary); }
.ehito { display: flex; align-items: center; gap: 12px; min-height: 36px; margin: 0 0 0 8px; font-size: .82rem; font-weight: 500; cursor: pointer; }
.ehito + .ehito { border-top: 1px solid var(--line); }
.ehito input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--primary); }
.ehito input:disabled + span { color: var(--muted); }
.eprev { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: var(--warn-soft); font-size: .84rem; }
.eprev span { flex: 1; min-width: 0; }
.eprev button { flex: none; min-height: 40px; padding: 0 12px; border: 0; border-radius: 99px; background: var(--primary); color: var(--primary-ink); font-size: .78rem; font-weight: 700; cursor: pointer; }

/* ---------- estimulación de hoy ---------- */
.exday { flex: none; display: flex; flex-direction: column; gap: 7px; padding: 8px; border-radius: 18px; background: linear-gradient(120deg, #FFF1D6, #FBE3EC); border: 1px solid #F3D3B4; box-shadow: var(--shadow); }
.exd-head { display: flex; align-items: center; gap: 8px; }
.exd-head .secic { width: 30px; height: 30px; background: var(--primary); color: var(--primary-ink); }
.exd-head h3 { flex: 1; min-width: 0; font-size: .95rem; color: var(--primary); }
.exd-head .calbtn { background: var(--card); }
.exd-main { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px; text-align: left; border: 0; border-radius: 14px; background: var(--card); cursor: pointer; }
.exd-main img { flex: none; width: 84px; height: 84px; border-radius: 10px; object-fit: cover; background: var(--plum-soft); }
.exd-main > span { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.exd-main b { font-size: .95rem; line-height: 1.2; }
.exd-main small { font-size: .76rem; color: var(--muted); }
.exd-main em { margin-top: 4px; padding: 5px 14px; border-radius: 99px; background: var(--primary); color: var(--primary-ink); font-style: normal; font-size: .78rem; font-weight: 700; }
.exd-week { display: flex; align-items: center; gap: 4px; padding: 0 4px; }
.exd-week i { flex: 1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .85); }
.exd-week i.on { background: var(--primary); }
.exd-week small { flex: none; margin-left: 6px; font-size: .72rem; color: var(--muted); }
.exlist-h { margin: 4px 0 0; font-size: 1rem; color: var(--primary); }
.estage .stack, .estage .btn { flex: none; }

/* ---------- juegos y ejercicios ---------- */
.screen.plview { gap: 10px; }
.plview > * { flex: none; }
.pback { align-self: flex-start; display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 16px 0 11px; border: 0; border-radius: 99px; background: var(--card); color: var(--primary); box-shadow: var(--shadow); font-size: .9rem; font-weight: 700; cursor: pointer; }
.pback .ic { width: 20px; height: 20px; }
.plhead { position: relative; min-height: 112px; display: flex; align-items: center; margin-bottom: -6px; }
.pltxt { position: relative; z-index: 1; width: 63%; min-width: 0; }
.pltxt h1 { font-size: clamp(1.15rem, 5.4vw, 1.5rem); line-height: 1.15; white-space: nowrap; }
.pltxt p { margin: 5px 0 0; font-size: .8rem; line-height: 1.4; color: var(--muted); }
.plhead img { position: absolute; right: -14px; bottom: -4px; width: min(41%, 175px); height: auto; }
.plweek { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.plwic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--plum-soft); color: var(--primary); }
.plwic .ic { width: 27px; height: 27px; }
.plweek > div { flex: 1; min-width: 0; display: flex; flex-direction: column; padding-left: 10px; border-left: 1px solid var(--line); }
.plweek b { font-size: .95rem; }
.plweek small { font-size: .74rem; line-height: 1.3; color: var(--muted); }
.plgo { flex: none; display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 13px; border: 0; border-radius: 12px; background: var(--primary); color: var(--primary-ink); font-size: .82rem; font-weight: 700; white-space: nowrap; cursor: pointer; }
.plgo .ic { width: 17px; height: 17px; }
.plview .stnav { gap: 8px; padding: 8px 10px; border-radius: 18px; }
.stbtn { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--plum-soft); color: var(--primary); cursor: pointer; }
.stbtn.next { background: var(--primary); color: var(--primary-ink); }
.stbtn:disabled { background: var(--line); color: var(--muted); opacity: .6; cursor: default; }
.stbtn .ic { width: 22px; height: 22px; }
.plview .stmid b { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 1.05rem; line-height: 1.2; }
.plview .stmid b .ic { flex: none; width: 21px; height: 21px; color: var(--primary); }
.plview .stmid small { font-size: .76rem; }
.plview .stmid .dots { margin-top: 5px; gap: 5px; }
.plview .chip { display: flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 13px; font-size: .8rem; color: var(--text); }
.plview .chip .ic { width: 18px; height: 18px; color: var(--primary); }
.plview .chip.on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.plview .chip.on .ic { color: var(--primary-ink); }
details.ex { border: 1px solid var(--line); padding: 3px 10px 3px 9px; box-shadow: var(--shadow); }
details.ex summary { gap: 10px; min-height: 60px; }
.ex .exic { width: 42px; height: 42px; border-radius: 12px; }
.ex .extx { font-size: .9rem; }
.ex .extx small { margin-top: 2px; font-size: .72rem; line-height: 1.3; }
.exmin { display: flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 99px; background: var(--bg); font-size: .74rem; white-space: nowrap; }
.exmin .ic { width: 14px; height: 14px; }
details.ex.done .exmin { background: var(--sage-soft); color: #2F6B58; }
.exgo { flex: none; width: 16px; height: 16px; margin-left: -4px; color: var(--primary); transition: transform .2s; }
details.ex[open] > summary .exgo { transform: rotate(90deg); }
@media (max-width: 359px) { .plwic, .exmin .ic { display: none; } .plweek > div { padding-left: 0; border-left: 0; } }

/* ---------- hoja de avisos ---------- */
.sheet.avisos { gap: 8px; padding: 8px 14px calc(14px + env(safe-area-inset-bottom)); background: var(--bg); max-height: 92dvh; }
.avisos .grab { align-self: center; width: 42px; height: 5px; border-radius: 99px; background: #D9CDD3; }
.avhead { display: flex; align-items: center; gap: 12px; margin: 2px 0 4px; }
.avbell { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #FDF0D9; font-size: 1.55rem; }
.avhead h2 { font-size: 1.35rem; line-height: 1.15; }
.avhead p { margin: 0; font-size: .82rem; color: var(--muted); }
.avrow { --at: #F4EFF8; display: flex; align-items: center; width: 100%; padding: 9px 12px 9px 0; border: 0; border-radius: 16px; background: var(--at); color: var(--text); font: inherit; text-align: left; }
button.avrow { cursor: pointer; }
.avrow.date { --at: #FDE7E1; }
.avrow.nap.urgent { --at: #FCE9C8; }
.avrow.vac { --at: #FDF2DC; }
.avrow.spurt { --at: #EAF1FA; }
.avrow.prep { --at: #FCEBF0; }
.avrow.tip { --at: #EDF5F0; }
.avic { flex: none; align-self: stretch; display: grid; place-items: center; width: 62px; margin-right: 12px; border-right: 1px solid rgba(113, 28, 65, .14); font-size: 1.75rem; }
.avtx { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.avtx b { font-size: .95rem; line-height: 1.25; }
.avtx span { font-size: .8rem; line-height: 1.35; color: var(--muted); }
.avgo { flex: none; width: 18px; height: 18px; margin-left: 8px; color: var(--primary); }
.avdates { display: flex; align-items: flex-start; gap: 10px; margin-top: 2px; padding-top: 10px; border-top: 1px solid var(--line); }
.avcal { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--plum-soft); color: var(--primary); }
.avcal .ic { width: 23px; height: 23px; }
.avdates h3 { font-size: 1.1rem; }
.avdates p { margin: 2px 0 0; font-size: .8rem; line-height: 1.35; color: var(--muted); }
.avisos .btn { min-height: 44px; }
.avisos .alertrow { align-items: center; gap: 10px; padding: 9px 10px; }
.avisos .alertrow b { font-size: .88rem; line-height: 1.25; }
.avisos .alertrow span span { font-size: .78rem; }
.avisos .alertrow .x { flex: none; width: 38px; height: 38px; min-width: 38px; min-height: 38px; font-size: 1rem; }

/* ---------- diario ---------- */
.screen.dview { gap: 10px; }
.dview > * { flex: none; }
.dhead { position: relative; display: flex; align-items: center; min-height: 84px; margin-bottom: -2px; }
.dhead > div { position: relative; z-index: 1; width: 68%; min-width: 0; }
.dhead h1 { font-size: 1.9rem; line-height: 1.1; }
.dhead p { margin: 4px 0 0; font-size: .88rem; color: var(--muted); overflow-wrap: anywhere; }
.dhead img { position: absolute; right: -4px; top: 0; width: min(31%, 128px); height: auto; }
.dtabs { display: flex; gap: 6px; }
.dtabs button { min-height: 38px; padding: 0 24px; border: 1.5px solid var(--line); border-radius: 99px; background: var(--card); color: var(--text); font-size: .86rem; font-weight: 700; cursor: pointer; }
.dtabs button.on { border-color: var(--primary); background: var(--primary); color: var(--primary-ink); }
.dnav2 { display: flex; align-items: center; gap: 10px; }
.dstep { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--plum-soft); color: var(--primary); cursor: pointer; }
.dstep:disabled { opacity: .4; cursor: default; }
.dstep .ic { width: 22px; height: 22px; }
.dfield { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 42px; margin: 0; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 13px; background: var(--card); font-size: .9rem; font-weight: 600; }
.dfield:focus-within { border-color: var(--primary); }
.dfield span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dfield .ic { flex: none; width: 20px; height: 20px; color: var(--primary); }
.dfield input.dinp { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.dtoday { align-self: center; min-height: 34px; padding: 0 20px; border: 0; border-radius: 99px; background: var(--plum-soft); color: var(--primary); font-size: .82rem; font-weight: 700; cursor: pointer; }
.dcard { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.dch { display: flex; align-items: center; gap: 10px; }
.dch h3 { flex: 1; min-width: 0; font-size: 1rem; }
.dch small { font-size: .76rem; color: var(--muted); text-align: right; }
.dic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #F3DDE7; color: var(--primary); }
.dic .ic { width: 22px; height: 22px; }
.dic.bolt { background: #FCE4EA; }
.dic.bed { background: #EEEAFB; color: #4B3F9E; }
.dq { gap: 7px; }
.dqt { --q: #EEEAFB; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 9px 1px; border: 0; border-radius: 14px; background: var(--q); color: var(--text); cursor: pointer; }
.dqt:active { transform: scale(.97); }
.dqt.fever { --q: #FCE8EE; } .dqt.feed { --q: #FDF2E0; } .dqt.diaper { --q: #E7F5EC; }
.dqt .qart { width: 40px; height: 40px; }
.dqt b { max-width: 100%; font-size: .75rem; white-space: nowrap; }
.dqt small { font-size: .74rem; font-weight: 800; color: var(--primary); white-space: nowrap; }
.dqt.hot small { color: var(--danger); }
.dmore { flex: none; display: flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 9px 0 14px; border: 0; border-radius: 12px; background: var(--plum-soft); color: var(--primary); font-size: .82rem; font-weight: 700; cursor: pointer; }
.dmore .ic { width: 17px; height: 17px; }
.dview .dsleep .dstrip { height: 14px; margin: 2px 6px -6px; }
.dview .dsleep .daxis { margin: 0 4px; }
.dview .dsleep .daxis span::before { content: ''; display: block; width: 1px; height: 6px; margin: 0 auto 1px; background: color-mix(in srgb, var(--muted) 45%, var(--card)); }
.dsum { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; padding: 2px 0; font-size: .82rem; color: var(--muted); text-align: center; }
.dsum .ic { flex: none; width: 28px; height: 28px; opacity: .65; }
.dsum b { color: var(--text); }
.dstart { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 11px 10px; border: 1.5px solid #fff; border-radius: 18px; background: var(--plum-soft); box-shadow: var(--shadow); }
.dstart > div { flex: 1; min-width: 0; }
.dstart h3 { font-size: .92rem; color: var(--primary); }
.dstart p { margin: 2px 0 0; font-size: .73rem; line-height: 1.35; color: var(--muted); }
.dgo { flex: none; display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 40px; padding: 0 11px; border: 0; border-radius: 12px; background: var(--primary); color: var(--primary-ink); font-size: .78rem; font-weight: 700; white-space: nowrap; cursor: pointer; }
.dgo .ic { width: 17px; height: 17px; }
.dh2 { margin: 4px 0 0; font-size: 1rem; color: var(--primary); }
.dview .chip { min-height: 38px; padding: 6px 14px; font-size: .82rem; }
.dview .chip.on { border-color: var(--primary); background: var(--primary); color: var(--primary-ink); }
@media (max-width: 359px) { .dstart .dgo { flex: 1 0 100%; } .dch small { display: none; } .dfield { gap: 7px; padding: 0 9px; font-size: .84rem; } .dnav2 { gap: 7px; } }

@media (max-width: 389px) { .dq { gap: 5px; } .dqt b { font-size: .68rem; } }
@media (max-width: 349px) { .dcard { padding: 8px 6px; } .dq { gap: 4px; } .dqt b { font-size: .61rem; } }

/* ---------- pantallas del menú Más ---------- */
.screen.sec { gap: 10px; }
.sec > * { flex: none; }
.dhead svg.hart { position: absolute; right: -4px; top: 50%; transform: translateY(-50%); width: min(31%, 124px); height: auto; }
.sec .dhead h1 { font-size: clamp(1.45rem, 7.4vw, 1.9rem); }
.dtabs.even button { flex: 1; padding: 0 8px; min-height: 40px; }
.snote { margin: 0; font-size: .76rem; line-height: 1.4; color: var(--muted); }
.sec .dcard p:not(.snote):not(.dsum) { font-size: .88rem; line-height: 1.42; }
.dic.rose { background: #FCE4EA; color: #A62B5B; }
.dic.sky { background: #E5EFF9; color: #2C5C8A; }
.dic.sage { background: #E3F2EA; color: #2F6B58; }
.dic.sand { background: #FDF0D9; color: #8A5A0E; }
.dic.lila { background: #EEEAFB; color: #4B3F9E; }
.dic.red { background: var(--danger-soft); color: #B02A25; }

/* filas */
.mlist { display: flex; flex-direction: column; gap: 7px; }
.mrow { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 56px; padding: 8px 12px 8px 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); color: var(--text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.mrow:active { transform: scale(.98); }
.mtx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mtx b { font-size: .94rem; line-height: 1.25; }
.mtx small { font-size: .76rem; line-height: 1.3; color: var(--muted); }
.mgo { flex: none; width: 17px; height: 17px; color: var(--primary); }
.mrow.danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.mrow.danger b, .mrow.danger .mgo { color: #A8241F; }
.mrow.danger .dic { background: var(--card); }

/* ayuda */
.stiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.stile { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 56px; padding: 7px 8px; border: 0; border-radius: 14px; background: color-mix(in srgb, var(--t) 20%, var(--card)); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.stile:active { transform: scale(.97); }
.stile span { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--card); font-size: 1.15rem; }
.stile b { min-width: 0; font-size: .82rem; line-height: 1.25; overflow-wrap: break-word; }
.sfield { display: flex; align-items: center; gap: 9px; margin: 0; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 13px; background: var(--card); }
.sfield:focus-within { border-color: var(--primary); }
.sfield .ic { flex: none; width: 20px; height: 20px; color: var(--primary); }
.sfield input[type=text] { flex: 1; min-width: 0; min-height: 42px; padding: 0; border: 0; outline: 0; background: none; font-size: .92rem; }
#search-res:empty { display: none; }
.sec details.qa, .hoja details.qa:not(.ex) { padding: 2px 12px; border-radius: 14px; }
.sec details.qa summary, .hoja details.qa:not(.ex) summary { gap: 8px; min-height: 46px; font-size: .9rem; line-height: 1.3; list-style: none; }
.sec details.qa summary::-webkit-details-marker, .hoja details.qa:not(.ex) summary::-webkit-details-marker { display: none; }
.sec details.qa summary::after, .hoja details.qa:not(.ex) summary::after { content: '›'; margin-left: auto; padding-left: 6px; color: var(--primary); font-size: 1.25rem; font-weight: 700; transition: transform .2s; }
.sec details.qa[open] summary::after, .hoja details.qa:not(.ex)[open] summary::after { transform: rotate(90deg); }

@media (max-width: 349px) { .sec .dcard { padding: 8px; } .stiles { gap: 5px; } .stile { gap: 6px; padding: 6px; } .stile span { width: 28px; height: 28px; border-radius: 9px; font-size: 1rem; } .stile b { font-size: .75rem; } }

/* mamá */
.sec .scard { padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 18px; }
.sec .scard h2 { gap: 10px; font-size: 1rem; }
.sec .scard h2 > span { flex: none; border-radius: 11px; color: var(--primary); }
.sec .scard h2 .ic { width: 22px; height: 22px; }
.sec .scard p { font-size: .88rem; line-height: 1.42; }
.sec .scard p.small { font-size: .76rem; }
.sec .scard .btn { min-height: 44px; }
.sec .scard .alertrow { gap: 10px; padding: 9px 10px; border: 0; border-radius: 14px; background: var(--plum-soft); }
.sec .scard .alertrow b { font-size: .9rem; }
.sec .scard .alertrow span span { display: block; font-size: .78rem; line-height: 1.35; }
.sec .scard a.call { min-height: 48px; margin-top: 6px; padding: 9px 12px; font-size: .86rem; gap: 10px; }
.sec .scard a.call span:last-child { white-space: nowrap; }
.sec .scard.self { border-color: color-mix(in srgb, #E39A94 40%, var(--line)); }
.sec .scard.alert { border-color: color-mix(in srgb, var(--danger) 30%, var(--line)); }

/* vacunas */
.vtit { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vtit h3 { font-size: .98rem; line-height: 1.25; }
.vtit span { font-size: .76rem; color: var(--muted); overflow-wrap: anywhere; }
.vpill { flex: none; padding: 4px 10px; border-radius: 99px; background: var(--plum-soft); color: var(--primary); font-size: .74rem; font-style: normal; font-weight: 700; white-space: nowrap; }
.vcard.ok .vpill { background: var(--sage-soft); color: #2F6B58; }
.vcard.now { border-color: color-mix(in srgb, var(--warn) 65%, var(--line)); }
.vcard.now .vpill { background: var(--warn-soft); color: #7A5410; }
.vcard.late { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.vcard.late .vpill { background: var(--danger-soft); color: #A8241F; }
.vlist { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.vlist li { padding: 6px 2px; border-top: 1px solid var(--line); font-size: .84rem; line-height: 1.35; }
.vlist li span { display: block; font-size: .76rem; color: var(--muted); }
.vlist li i { font-style: normal; font-size: .76rem; color: var(--muted); }
.vcheck { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; padding: 0 12px; border-radius: 12px; background: var(--plum-soft); color: var(--primary); font-size: .86rem; font-weight: 700; cursor: pointer; }
.vcheck input { flex: none; width: 21px; height: 21px; margin: 0; accent-color: var(--primary); }
.vcard.ok .vcheck { background: var(--sage-soft); color: #2F6B58; }
.vcard.ok .vcheck input { accent-color: #2F6B58; }

/* crecimiento */
.gstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.gstats div { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 14px; background: var(--plum-soft); }
.gstats div + div { background: #E7F5EC; }
.gstats small { font-size: .72rem; line-height: 1.3; color: var(--muted); }
.gstats b { font-size: 1.15rem; }
.gstats em { font-size: .72rem; font-style: normal; color: var(--muted); }
.sec .dcard label { margin-bottom: 4px; font-size: .84rem; }
.sec .dcard input[type=date], .sec .dcard input[type=number] { min-height: 44px; }
.sec .row > div { min-width: 0; }
.sec .logline b { font-size: .9rem; }
.sec .logline .x { min-width: 40px; min-height: 40px; font-size: 1rem; }

/* notificaciones */
.nlist { display: flex; flex-direction: column; }
.nrow { display: flex; align-items: center; gap: 10px; min-height: 52px; margin: 0; padding: 7px 0; border-top: 1px solid var(--line); font-weight: 400; cursor: pointer; }
.sec .dcard label.nrow { margin: 0; }
.nem { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--plum-soft); font-size: 1.05rem; }
.ntx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ntx b { font-size: .9rem; line-height: 1.25; }
.ntx small { font-size: .74rem; line-height: 1.3; color: var(--muted); }
input.sw { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 46px; height: 28px; margin: 0; border: 0; border-radius: 99px; background: #CFC0C7; cursor: pointer; transition: background .2s; }
input.sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
input.sw:checked { background: var(--primary); }
input.sw:checked::after { transform: translateX(18px); }

/* perfil */
.pdata { margin: 0; }
.pdata div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 2px; border-top: 1px solid var(--line); font-size: .86rem; }
.pdata dt { flex: none; color: var(--muted); }
.pdata dd { margin: 0; min-width: 0; font-weight: 650; text-align: right; overflow-wrap: anywhere; }
.pdet summary { min-height: 36px; list-style: none; cursor: pointer; }
.pdet summary::-webkit-details-marker { display: none; }
.pdet summary .mgo { transition: transform .2s; }
.pdet[open] summary .mgo { transform: rotate(90deg); }
.pdet[open] { display: block; }
.pdet[open] > * + * { margin-top: 8px; }

/* ---------- ventanas ---------- */
.sheet.hoja { gap: 9px; padding: 8px 14px calc(14px + env(safe-area-inset-bottom)); background: var(--bg); max-height: 92dvh; }
.sheet .grab { align-self: center; width: 42px; height: 5px; border-radius: 99px; background: #D9CDD3; }
.shead > div { flex: 1; min-width: 0; }
.shead h2 { font-size: 1.25rem; }
.shead .avbell { background: var(--plum-soft); font-size: 1.4rem; }
.shead.sky .avbell { background: #E5EFF9; }
.shead.red .avbell { background: var(--danger-soft); }
.shead.red h2 { color: #B02A25; }
.hoja > p { font-size: .88rem; line-height: 1.42; }
.hoja > p.small { font-size: .82rem; }
.hoja .btn { min-height: 44px; }
.hoja label { margin-bottom: 4px; font-size: .86rem; }
.hoja input[type=text], .hoja input[type=password], .hoja input[type=date], .hoja select { min-height: 44px; }
.hoja > .check { align-items: center; gap: 11px; min-height: 46px; margin: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); font-size: .88rem; line-height: 1.35; cursor: pointer; }
.hoja > .check input { flex: none; margin: 0; }
.hoja > .check:has(input:checked) { border-color: var(--primary); background: var(--plum-soft); }
.hoja .mq { padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.hoja .mq p { font-size: .88rem; line-height: 1.4; }
.hoja .mq .chips { margin: 0; padding: 0; }
.hoja .mq .chip { min-width: 68px; }
.hoja .chip { min-height: 40px; padding: 6px 14px; font-size: .84rem; }
.hoja .chip.on { border-color: var(--primary); background: var(--primary); color: var(--primary-ink); }
.otiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.otile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 92px; padding: 10px 4px; border: 0; border-radius: 16px; background: color-mix(in srgb, var(--t) 24%, var(--card)); color: var(--text); font: inherit; cursor: pointer; }
.otile:active { transform: scale(.97); }
.otile span { font-size: 1.8rem; line-height: 1.2; white-space: nowrap; }
.otile b { font-size: .86rem; text-align: center; }
.sosflags { gap: 4px; padding: 10px 12px 10px 30px; border-radius: 14px; background: var(--card); border: 1px solid color-mix(in srgb, var(--danger) 30%, var(--line)); font-size: .88rem; line-height: 1.35; }
.hoja a.call { min-height: 50px; padding: 10px 14px; gap: 10px; }

/* ingreso de datos, bloqueo y prueba terminada */
.screen.plain:not(.auth) { background: linear-gradient(180deg, #FBEDF2 0, var(--bg) 260px); }
.onb h2 { font-size: 1.45rem; line-height: 1.2; color: var(--primary); }

/* menú inferior */
.nav { border-radius: 20px 20px 0 0; }
.nav > div { gap: 4px; padding: 6px 8px; }
.nav button { min-height: 52px; border-radius: 15px; gap: 1px; font-size: .72rem; }
.nav .pill { width: 40px; height: 26px; }
.nav button.on { background: var(--primary-ink); color: var(--primary); }
.nav button.on .pill { background: var(--primary-ink); }

/* app de Android: cuatro pestañas y agenda */
.nav.nav4 > div { grid-template-columns: repeat(4, 1fr); }
.alertrow .agtx { flex: 1; min-width: 0; }
.agendav .alertrow { align-items: center; gap: 10px; padding: 9px 10px; }
.agendav .alertrow b { font-size: .9rem; line-height: 1.25; }
.agendav .alertrow .agtx span { display: block; font-size: .8rem; }
.agendav .alertrow .x { flex: none; min-width: 40px; min-height: 40px; font-size: 1rem; }

/* app de Android: recuerdos, listas, contactos y música */
textarea { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--text); font: inherit; resize: vertical; }
input[type=time] { -webkit-appearance: none; appearance: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.btn.xadd { display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn.xadd .ic { width: 20px; height: 20px; }
.xday { margin: 4px 2px -2px; font-size: .92rem; color: var(--primary); }
.sec .xempty { align-items: center; text-align: center; padding: 18px 14px; }
.xidea { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 18px; background: var(--sage-soft); border: 1px solid color-mix(in srgb, var(--sage) 45%, var(--line)); box-shadow: var(--shadow); }
.xidea h3 { margin: 0 0 2px; font-size: .95rem; }
.xidea p { margin: 0; font-size: .88rem; line-height: 1.4; }
.xentry { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); color: var(--text); font: inherit; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.xentry small { color: var(--muted); font-weight: 700; font-size: .76rem; }
.xentry span { font-size: .92rem; line-height: 1.45; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.xentry img { width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; }
.xentry .xgone { color: var(--muted); font-size: .8rem; }
img[data-ph]:not([src]) { display: none; }
.xlogro { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 60px; padding: 8px 12px 8px 10px; border: 1px solid color-mix(in srgb, #E3B873 55%, var(--line)); border-radius: 16px; background: color-mix(in srgb, #E3B873 16%, var(--card)); box-shadow: var(--shadow); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.xlogro img { flex: none; width: 52px; height: 52px; object-fit: cover; border-radius: 12px; }
.xlogro .mtx { flex: 1; min-width: 0; }
.xlogro .mtx b { display: block; font-size: .92rem; overflow-wrap: anywhere; }
.xlogro .mtx small { display: block; color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xpick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.xpick button { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 10px; border: 1.5px solid color-mix(in srgb, var(--primary) 20%, var(--card)); border-radius: 14px; background: var(--card); color: var(--text); font: inherit; font-size: .83rem; font-weight: 650; line-height: 1.25; text-align: left; cursor: pointer; }
.xpick i { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--plum-soft); color: var(--primary); font-style: normal; font-weight: 800; }
.xphoto { display: flex; flex-direction: column; gap: 8px; }
.xphoto img[src] { width: 100%; max-height: 220px; object-fit: contain; border-radius: 14px; background: var(--plum-soft); }
.xphoto img[hidden], .xphoto .btn[hidden] { display: none; }
.xphoto .row2:has(> [hidden]) > .btn:first-child { grid-column: 1 / -1; }
.xphoto .btn { display: flex; align-items: center; justify-content: center; gap: 8px; }
.xphoto .btn .ic { width: 20px; height: 20px; }
.xlist .dch h3 { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.xbtn { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--plum-soft); color: var(--primary); font-weight: 800; cursor: pointer; }
.xbtn .ic { width: 19px; height: 19px; }
.xitem { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 6px; }
.sec .dcard .xitem label { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 40px; margin: 0; font-weight: 500; font-size: .9rem; overflow-wrap: anywhere; cursor: pointer; }
.xitem input { flex: none; width: 22px; height: 22px; accent-color: var(--primary); }
.xitem.ok span { text-decoration: line-through; color: var(--muted); }
.xnew { display: flex; gap: 8px; }
.xnew input[type=text] { flex: 1; min-width: 0; }
.xnew .btn { flex: none; width: 48px; padding: 0; display: grid; place-items: center; }
.xnew .btn .ic { width: 22px; height: 22px; }
.xcontact { display: flex; align-items: stretch; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.xwho { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: var(--card); padding: 0; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.xwho .mtx { min-width: 0; }
.xwho b { display: block; font-size: .94rem; overflow-wrap: anywhere; }
.xwho small { display: block; color: var(--muted); font-size: .82rem; }
.xcall { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 70px; min-height: 52px; border-radius: 14px; background: var(--primary); color: var(--primary-ink); text-decoration: none; }
.xcall .ic { width: 20px; height: 20px; }
.xcall em { font-style: normal; font-size: .72rem; font-weight: 700; }
.sec .dcard.xwarn { background: var(--warn-soft); }
.xwarn p { margin: 0; }
.xsong { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 62px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.xsong.on { border-color: var(--primary); background: var(--plum-soft); }
.xsic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); font-size: 1.4rem; }
.xsong .mtx { flex: 1; min-width: 0; }
.xsong b { display: block; font-size: .94rem; }
.xsong small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.3; }
.xplay { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); }
.xplay .ic { width: 18px; height: 18px; fill: currentColor; }
.xylo { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; align-items: center; height: 170px; padding: 8px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.xylo button { height: calc(100% - var(--i) * 7px); border: 0; border-radius: 12px; background: hsl(calc(var(--i) * 42) 72% 74%); color: var(--text); font: inherit; font-size: .72rem; font-weight: 800; padding: 0 0 8px; display: flex; align-items: flex-end; justify-content: center; cursor: pointer; touch-action: manipulation; }
.xylo button:active, .xpads button:active { transform: scale(.94); filter: brightness(.94); }
.xpads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.xpads button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 76px; padding: 6px 2px; border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--card)); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); color: var(--text); font: inherit; cursor: pointer; touch-action: manipulation; }
.xpads span { font-size: 1.7rem; line-height: 1.1; }
.xpads b { font-size: .72rem; }
