/* BioLongev X — tokens tomados del tema "Refresh" de biolongevx.com
   Navy #0e1b4d (texto/hero) · Azul #4770db (botones) · Fondo #eff0f5 · Rojo #e32402 (alertas)
   Títulos: Archivo · Texto: Questrial · Botones en píldora, tarjetas radio 18 con borde fino */
:root {
  --bg: #eff0f5;
  --card: #ffffff;
  --ink: #0e1b4d;
  --muted: #5a6386;
  --line: #d9dce8;
  --accent: #4770db;
  --accent-text: #3a5fc8;
  --accent-ink: #2f4fb0;
  --accent-soft: #e4eafb;
  --navy: #0e1b4d;
  --navy-2: #1f2f73;
  --sky: #9db4f0;
  --warn: #e32402;
  --warn-ink: #b81d02;
  --warn-soft: #fdecea;
  --warn-line: #f6c4bb;
  --ok: #1d7a55;
  --danger: #b81d02;
  --field: #f6f7fb;
  --radius: 18px;
  --pill: 40px;
  --font: 'Questrial', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Archivo', 'Questrial', system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-text); }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.4px; text-wrap: balance; }
h1 { font-size: 26px; font-weight: 800; line-height: 1.15; }
h2 { font-size: 17px; font-weight: 700; }
b, strong, .bold { font-family: var(--display); font-weight: 600; }

.app { max-width: 480px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
.main { flex: 1; padding: calc(18px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 112px max(16px, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.4; }
.tiny { font-size: 13px; }
.eyebrow { font-family: var(--display); font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent-text); }
.eyebrow.light { color: var(--sky); }
.lead { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.display-num { font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.display-num.ink { font-size: 28px; color: var(--ink); }
.display-sm { font-family: var(--display); font-size: 20px; font-weight: 700; }
.logo { display: block; width: auto; max-width: 180px; object-fit: contain; }
.wordmark { font-family: var(--display); font-weight: 800; letter-spacing: -0.5px; color: var(--ink); white-space: nowrap; }
.wordmark b { color: var(--accent); font-weight: 800; }
.wordmark.light { color: #fff; }
.wordmark.light b { color: var(--sky); }
.err { color: var(--danger); font-size: 14px; }
.link { border: none; background: none; padding: 6px 0; color: var(--accent-text); font-family: var(--display); font-weight: 600; font-size: 13.5px; cursor: pointer; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.card.hero { background: var(--navy); color: #fff; border: none; }
.card.hero .muted { color: #b9c3e6; }
.card.hero h2 { color: #fff; }
.card.warn { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn-ink); }
.card.flat { padding: 14px; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; }
.pill.glass { background: rgba(255, 255, 255, 0.14); color: #fff; }

.btn { min-height: 50px; border-radius: var(--pill); border: 1px solid var(--accent); padding: 0 22px; font-family: var(--display); font-weight: 600; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; background: var(--accent); color: #fff; }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn:focus-visible, .chip:focus-visible, .option:focus-visible, .icon-btn:focus-visible, .tip:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.btn.block { width: 100%; }
.btn.light { background: #fff; color: var(--navy); border-color: #fff; }
.btn.soft { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-soft); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--warn-line); }
.icon-btn { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; color: var(--ink); }

label.f { display: flex; flex-direction: column; gap: 6px; font-family: var(--display); font-size: 13px; font-weight: 600; color: var(--ink); }
.f-label { font-family: var(--display); font-size: 13px; font-weight: 600; }
.input, select.input { height: 50px; border-radius: 16px; border: 1px solid #8a91ad; padding: 0 16px; font-size: 16px; background: var(--field); color: var(--ink); width: 100%; font-family: var(--font); font-weight: 400; }
.input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1px solid #b8bdd3; background: #fff; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg { display: flex; background: #e1e3ed; border-radius: 99px; padding: 4px; }
.seg button { flex: 1; min-height: 40px; border: none; background: transparent; border-radius: 99px; font-size: 14px; cursor: pointer; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); font-family: var(--display); font-weight: 600; box-shadow: 0 1px 2px rgba(14, 27, 77, 0.12); }

.bar { height: 10px; border-radius: 99px; background: var(--accent-soft); overflow: hidden; }
.bar > div { height: 100%; background: var(--accent); border-radius: 99px; transition: width 0.3s; }
.bar.warn > div { background: var(--warn); }
.card.hero .bar { background: rgba(255, 255, 255, 0.18); }

.result { background: var(--accent-soft); border-radius: 16px; padding: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.result .big { font-family: var(--display); font-size: 28px; font-weight: 800; color: var(--accent-ink); }
.syringe { grid-column: 1 / -1; }


.sheet-bg { position: fixed; inset: 0; background: rgba(14, 27, 77, 0.5); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--bg); width: 100%; max-width: 480px; max-height: 92dvh; overflow-y: auto; border-radius: 24px 24px 0 0; padding: 18px max(16px, env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 14px; }
.sheet.full { max-height: 100dvh; height: 100dvh; border-radius: 0; padding-top: calc(16px + env(safe-area-inset-top)); }

.tip, .plan-today { display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; color: var(--ink); }
.tip.clickable, .plan-today { cursor: pointer; }
.plan-today { align-items: center; background: var(--field); border-color: transparent; }
.tip.warn { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn-ink); }
.ic { width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tip.warn .ic { background: #fff; color: var(--warn); }

.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; text-align: center; }
.dot { width: 32px; height: 32px; border-radius: 16px; margin: 0 auto 4px; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; color: #fff; }
.dot.done { background: var(--accent); border-color: var(--accent); }
.dot.miss { border-color: var(--warn); }
.dot.today { border-color: var(--accent); border-width: 2px; }
.dot.none { border-style: dashed; opacity: 0.5; }

.list-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: none; }
.thumb { width: 56px; height: 56px; border-radius: 14px; background: var(--accent-soft); object-fit: cover; flex-shrink: 0; }
.thumb.bottle { object-fit: contain; padding: 4px 0; background: linear-gradient(180deg, #f6f7fb, var(--accent-soft)); }
.banner { background: var(--navy); color: #fff; font-size: 12px; text-align: center; padding: calc(6px + env(safe-area-inset-top)) 12px 6px; }
.toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 99px; font-size: 14px; z-index: 40; max-width: 90vw; }
.disclaimer { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 0; }
.empty { text-align: center; padding: 24px 8px; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--ink); }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }

/* cuestionario */
.quiz { max-width: 480px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; padding: calc(14px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
.quiz-top { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; }
.quiz-body { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 14px 0 24px; }
.quiz-hero { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 212px; padding: 16px 16px 0; border-radius: 28px; overflow: hidden;
  background: radial-gradient(70% 60% at 50% 90%, rgba(71, 112, 219, .6), transparent 70%), radial-gradient(80% 60% at 100% 0%, rgba(63, 208, 232, .2), transparent 60%), var(--ink); }
.quiz-bubble { position: relative; max-width: 280px; margin: 0 0 12px; padding: 11px 15px; border-radius: 18px; background: #fff; color: var(--ink); font-size: 15px; line-height: 1.4; text-align: center; box-shadow: 0 10px 26px rgba(4, 12, 40, .35); }
.quiz-bubble::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 3px; }
.quiz-pep { position: relative; margin-bottom: -6px; filter: drop-shadow(0 14px 20px rgba(4, 12, 40, .45)); animation: login-rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.quiz-gets { list-style: none; margin: 0; padding: 4px 16px; display: flex; flex-direction: column; border-radius: 20px; background: var(--card, #fff); border: 1px solid var(--line, rgba(14, 27, 77, .08)); }
.quiz-gets li { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.quiz-gets li + li { border-top: 1px solid var(--line, rgba(14, 27, 77, .08)); }
.quiz-gets b { display: block; font-size: 15px; color: var(--ink); }
.quiz-gets small { display: block; font-size: 13.5px; color: var(--muted, #5b6280); }
.qg-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); }
@media (prefers-reduced-motion: reduce) { .quiz-pep { animation: none; } }
@media (max-height: 700px) { .quiz-hero { min-height: 188px; } .quiz-pep { height: 108px !important; } }
.qp { display: flex; align-items: flex-end; gap: 6px; margin: -4px 0 -2px; }
.qp-pep { flex: none; margin-left: -6px; filter: drop-shadow(0 8px 12px rgba(14, 27, 77, .2)); animation: qp-in .45s cubic-bezier(.2, 1.3, .4, 1) both; }
.qp-bubble { position: relative; flex: 1; margin: 0 0 22px; padding: 11px 14px; border-radius: 18px 18px 18px 6px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-size: 14.5px; line-height: 1.4; box-shadow: 0 6px 18px rgba(14, 27, 77, .06); }
@keyframes qp-in { from { opacity: 0; transform: translateY(8px) scale(.94); } }
@media (prefers-reduced-motion: reduce) { .qp-pep { animation: none; } }
.quiz-foot { position: sticky; bottom: 0; padding: 12px 0 calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(to bottom, rgba(239, 240, 245, 0), var(--bg) 30%); }
.options { display: flex; flex-direction: column; gap: 10px; }
.option { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; text-align: left; padding: 12px 16px; border-radius: var(--radius); border: 1.5px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); }
.option.center { justify-content: center; font-family: var(--display); font-weight: 600; font-size: 16px; }
.option.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.opt-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.option.on .opt-ic { background: var(--accent); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stats > div { display: flex; flex-direction: column; gap: 2px; background: var(--field); border-radius: 14px; padding: 12px; }
.stat { font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; color: var(--ink); }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.45; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 4px; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

/* plan */
.macro-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 2px; }
.key { display: inline-block; width: 8px; height: 8px; border-radius: 4px; margin-right: 4px; vertical-align: middle; }
.day-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day-tabs button { border: 1px solid var(--line); background: #fff; border-radius: 14px; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; color: var(--ink); text-transform: capitalize; }
.day-tabs button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.meal { gap: 8px; }
.ingredients { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; line-height: 1.4; }
.ingredients li::marker { color: var(--accent); }

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

/* Calculadora: réplica de la sección "Calculadora BioLongev X" de biolongevx.com */
.cx { --c-ink: var(--ink); --c-navy: var(--ink); --c-blue: var(--accent); --c-sky: var(--sky); --c-cyan: var(--sky); --c-ice: var(--accent-soft); --c-mist: var(--field); --c-line: var(--line); --c-text: var(--ink); --c-muted: var(--muted);
  display: flex; flex-direction: column; gap: 14px; color: var(--c-text); font-family: var(--font); line-height: 1.4; }
.cx-head { padding: 0 2px; }
.cx-sub { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.cx-content { display: flex; flex-direction: column; gap: 14px; }
.cx-panel { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 16px; background: var(--card); }
.cx-step { margin-bottom: 18px; }
.cx-st { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--c-ink); }
.cx-n { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--c-ice); color: var(--c-blue); font-size: 12px; font-weight: 800; }
.cx-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.cx-field { position: relative; }
.cx-input, .cx-select { width: 100%; height: 52px; border: 1px solid #8a91ad; border-radius: 14px; background: var(--c-mist); color: var(--c-text); padding: 0 14px; font-size: 16px; font-family: inherit; outline: 0; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.cx-input:focus, .cx-select:focus { border-color: var(--c-blue); background: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }
.cx-field .cx-input { padding-right: 52px; }
.cx-suffix { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--c-muted); font-size: 13px; font-weight: 700; pointer-events: none; }
.cx-select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%234770db' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px; }
.cx-units { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; min-width: 112px; padding: 4px; border: 1px solid var(--c-line); border-radius: 14px; background: var(--c-mist); }
.cx-u { border: 0; border-radius: 10px; background: transparent; color: var(--c-muted); font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer; }
.cx-u.on { background: #fff; color: var(--c-blue); box-shadow: 0 2px 8px rgba(14, 42, 94, 0.12); }
.cx-sizes { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.cx-size { min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--c-line); background: #fff; color: var(--c-text); font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer; }
.cx-size.on { background: var(--c-ice); border-color: var(--c-blue); color: var(--c-blue); }
.cx-help { margin-top: 7px; color: var(--c-muted); font-size: 12px; }
.cx-formula { padding: 14px 16px; border: 1px solid #d6e6fa; border-radius: 14px; background: var(--c-ice); color: var(--c-navy); font-size: 13px; line-height: 1.6; }
.cx-formula strong { display: block; margin-bottom: 3px; font-family: inherit; }
.cx-formula p { margin: 0; }
.cx-result { border-radius: var(--radius); padding: 18px 16px; color: #fff; background: var(--ink); }
.cx-kicker { margin: 0 0 6px; color: #c3cbe6; font-size: 15px; font-weight: 600; }
.cx-figure { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin: 0 0 16px; }
.cx-big { color: #fff; font-size: 64px; line-height: 0.95; font-weight: 800; letter-spacing: -0.045em; font-family: var(--display); font-variant-numeric: tabular-nums; }
.cx-runit { color: #c3cbe6; font-size: 18px; font-weight: 600; }
.cx-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.cx-card { padding: 12px 14px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px; background: rgba(255, 255, 255, 0.06); min-width: 0; }
.cx-label { display: block; margin-bottom: 4px; color: #c3cbe6; font-size: 12px; font-weight: 600; }
.cx-value { display: block; color: #fff; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cx-syringe { padding: 12px 8px 8px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 16px; background: rgba(255, 255, 255, 0.04); }
.cx-svg { display: block; width: 100%; height: auto; }
.cx-anim { transition: transform 0.22s ease, width 0.22s ease, x 0.22s ease; }
.cx-caption { margin-top: 2px; text-align: center; color: #c3cbe6; font-size: 12px; }
.cx-warning { margin-top: 12px; padding: 10px 12px; border: 1px solid rgba(255, 196, 77, 0.4); border-radius: 12px; background: rgba(255, 196, 77, 0.12); color: #ffe4a3; font-size: 12px; line-height: 1.45; }
.cx-actions { display: grid; gap: 10px; margin-top: 16px; }
.cx-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 18px; border-radius: var(--pill); font-family: var(--display); font-size: 15px; font-weight: 600; text-decoration: none; text-align: center; }
.cx-primary { background: #fff; color: var(--ink); }
.cx-wa { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.5); }
.cx-note { color: var(--c-muted); font-size: 12px; line-height: 1.5; padding: 0 6px; }
.cx-u:focus-visible, .cx-size:focus-visible, .cx-btn:focus-visible { outline: 2px solid var(--c-sky); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .cx-anim, .cx-input, .cx-select { transition: none; } }
/* Calculadora v2: Dr. Pep-ito, pasos en línea de tiempo y fórmula con tus números */
.cx-hero { position: relative; display: flex; align-items: flex-end; gap: 4px; min-height: 150px; padding: 16px 8px 0 16px; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(60% 80% at 85% 100%, rgba(71, 112, 219, .65), transparent 70%), radial-gradient(70% 70% at 0% 0%, rgba(63, 208, 232, .18), transparent 60%), var(--ink); }
.cx-hero-txt { flex: 1; align-self: stretch; display: flex; flex-direction: column; gap: 10px; padding-bottom: 16px; min-width: 0; }
.cx-eyebrow { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 5px 10px; border-radius: 99px; background: rgba(255, 255, 255, .1); color: #c9e9ff; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.cx-bubble { position: relative; margin: 0; padding: 11px 14px; border-radius: 16px 16px 6px 16px; background: #fff; color: var(--ink); font-size: 14px; line-height: 1.4; box-shadow: 0 10px 26px rgba(4, 12, 40, .35); }
.cx-bubble::after { content: ''; position: absolute; right: -6px; bottom: 10px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); border-radius: 2px; }
.cx-pep { flex: none; margin-bottom: -4px; filter: drop-shadow(0 12px 18px rgba(4, 12, 40, .5)); animation: qp-in .5s cubic-bezier(.2, 1.3, .4, 1) both; }
.cx-step { position: relative; margin-bottom: 0; padding-bottom: 20px; }
.cx-step:not(.last)::before { content: ''; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--c-line); }
.cx-step.done::before { background: linear-gradient(var(--c-blue), var(--c-line)); }
.cx-sb { padding-left: 36px; }
.cx-n { transition: background .2s, color .2s; }
.cx-step.done .cx-n { background: var(--c-blue); color: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.cx-pick { position: relative; }
.cx-pick.has-img .cx-select { padding-left: 52px; }
.cx-bottle { position: absolute; left: 8px; top: 50%; width: 36px; height: 44px; object-fit: contain; transform: translateY(-50%); pointer-events: none; }
.cx-pre { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--c-blue); display: flex; pointer-events: none; }
.cx-pre + .cx-input { padding-left: 42px; }
.cx-formula strong { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.cx-formula p { display: flex; flex-direction: column; gap: 1px; padding: 8px 0; }
.cx-formula p + p { border-top: 1px dashed #c3d5f3; }
.cx-formula p span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); }
.cx-formula p b { font-weight: 700; font-variant-numeric: tabular-nums; }
.cx-result { position: relative; overflow: hidden; background: radial-gradient(80% 60% at 100% 0%, rgba(63, 208, 232, .22), transparent 60%), radial-gradient(70% 50% at 0% 100%, rgba(71, 112, 219, .45), transparent 70%), var(--ink); box-shadow: 0 18px 40px rgba(14, 27, 77, .28); }
.cx-rhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.cx-rhead .cx-kicker { margin: 0; }
.cx-badge { flex: none; padding: 4px 10px; border-radius: 99px; background: rgba(90, 190, 250, .18); color: #9fdcff; font-size: 11.5px; font-weight: 700; }
.cx-big { background: linear-gradient(180deg, #fff 30%, #9fdcff); -webkit-background-clip: text; background-clip: text; color: transparent; animation: cx-pop .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes cx-pop { from { transform: scale(.94); opacity: .5; } }
.cx-label { display: flex; align-items: center; gap: 5px; }
.cx-label svg { color: #7fd0ff; }
@media (prefers-reduced-motion: reduce) { .cx-pep, .cx-big { animation: none; } }

/* check-in y registros anteriores */
.sev { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.verdict { border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); background: #fff; }
.verdict.urgent { background: var(--warn-soft); border-color: var(--warn); color: var(--warn-ink); }
.verdict.hold { background: #fff6e5; border-color: #f1c27d; color: #7a4a05; }
.verdict.keep { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.verdict.review { background: #e6f5ee; border-color: transparent; color: #165c40; }
.verdict h2 { color: inherit; }
.date-list { display: flex; flex-direction: column; }
.date-row { display: flex; align-items: center; gap: 12px; min-height: 48px; border-bottom: 1px solid var(--line); font-size: 15px; }
.date-row:last-child { border-bottom: none; }
.date-row input { width: 22px; height: 22px; accent-color: var(--accent); }
.badge { display: inline-flex; align-items: center; font-family: var(--display); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); }
.badge.warn { background: var(--warn-soft); color: var(--warn-ink); }

/* ---------- v4: correcciones y rediseño ---------- */
/* hojas: que nada se encoja ni se corte, todo se desplaza */
.sheet > * { flex-shrink: 0; }
.sheet { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.grid2 > *, .grid3 > * { min-width: 0; }
input[type='date'].input, input[type='time'].input, input[type='datetime-local'].input { -webkit-appearance: none; appearance: none; min-width: 0; max-width: 100%; display: block; text-align: left; line-height: 48px; }
input::-webkit-date-and-time-value { text-align: left; }

/* etiquetas en frase normal, sin mayúsculas forzadas */
.eyebrow { text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 600; }

/* superficies más limpias: sin borde, el espacio separa */
.card { border-color: transparent; border-radius: 22px; }
.card.warn { border-color: var(--warn-line); }
.tip { border-color: transparent; }

/* logotipo en texto (si no carga la imagen) */
.wordmark { display: inline-flex; align-items: center; gap: 0.18em; font-weight: 800; letter-spacing: -0.03em; }
.wm-x { display: inline-grid; place-items: center; width: 1.35em; height: 1.35em; border-radius: 0.38em; color: #fff; font-size: 0.9em; background: linear-gradient(135deg, #1677d2, #3fd0e8); }
.wordmark.light { color: #fff; }

/* hero de la dosis: mismo lenguaje que la calculadora de biolongevx.com */
.dose-hero { position: relative; overflow: hidden; border-radius: 26px; padding: 20px 18px 16px; color: #fff; display: flex; flex-direction: column; gap: 14px;
  background: radial-gradient(110% 90% at 100% 0%, rgba(63, 208, 232, 0.28), transparent 55%), linear-gradient(160deg, #0e2a5e 0%, #0a1b3d 100%);
  box-shadow: 0 18px 40px rgba(10, 27, 61, 0.28); }
.dh-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; color: #c3cbe6; }
.dh-top > span:first-child { color: #fff; font-family: var(--display); font-weight: 600; }
.dh-when { text-align: right; }
.dh-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.dh-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dh-product { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -0.3px; }
.dh-figure { display: flex; align-items: baseline; gap: 8px; }
.dh-big { font-family: var(--display); font-size: 64px; line-height: 0.95; font-weight: 800; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; text-shadow: 0 0 40px rgba(91, 180, 255, 0.5); }
.dh-unit { color: #c3cbe6; font-size: 17px; }
.dh-sub { color: #b9c8e4; font-size: 14px; line-height: 1.45; }
.dh-also { font-size: 13.5px; color: #cfe0f7; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); }
.dh-vial { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: none; }
.dh-vial-label { font-size: 13px; color: #c3cbe6; font-variant-numeric: tabular-nums; }
.dh-vial-label b { color: #fff; font-size: 15px; }
.dh-vial-cap { font-size: 11px; color: #c3cbe6; margin-top: -2px; }
.dh-link { align-self: center; border: none; background: none; color: #9fd8ff; font-family: var(--display); font-weight: 600; font-size: 13.5px; padding: 6px 10px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.dose-hero .btn.light { color: #0e2a5e; }

/* navegación con indicador */

/* ---------- v5: seguimiento diario ---------- */
:root { --m-protein: #4770db; --m-fiber: #1f9d6b; --m-carbs: #0fa3c2; }
.main { padding-bottom: calc(168px + env(safe-area-inset-bottom)); }
.card-title { display: inline-flex; align-items: center; gap: 8px; border: none; background: none; padding: 0; font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--ink); cursor: pointer; }
.card-title svg:first-child { color: var(--accent); }
.card-title svg:last-child { color: var(--muted); }
.icon-btn.sm { width: 38px; height: 38px; border-radius: 19px; background: var(--field); border-color: transparent; }

.nutri-body { display: flex; align-items: center; gap: 14px; }
.nutri-bars { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.nutri-row { display: flex; flex-direction: column; gap: 6px; }
.thin-bar { height: 8px; border-radius: 99px; background: #e8ebf3; overflow: hidden; }
.thin-bar > div { height: 100%; border-radius: 99px; transition: width 0.4s ease; }
.rings { flex: none; }
.ring-anim { transition: stroke-dasharray 0.5s ease, y 0.5s ease, height 0.5s ease; }
.nutri-foot { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }

.water .display-num { font-size: 30px; }
.water-quick { display: flex; flex-direction: column; align-items: center; gap: 4px; border: none; background: none; cursor: pointer; padding: 0; }
.wq-cup { width: 44px; height: 52px; border-radius: 6px 6px 12px 12px; background: linear-gradient(160deg, #3fd0e8, #1677d2); color: #fff; display: grid; place-items: center; clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%); }
.portions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.portion { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 4px; border-radius: 18px; border: none; background: #fff; cursor: pointer; color: var(--ink); font-size: 13px; }
.portion .wq-cup { width: 32px; height: 38px; }

.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat-card { background: #fff; border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.warn-text { color: var(--warn-ink); font-weight: 600; }

.level-body { display: flex; align-items: flex-end; gap: 14px; }
.level-body > .stack { flex: none; }
.level-chart { flex: 1; min-width: 0; }
.level-chart svg { display: block; width: 100%; height: 80px; }
.level-days { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); font-size: 11px; color: var(--muted); text-align: center; text-transform: uppercase; margin-top: 4px; }
.level-days .on { color: var(--accent-text); font-weight: 700; }

.meal.eaten { background: #f3f8ff; }
.meal.eaten h2 { color: var(--muted); }
.eat-btn { display: flex; align-items: center; gap: 10px; align-self: flex-start; min-height: 44px; padding: 0 14px 0 10px; border-radius: 99px; border: 1px solid #b8bdd3; background: #fff; font-family: var(--display); font-weight: 600; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.eat-btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.eat-box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid currentColor; display: grid; place-items: center; }

.fab-bg { position: fixed; inset: 0; z-index: 14; background: rgba(14, 27, 77, 0.35); }
.fab-menu { position: fixed; z-index: 15; right: max(12px, calc((100vw - 480px) / 2 + 12px)); bottom: calc(92px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.fab-item { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 8px; border-radius: 99px; border: none; background: #fff; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 15px; cursor: pointer; box-shadow: 0 6px 16px rgba(14, 27, 77, 0.16); }
.fab-item .ic { width: 34px; height: 34px; border-radius: 17px; }
@media (prefers-reduced-motion: reduce) { .fab, .thin-bar > div, .ring-anim { transition: none; } }

/* ---------- v6: gráfica de peso ---------- */
.w-hero { position: relative; border-radius: 26px; padding: 20px 16px 16px; color: #fff; display: flex; flex-direction: column; gap: 14px;
  background: radial-gradient(110% 80% at 100% 0%, rgba(63, 208, 232, 0.26), transparent 55%), linear-gradient(165deg, #0e2a5e 0%, #0a1b3d 100%);
  box-shadow: 0 18px 40px rgba(10, 27, 61, 0.28); }
.w-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.w-kicker { font-family: var(--display); font-weight: 600; font-size: 15px; color: #cfe0f7; }
.w-big { font-family: var(--display); font-size: 58px; line-height: 0.95; font-weight: 800; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; text-shadow: 0 0 40px rgba(91, 180, 255, 0.45); }
.w-unit { font-size: 20px; font-weight: 600; color: #c3cbe6; margin-left: 6px; letter-spacing: 0; }
.w-sub { font-size: 14px; color: #b9c8e4; }
.w-rate { flex: none; text-align: right; display: flex; flex-direction: column; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); }
.w-rate b { font-family: var(--display); font-size: 22px; font-variant-numeric: tabular-nums; }
.w-rate span { font-size: 11.5px; color: #c3cbe6; }
.w-seg .seg { background: rgba(255, 255, 255, 0.08); }
.w-seg .seg button { color: #c3cbe6; }
.w-seg .seg button.on { background: #fff; color: #0e2a5e; }
.w-chart { position: relative; touch-action: pan-y; }
.w-chart svg { display: block; width: 100%; height: auto; cursor: crosshair; font-family: var(--font); }
.w-tip { position: absolute; top: 0; transform: translateX(-50%); background: #fff; color: #0e1b4d; border-radius: 12px; padding: 6px 10px; display: flex; flex-direction: column; align-items: center; font-size: 12px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); pointer-events: none; white-space: nowrap; }
.w-tip b { font-family: var(--display); font-size: 15px; }
.w-foot { font-size: 14px; color: #cfe0f7; line-height: 1.45; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.w-foot b { color: #fff; }
.w-warn { display: block; margin-bottom: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 196, 77, 0.14); color: #ffe4a3; font-size: 13px; }
.w-foot { display: flex; flex-direction: column; }

/* ---------- v6: registrar comida ---------- */
.search { position: relative; }
.search > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .input { padding-left: 42px; background: #fff; border-color: transparent; }
.scroll-x { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.scroll-x::-webkit-scrollbar { display: none; }
.scroll-x .chip { flex: none; }
.food-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; min-height: 56px; padding: 10px 0; border: none; border-bottom: 1px solid var(--line); background: none; color: var(--ink); cursor: pointer; }
.food-row:last-child { border-bottom: none; }
.add-dot { width: 32px; height: 32px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.macro-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.macro-chips span { background: var(--field); border-radius: 12px; padding: 8px 4px; text-align: center; font-size: 11.5px; color: var(--muted); display: flex; flex-direction: column; }
.macro-chips b { font-size: 16px; color: var(--ink); }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 24px 12px; }
.empty-state .ic { width: 52px; height: 52px; border-radius: 16px; }
.scanner { position: relative; border-radius: 22px; overflow: hidden; min-height: 150px; display: grid; place-items: center; background: linear-gradient(160deg, #0e2a5e, #0a1b3d); }
.scanner video { display: none; width: 100%; height: 240px; object-fit: cover; }
.scanner.on video { display: block; }
.scanner .btn.light { position: relative; }
.scan-line { position: absolute; left: 10%; right: 10%; top: 50%; height: 2px; background: #3fd0e8; box-shadow: 0 0 12px #3fd0e8; }
.scan-stop { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); background: rgba(255, 255, 255, 0.9); }
.slot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.slot-grid .chip { padding: 0 4px; justify-content: center; font-size: 13.5px; }

/* ---------- notificaciones ---------- */
.col { display: flex; flex-direction: column; }
.switch { position: relative; width: 52px; height: 32px; border-radius: 99px; border: none; background: #c9cddc; cursor: pointer; flex-shrink: 0; transition: background .2s; padding: 0; }
.switch span { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(14,27,77,.3); transition: transform .2s; }
.switch.on { background: var(--accent); }
.switch.on span { transform: translateX(20px); }
.switch:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.notif-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.notif-time { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.notif-time .t { font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--accent-ink); width: 74px; flex-shrink: 0; white-space: nowrap; padding-top: 2px; }
.lock-preview { border-radius: 22px; padding: 22px 14px 16px; background: radial-gradient(120% 90% at 20% 0%, #4770db 0%, #1d2f78 45%, #0e1b4d 100%); color: #fff; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lock-date { font-size: 14px; color: rgba(255,255,255,.85); margin-bottom: -10px; }
.lock-time { font-family: var(--display); font-weight: 700; font-size: 56px; letter-spacing: -1px; line-height: 1; }
.lock-note { width: 100%; background: rgba(255,255,255,.88); color: var(--ink); border-radius: 18px; padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.lock-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.lock-app { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; font-size: 11px; }
.notify-hint { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 40px 14px 14px; border-radius: 22px; background: linear-gradient(135deg, #0e1b4d, #3a5fc8); color: #fff; }
.notify-hint .ic { background: rgba(255,255,255,.16); color: #fff; }
.notify-hint .small { color: rgba(255,255,255,.82); }
.notify-hint .btn { background: #fff; color: var(--ink); border-color: #fff; min-height: 40px; padding: 0 14px; }
.notify-hint .x { position: absolute; top: 0; right: 0; width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: none; color: rgba(255,255,255,.7); }

.grid5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.grid5 .option { padding: 0; font-family: var(--display); font-size: 18px; justify-content: center; }

/* ---------- Pep-ito ---------- */
.pep { display: block; flex-shrink: 0; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(14,27,77,.18)); user-select: none; -webkit-user-drag: none; }
.pep-card { background: linear-gradient(160deg, #fff 0%, #eef2fd 100%); border: 1px solid #dfe6f8; border-radius: 26px; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 6px 18px rgba(71,112,219,.10); }
.pep-main { display: flex; align-items: flex-end; gap: 10px; width: 100%; text-align: left; background: none; border: none; padding: 0; color: var(--ink); cursor: pointer; font: inherit; }
.pep-fig { animation: pep-bob 3.4s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes pep-bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-4px) rotate(1deg); } }
.pep-bubble { position: relative; flex: 1; min-width: 0; background: #fff; border: 1.5px solid #cfd9f6; border-radius: 18px 18px 18px 6px; padding: 12px 14px; font-size: 15px; line-height: 1.38; display: flex; gap: 8px; align-items: flex-start; margin-bottom: 14px; }
.pep-bubble::before { content: ''; position: absolute; left: -9px; bottom: 6px; width: 14px; height: 14px; background: #fff; border-left: 1.5px solid #cfd9f6; border-bottom: 1.5px solid #cfd9f6; transform: rotate(45deg); border-radius: 0 0 0 4px; }
.pep-emote { font-size: 18px; line-height: 1.2; flex-shrink: 0; }
.pep-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pep-chip { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 2px 7px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; min-height: 72px; font: inherit; }
.pep-chip .pc-l { display: flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--accent-ink); line-height: 1.1; }
.pep-chip .pc-v { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.pep-chip .pc-u { font-size: 11.5px; color: var(--muted); line-height: 1.1; }
.pep-chip.on { background: var(--accent-soft); border-color: var(--accent); }
.pep-chip.on .pc-l { color: var(--accent); }
.pep-chip:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.streak-hero { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 24px; color: #fff; background: radial-gradient(120% 120% at 15% 0%, #4770db 0%, #1d2f78 50%, #0e1b4d 100%); }
.streak-hero .big { font-family: var(--display); font-size: 34px; line-height: 1; letter-spacing: -.5px; }
.habit { gap: 10px; }
.flame { display: flex; align-items: center; gap: 4px; color: #9aa3c4; font-family: var(--display); }
.flame b { font-size: 24px; line-height: 1; }
.flame span { font-size: 12px; }
.flame.lit { color: #f2622b; }
.dots { display: flex; gap: 6px; }
.sd { flex: 1; height: 26px; max-width: 40px; border-radius: 10px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; color: #fff; }
.sd.hit { background: var(--accent); }
.sd.miss { background: #e9ebf3; }
.sd.skip { background: repeating-linear-gradient(45deg, #dfe4f6, #dfe4f6 4px, #eef1fb 4px, #eef1fb 8px); }
.sd.pending { background: #fff; border: 2px dashed #9fb2ec; }
.sd.none { background: transparent; border: 1px dashed var(--line); }
.shield { display: inline-flex; align-items: center; gap: 4px; }
.shield.ready { color: var(--accent-ink); font-weight: 600; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.hard { border: 1.5px dashed #b9c5ee; background: #f6f8ff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.celebrate { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 0 4px; overflow: hidden; }
.celebrate .big { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--accent-ink); }
.confetti i { position: absolute; top: -10px; left: calc(var(--i) * 5.6%); width: 8px; height: 14px; border-radius: 2px; background: hsl(calc(var(--i) * 41), 85%, 58%); animation: fall 2.6s linear infinite; animation-delay: calc(var(--i) * -0.19s); opacity: .9; }
@keyframes fall { to { transform: translateY(360px) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) { .pep-fig, .confetti i { animation: none; } }
.pep-note-icon { width: 20px; height: 20px; border-radius: 6px; object-fit: cover; }

/* ---------- Tienda ---------- */
.section-title { font-size: 17px; margin: 6px 2px -4px; }
.carousel-card { overflow: hidden; overflow: clip; }
.cr-stage { position: relative; overflow: hidden; overflow: clip; height: 270px; margin: 0 -16px; touch-action: pan-y; user-select: none; outline: none; background: radial-gradient(60% 70% at 50% 55%, var(--accent-soft), transparent 70%); }
.cr-stage:focus-visible { outline: 3px solid var(--sky); outline-offset: -3px; border-radius: 16px; }
.cr-item { position: absolute; left: 50%; top: 10px; width: 104px; height: 250px; padding: 0; border: none; background: none; cursor: pointer; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .45s, filter .45s; }
.cr-item img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 14px 18px rgba(14, 27, 77, .18)); }
.cr-info { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; min-height: 64px; }
.cr-info h3 { font-size: 20px; }
.cr-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cr-nav .icon-btn.sm { width: 44px; height: 44px; border-radius: 22px; }
.cr-nav .icon-btn:disabled { opacity: .35; cursor: default; }
.cr-dots { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.cr-dots span { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width .3s, background .3s; }
.cr-dots span.on { width: 18px; background: var(--accent); }
.card.empty { align-items: center; }
@media (prefers-reduced-motion: reduce) { .cr-item { transition: none; } }
.page-pep { align-items: center; gap: 12px; }
.page-pep .pep { flex-shrink: 0; margin: -6px -4px -10px 0; }

/* Vial del inicio: el líquido se mece al cambiar de nivel y luego queda quieto */
.vg-wave { animation: vg-slosh 2.6s cubic-bezier(.3,.6,.4,1) both; }
.vg-wave.back { animation-duration: 3.1s; animation-direction: reverse; }
.vg-liquid { animation: vg-drop .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes vg-slosh { 0% { transform: translateX(0); } 100% { transform: translateX(-40px); } }
@keyframes vg-drop { from { transform: translateY(-6px); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .vg-wave, .vg-liquid { animation: none; } }

/* ---------- Barra de abajo: cápsula flotante + botón de registrar ---------- */
.dock { position: fixed; z-index: 16; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px; max-width: 480px; margin: 0 auto;
  padding: 18px max(12px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: linear-gradient(to bottom, rgba(239, 240, 245, 0), var(--bg) 55%); pointer-events: none; }
.dock > * { pointer-events: auto; }
.dock-pill { flex: 1; min-width: 0; height: 62px; padding: 5px; border-radius: 31px; background: var(--ink); display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 12px 28px rgba(14, 27, 77, .28), inset 0 1px 0 rgba(255, 255, 255, .08); }
.dock-tab { flex: 0 0 auto; height: 52px; min-width: 44px; padding: 0 11px; border: none; border-radius: 26px; background: transparent; color: rgba(255, 255, 255, .62);
  display: inline-flex; align-items: center; justify-content: center; gap: 0; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 13.5px;
  transition: background .3s cubic-bezier(.2, .8, .2, 1), color .2s, padding .3s cubic-bezier(.2, .8, .2, 1); }
.dock-label { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .3s cubic-bezier(.2, .8, .2, 1), opacity .2s, margin .3s; }
.dock-tab.on { background: rgba(255, 255, 255, .14); color: #fff; padding: 0 14px 0 12px; }
.dock-tab.on .dock-label { max-width: 90px; opacity: 1; margin-left: 6px; }
.dock-tab:not(.on):hover { color: #fff; }
.dock-tab:focus-visible { outline: 2px solid var(--sky); outline-offset: -2px; }
.fab { flex: none; width: 58px; height: 58px; border-radius: 29px; border: none; cursor: pointer; display: grid; place-items: center; color: var(--ink); background: var(--sky);
  box-shadow: 0 12px 28px rgba(14, 27, 77, .28), inset 0 1px 0 rgba(255, 255, 255, .5); transition: transform .25s cubic-bezier(.2, .8, .2, 1), background .2s; }
.fab.open { transform: rotate(45deg); background: #fff; }
.fab:active { transform: scale(.94); }
.fab:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 370px) { .dock-tab.on .dock-label { max-width: 0; opacity: 0; margin-left: 0; } .dock-tab.on { padding: 0 14px; } }
@media (prefers-reduced-motion: reduce) { .dock-tab, .dock-label, .fab { transition: none; } }

/* ---------- Pantalla de entrada ---------- */
.login { min-height: 100dvh; display: flex; flex-direction: column; max-width: 480px; margin: 0 auto; background: var(--ink); }
.login-stage { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: calc(140px + env(safe-area-inset-top)) 24px 40px; overflow: hidden;
  background: radial-gradient(70% 55% at 50% 78%, rgba(71, 112, 219, .55), transparent 70%), radial-gradient(90% 60% at 100% 0%, rgba(63, 208, 232, .18), transparent 60%), var(--ink); }
.login-bubble { position: relative; max-width: 290px; margin-bottom: 14px; padding: 12px 16px; border-radius: 20px; background: #fff; color: var(--ink); font-size: 15px; line-height: 1.4; text-align: center;
  box-shadow: 0 10px 30px rgba(4, 12, 40, .35); animation: login-pop .5s .35s cubic-bezier(.2, 1.4, .4, 1) both; }
.login-bubble::after { content: ''; position: absolute; left: 50%; bottom: -8px; width: 16px; height: 16px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 3px; }
.login-pep { position: relative; z-index: 1; filter: drop-shadow(0 18px 24px rgba(4, 12, 40, .45)); animation: login-rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.login-floor { width: 170px; height: 18px; margin-top: -10px; border-radius: 50%; background: radial-gradient(closest-side, rgba(157, 180, 240, .55), transparent); }
.login-panel { position: relative; z-index: 2; margin-top: -28px; padding: 28px max(22px, env(safe-area-inset-right)) calc(26px + env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
  border-radius: 32px 32px 0 0; background: var(--bg); display: flex; flex-direction: column; gap: 14px; }
.login-panel .logo { align-self: flex-start; }
.login-title { font-size: 30px; line-height: 1.08; letter-spacing: -0.8px; }
.login-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.login-perks li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13.5px; }
.login-form { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.login-code { letter-spacing: 8px; font-size: 24px; text-align: center; font-family: var(--display); }
.login-note { margin: 0; text-align: center; align-self: center; }
.login-err { margin: 0; color: var(--danger); font-size: 14px; }
@keyframes login-rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes login-pop { from { transform: scale(.6) translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .login-pep, .login-bubble, .login-logo { animation: none; } }
.login-logo { position: absolute; top: calc(20px + env(safe-area-inset-top)); left: 50%; width: 172px; height: auto; transform: translateX(-50%); filter: drop-shadow(0 6px 18px rgba(4, 12, 40, .4)); animation: login-fade .6s ease both; }
@keyframes login-fade { from { opacity: 0; transform: translate(-50%, -6px); } }
.login-pep { height: min(190px, 24vh) !important; }
.login-panel .login-title { margin-top: 2px; }
@media (max-height: 700px) { .login-bubble { font-size: 14px; padding: 10px 14px; } .login-stage { padding-top: calc(98px + env(safe-area-inset-top)); padding-bottom: 36px; } .login-logo { width: 128px; top: calc(14px + env(safe-area-inset-top)); } }

/* Fotos de progreso */
.ph-lock { display: inline-flex; align-items: center; gap: 4px; }
.ph-empty { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, var(--accent-soft), #fff); }
.ph-empty .pep { flex: none; }
.ph-skel { display: flex; gap: 10px; }
.ph-skel span { width: 104px; aspect-ratio: 3 / 4; border-radius: 14px; background: linear-gradient(90deg, #e7e9f2, #f3f4f9, #e7e9f2); background-size: 200% 100%; animation: ph-shine 1.2s linear infinite; }
@keyframes ph-shine { to { background-position: -200% 0; } }
.ph-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; }
.ph-strip::-webkit-scrollbar { display: none; }
.ph-thumb { position: relative; flex: none; width: 112px; aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #dfe3ef; cursor: pointer; scroll-snap-align: start; box-shadow: 0 6px 16px rgba(14, 27, 77, .12); }
.ph-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-tag { position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 4px 6px; border-radius: 8px; background: rgba(14, 27, 77, .72); color: #fff; font-size: 11px; font-weight: 600; text-align: center; backdrop-filter: blur(6px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-thumb:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ph-consent-hero { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--ink); color: #fff; }
.ph-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ph-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; }
.ph-points svg { flex: none; margin-top: 2px; color: var(--accent); }
.ph-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ph-pick-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 140px; border: 2px dashed #b9c4e4; border-radius: 18px; background: var(--card); color: var(--accent-ink); font-family: var(--display); font-weight: 600; font-size: 14.5px; cursor: pointer; }
.ph-pick-btn:active { background: var(--accent-soft); }
.ph-preview { position: relative; border-radius: 18px; overflow: hidden; background: #0d1638; }
.ph-preview img { display: block; width: 100%; max-height: 46dvh; object-fit: contain; }
.ph-change { position: absolute; right: 10px; bottom: 10px; }
.ph-tip { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 6px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); }
.ph-tip .pep { flex: none; }
.ph-full { border-radius: 18px; overflow: hidden; background: #0d1638; }
.ph-full img { display: block; width: 100%; max-height: 62dvh; object-fit: contain; }
.ph-compare { position: relative; aspect-ratio: 3 / 4; max-height: 62dvh; margin: 0 auto; width: 100%; border-radius: 20px; overflow: hidden; background: #0d1638; touch-action: pan-y; user-select: none; }
.ph-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ph-after { clip-path: inset(0 0 0 var(--pos)); }
.ph-compare::after { content: ''; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .35); pointer-events: none; }
.ph-handle { position: absolute; top: 50%; left: var(--pos); z-index: 2; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 6px 18px rgba(0, 0, 0, .3); pointer-events: none; }
.ph-range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ph-compare:focus-within .ph-handle { outline: 3px solid var(--sky); outline-offset: 2px; }
.ph-lab { position: absolute; top: 12px; z-index: 1; padding: 5px 10px; border-radius: 99px; background: rgba(14, 27, 77, .72); color: #fff; font-size: 12px; font-weight: 700; pointer-events: none; }
.ph-lab.l { left: 12px; }
.ph-lab.r { right: 12px; }
.ph-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ph-sum > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: #fff; }
.ph-sum .muted { color: #c3cbe6; }
.ph-sum b { font-family: var(--display); font-size: 20px; }
@media (prefers-reduced-motion: reduce) { .ph-skel span { animation: none; } }
.ph-share { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--field); border-radius: 14px; padding: 12px 14px; }

/* panel de administrador */
.adm-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.adm-kpis button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: var(--card); border: 2px solid transparent; border-radius: 18px; padding: 12px 14px; cursor: pointer; min-width: 0; }
.adm-kpis button.on { border-color: var(--accent); }
.adm-kpis b { font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; color: var(--ink); line-height: 1.1; }
.adm-kpis .warm b { color: #b45f06; }
.adm-kpis .hot b { color: var(--warn-ink); }
.adm-kpis span { font-family: var(--display); font-weight: 700; font-size: 14px; }
.adm-kpis em { font-style: normal; font-size: 12px; color: var(--muted); }
.adm-search { position: relative; display: block; }
.adm-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.adm-search .input { padding-left: 42px; width: 100%; }
.adm-list { display: flex; flex-direction: column; gap: 8px; }
.adm-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--card); border: none; border-radius: 18px; padding: 12px 14px; cursor: pointer; color: var(--ink); }
.adm-row > svg { color: var(--muted); flex-shrink: 0; }
.adm-av { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--navy-2)); color: #fff; font-family: var(--display); font-weight: 800; }
.adm-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.adm-main .tiny { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-name { font-family: var(--display); font-weight: 700; font-size: 15px; }
.adm-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.adm-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--field); color: var(--muted); }
.adm-tag.warm { background: #fdf0dc; color: #8a4a05; }
.adm-tag.hot { background: var(--warn-soft); color: var(--warn-ink); }
.adm-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.adm-facts span { display: flex; flex-direction: column; gap: 2px; background: var(--field); border-radius: 12px; padding: 8px 10px; font-size: 13px; }
.adm-facts b { font-size: 11px; color: var(--muted); font-weight: 600; }
.adm-spark { width: 100%; height: 70px; }
.adm-spark path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.adm-spark circle { fill: var(--accent); }
.adm-spark line { stroke: var(--ok); stroke-width: 1.5; }
.adm-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.adm-photos .ph-thumb { width: auto; aspect-ratio: 3 / 4; }
.adm-blur { background: #000; border-radius: 16px; overflow: hidden; display: grid; place-items: center; min-height: 200px; }
.adm-blur canvas { max-width: 100%; max-height: 62vh; height: auto; cursor: crosshair; touch-action: manipulation; }
