/* Tu Guía Médica — © 2026 Dra. Genesis Dugarte */
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/nunito-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/nunito-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/nunito-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/nunito-latin-800-normal.woff2') format('woff2'); }
/* Layout: single mobile app shell, centered as a phone frame on wide screens, edge-to-edge on phones; bottom tab bar navigation */
:root {
  --bg: #F2F7F8;
  --surface: #FFFFFF;
  --ink: #14181B;
  --muted: #5B6770;
  --accent: #1FA9C9;
  --accent-ink: #FFFFFF;
  --line: #E1EAEC;
  --success: #2E9E6D;
  --success-bg: #E7F7EF;
  --warning: #D98F1E;
  --warning-bg: #FFF6E8;
  --danger: #D64545;
  --shell-bg: #DCE6E8;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10161A;
    --surface: #1B2328;
    --ink: #F2F7F8;
    --muted: #9AA7AD;
    --accent: #3FD1EE;
    --accent-ink: #06272D;
    --line: #2A3438;
    --success: #4CC493;
    --success-bg: #173226;
    --warning: #E7A93B;
    --warning-bg: #332A16;
    --danger: #E56464;
    --shell-bg: #0A0E11;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #10161A;
  --surface: #1B2328;
  --ink: #F2F7F8;
  --muted: #9AA7AD;
  --accent: #3FD1EE;
  --accent-ink: #06272D;
  --line: #2A3438;
  --success: #4CC493;
  --success-bg: #173226;
  --warning: #E7A93B;
  --warning-bg: #332A16;
  --danger: #E56464;
  --shell-bg: #0A0E11;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--shell-bg);
  color: var(--ink);
  font-family: 'Nunito', system-ui, sans-serif;
  display: flex;
  justify-content: center;
}
.notice {
  flex-shrink: 0;
  background: var(--warning-bg);
  color: #8A5E12;
  font-size: 11.5px;
  line-height: 1.35;
  text-align: center;
  padding: 5px 16px;
}
.shell {
  width: 100%;
  max-width: 430px;
  height: 100%;
  height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
#app { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
@media (min-width: 480px) {
  body { align-items: center; padding-block: 28px; }
  .shell { height: 844px; border-radius: 32px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
}

a { color: inherit; }
button { font-family: inherit; }

.header {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 16px 20px 16px;
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.header h1 { margin: 0; font-size: 19px; font-weight: 800; }
.header .back {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,.12);
  border: none; color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.header-brand { display: flex; align-items: center; gap: 10px; }
img.badge-gm { object-fit: cover; display: block; }
.badge-gm {
  width: 38px; height: 38px; border-radius: 50%; background: var(--surface);
  color: var(--accent); font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-lines { display: flex; flex-direction: column; line-height: 1.25; }
.brand-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .04em; opacity: .85; }
.brand-name { font-size: 19px; font-weight: 800; }

.content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.copyright { text-align: center; font-size: 10.5px; color: var(--muted); padding-top: 6px; border-top: 1px solid var(--line); margin-top: 4px; }
.btn-home { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.btn-home svg { width: 16px; height: 16px; }
.radio-row { display: flex; gap: 8px; }
.radio-row label { flex: 1; display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; }
.radio-row input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.meta-note { font-size: 12px; color: var(--muted); line-height: 1.45; margin-top: 6px; }
.meta-note b { color: var(--ink); }
.med-photo { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; flex-shrink: 0; border: 1.5px solid var(--line); background: var(--bg); }
.med-row .med-icon { width: 72px; height: 72px; border-radius: 14px; }
.med-icon svg { width: 30px; height: 30px; }
.med-photo-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--accent); cursor: pointer; margin-top: 4px; }
.med-photo-btn svg { width: 15px; height: 15px; }
.photo-field { display: flex; align-items: center; gap: 12px; border: 1.5px dashed var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--accent); }
.photo-field svg { width: 22px; height: 22px; flex-shrink: 0; }
.photo-field .sub { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.wa-btn { display: flex; align-items: center; justify-content: center; gap: 6px; flex: 1; padding: 10px 0; border-radius: 11px; font-size: 12.5px; font-weight: 800; text-decoration: none; background: #25D366; color: #06331A; }
.wa-btn.alt { background: var(--line); color: var(--ink); }
.wa-btn svg { width: 16px; height: 16px; }
.action-card.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; }
.guide-card { background: var(--surface); border-radius: 16px; padding: 14px; display: flex; align-items: center; gap: 14px; box-shadow: 0 2px 10px rgba(20,24,27,.06); border: none; text-align: left; cursor: pointer; font-family: inherit; color: var(--ink); width: 100%; }
.guide-badge { width: 50px; height: 58px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; letter-spacing: .04em; flex-shrink: 0; }
.guide-title { font-size: 14.5px; font-weight: 800; }
.guide-author { font-size: 12px; color: var(--muted); margin-top: 2px; }
.guide-body { background: var(--surface); border-radius: 16px; padding: 18px; box-shadow: 0 2px 10px rgba(20,24,27,.06); font-size: 14px; line-height: 1.55; }
.guide-body h2 { font-size: 18px; margin: 0 0 4px; text-wrap: balance; }
.guide-body h3 { font-size: 14.5px; margin: 16px 0 6px; color: var(--accent); }
.guide-body ol, .guide-body ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.guide-body p { margin: 8px 0 0; }

.form-field select, .form-field textarea { border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; font-size: 15px; font-family: inherit; background: var(--surface); color: var(--ink); resize: vertical; }
.admin-toggle { background: none; border: 1.5px dashed var(--line); border-radius: 12px; padding: 9px 12px; font-family: inherit; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; }
.admin-toggle.on { border-style: solid; border-color: var(--accent); color: var(--accent); }
.callout.info { background: var(--success-bg); color: var(--ink); }
.callout.info svg { width: 18px; height: 18px; color: var(--accent); }
.link-btn { background: none; border: none; padding: 4px 0; font-family: inherit; font-size: 13px; font-weight: 700; color: var(--accent); cursor: pointer; text-align: left; }
.link-btn.danger { color: var(--danger); }
.ex-admin { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 400; }
.step-item .name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.step-list .ex-icon { width: 56px; height: 56px; border-radius: 12px; }
.step-list .ex-icon svg { width: 32px; height: 32px; }
.ex-icon.has-media { padding: 0; overflow: hidden; border: none; }
.media-slot { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.media-slot img, .media-slot video { width: 100%; height: 100%; object-fit: cover; display: block; }
.player-media { width: 100%; max-width: 330px; aspect-ratio: 1 / 1; border-radius: 24px; overflow: hidden; background: var(--surface); box-shadow: 0 6px 22px rgba(20,24,27,.12); margin-top: 6px; }
.media-err { font-size: 12px; color: var(--muted); padding: 12px; text-align: center; }

.ex-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: 18px; padding: 12px; box-shadow: 0 2px 10px rgba(20,24,27,.06); border: 1px solid var(--line); }
.ex-thumb { width: 124px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: #FFFFFF; position: relative; }
.ex-thumb.icon { background: var(--bg); display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--line); }
.ex-thumb.icon svg { width: 44px; height: 44px; color: var(--accent); }
.ex-thumb.mini { width: 64px; border-radius: 9px; }
.ex-thumb.mini.icon svg { width: 26px; height: 26px; }
.ex-card-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ex-card-name { font-size: 15.5px; font-weight: 800; line-height: 1.25; }
.ex-card-sets { font-size: 15px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.ex-card-sub { font-size: 12.5px; color: var(--muted); }
.ex-photo { position: absolute; inset: 0; background: #FFFFFF; }
.ex-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: opacity .2s ease; }
.ex-photo .pb { opacity: 0; }
#app.flip .ex-photo .pb { opacity: 1; }
#app.flip .ex-photo .pa { opacity: 0; }
.player-media.photo { position: relative; aspect-ratio: 3 / 2; max-width: 100%; }
.player-media.photo .ex-photo img { object-fit: contain; }

.lib-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.lib-card { background: none; border: none; padding: 0; text-align: left; font-family: inherit; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lib-cover { width: 100%; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 18px rgba(20,24,27,.16); background: var(--surface); }
.lib-cover.cover-hero { width: 132px; flex-shrink: 0; }
.lib-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lib-title { font-size: 13.5px; font-weight: 800; line-height: 1.25; }
.lib-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); font-weight: 700; flex-wrap: wrap; }
.lib-price { background: var(--success-bg); color: var(--success); padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; }
.lib-price.paid { background: var(--accent); color: var(--accent-ink); }

.gen-cover { width: 100%; height: 100%; display: flex; flex-direction: column; padding: 12px; gap: 6px; position: relative; }
.gen-cover.v-a { background: linear-gradient(160deg, #1FA9C9, #0E6F86); color: #FFFFFF; }
.gen-cover.v-b { background: linear-gradient(160deg, #14181B, #24343A); color: #3FD1EE; }
.gen-cover.v-c { background: linear-gradient(160deg, #EAF8FB, #BFE9F3); color: #0E5566; }
.gc-kicker { font-size: 9.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.gc-title { font-size: 17px; font-weight: 900; line-height: 1.02; text-transform: uppercase; letter-spacing: -.01em; text-wrap: balance; }
.gen-cover.big .gc-title { font-size: 15px; }
.gc-foot { margin-top: auto; display: flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.gc-gm { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,.22); color: inherit; display: inline-flex; align-items: center; justify-content: center; font-size: 8.5px; }
.gen-cover.v-c .gc-gm { background: rgba(14,85,102,.14); }

.guide-hero { display: flex; gap: 14px; align-items: flex-end; }
.guide-hero-meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.guide-hero-title { font-size: 19px; font-weight: 900; margin: 0; line-height: 1.15; text-wrap: balance; }
.guide-desc { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink); }
.section-label { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.thumb-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.thumb-row img { height: 90px; border-radius: 6px; box-shadow: 0 2px 8px rgba(20,24,27,.14); flex-shrink: 0; }
.thumb-row.big img { height: 150px; }
.thumb-btn { background: none; border: none; padding: 0; cursor: pointer; flex-shrink: 0; }
.draft-preview { display: flex; gap: 12px; align-items: flex-start; }
.draft-preview .lib-cover { width: 96px; flex-shrink: 0; }
.draft-preview .thumb-row { flex: 1; min-width: 0; }
.reader-page { background: var(--surface); border-radius: 10px; box-shadow: 0 6px 22px rgba(20,24,27,.14); overflow: hidden; min-height: 240px; display: flex; align-items: center; justify-content: center; }
.reader-page img { width: 100%; display: block; }
.reader-page img:not([src]) { display: none; }
.reader-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.reader-btn { flex: 1; padding: 12px 0; border-radius: 10px; border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.reader-btn:disabled { opacity: .35; cursor: default; }
.reader-count { font-size: 13px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.content-pad { padding: 18px 20px 24px; display: flex; flex-direction: column; gap: 14px; }

.card {
  background: var(--surface);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(20,24,27,.06);
}
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.stat-card { background: var(--surface); border-radius: 14px; padding: 12px 10px; box-shadow: 0 4px 14px rgba(20,24,27,.08); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat-label { font-size: 11px; color: var(--muted); font-weight: 700; }
.stat-value { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-note { font-size: 10px; font-weight: 700; }

.action-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.action-card {
  background: var(--surface); border-radius: 16px; padding: 18px 14px;
  display: flex; flex-direction: column; gap: 10px; box-shadow: 0 2px 10px rgba(20,24,27,.06);
  border: none; text-align: left; cursor: pointer; color: var(--ink); font-family: inherit;
}
.action-card span { font-size: 14px; font-weight: 700; }

.quote-card { background: var(--ink); color: var(--bg); border-radius: 16px; padding: 16px 18px; }
:root[data-theme="dark"] .quote-card, .quote-card { color: #FFFFFF; }
.quote-card p { margin: 0; font-size: 14px; font-style: italic; line-height: 1.5; }

.credit { text-align: center; font-size: 10.5px; color: var(--muted); padding: 2px 20px; }

.tabbar {
  display: grid; grid-template-columns: repeat(5, minmax(0,1fr));
  border-top: 1px solid var(--line); background: var(--surface);
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom, 0px));
  flex-shrink: 0;
}
.tabbar button {
  background: none; border: none; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700; color: var(--muted); cursor: pointer; padding: 2px;
}
.tabbar button.active { color: var(--accent); }
.tabbar svg { width: 20px; height: 20px; }

.segmented { display: flex; gap: 8px; }
.segmented button {
  flex: 1; padding: 10px 0; border-radius: 12px; font-size: 13px; font-weight: 700;
  border: none; cursor: pointer; background: var(--line); color: var(--muted);
}
.segmented button.active { background: var(--accent); color: var(--accent-ink); }

.big-value { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.big-value .n { font-size: 38px; font-weight: 800; font-variant-numeric: tabular-nums; }
.big-value .u { font-size: 13px; color: var(--muted); font-weight: 600; }
.pill { margin-left: auto; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pill.ok { color: var(--success); background: var(--success-bg); }
.pill.warn { color: var(--warning); background: var(--warning-bg); }
.pill.neutral { color: var(--muted); background: var(--line); }
.subtle { font-size: 12px; color: var(--muted); }

.btn-primary {
  width: 100%; padding: 15px 0; border-radius: 16px; background: var(--accent); color: var(--accent-ink);
  font-size: 15.5px; font-weight: 800; border: none; cursor: pointer;
}
.btn-secondary {
  padding: 10px 0; border-radius: 11px; background: var(--line); color: var(--ink);
  font-size: 12.5px; font-weight: 700; border: none; cursor: pointer; flex: 1;
}

.history-row { background: var(--surface); border-radius: 14px; padding: 12px 14px; display: flex; justify-content: space-between; box-shadow: 0 1px 6px rgba(20,24,27,.05); font-size: 13px; }
.history-row .t { font-weight: 600; }
.history-row .v { color: var(--muted); font-variant-numeric: tabular-nums; }

.example-note { font-size: 11.5px; color: var(--muted); }

.med-row { background: var(--surface); border-radius: 16px; padding: 14px; display: flex; align-items: center; gap: 14px; box-shadow: 0 2px 10px rgba(20,24,27,.06); }
.med-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--success-bg); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.med-icon svg { color: var(--accent); }
.med-info { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.med-name { font-size: 15px; font-weight: 700; }
.med-time { font-size: 12.5px; color: var(--muted); }
.switch { position: relative; width: 46px; height: 26px; border-radius: 999px; border: none; flex-shrink: 0; cursor: pointer; }
.switch .knob { position: absolute; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; transition: left .15s; }

.callout { border-radius: 14px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; }
.callout.warn { background: var(--warning-bg); color: #8A5E12; }
:root[data-theme="dark"] .callout.warn { color: #F0CE86; }
.callout svg { flex-shrink: 0; margin-top: 1px; }

.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field label { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.form-field input {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; font-size: 15px;
  font-family: inherit; background: var(--surface); color: var(--ink);
}
.form-field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-actions { display: flex; gap: 10px; }
.form-actions .btn-primary { flex: 2; }
.form-actions .btn-secondary { flex: 1; }

.chips-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.chip { white-space: nowrap; padding: 9px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 700; border: none; cursor: pointer; background: var(--line); color: var(--muted); }
.chip.active { background: var(--accent); color: var(--accent-ink); }

.doc-card { background: var(--surface); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 2px 10px rgba(20,24,27,.06); }
.doc-top { display: flex; align-items: center; gap: 12px; }
.doc-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--success-bg); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--accent); font-size: 14px; flex-shrink: 0; }
.doc-name { font-size: 14.5px; font-weight: 700; }
.doc-specialty { font-size: 12.5px; color: var(--muted); }
.doc-actions { display: flex; gap: 8px; }
.tel-copy { font-size: 12px; color: var(--muted); word-break: break-all; }

.timer-clock { font-size: 52px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.timer-phase { text-align: center; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.timer-phase.work { color: var(--accent); }
.timer-phase.rest { color: var(--success); }
.timer-exname { text-align: center; font-size: 15px; font-weight: 700; margin-top: 2px; }
.timer-controls { display: flex; gap: 10px; justify-content: center; margin-top: 6px; }
.timer-controls button { border: none; border-radius: 999px; font-weight: 800; cursor: pointer; font-family: inherit; }
.timer-play { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 22px; display: flex; align-items: center; justify-content: center; }
.timer-side { width: 48px; height: 48px; border-radius: 50%; background: var(--line); color: var(--ink); font-size: 12px; }

.step-list { display: flex; flex-direction: column; gap: 8px; }
.step-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font-size: 13px; background: var(--bg); }
.step-item.current { background: var(--success-bg); font-weight: 700; }
.step-item.done { opacity: .5; }
.step-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.step-item .name { flex-grow: 1; }
.step-item .dur { color: var(--muted); font-size: 11.5px; font-weight: 700; background: var(--line); padding: 3px 8px; border-radius: 999px; }

.ex-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--bg); border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ex-icon svg { width: 20px; height: 20px; color: var(--accent); overflow: visible; }
.ex-icon-lg { width: 84px; height: 84px; border-radius: 18px; background: var(--bg); border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; margin-bottom: 2px; }
.ex-icon-lg svg { width: 52px; height: 52px; color: var(--accent); overflow: visible; }
.day-chips-wrap { display: flex; flex-direction: column; gap: 4px; }
.day-title { text-align: center; font-size: 15px; font-weight: 800; margin-top: 4px; }

/* Inicio — pensado para adultos de 40+: texto ≥16 px, botones grandes, iconos con etiqueta, metas del día visibles */
.hero { position: relative; overflow: hidden; flex-shrink: 0; color: #FFFFFF; padding: 16px 20px 20px; margin: -18px -20px 0; border-radius: 0 0 28px 28px; background: linear-gradient(140deg, #22B5D4 0%, #1296B5 55%, #0B6F87 100%); display: flex; flex-direction: column; gap: 12px; }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.09); pointer-events: none; }
.hero::before { width: 220px; height: 220px; right: -70px; top: -90px; }
.hero::after { width: 140px; height: 140px; left: -50px; bottom: -80px; }
.hero > * { position: relative; }
.hero-brand { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.hero-brand .badge-gm { width: 34px; height: 34px; box-shadow: 0 0 0 2px #FFFFFF; }
.hero-main { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-greet { font-size: 26px; font-weight: 900; line-height: 1.15; }
.hero-date { font-size: 15.5px; opacity: .92; margin-top: 2px; }
.hero-date::first-letter { text-transform: uppercase; }
.hero-ring { position: relative; width: 76px; height: 76px; flex-shrink: 0; }
.hero-ring .ring { width: 76px; height: 76px; }
.hero-ring-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.hero-ring-num b { font-size: 19px; }
.hero-ring-num span { font-size: 11px; font-weight: 700; opacity: .9; }
.hero-goals { display: flex; gap: 8px; flex-wrap: wrap; }
.goal { font-size: 13.5px; font-weight: 800; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.16); }
.goal.done { background: #FFFFFF; color: #0B6F87; }

.home-card { background: var(--surface); border-radius: 20px; padding: 16px; box-shadow: 0 4px 16px rgba(20,24,27,.08); }
.home-kicker { font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.med-next { display: flex; flex-direction: column; gap: 14px; }
.med-next-top { display: flex; align-items: center; gap: 14px; }
.med-next .med-icon, .med-next .med-photo { width: 64px; height: 64px; border-radius: 14px; flex-shrink: 0; }
.med-next-name { font-size: 19px; font-weight: 900; line-height: 1.2; }
.med-next-time { font-size: 16px; color: var(--muted); font-weight: 600; }
.btn-take { width: 100%; min-height: 52px; border: none; border-radius: 14px; background: var(--success); color: #FFFFFF; font-family: inherit; font-size: 17px; font-weight: 900; cursor: pointer; }
.med-done { font-size: 16px; font-weight: 800; color: var(--success); background: var(--success-bg); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-top: 4px; }
.section-head > span { font-size: 19px; font-weight: 900; }
.link-accent { background: none; border: none; font-family: inherit; font-size: 15px; font-weight: 800; color: var(--accent); cursor: pointer; padding: 6px 0; }

.stat-grid.big .stat-card { border: none; font-family: inherit; color: var(--ink); text-align: left; cursor: pointer; padding: 14px 12px; gap: 4px; }
.stat-grid.big .stat-label { font-size: 13.5px; }
.stat-grid.big .stat-value { font-size: 23px; }
.stat-grid.big .stat-note { font-size: 12.5px; }

.routine-card { position: relative; overflow: hidden; border: none; border-radius: 22px; padding: 0; cursor: pointer; font-family: inherit; text-align: left; min-height: 164px; display: flex; background: linear-gradient(120deg, #14181B 0%, #1D3A44 100%); color: #FFFFFF; box-shadow: 0 8px 22px rgba(20,24,27,.18); }
.routine-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; padding: 18px; flex: 1 1 58%; }
.routine-kicker { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #3FD1EE; }
.routine-title { font-size: 20px; font-weight: 900; line-height: 1.2; }
.routine-meta { font-size: 15px; opacity: .85; }
.routine-go { margin-top: auto; align-self: flex-start; background: #3FD1EE; color: #06272D; font-weight: 900; font-size: 16px; padding: 10px 18px; border-radius: 999px; }
.routine-photo { position: relative; flex: 0 0 42%; }
.routine-photo .ex-photo img { object-position: center 25%; }
.routine-photo::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #172D35 0%, rgba(23,45,53,0) 45%); }

.tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: none; border-radius: 20px; padding: 16px 14px; min-height: 118px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; text-align: left; font-family: inherit; color: var(--ink); cursor: pointer; box-shadow: 0 3px 12px rgba(20,24,27,.07); }
.tile-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.tile-icon svg { width: 26px; height: 26px; }
.tile-label { font-size: 17px; font-weight: 800; line-height: 1.2; }

.shelf { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; margin-inline: -20px; padding-inline: 20px; scroll-snap-type: x mandatory; }
.shelf-item { flex: 0 0 116px; width: 116px; min-width: 0; background: none; border: none; padding: 0; cursor: pointer; scroll-snap-align: start; }
.shelf .gen-cover { padding: 10px; }
.gc-title { hyphens: auto; -webkit-hyphens: auto; }
.shelf .gc-title { font-size: 11.5px; }
.goal { font-size: 13px; padding: 5px 11px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .notice { color: #F0CE86; } }
:root[data-theme="dark"] .notice { color: #F0CE86; }

.qi { width: 44px; height: 44px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.qi svg { width: 24px; height: 24px; }
.quick-reg { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick-btn { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 2px solid var(--line); border-radius: 18px; padding: 14px 12px; font-family: inherit; color: var(--ink); text-align: left; cursor: pointer; font-size: 15px; line-height: 1.2; min-height: 72px; }
.quick-btn b { font-size: 17px; font-weight: 900; }
.doctor-access { display: flex; align-items: center; gap: 12px; width: 100%; background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; font-family: inherit; font-size: 15px; font-weight: 800; color: var(--ink); cursor: pointer; text-align: left; }
.doctor-access svg { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; }
.doctor-access span:first-of-type { flex: 1; }
.chev { font-size: 22px; color: var(--muted); font-weight: 700; }

.alarm-card-top { display: flex; align-items: center; gap: 12px; }
.alarm-card-title { font-size: 17px; font-weight: 900; }
.alarm-overlay { position: absolute; inset: 0; z-index: 50; background: linear-gradient(170deg, #0B6F87 0%, #082E37 100%); color: #FFFFFF; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px 22px calc(24px + env(safe-area-inset-bottom, 0px)); text-align: center; }
.alarm-pulse { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; animation: pulse 1.2s ease-in-out infinite; }
.alarm-pulse svg { width: 32px; height: 32px; }
@keyframes pulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(63,209,238,.5); } 50% { transform: scale(1.08); box-shadow: 0 0 0 18px rgba(63,209,238,0); } }
@media (prefers-reduced-motion: reduce) { .alarm-pulse { animation: none; } }
.alarm-time { font-size: 44px; font-weight: 900; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.alarm-kicker { font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #7FDDF0; }
.alarm-photo { width: 150px; height: 150px; border-radius: 24px; object-fit: cover; border: 4px solid rgba(255,255,255,.9); margin: 6px 0; }
.alarm-photo.ph { display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.12); }
.alarm-photo.ph svg { width: 64px; height: 64px; }
.alarm-name { font-size: 26px; font-weight: 900; line-height: 1.15; }
.alarm-sub { font-size: 17px; opacity: .9; }
.alarm-take { width: 100%; min-height: 60px; border: none; border-radius: 18px; background: #3FD1EE; color: #06272D; font-family: inherit; font-size: 20px; font-weight: 900; cursor: pointer; margin-top: 10px; }
.alarm-snooze { width: 100%; min-height: 52px; border: 2px solid rgba(255,255,255,.5); border-radius: 18px; background: none; color: #FFFFFF; font-family: inherit; font-size: 17px; font-weight: 800; cursor: pointer; }
.alarm-note { font-size: 12px; opacity: .75; margin-top: 6px; max-width: 300px; }
.toast { position: absolute; left: 20px; right: 20px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); z-index: 60; background: var(--ink); color: var(--bg); border-radius: 14px; padding: 14px 16px; font-size: 15px; font-weight: 800; text-align: center; box-shadow: 0 8px 22px rgba(0,0,0,.25); }

.panel-user { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 16px; padding: 12px 14px; box-shadow: 0 2px 10px rgba(20,24,27,.06); }
.pu-text { flex: 1; min-width: 0; }
.pu-name { font-size: 16px; font-weight: 900; }
.pu-role { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.login-card { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.login-card h3 { margin: 0; font-size: 20px; }
.login-card p { margin: 0; }
.login-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--success-bg); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.login-icon svg { width: 28px; height: 28px; }
.login-err { color: var(--danger); font-weight: 800; font-size: 14px; }
.demo-box { display: flex; flex-direction: column; gap: 8px; }
.demo-acc { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; font-family: inherit; color: var(--ink); font-size: 15px; cursor: pointer; text-align: left; }
.demo-acc span { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.blocked { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.blocked > svg { width: 34px; height: 34px; color: var(--warning); }
.blocked h3 { margin: 0; font-size: 19px; }
.blocked p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.blocked .wa-btn { flex: none; padding: 12px 18px; }
.panel-list { display: flex; flex-direction: column; gap: 10px; }
.pt-card { background: var(--surface); border: none; border-radius: 16px; padding: 14px; box-shadow: 0 2px 10px rgba(20,24,27,.06); font-family: inherit; color: var(--ink); text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 10px; width: 100%; }
.pt-top { display: flex; align-items: center; gap: 12px; }
.pt-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--success-bg); color: var(--accent); font-weight: 900; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; }
.pt-avatar.big { width: 58px; height: 58px; font-size: 19px; }
.pt-id { flex: 1; min-width: 0; }
.pt-name { font-size: 16.5px; font-weight: 900; }
.pt-dx { font-size: 13px; color: var(--muted); line-height: 1.4; }
.pt-vals { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }
.pt-vals .pill { margin-left: 4px; font-size: 11px; padding: 2px 8px; }
.pt-alert { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--warning); }
.pt-alert svg { width: 16px; height: 16px; }
.pt-ok { font-size: 13px; font-weight: 800; color: var(--success); }
.pt-head { display: flex; align-items: center; gap: 14px; }
.ph-title { font-size: 16px; font-weight: 900; margin-bottom: 6px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.legend i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.pchart { width: 100%; height: auto; display: block; margin: 4px 0; }
.tbl-wrap { overflow-x: auto; margin-top: 10px; max-height: 280px; overflow-y: auto; }
.ptable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ptable th { text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 6px 6px; border-bottom: 1.5px solid var(--line); position: sticky; top: 0; background: var(--surface); }
.ptable td { padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ptable td.num { font-weight: 800; font-variant-numeric: tabular-nums; }
.ptable .pill { margin-left: 0; font-size: 11px; padding: 2px 8px; }
.doc-pay .form-actions .btn-primary, .doc-pay .form-actions .btn-secondary { flex: 1; padding: 12px 0; }

.tabbar button { font-size: 11.5px; }

.login-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 26px 0 10px; }
.login-hero .badge-gm { width: 96px; height: 96px; margin-bottom: 8px; }
.lh-brand { font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--accent); }
.lh-title { font-size: 30px; font-weight: 900; }
.lh-sub { font-size: 17px; color: var(--muted); }
.role-card { display: flex; align-items: center; gap: 14px; width: 100%; background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: 16px 14px; font-family: inherit; color: var(--ink); text-align: left; cursor: pointer; box-shadow: 0 2px 10px rgba(20,24,27,.05); }
.role-card .qi { width: 52px; height: 52px; }
.rc-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rc-text b { font-size: 18px; font-weight: 900; }
.rc-text span { font-size: 14px; color: var(--muted); line-height: 1.35; }
.segmented.three button { font-size: 12.5px; padding: 10px 2px; }
.header-ic { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.header-ic svg { width: 24px; height: 24px; }
.header h1 { flex: 1; }
.header-out { background: rgba(0,0,0,.14); color: var(--accent-ink); border: none; border-radius: 999px; padding: 8px 14px; font-family: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
.code-card { display: flex; flex-direction: column; gap: 6px; }
.code-big { font-size: 30px; font-weight: 900; letter-spacing: .08em; color: var(--accent); font-variant-numeric: tabular-nums; }
.code-ok { color: var(--success); font-weight: 800; font-size: 14px; }
.lead-text { margin: 0; font-size: 15.5px; line-height: 1.5; }
.cred { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cred b { font-size: 17px; font-variant-numeric: tabular-nums; }
.notes { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.note { border-left: 4px solid var(--line); padding: 4px 0 4px 12px; }
.note.mine { border-left-color: var(--accent); }
.note-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.spec-badge { font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #7B61D9; background: #7B61D91f; padding: 3px 9px; border-radius: 999px; }
.note-date { font-size: 12.5px; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.note-author { font-size: 15px; font-weight: 900; margin-top: 4px; }
.note-text { margin: 4px 0 0; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; }
.note-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.note-ph { position: relative; width: 84px; height: 108px; border-radius: 10px; overflow: hidden; border: 1.5px solid var(--line); padding: 0; background: var(--bg); cursor: pointer; }
.note-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: none; background: rgba(0,0,0,.6); color: #FFFFFF; font-size: 12px; cursor: pointer; }
.note-form { display: flex; flex-direction: column; gap: 12px; padding: 12px; border: 1.5px dashed var(--line); border-radius: 14px; }
.lightbox { position: absolute; inset: 0; z-index: 70; background: rgba(0,0,0,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; }
.lightbox img { max-width: 100%; max-height: 82%; object-fit: contain; border-radius: 6px; }
.lb-close { background: #FFFFFF; color: #14181B; border: none; border-radius: 999px; padding: 12px 22px; font-family: inherit; font-size: 16px; font-weight: 900; cursor: pointer; }
.tabbar svg { width: 24px; height: 24px; }

.player { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 4px; }
.player-top { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.player-close { width: 34px; height: 34px; border-radius: 50%; background: var(--line); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); font-size: 14px; flex-shrink: 0; }
.player-progress-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.player-progress-track { width: 100%; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; flex-shrink: 0; }
.player-progress-fill { height: 100%; background: var(--accent); border-radius: 999px; }
.ex-icon-lg.player-icon { width: 168px; height: 168px; border-radius: 28px; margin-top: 10px; margin-bottom: 0; }
.ex-icon-lg.player-icon svg { width: 108px; height: 108px; }
.player-name { font-size: 17px; font-weight: 800; text-align: center; padding: 0 8px; }
.player-next { width: 100%; display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 14px; padding: 12px 14px; box-shadow: 0 1px 8px rgba(20,24,27,.05); margin-top: 4px; }
.player-next-label { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.player-next-name { font-size: 13.5px; font-weight: 700; }

.ex-icon svg .fa, .ex-icon-lg svg .fa { animation: exFadeA 1.1s ease-in-out infinite; }
.ex-icon svg .fb, .ex-icon-lg svg .fb { animation: exFadeB 1.1s ease-in-out infinite; }
@keyframes exFadeA { 0%, 38% { opacity: 1; } 50%, 88% { opacity: 0; } 100% { opacity: 1; } }
@keyframes exFadeB { 0%, 38% { opacity: 0; } 50%, 88% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .ex-icon svg .fa, .ex-icon svg .fb, .ex-icon-lg svg .fa, .ex-icon-lg svg .fb { animation: none; }
  .ex-icon svg .fb, .ex-icon-lg svg .fb { opacity: 0; }
}

.hidden-el { display: none !important; }

/* ===== App real (Supabase) ===== */
.boot { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--accent); color: var(--accent-ink); }
.boot .badge-gm { width: 112px; height: 112px; box-shadow: 0 0 0 3px #FFFFFF; }
.boot-dots { display: flex; gap: 6px; margin-top: 8px; }
.boot-dots i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .35; animation: bootDot 1s infinite ease-in-out; }
.boot-dots i:nth-child(2) { animation-delay: .15s; } .boot-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bootDot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }
.empty-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 22px 18px; }
.empty-card b { font-size: 16px; }
.empty-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.empty-ic svg { width: 28px; height: 28px; }
.disclaimer { font-size: 11.5px; line-height: 1.45; color: var(--muted); padding: 4px 6px; text-align: center; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--ink); cursor: pointer; }
.check-row input { accent-color: var(--accent); width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; }
.check-row a { color: var(--accent); font-weight: 700; }
.chip-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 13px; font-weight: 700; color: var(--muted); }
.chip-check input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip-check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.field-help { font-size: 12px; color: var(--muted); line-height: 1.4; }
.btn-danger { flex: 2; border: none; border-radius: 14px; padding: 13px 16px; font-family: inherit; font-size: 15px; font-weight: 800; background: var(--danger); color: #fff; cursor: pointer; }
.btn-primary:disabled, .btn-danger:disabled { opacity: .6; cursor: default; }
.history-row { align-items: center; gap: 10px; }
.history-row .t { flex: 1; min-width: 0; }
.row-x { background: none; border: none; color: var(--muted); font-size: 14px; padding: 4px 6px; cursor: pointer; border-radius: 8px; }
.row-x:hover { color: var(--danger); }
.row-confirm { font-size: 12.5px; color: var(--ink); white-space: nowrap; }
.med-tools { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.med-tools .med-photo-btn { margin-top: 0; }
.time-row { display: flex; gap: 12px; align-items: center; }
.time-row input { flex: 1; }
.confirm-card { display: flex; flex-direction: column; gap: 10px; border: 1.5px solid var(--danger); }
.signup-cta { display: flex; flex-direction: column; gap: 10px; align-items: stretch; text-align: center; }
.center { display: block; margin-inline: auto; text-align: center; }
.legal-links { text-align: center; font-size: 13px; color: var(--muted); }
.legal-links a { color: var(--accent); font-weight: 700; }
.home-card.med-empty { display: flex; gap: 12px; align-items: center; text-align: left; border: none; cursor: pointer; font-family: inherit; font-size: 14.5px; font-weight: 700; color: var(--ink); width: 100%; }
.home-card.med-empty svg { width: 28px; height: 28px; color: #E0567A; flex-shrink: 0; }
.med-list { margin: 6px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.invite-card { background: var(--success-bg); box-shadow: none; }
.pill.neutral { background: var(--line); color: var(--muted); }
.segmented.four button { font-size: 12px; padding: 10px 2px; }
.stats-summary { white-space: pre-wrap; font-family: inherit; font-size: 13px; line-height: 1.5; background: var(--bg); border-radius: 12px; padding: 12px; margin: 8px 0 12px; user-select: text; }
.bar-hit:hover path { opacity: .8; }
.ptable td .pill { margin-left: 0; display: inline-block; }
.terms-points { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; line-height: 1.45; }
.terms-link { display: block; text-align: center; text-decoration: none; }
.radio-row.four { flex-wrap: wrap; } .radio-row.four label { flex: 1 1 22%; min-width: 0; padding: 10px 8px; }
.anthro-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 6px 0 12px; }
.anthro-grid > div { background: var(--bg); border-radius: 12px; padding: 9px 11px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.anthro-grid span { font-size: 12px; color: var(--muted); font-weight: 700; }
.anthro-grid b { font-size: 19px; font-variant-numeric: tabular-nums; }
.anthro-grid b small { font-size: 12px; color: var(--muted); font-weight: 700; }
.anthro-grid .pill { margin-left: 0; align-self: flex-start; margin-top: 2px; }
.anthro-form { display: flex; flex-direction: column; gap: 10px; background: var(--bg); border-radius: 14px; padding: 12px; }

/* Instalar la app */
.install-card { position: relative; display: flex; flex-direction: column; gap: 12px; border: 1.5px solid var(--accent); }
.install-head { display: flex; gap: 12px; align-items: center; padding-right: 24px; }
.install-head b { display: block; font-size: 17px; }
.install-head span { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.install-logo { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; }
.install-steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; font-size: 15.5px; }
.install-x { position: absolute; top: 6px; right: 8px; width: 32px; height: 32px; border: 0; background: transparent; font-size: 22px; color: var(--muted); cursor: pointer; }

/* Recorrido guiado */
#tour { position: fixed; inset: 0; z-index: 9000; }
.tour-spot { position: fixed; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(10, 20, 28, .68); outline: 3px solid #FFD84D; outline-offset: 2px; transition: all .25s ease; pointer-events: none; }
.tour-spot.none { left: 50%; top: 50%; width: 0; height: 0; outline: none; }
.tour-card { position: fixed; left: 14px; right: 14px; max-width: 460px; margin: 0 auto; background: var(--surface, #FFFFFF); color: var(--ink, #14181B); border-radius: 20px; padding: 20px 20px 14px; box-shadow: 0 12px 40px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 10px; }
.tour-card.center { top: 50%; transform: translateY(-50%); }
.tour-icon { font-size: 40px; line-height: 1; }
.tour-step { font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.tour-title { font-size: 23px; font-weight: 900; line-height: 1.2; }
.tour-text { font-size: 18.5px; line-height: 1.45; }
.tour-dots { display: flex; gap: 6px; justify-content: center; margin-top: 2px; }
.tour-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line, #D9E2E6); }
.tour-dots i.on { background: var(--accent); width: 22px; border-radius: 4px; }
.tour-btns { display: flex; gap: 10px; }
.tour-btns button { flex: 1; min-height: 54px; font-size: 18px; }
.tour-btns .btn-secondary { flex: 0 0 34%; }
.tour-skip { background: none; border: 0; color: var(--muted); font-size: 16px; padding: 8px; text-decoration: underline; cursor: pointer; }
