/* Hello Menopausia — App usuarias (demo) */
:root {
  /* Paleta tomada de www.hellomenopausia.com */
  --bg: #FAF9F4; --bg-soft: #FDFCF7; --ink: #192333; --ink-2: #2E3A52; --ink-3: #465266; --ink-4: #5F6B7A; --ink-5: #8E98A5;
  --blue: #8AB1C4; --blue-2: #85B3C6; --blue-d: #3F6A80; --blue-pale: #E8EFF4; --indigo: #4F5178; --navy: #192333;
  --cream: #FBF9ED; --cream-2: #F2ECE1; --sand: #E6DFD4;
  --olive: #B8A257; --olive-d: #7A6A2E; --rose-s: #C97E87; --rose-s-d: #A95F69; --rose-pale: #FDF1F1; --green: #3E583F;
  /* alias heredados (roles) */
  --rose: #8AB1C4; --rose-d: #3F6A80; --plum: #4F5178; --mustard: #B8A257; --sage: #A3B7A2; --sage-d: #3E583F; --khaki: #A69A84;
  --line: #E7E9E6; --white: #fff;
  --on-pill: #192333;
  --grad: linear-gradient(135deg, #4F5178 0%, #475F82 55%, #3F6A80 100%);
  --grad-pill: linear-gradient(90deg, #9CC3D5 0%, #8AB1C4 55%, #7EA9BF 100%);
  --grad-head: radial-gradient(110% 75% at 100% 0%, rgba(251,249,237,.16) 0%, rgba(251,249,237,0) 50%), radial-gradient(105% 80% at 0% 100%, rgba(138,177,196,1) 0%, rgba(138,177,196,0) 62%), linear-gradient(168deg, #1B2638 0%, #333F69 36%, #4F5A88 62%, #7297B5 100%);
  --grad-bg: linear-gradient(180deg, #E1EAF0 0%, #EAF0F3 16%, #F6F6F1 40%, #FBFAF4 100%);
  --sh-1: 0 10px 30px -12px rgba(25,35,51,.16), 0 2px 8px -2px rgba(25,35,51,.05);
  --sh-2: 0 18px 44px -18px rgba(25,35,51,.26), 0 4px 12px -4px rgba(25,35,51,.07);
  --sh-btn: 0 10px 22px -10px rgba(63,106,128,.6);
  --r-card: 26px; --r-md: 20px; --r-sm: 14px;
  --safe-top: max(env(safe-area-inset-top), 10px);
  --safe-bot: env(safe-area-inset-bottom);
  --tabbar-h: 70px;
  --ease: cubic-bezier(.22,.8,.24,1);
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--plum); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.ic { flex: none; display: block; }
:focus-visible { outline: 3px solid rgba(138,177,196,.8); outline-offset: 2px; }

/* ---------- Escenario (desktop) ---------- */
.stage { height: 100%; display: flex; align-items: center; justify-content: center; gap: 72px; padding: 24px;
  background: radial-gradient(60% 60% at 80% 20%, rgba(138,177,196,.30), transparent 70%), radial-gradient(50% 50% at 10% 90%, rgba(232,239,244,.9), transparent 70%), radial-gradient(40% 40% at 30% 10%, rgba(242,236,225,.8), transparent 70%), var(--bg); }
.brand-side { max-width: 380px; }
.brand-logo { display: flex; align-items: baseline; gap: 4px; margin-bottom: 28px; }
.lg-a { font-weight: 900; font-size: 23px; letter-spacing: -.04em; color: var(--ink); }
.lg-b { font-family: var(--serif); font-style: italic; font-size: 25px; color: var(--ink); }
.brand-logo .lg-a { font-size: 34px; } .brand-logo .lg-b { font-size: 37px; }
.brand-title { font-size: 44px; line-height: 1.04; letter-spacing: -.035em; font-weight: 800; margin: 0 0 18px; }
.brand-title em { font-family: var(--serif); font-weight: 400; color: var(--plum); letter-spacing: -.01em; }
.brand-caption { font-size: 16px; line-height: 1.6; color: var(--ink-3); margin: 0 0 26px; }
.brand-cred { display: inline-block; background: #fff; border-radius: 18px; padding: 14px 18px; box-shadow: var(--sh-1); font-size: 14.5px; color: var(--ink-2); }
.brand-cred-t { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--plum); margin-bottom: 4px; }
.brand-foot { margin-top: 26px; font-size: 12.5px; color: var(--ink-4); }
.device { position: relative; width: 390px; height: min(844px, calc(100vh - 48px)); flex: none; border-radius: 56px; padding: 11px; background: #151D2B;
  box-shadow: 0 50px 90px -30px rgba(25,35,51,.45), 0 0 0 2px #2E3A52 inset, 0 0 0 1px rgba(255,255,255,.5); }
.screen { position: relative; width: 100%; height: 100%; border-radius: 46px; overflow: hidden; background: var(--bg); isolation: isolate; }
.fake-status { position: absolute; z-index: 90; top: 0; left: 0; right: 0; height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 34px; font-weight: 700; font-size: 15px; color: var(--ink); pointer-events: none; transition: color .3s; }
.fake-status.light { color: #fff; }
.fs-icons { display: flex; gap: 5px; align-items: center; }
.fs-icons i { display: block; width: 17px; height: 11px; border-radius: 3px; background: currentColor; opacity: .9; }
.fs-icons i:nth-child(1) { width: 15px; clip-path: polygon(0 100%, 25% 70%, 25% 100%, 37% 100%, 37% 50%, 62% 30%, 62% 100%, 75% 100%, 75% 10%, 100% 0, 100% 100%); }
.fs-icons i:nth-child(2) { width: 14px; border-radius: 10px 10px 2px 2px; clip-path: polygon(50% 100%, 0 20%, 100% 20%); }
.fs-icons i:nth-child(3) { width: 24px; height: 12px; border-radius: 4px; background: none; border: 1.6px solid currentColor; position: relative; }
.fs-icons i:nth-child(3)::after { content: ''; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: currentColor; border-radius: 2px; }
.notch { position: absolute; z-index: 91; top: 10px; left: 50%; width: 118px; height: 34px; transform: translateX(-50%); background: #0B111B; border-radius: 20px; pointer-events: none; }
.device .screen { --safe-top: 50px; --safe-bot: 18px; }
.device .screen::after { content: ''; position: absolute; z-index: 95; bottom: 7px; left: 50%; width: 130px; height: 5px; border-radius: 3px; background: rgba(25,35,51,.35); transform: translateX(-50%); pointer-events: none; }
@media (max-width: 1020px) { .brand-side { display: none; } }
@media (max-width: 520px) {
  .stage { padding: 0; display: block; background: var(--bg); }
  .device { width: 100%; height: 100%; border-radius: 0; padding: 0; background: none; box-shadow: none; }
  .screen { border-radius: 0; }
  .device .screen { --safe-top: max(env(safe-area-inset-top), 10px); --safe-bot: env(safe-area-inset-bottom); }
  .device .screen::after, .fake-status, .notch { display: none; }
  body { position: fixed; inset: 0; }
}

/* ---------- Pantallas ---------- */
.scr { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s; }
.scr.active { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.scr:not(.active) { pointer-events: none; }
.scr:not(.active) .tab-page.active { visibility: hidden; transition: visibility 0s .45s; }
.scr-splash { background: var(--grad-head); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; z-index: 20; }
.splash-glow { position: absolute; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(138,177,196,.55), transparent 65%); animation: pulse 2.4s ease-in-out infinite; }
.splash-logo { position: relative; display: flex; align-items: baseline; gap: 3px; animation: rise .9s var(--ease) both; }
.splash-logo .lg-a { color: #fff; font-size: 40px; } .splash-logo .lg-b { color: #fff; font-size: 43px; }
.splash-tag { position: relative; margin-top: 10px; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; opacity: .8; animation: rise .9s .2s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%,100% { transform: scale(.9); opacity: .8; } 50% { transform: scale(1.08); opacity: 1; } }
.scr-onb { background: var(--grad-bg); display: flex; flex-direction: column; }
.onb-top { padding: calc(var(--safe-top) + 10px) 24px 0; display: flex; justify-content: space-between; align-items: center; }
.onb-skip { font-weight: 700; color: var(--ink-3); font-size: 15px; padding: 8px 4px; }
.onb-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.onb-track::-webkit-scrollbar { display: none; }
.onb-slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 32px; text-align: center; }
.onb-art { width: 250px; height: 250px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fff 0%, rgba(255,255,255,.6) 55%, rgba(255,255,255,0) 72%); display: grid; place-items: center; margin-bottom: 26px; }
.onb-slide h2 { font-size: 32px; line-height: 1.05; letter-spacing: -.035em; margin: 0 0 14px; font-weight: 800; }
.onb-slide h2 em { font-family: var(--serif); font-weight: 400; color: var(--plum); }
.onb-slide p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-3); max-width: 300px; }
.onb-foot { padding: 0 24px calc(var(--safe-bot) + 26px); display: flex; flex-direction: column; align-items: center; gap: 22px; }
.scr-auth { background: var(--bg); overflow-y: auto; }
.auth-head { position: relative; height: 290px; background: var(--grad-head); border-radius: 0 0 44px 44px; color: #fff; padding: calc(var(--safe-top) + 26px) 28px 0; overflow: hidden; }
.auth-head h1 { margin: 34px 0 6px; font-size: 34px; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.auth-head h1 em { font-family: var(--serif); font-weight: 400; }
.auth-head p { margin: 0; opacity: .85; font-size: 15px; }
.auth-art { position: absolute; right: -8px; bottom: 34px; opacity: .95; }
.auth-card { position: relative; margin: -56px 18px 24px; background: #fff; border-radius: 30px; box-shadow: var(--sh-2); padding: 24px 20px 22px; }
.auth-hint { display: flex; gap: 10px; align-items: flex-start; background: #EEF4F7; border-radius: 16px; padding: 12px 14px; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; margin-bottom: 18px; }
.auth-hint .ic { color: var(--plum); margin-top: 1px; }
.auth-alt { text-align: center; margin: 16px 0 4px; font-size: 14.5px; color: var(--ink-3); }
.auth-alt button { color: var(--plum); font-weight: 800; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-5); font-size: 12.5px; margin: 16px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- Formularios ---------- */
.field { margin-bottom: 14px; }
.field > label, .flabel { display: block; font-size: 12.5px; font-weight: 800; color: var(--ink-3); margin: 0 0 7px 4px; letter-spacing: .01em; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > .ic { position: absolute; left: 16px; color: var(--ink-5); pointer-events: none; }
.input, select.input, textarea.input { width: 100%; border: 1.5px solid var(--line); background: var(--bg-soft); border-radius: 16px; padding: 14px 16px; font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; appearance: none; -webkit-appearance: none; }
.input-wrap .input { padding-left: 46px; }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236A6A82' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
textarea.input { min-height: 88px; resize: vertical; line-height: 1.45; }
.input:focus { border-color: var(--rose); background: #fff; box-shadow: 0 0 0 4px rgba(138,177,196,.14); }
.input-eye { position: absolute; right: 8px; width: 38px; height: 38px; display: grid; place-items: center; color: var(--ink-4); border-radius: 12px; }
.check-row { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); margin: 6px 0 16px; cursor: pointer; position: relative; }
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.check-box { flex: none; width: 24px; height: 24px; border-radius: 8px; border: 2px solid #DDD6CA; display: grid; place-items: center; color: transparent; transition: all .2s; background: #fff; }
.check-row input:checked + .check-box { background: var(--plum); border-color: var(--plum); color: #fff; }
.check-row input:focus-visible + .check-box { outline: 3px solid rgba(138,177,196,.8); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form-grid .full { grid-column: 1 / -1; }
.form-err { color: var(--rose-s-d); background: var(--rose-pale); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; font-weight: 600; margin-bottom: 12px; display: none; }
.form-err.show { display: block; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 54px; padding: 0 24px; border-radius: 999px; font-weight: 800; font-size: 16px; letter-spacing: -.01em; transition: transform .15s var(--ease), box-shadow .2s, opacity .2s; user-select: none; }
.btn:active, .tap:active { transform: scale(.96); }
.btn-primary { background: var(--grad-pill); color: var(--on-pill); box-shadow: var(--sh-btn); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-soft { background: #E8EFF4; color: var(--indigo); }
.btn-line { background: #fff; color: var(--ink); box-shadow: 0 0 0 1.5px var(--line) inset; }
.btn-ghost { color: var(--plum); height: 44px; padding: 0 12px; }
.btn-danger { background: var(--rose-pale); color: var(--rose-s-d); }
.btn-block { width: 100%; }
.btn-sm { height: 40px; font-size: 14px; padding: 0 16px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.pill-cta { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--grad-pill); color: var(--on-pill); font-weight: 800; font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; box-shadow: var(--sh-btn); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: var(--sh-1); position: relative; transition: transform .15s; flex: none; }
.icon-btn:active { transform: scale(.92); }
.icon-btn.glass { background: rgba(255,255,255,.16); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.22) inset; backdrop-filter: blur(10px); }
.dot-badge { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--mustard); box-shadow: 0 0 0 2px #fff; }
.icon-btn.glass .dot-badge { box-shadow: 0 0 0 2px #6d4260; }
.count-badge { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--plum); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2.5px #fff; }

/* ---------- Main / tabs ---------- */
.scr-main { background: var(--bg); }
.tabs { position: absolute; inset: 0; }
.tab-page { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; background: var(--grad-bg); padding-bottom: calc(var(--tabbar-h) + var(--safe-bot) + 28px); opacity: 0; visibility: hidden; transform: translateY(10px) scale(.995); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s; scrollbar-width: none; overscroll-behavior: contain; }
.tab-page::-webkit-scrollbar { display: none; }
.tab-page.active { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.tabbar { position: absolute; z-index: 30; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar-h) + var(--safe-bot)); padding: 8px 10px var(--safe-bot); background: rgba(255,255,255,.96); backdrop-filter: blur(16px); border-radius: 28px 28px 0 0; box-shadow: 0 -10px 30px -14px rgba(25,35,51,.22); display: grid; grid-template-columns: repeat(5, 1fr); }
.tab-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #6B7684; font-size: 11px; min-width: 0; white-space: nowrap; letter-spacing: -.01em; font-weight: 700; position: relative; transition: color .25s; }
.tab-btn .tb-ic { width: 48px; height: 32px; border-radius: 16px; display: grid; place-items: center; transition: background .3s var(--ease), transform .3s var(--ease); }
.tab-btn.active { color: var(--indigo); }
.tab-btn.active .tb-ic { background: #E8EFF4; transform: translateY(-1px); }
.tab-btn:active .tb-ic { transform: scale(.9); }

/* ---------- Encabezados ---------- */
.hero { position: relative; background: var(--grad-head); color: #fff; padding: calc(var(--safe-top) + 12px) 20px 96px; border-radius: 0 0 38px 38px; overflow: hidden; }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 260px; height: 260px; right: -90px; top: -60px; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 65%); }
.hero::after { width: 200px; height: 200px; left: -70px; bottom: -80px; background: radial-gradient(circle, rgba(184,162,87,.22), transparent 65%); }
.hero > * { position: relative; z-index: 1; }
.hero-top { display: flex; align-items: center; justify-content: space-between; min-height: 46px; }
.logo-w .lg-a, .logo-w .lg-b { color: #fff; }
.logo-w { display: flex; align-items: baseline; gap: 3px; }
.hero-actions { display: flex; gap: 10px; }
.hero-loc { display: flex; align-items: center; gap: 6px; font-size: 13.5px; opacity: .88; margin-top: 18px; font-weight: 600; }
.hero-hello { font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin: 4px 0 0; }
.hero-hello em { font-family: var(--serif); font-weight: 400; font-size: 29px; }
.hero-key { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 12px; gap: 10px; }
.key-num { font-size: 64px; font-weight: 900; letter-spacing: -.05em; line-height: .9; }
.key-num small { font-size: 22px; font-weight: 700; opacity: .7; letter-spacing: -.02em; margin-left: 2px; }
.key-lbl { font-size: 13.5px; opacity: .85; margin-top: 6px; font-weight: 600; }
.key-side { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.plus-mini { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--plum); display: grid; place-items: center; box-shadow: 0 8px 18px -8px rgba(0,0,0,.4); transition: transform .15s; flex: none; }
.plus-mini:active { transform: scale(.9); }
.gold-pill { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 7px; border-radius: 999px; background: linear-gradient(135deg, #E9DDA8, #C9B46A 55%, #B8A257); color: #2B2710; font-weight: 800; font-size: 13.5px; box-shadow: 0 8px 18px -8px rgba(80,70,30,.6); white-space: nowrap; }
.gold-pill .gp-ic { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.55); display: grid; place-items: center; color: #8a5a17; }
.seg { display: flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.16); box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset; backdrop-filter: blur(10px); margin-top: 18px; position: relative; }
.seg button { flex: 1; height: 38px; border-radius: 999px; color: rgba(255,255,255,.92); font-weight: 700; font-size: 14px; position: relative; z-index: 1; transition: color .3s; }
.seg button.on { color: var(--plum); }
.seg .seg-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: #fff; box-shadow: 0 6px 14px -6px rgba(0,0,0,.35); transition: transform .35s var(--ease), width .35s var(--ease); }
.seg.light { background: #F2ECE1; box-shadow: none; backdrop-filter: none; margin-top: 0; }
.seg.light button { color: var(--ink-3); }
.seg.light button.on { color: var(--plum); }
.page-head { padding: calc(var(--safe-top) + 14px) 20px 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.page-title { font-size: 30px; font-weight: 800; letter-spacing: -.035em; margin: 0; line-height: 1.05; }
.page-title em { font-family: var(--serif); font-weight: 400; color: var(--plum); font-size: 33px; }
.page-sub { color: var(--ink-4); font-size: 14px; margin: 4px 0 0; }

/* ---------- Tarjetas ---------- */
.float-wrap { margin: -74px 16px 0; position: relative; z-index: 2; }
.card { background: #fff; border-radius: var(--r-card); box-shadow: var(--sh-1); }
.card-pad { padding: 18px; }
.sec { padding: 0 16px; margin-top: 26px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 12px; }
.sec-title { font-size: 19px; font-weight: 800; letter-spacing: -.025em; margin: 0; }
.sec-title em { font-family: var(--serif); font-weight: 400; color: var(--plum); font-size: 21px; }
.sec-link { font-size: 13.5px; font-weight: 800; color: var(--plum); display: inline-flex; align-items: center; gap: 2px; padding: 6px 0 6px 8px; }
.muted { color: var(--ink-4); }
.row { display: flex; align-items: center; }
.gap8 { gap: 8px; } .gap12 { gap: 12px; }
.grow { flex: 1; min-width: 0; }
.well { display: flex; gap: 16px; align-items: center; }
.well-stats { flex: 1; display: grid; gap: 10px; min-width: 0; }
.wstat { display: flex; gap: 10px; align-items: center; min-width: 0; }
.wstat .wi { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.wstat > div { min-width: 0; }
.wstat b { display: block; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wstat span { display: block; font-size: 12px; color: var(--ink-4); }
.week-bars { display: flex; align-items: flex-end; gap: 8px; height: 96px; padding: 4px 2px 0; flex: 1; }
.wb { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.wb i { display: block; width: 100%; max-width: 22px; border-radius: 8px; background: linear-gradient(180deg, var(--rose), var(--plum)); transform-origin: bottom; animation: grow .8s var(--ease) both; }
.wb i.empty { background: #F2ECE1; }
.wb span { font-size: 11px; font-weight: 700; color: var(--ink-5); }
.wb.today span { color: var(--plum); }
@keyframes grow { from { transform: scaleY(0); } }
.search-pill { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 6px 0 20px; background: #fff; border-radius: 999px; box-shadow: var(--sh-1); color: var(--ink-4); font-size: 15px; width: 100%; text-align: left; }
.search-pill input { flex: 1; border: 0; outline: 0; background: none; font-size: 16px; color: var(--ink); min-width: 0; height: 100%; }
.search-pill input::placeholder { color: var(--ink-5); }
.search-pill .sp-t { flex: 1; }
.search-go { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-pill); color: var(--on-pill); display: grid; place-items: center; flex: none; box-shadow: var(--sh-btn); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.qbtn { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--ink-2); text-align: center; line-height: 1.2; }
.qbtn .qc { width: 62px; height: 62px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); display: grid; place-items: center; transition: transform .15s var(--ease); position: relative; }
.qbtn .qc::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--tint, #E8EFF4); z-index: 0; }
.qbtn .qc .ic { position: relative; z-index: 1; }
.qbtn:active .qc { transform: scale(.9); }

/* Carruseles */
.hscroll { display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 16px 18px; scroll-padding: 0 16px; overscroll-behavior-x: contain; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: none; }
.hscroll.center > * { scroll-snap-align: center; }
.hscroll.free { scroll-snap-type: none; }
.hscroll.dragging { scroll-snap-type: none; cursor: grabbing; }
.hscroll.dragging * { pointer-events: none; }
.snap-item { will-change: transform; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: -4px; }
.dots i { width: 7px; height: 7px; border-radius: 4px; background: #CBD6DD; transition: width .35s var(--ease), background .35s; }
.dots i.on { width: 22px; background: var(--plum); }
.promo-card { width: 300px; border-radius: 26px; background: #fff; box-shadow: var(--sh-1); overflow: hidden; position: relative; text-align: left; }
.promo-card .strip { height: 8px; }
.promo-card .pc-body { display: flex; padding: 16px 14px 18px 18px; gap: 6px; }
.promo-card .pc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pc-tag { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); }
.promo-card h3 { margin: 6px 0 6px; font-size: 19px; line-height: 1.12; letter-spacing: -.03em; font-weight: 800; }
.promo-card p { margin: 0 0 14px; font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.promo-card .pill-cta { align-self: flex-start; margin-top: auto; }
.promo-card .pc-art { width: 100px; flex: none; display: grid; place-items: center; }
.stories { gap: 12px; padding-top: 4px; }
.story { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 74px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.story .ring { width: 72px; height: 72px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, var(--olive), var(--blue), var(--indigo), var(--rose-s), var(--olive)); transition: transform .15s; }
.story.seen .ring { background: #DCD4C8; }
.story .ring > div { width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; overflow: hidden; display: grid; place-items: center; }
.story:active .ring { transform: scale(.93); }
.tv-badge { display: inline-flex; align-items: center; gap: 4px; background: var(--ink); color: #fff; border-radius: 8px; font-size: 11px; font-weight: 800; padding: 3px 7px; letter-spacing: .04em; margin-left: 8px; vertical-align: 3px; font-family: var(--sans); font-style: normal; }
.tip { position: relative; overflow: hidden; padding: 20px; background: linear-gradient(135deg, #FFFFFF 0%, #FBF9ED 100%); }
.tip .q { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.25; color: var(--ink); margin: 8px 0 0; padding-right: 70px; position: relative; z-index: 1; }
.tip .tip-art { position: absolute; right: -14px; bottom: -14px; opacity: .9; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--plum); display: flex; align-items: center; gap: 6px; }
.appt { display: flex; gap: 14px; align-items: center; padding: 14px; width: 100%; text-align: left; }
.date-block { width: 58px; height: 64px; border-radius: 18px; background: var(--grad); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.date-block b { font-size: 24px; line-height: 1; font-weight: 900; letter-spacing: -.04em; }
.date-block span { font-size: 11px; text-transform: uppercase; font-weight: 800; letter-spacing: .08em; opacity: .9; margin-top: 2px; }
.date-block.past { background: #EDE7DD; color: var(--ink-3); }
.appt h4 { margin: 0; font-size: 15.5px; letter-spacing: -.015em; }
.appt p { margin: 3px 0 0; font-size: 13px; color: var(--ink-4); display: flex; align-items: center; gap: 5px; }
.status { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.st-confirmada { background: #E9EFE8; color: #3C4E3F; }
.st-pendiente { background: #F5F0DC; color: #6E6028; }
.st-cancelada { background: #F2EDE6; color: var(--ink-4); }
.st-completada { background: #E8EFF5; color: #3E5D75; }

/* ---------- Explorar ---------- */
.hero-banner { width: 100%; height: 178px; border-radius: 28px; color: #fff; position: relative; overflow: hidden; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: var(--sh-2); text-align: left; }
.hscroll.heroes > * { width: 326px; }
.hero-banner h3 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.03em; line-height: 1.1; max-width: 190px; font-weight: 800; position: relative; }
.hero-banner p { margin: 0 0 12px; font-size: 13px; opacity: .92; max-width: 190px; position: relative; }
.hero-banner .hb-art { position: absolute; right: -4px; top: 12px; }
.hero-banner .pill-white { align-self: flex-start; background: #fff; color: var(--plum); height: 36px; padding: 0 14px; border-radius: 999px; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; position: relative; }
.cats { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 6px 16px 14px; }
.cats::-webkit-scrollbar { display: none; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--ink-2); flex: none; width: 64px; }
.cat .cc { width: 58px; height: 58px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); display: grid; place-items: center; transition: transform .15s, box-shadow .2s, background .2s; }
.cat.on .cc { background: var(--ink); box-shadow: 0 10px 20px -10px rgba(25,35,51,.6); }
.cat.on .cc .ic { color: #fff !important; }
.cat:active .cc { transform: scale(.9); }
.fav-card { width: 104px; height: 114px; border-radius: 22px; background: #fff; box-shadow: var(--sh-1); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 8px; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--ink-2); line-height: 1.2; }
.fav-card:active { transform: scale(.95); }
.fav-add { background: rgba(255,255,255,.6); box-shadow: 0 0 0 1.5px dashed #D9CFC2 inset; color: var(--ink-4); }
.logo-mono { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 16px; letter-spacing: -.03em; flex: none; position: relative; overflow: hidden; }
.logo-mono::after { content: ''; position: absolute; width: 70%; height: 70%; border-radius: 50%; right: -20%; top: -20%; background: rgba(255,255,255,.22); }
.logo-mono.lg { width: 76px; height: 76px; font-size: 26px; box-shadow: 0 0 0 5px #fff, var(--sh-1); margin: 0 auto; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 16px 6px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 38px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ink-2); background: transparent; box-shadow: 0 0 0 1.5px #D3DCE2 inset; transition: all .2s var(--ease); white-space: nowrap; }
.chip.on { background: var(--plum); color: #fff; box-shadow: 0 8px 16px -8px rgba(79,81,120,.7); }
.chip:active { transform: scale(.95); }
.feed { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 16px 0; }
.fcard { border-radius: 22px; overflow: hidden; background: #fff; box-shadow: var(--sh-1); display: flex; flex-direction: column; text-align: left; animation: fadeUp .45s var(--ease) both; }
.fcard:active { transform: scale(.97); }
.fcard .fc-img { height: 112px; display: grid; place-items: center; position: relative; }
.fcard .fc-kind { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.92); color: var(--ink-2); font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 8px; padding: 4px 7px; }
.fcard .fc-off { position: absolute; top: 10px; right: 10px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 900; border-radius: 10px; padding: 4px 8px; }
.fcard .fc-cap { padding: 11px 12px 12px; color: #fff; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.fcard .fc-cap b { font-size: 14px; line-height: 1.2; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fcard .fc-cap span { font-size: 11.5px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
.search-results-note { padding: 4px 20px 0; font-size: 13px; color: var(--ink-4); }

/* ---------- Mi salud ---------- */
.health-hero { padding-bottom: 100px; }
.hh-profile { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.avatar { width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, #FBF9ED, #E6DFD4 45%, #8AB1C4); color: var(--ink); display: grid; place-items: center; font-weight: 900; font-size: 20px; letter-spacing: -.03em; flex: none; box-shadow: 0 0 0 3px rgba(255,255,255,.55); }
.avatar.xl { width: 88px; height: 88px; font-size: 30px; box-shadow: 0 0 0 4px rgba(255,255,255,.5), 0 14px 30px -12px rgba(0,0,0,.45); }
.hh-profile h2 { margin: 0; font-size: 21px; letter-spacing: -.03em; }
.hh-tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.htag { font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.18); box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset; }
.trio { display: flex; align-items: center; justify-content: center; gap: 26px; padding: 18px 10px 16px; }
.trio .tb { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); width: 84px; text-align: center; }
.trio .tb .c { width: 58px; height: 58px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; color: var(--plum); box-shadow: 0 0 0 1.5px var(--line) inset; transition: transform .15s; }
.trio .tb.big .c { width: 84px; height: 84px; background: var(--grad-pill); color: var(--on-pill); box-shadow: 0 16px 30px -12px rgba(63,106,128,.7), 0 0 0 6px #E8EFF4; }
.trio .tb:active .c { transform: scale(.92); }
.pill-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px 16px; }
.plink { height: 50px; border-radius: 999px; background: var(--grad-pill); color: var(--on-pill); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 18px; box-shadow: var(--sh-btn); }
.plink.alt { background: linear-gradient(90deg, #5E6390, #4F5178); color: #fff; box-shadow: 0 10px 22px -10px rgba(79,81,120,.65); }
.plink.alt .pc { background: rgba(255,255,255,.18); }
.plink .pc { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.5); display: grid; place-items: center; }
.rings { padding: 14px 0 12px; gap: 0; }
.rings > .snap-item { width: 206px; display: flex; justify-content: center; }
.ring-card { width: 196px; padding: 18px 12px 16px; border-radius: 28px; background: #fff; box-shadow: var(--sh-1); display: flex; flex-direction: column; align-items: center; text-align: center; }
.ring-card h4 { margin: 10px 0 2px; font-size: 15px; letter-spacing: -.015em; }
.ring-card p { margin: 0; font-size: 12px; color: var(--ink-4); line-height: 1.35; }
.ring-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin-top: 8px; font-size: 11px; color: var(--ink-3); font-weight: 600; }
.ring-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
.ringsvg { display: block; }
.ringsvg .rg-fg { transition: stroke-dashoffset 1.2s var(--ease), stroke-dasharray 1.2s var(--ease); }
.ring-wrap { position: relative; display: grid; place-items: center; }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-center b { font-size: 32px; font-weight: 900; letter-spacing: -.05em; line-height: 1; }
.ring-center span { font-size: 11px; color: var(--ink-4); font-weight: 700; margin-top: 3px; }
.chart-card { padding: 16px 14px 12px; }
.chart-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 4px; padding: 0 4px; }
.chart-top h4 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.chart-top p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-4); }
.trend { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; padding: 5px 9px; border-radius: 999px; background: #E9EFE8; color: #3C4E3F; white-space: nowrap; }
.trend.bad { background: var(--rose-pale); color: var(--rose-s-d); }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .ax { font-size: 10px; fill: var(--ink-5); font-weight: 600; font-family: var(--sans); }
.chart .ln { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 1.4s .1s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart .bar { transform-box: fill-box; transform-origin: bottom; animation: grow .7s var(--ease) both; }
.sym-chips { padding: 10px 14px 2px; margin: 0 -14px; }
.sym-chips .chip { height: 32px; font-size: 12.5px; padding: 0 12px; }
.month-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px 0 14px; border-radius: 999px; background: #fff; box-shadow: var(--sh-1); font-weight: 800; font-size: 13.5px; color: var(--ink-2); text-transform: capitalize; }
.month-btn .ic { transition: transform .3s; }
.month-btn.open .ic { transform: rotate(180deg); }
.months { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 16px 12px; animation: fadeUp .3s var(--ease); }
.months::-webkit-scrollbar { display: none; }
.months .chip { text-transform: capitalize; }
.daychips { gap: 8px; padding: 4px 16px 14px; }
.dchip { width: 46px; height: 62px; border-radius: 23px; background: #fff; box-shadow: var(--sh-1); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; position: relative; flex: none; transition: all .2s; }
.dchip small { font-size: 10px; font-weight: 800; color: var(--ink-5); text-transform: uppercase; }
.dchip b { font-size: 16px; font-weight: 800; }
.dchip.has::after { content: ''; position: absolute; bottom: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--rose); }
.dchip.on { background: var(--plum); color: #fff; }
.dchip.on small { color: rgba(255,255,255,.8); }
.dchip.on::after { background: #fff; }
.dchip.off { opacity: .5; box-shadow: none; background: rgba(255,255,255,.55); }
.log-card { padding: 14px 16px; display: block; width: 100%; text-align: left; margin-bottom: 10px; animation: fadeUp .4s var(--ease) both; }
.log-card:active { transform: scale(.98); }
.log-top { display: flex; align-items: center; gap: 12px; }
.log-idx { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 15px; flex: none; }
.log-top h4 { margin: 0; font-size: 15px; }
.log-top p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-4); }
.sym-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.stag { font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: #F4F1E8; color: var(--ink-3); display: inline-flex; align-items: center; gap: 5px; }
.stag i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 20px 30px; color: var(--ink-4); }
.empty .e-ic { width: 76px; height: 76px; border-radius: 50%; background: #F2ECE1; display: grid; place-items: center; color: #BDB3A5; margin-bottom: 14px; }
.empty h4 { margin: 0; color: var(--ink-4); font-size: 15px; }
.empty p { margin: 6px 0 0; font-size: 13px; max-width: 250px; line-height: 1.45; }
.empty .btn { margin-top: 16px; }

/* ---------- Cuenta ---------- */
.acc-hero { text-align: center; padding-bottom: 96px; }
.acc-hero .avatar { margin: 14px auto 10px; }
.acc-hero h2 { margin: 0; font-size: 23px; letter-spacing: -.03em; }
.acc-meta { font-size: 13px; opacity: .88; margin-top: 6px; display: flex; justify-content: center; gap: 12px; font-weight: 600; flex-wrap: wrap; }
.acc-meta span { display: inline-flex; align-items: center; gap: 5px; }
.acc-trio { display: flex; justify-content: space-around; padding: 18px 8px; }
.acc-trio .tb { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); position: relative; }
.acc-trio .c { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--plum); box-shadow: 0 0 0 1.5px var(--line) inset; position: relative; transition: transform .15s; }
.acc-trio .tb:active .c { transform: scale(.92); }
.menu { display: grid; gap: 8px; }
.mrow { display: flex; align-items: center; gap: 14px; min-height: 62px; padding: 10px 14px 10px 12px; background: #fff; border-radius: 22px; box-shadow: 0 6px 20px -12px rgba(25,35,51,.18); text-align: left; width: 100%; transition: transform .15s; }
.mrow:active { transform: scale(.98); }
.mrow .mi { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: #E8EFF4; color: var(--plum); flex: none; }
.mrow .mt { flex: 1; min-width: 0; }
.mrow .mt b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.mrow .mt span { display: block; font-size: 12.5px; color: var(--ink-4); margin-top: 1px; }
.mrow .chev { color: #A3ADB7; }
.mrow .mcount { background: var(--plum); color: #fff; font-size: 11.5px; font-weight: 800; border-radius: 999px; min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 6px; }
.logout { margin: 22px 16px 0; width: calc(100% - 32px); }
.version { text-align: center; color: var(--ink-4); font-size: 12px; margin: 16px 0 0; }
.toggle { position: relative; width: 50px; height: 30px; flex: none; }
.toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.toggle span { position: absolute; inset: 0; border-radius: 15px; background: #DDD5CA; transition: background .25s; }
.toggle span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .3s var(--ease); }
.toggle input:checked + span { background: var(--plum); }
.toggle input:checked + span::after { transform: translateX(20px); }
.toggle input:focus-visible + span { outline: 3px solid rgba(138,177,196,.8); }

/* ---------- Vistas empujadas ---------- */
#views { position: absolute; inset: 0; z-index: 40; pointer-events: none; }
.view { position: absolute; inset: 0; background: var(--grad-bg); pointer-events: auto; transform: translateX(100%); transition: transform .42s var(--ease); display: flex; flex-direction: column; box-shadow: -20px 0 40px -20px rgba(25,35,51,.3); }
.view.in { transform: none; }
.view.under { transform: translateX(-22%); }
.view-bar { display: flex; align-items: center; gap: 10px; padding: calc(var(--safe-top) + 8px) 14px 10px; flex: none; }
.view-bar h2 { flex: 1; margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.025em; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.view-bar .spacer { width: 44px; flex: none; }
.view-body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 6px 16px calc(var(--safe-bot) + 30px); scrollbar-width: none; overscroll-behavior: contain; }
.view-body::-webkit-scrollbar { display: none; }
.view-body.flush { padding-left: 0; padding-right: 0; padding-top: 0; }
.view.dark-bar .view-bar { position: absolute; left: 0; right: 0; top: 0; z-index: 3; }
.view.dark-bar .view-bar h2 { opacity: 0; }

/* ---------- Bottom sheets ---------- */
#sheets { position: absolute; inset: 0; z-index: 60; pointer-events: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(25,35,51,.42); opacity: 0; transition: opacity .35s; pointer-events: auto; }
.sheet-bg.in { opacity: 1; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: calc(100% - var(--safe-top) - 16px); background: var(--bg-soft); border-radius: 32px 32px 0 0; box-shadow: 0 -20px 50px -20px rgba(0,0,0,.35); transform: translateY(105%); transition: transform .45s var(--ease); pointer-events: auto; display: flex; flex-direction: column; }
.sheet.in { transform: none; }
.sheet.dragging { transition: none; }
.sheet.tall { height: calc(100% - var(--safe-top) - 16px); }
.sheet-grab { padding: 10px 0 4px; display: flex; justify-content: center; flex: none; touch-action: none; cursor: grab; }
.sheet-grab i { width: 44px; height: 5px; border-radius: 3px; background: #D6CEC2; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 4px 18px 10px; flex: none; }
.sheet-head h3 { flex: 1; margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.sheet-head h3 em { font-family: var(--serif); font-weight: 400; color: var(--plum); font-size: 23px; }
.sheet-close { width: 38px; height: 38px; border-radius: 50%; background: #F2ECE1; display: grid; place-items: center; color: var(--ink-3); flex: none; }
.sheet-body { overflow-y: auto; padding: 4px 18px 18px; flex: 1; overscroll-behavior: contain; scrollbar-width: none; }
.sheet-body::-webkit-scrollbar { display: none; }
.sheet-foot { flex: none; padding: 12px 18px calc(var(--safe-bot) + 16px); display: flex; gap: 10px; box-shadow: 0 -12px 20px -16px rgba(25,35,51,.25); }
.sheet-foot .btn { flex: 1; }

/* Registro de síntomas */
.sym-row { background: #fff; border-radius: 20px; padding: 12px; margin-bottom: 10px; box-shadow: 0 4px 14px -10px rgba(25,35,51,.25); }
.sym-row .sr-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sym-row .sr-ic { width: 34px; height: 34px; border-radius: 12px; background: #E8EFF4; color: var(--plum); display: grid; place-items: center; flex: none; }
.sym-row .sr-top b { font-size: 14.5px; flex: 1; }
.lvl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.lvl button { height: 36px; border-radius: 12px; background: var(--bg); font-size: 12.5px; font-weight: 700; color: var(--ink-3); transition: all .2s var(--ease); }
.lvl button.on { color: #fff; box-shadow: 0 6px 12px -6px rgba(0,0,0,.35); transform: translateY(-1px); }
.lvl button.on.l-ninguno { color: #22321F; }
.lvl button.on.l-leve, .lvl button.on.l-moderado { color: #192333; }
.log-date { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 18px; padding: 8px 8px 8px 14px; margin-bottom: 12px; box-shadow: 0 4px 14px -10px rgba(25,35,51,.25); }
.log-date b { font-size: 14px; flex: 1; }
.log-date .input { border: 0; background: var(--bg); padding: 10px 12px; font-size: 15px; width: auto; }
.live-idx { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: linear-gradient(135deg, #E8EFF4, #FBF9ED); margin-bottom: 12px; }
.live-idx b { font-size: 28px; font-weight: 900; letter-spacing: -.04em; color: var(--plum); min-width: 44px; }
.live-idx span { font-size: 13px; color: var(--ink-3); line-height: 1.35; }

/* Cuestionarios */
.qz-card { display: flex; gap: 14px; align-items: center; padding: 16px; margin-bottom: 12px; width: 100%; text-align: left; }
.qz-card:active { transform: scale(.98); }
.qz-card h4 { margin: 0 0 3px; font-size: 15.5px; letter-spacing: -.015em; line-height: 1.2; }
.qz-card p { margin: 0; font-size: 12.5px; color: var(--ink-4); }
.qz-prog { height: 8px; border-radius: 4px; background: #F2ECE1; overflow: hidden; }
.qz-prog i { display: block; height: 100%; border-radius: 4px; background: var(--grad-pill); transition: width .5s var(--ease); }
.qz-steps { display: flex; gap: 6px; margin: 4px 0 16px; }
.qz-steps button { flex: 1; height: 6px; border-radius: 3px; background: #E6DED2; }
.qz-steps button.done { background: var(--sage); }
.qz-steps button.cur { background: var(--plum); }
.qz-block-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.qz-num { width: 42px; height: 42px; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 18px; flex: none; }
.qz-block-head h3 { margin: 0; font-size: 18px; letter-spacing: -.025em; line-height: 1.2; }
.qz-block-head p { margin: 4px 0 0; font-size: 13px; color: var(--ink-4); line-height: 1.4; }
.q-item { background: #fff; border-radius: 20px; padding: 14px; margin-bottom: 10px; box-shadow: 0 4px 14px -10px rgba(25,35,51,.25); transition: box-shadow .2s; }
.q-item.answered { box-shadow: 0 0 0 1.5px #CFDEE7 inset, 0 4px 14px -10px rgba(25,35,51,.25); }
.q-text { font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.q-hint { display: block; font-size: 12.5px; color: var(--ink-4); font-weight: 500; margin-top: 4px; }
.q-top { display: flex; gap: 10px; align-items: flex-start; }
.q-top .sr-ic { width: 34px; height: 34px; border-radius: 12px; background: #E8EFF4; color: var(--plum); display: grid; place-items: center; flex: none; }
.yn { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.yn button { height: 42px; border-radius: 14px; background: var(--bg); font-weight: 800; font-size: 14px; color: var(--ink-3); display: flex; align-items: center; justify-content: center; gap: 6px; transition: all .2s var(--ease); }
.yn button.on.si { background: var(--plum); color: #fff; }
.yn button.on.no { background: var(--ink-2); color: #fff; }
.q-extra { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); display: grid; gap: 10px; animation: fadeUp .3s var(--ease); }
.q-extra .flabel { margin: 0 0 6px 2px; }
.opt-row { display: flex; flex-wrap: wrap; gap: 6px; }
.opt-row button { height: 34px; padding: 0 12px; border-radius: 999px; background: var(--bg); font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.opt-row button.on { background: var(--ink); color: #fff; }
.note { display: flex; gap: 10px; align-items: flex-start; background: #F7F2DE; color: #5E5222; border-radius: 18px; padding: 14px; font-size: 13.5px; line-height: 1.45; margin: 4px 0 12px; animation: fadeUp .35s var(--ease); }
.note .ic { color: #8F7B34; margin-top: 1px; }
.note.rose { background: var(--rose-pale); color: #8E4A54; }
.note.rose .ic { color: var(--rose-s-d); }
.note.sage { background: #E9EFE8; color: #3E583F; }
.note.sage .ic { color: #3E583F; }
.note.blue { background: #E8EFF4; color: #36546A; }
.note.blue .ic { color: #3F6A80; }
.qz-nav { display: flex; gap: 10px; margin-top: 16px; }
.qz-nav .btn { flex: 1; }
.result-hero { text-align: center; padding: 22px 18px 18px; display: flex; flex-direction: column; align-items: center; }
.result-hero h3 { margin: 12px 0 4px; font-size: 22px; letter-spacing: -.03em; }
.result-hero p { margin: 0; color: var(--ink-4); font-size: 14px; }
.blk-res { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: #fff; margin-bottom: 8px; box-shadow: 0 4px 14px -10px rgba(25,35,51,.25); }
.blk-res .n { width: 32px; height: 32px; border-radius: 11px; background: #F4F1E8; display: grid; place-items: center; font-weight: 900; font-size: 14px; color: var(--ink-2); flex: none; }
.blk-res b { font-size: 13.5px; display: block; line-height: 1.25; }
.blk-res span { font-size: 12px; color: var(--ink-4); }

/* Perfil de salud */
.hp-sec { margin-bottom: 12px; overflow: hidden; }
.hp-head { display: flex; align-items: center; gap: 12px; padding: 14px; width: 100%; text-align: left; }
.hp-head .hi { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; flex: none; color: #fff; }
.hp-head .ht { flex: 1; min-width: 0; }
.hp-head b { display: block; font-size: 15.5px; letter-spacing: -.015em; }
.hp-head .ht span { display: block; font-size: 12px; color: var(--ink-4); margin-top: 1px; }
.hp-head .chevD { transition: transform .3s var(--ease); color: var(--ink-5); }
.hp-sec.open .hp-head .chevD { transform: rotate(180deg); }
.hp-body { display: none; padding: 0 16px 16px; }
.hp-sec.open .hp-body { display: block; animation: fadeUp .3s var(--ease); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.kv > div { min-width: 0; }
.kv .full { grid-column: 1 / -1; }
.kv small { display: block; font-size: 11.5px; color: var(--ink-4); font-weight: 700; margin-bottom: 2px; }
.kv span { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.kv span.mono { font-size: 12.5px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
#remTime { width: 128px; flex: none; padding-right: 8px; }
.kv span.none { color: #98A0AA; font-weight: 500; }
.hp-edit { margin-top: 14px; }
.mini-list { display: grid; gap: 8px; }
.mini-item { display: flex; gap: 12px; align-items: flex-start; background: var(--bg-soft); border-radius: 16px; padding: 12px; }
.mini-item .grow b { display: block; font-size: 14px; }
.mini-item .grow span { display: block; font-size: 12.5px; color: var(--ink-4); margin-top: 2px; line-height: 1.4; }
.mini-del { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-4); flex: none; background: #fff; }
.imc-box { padding: 14px; border-radius: 20px; background: var(--bg-soft); margin-bottom: 12px; }
.imc-box .v { font-size: 30px; font-weight: 900; letter-spacing: -.04em; }
.imc-scale { height: 8px; border-radius: 4px; background: linear-gradient(90deg, #8AB1C4 0 18%, #A3B7A2 18% 45%, #B8A257 45% 68%, #8AB1C4 68% 85%, #4F5178 85%); position: relative; margin-top: 10px; }
.imc-scale i { position: absolute; top: -4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); transform: translateX(-50%); transition: left 1s var(--ease); }
.vit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vit { background: var(--bg-soft); border-radius: 16px; padding: 10px; }
.vit small { display: block; font-size: 10.5px; color: var(--ink-4); font-weight: 700; }
.vit b { font-size: 16px; letter-spacing: -.02em; }
.vit b em { font-style: normal; font-size: 11px; color: var(--ink-4); font-weight: 600; }
.imc-live { font-size: 13px; font-weight: 700; color: var(--ink-3); background: var(--bg); border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; }

/* Detalle proveedor / promoción */
.pd-head { text-align: center; padding: 6px 0 12px; }
.pd-head h2 { margin: 16px 0 4px; font-size: 22px; letter-spacing: -.03em; }
.pd-head .pd-desc { font-size: 14px; color: var(--ink-3); line-height: 1.5; margin: 10px 6px 0; }
.pd-meta { display: flex; justify-content: center; gap: 10px; font-size: 13px; color: var(--ink-4); font-weight: 600; flex-wrap: wrap; }
.pd-meta span { display: inline-flex; align-items: center; gap: 4px; }
.star { color: var(--mustard); }
.svc { display: flex; flex-wrap: wrap; gap: 6px; }
.svc span { background: #fff; border-radius: 999px; padding: 7px 12px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); box-shadow: 0 3px 10px -6px rgba(25,35,51,.3); }
.blk-t { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); margin: 18px 4px 10px; }
.map { height: 128px; border-radius: 20px; position: relative; overflow: hidden; background: #EDE6DA; }
.map svg.mapbg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .mpin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); color: var(--plum); filter: drop-shadow(0 6px 6px rgba(0,0,0,.2)); }
.loc-row { display: flex; gap: 10px; align-items: center; padding: 12px; background: #fff; border-radius: 16px; margin-top: 8px; box-shadow: 0 3px 10px -6px rgba(25,35,51,.3); }
.loc-row .grow b { font-size: 13.5px; display: block; }
.loc-row .grow span { font-size: 12px; color: var(--ink-4); }
.loc-row > .ic { color: var(--plum); }
.mini-promo { display: flex; align-items: center; gap: 12px; padding: 12px; background: #fff; border-radius: 18px; margin-top: 8px; width: 100%; text-align: left; box-shadow: 0 3px 10px -6px rgba(25,35,51,.3); }
.mini-promo .off { width: 52px; height: 52px; border-radius: 16px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 15px; flex: none; letter-spacing: -.03em; }
.mini-promo .grow b { display: block; font-size: 14px; line-height: 1.25; }
.mini-promo .grow span { display: block; font-size: 12px; color: var(--ink-4); margin-top: 2px; }
.coupon { position: relative; background: #fff; border-radius: 26px; box-shadow: var(--sh-1); overflow: hidden; }
.coupon-top { padding: 20px; background: var(--grad-head); color: #fff; position: relative; overflow: hidden; }
.coupon-top .off { font-size: 52px; font-weight: 900; letter-spacing: -.05em; line-height: 1; }
.coupon-top .off small { font-size: 18px; font-weight: 800; }
.coupon-top h3 { margin: 8px 0 4px; font-size: 19px; letter-spacing: -.02em; max-width: 220px; }
.coupon-top p { margin: 0; font-size: 13px; opacity: .88; }
.coupon-top .cp-art { position: absolute; right: -6px; top: 8px; opacity: .95; }
.coupon-cut { position: relative; height: 0; border-top: 2px dashed #E4DCCF; margin: 0 22px; }
.coupon-cut::before, .coupon-cut::after { content: ''; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-soft); }
.coupon-cut::before { left: -34px; } .coupon-cut::after { right: -34px; }
.coupon-code { padding: 18px 20px 20px; display: flex; align-items: center; gap: 12px; }
.code { flex: 1; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 21px; font-weight: 800; letter-spacing: .12em; background: var(--bg); border-radius: 14px; padding: 12px; text-align: center; color: var(--ink); border: 2px dashed #DCCFC0; }
.cond { font-size: 13.5px; color: var(--ink-3); line-height: 1.55; }
.cup-card { display: flex; margin-bottom: 12px; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--sh-1); animation: fadeUp .4s var(--ease) both; }
.cup-card .l { width: 86px; background: var(--grad); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 900; font-size: 24px; letter-spacing: -.04em; position: relative; flex: none; }
.cup-card .l small { font-size: 10px; letter-spacing: .1em; font-weight: 800; }
.cup-card.used .l { background: #BDB4A6; }
.cup-card .r { flex: 1; padding: 12px 14px; min-width: 0; }
.cup-card .r b { display: block; font-size: 14px; line-height: 1.25; }
.cup-card .r span { display: block; font-size: 12px; color: var(--ink-4); margin-top: 2px; }
.cup-card .r .codes { font-family: ui-monospace, Menlo, monospace; font-weight: 800; letter-spacing: .08em; color: var(--plum); font-size: 14px; margin-top: 6px; }
.cup-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.cup-actions button { height: 30px; padding: 0 10px; border-radius: 999px; background: var(--bg); font-size: 12px; font-weight: 800; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }

/* Reserva */
.pick-list { display: grid; gap: 8px; }
.pick { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 18px; background: #fff; text-align: left; width: 100%; box-shadow: 0 3px 10px -6px rgba(25,35,51,.3); transition: box-shadow .2s; }
.pick.on { box-shadow: 0 0 0 2px var(--plum) inset, 0 6px 16px -8px rgba(79,81,120,.5); }
.pick .logo-mono { width: 40px; height: 40px; font-size: 14px; }
.pick .grow b { display: block; font-size: 14px; }
.pick .grow span { display: block; font-size: 12px; color: var(--ink-4); }
.pick .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #DDD6CA; display: grid; place-items: center; color: transparent; flex: none; }
.pick.on .radio { border-color: var(--plum); background: var(--plum); color: #fff; }
.dates { gap: 8px; padding: 2px 18px 10px; margin: 0 -18px; scroll-snap-type: none; }
.times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.times button { height: 42px; border-radius: 14px; background: #fff; font-weight: 800; font-size: 13.5px; color: var(--ink-2); box-shadow: 0 3px 10px -6px rgba(25,35,51,.3); }
.times button.on { background: var(--plum); color: #fff; }
.times button[disabled] { opacity: .4; text-decoration: line-through; box-shadow: none; background: #F2ECE1; }
.book-sum { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 20px; background: linear-gradient(135deg, #E8EFF4, #FBF9ED); margin-top: 14px; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.book-sum .ic { color: var(--plum); }

/* Buzón */
.msg { display: flex; gap: 12px; padding: 14px; margin-bottom: 10px; width: 100%; text-align: left; animation: fadeUp .4s var(--ease) both; }
.msg .mi { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.msg .grow b { display: block; font-size: 14.5px; }
.msg .grow p { margin: 3px 0 0; font-size: 13px; color: var(--ink-4); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.msg .when { font-size: 11.5px; color: var(--ink-4); white-space: nowrap; }
.msg.unread b::after { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rose-s); margin-left: 6px; vertical-align: 2px; }

/* Mis datos / legales */
.steps { display: grid; gap: 8px; margin-bottom: 18px; }
.step { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 12px 14px; box-shadow: 0 3px 10px -6px rgba(25,35,51,.3); width: 100%; text-align: left; }
.step .ck { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #F2ECE1; color: #98A0AA; }
.step.done .ck { background: #6F8D70; color: #fff; }
.step b { font-size: 14px; flex: 1; }
.step span { font-size: 12px; color: var(--ink-4); font-weight: 700; }
.legal { font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.legal h3 { font-size: 16px; margin: 20px 0 6px; letter-spacing: -.01em; color: var(--ink); }
.legal p { margin: 0 0 10px; }
.legal .upd { font-size: 12.5px; color: var(--ink-4); }
.set-row { display: flex; align-items: center; gap: 14px; padding: 14px; background: #fff; border-radius: 20px; margin-bottom: 8px; box-shadow: 0 6px 20px -12px rgba(25,35,51,.18); }
.set-row .grow b { display: block; font-size: 14.5px; }
.set-row .grow span { display: block; font-size: 12.5px; color: var(--ink-4); margin-top: 2px; }
.set-row .mi { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: #E8EFF4; color: var(--plum); flex: none; }
.set-row input[type=time] { width: 110px; padding: 10px; }

/* Artículo / evento */
.art-hero { height: 250px; display: grid; place-items: center; border-radius: 0 0 36px 36px; margin-bottom: 18px; position: relative; }
.article { padding: 0 20px; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.article h1 { font-size: 27px; line-height: 1.12; letter-spacing: -.035em; color: var(--ink); margin: 6px 0 10px; }
.article p { margin: 0 0 14px; }
.ev-info { display: grid; gap: 8px; margin: 14px 0; }
.ev-info div { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 16px; padding: 12px; font-size: 14px; font-weight: 600; box-shadow: 0 3px 10px -6px rgba(25,35,51,.3); }
.ev-info .ic { color: var(--plum); }

/* Historias */
#story-root { position: absolute; inset: 0; z-index: 80; pointer-events: none; }
.story-view { position: absolute; inset: 8px; border-radius: 34px; overflow: hidden; color: #fff; pointer-events: auto; transform: scale(.85); opacity: 0; transition: transform .38s var(--ease), opacity .3s; display: flex; flex-direction: column; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); user-select: none; }
.device .story-view { top: 48px; }
.story-view.in { transform: none; opacity: 1; }
.story-view::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 150px; background: linear-gradient(180deg, rgba(25,35,51,.42), rgba(25,35,51,0)); pointer-events: none; z-index: 1; }
.story-bars { display: flex; gap: 4px; padding: 14px 14px 0; position: relative; z-index: 3; }
.story-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.story-bars i b { display: block; height: 100%; width: 0; background: #fff; }
.story-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; position: relative; z-index: 3; }
.story-top .sv-av { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.25); display: grid; place-items: center; overflow: hidden; }
.story-top b { font-size: 14px; flex: 1; }
.story-top small { opacity: .8; font-weight: 600; margin-left: 6px; }
.story-top button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.16); }
.story-content { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px 24px 64px; position: relative; background: linear-gradient(180deg, rgba(25,35,51,0) 45%, rgba(25,35,51,.32) 100%); }
.story-content .sc-art { position: absolute; top: 10%; left: 50%; transform: translateX(-50%); animation: floaty 4s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateX(-50%) translateY(-10px); } }
.story-content h2 { font-size: 34px; line-height: 1.02; letter-spacing: -.04em; margin: 0 0 12px; font-weight: 800; animation: rise .5s var(--ease) both; text-shadow: 0 2px 20px rgba(0,0,0,.15); }
.story-content p { font-size: 17px; line-height: 1.5; margin: 0; animation: rise .5s .08s var(--ease) both; text-shadow: 0 1px 10px rgba(0,0,0,.2); }
.story-tap { position: absolute; top: 90px; bottom: 0; width: 35%; z-index: 2; }
.story-tap.l { left: 0; } .story-tap.r { right: 0; width: 65%; }
.story-brand { position: absolute; bottom: 22px; left: 24px; opacity: .85; display: flex; align-items: baseline; gap: 2px; }
.story-brand .lg-a { color: #fff; font-size: 15px; } .story-brand .lg-b { color: #fff; font-size: 16px; }

/* Toast / diálogo */
#toast-root { position: absolute; left: 0; right: 0; top: calc(var(--safe-top) + 6px); z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 12px 16px 12px 12px; border-radius: 18px; font-size: 14px; font-weight: 600; box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); transform: translateY(-20px); opacity: 0; transition: all .35s var(--ease); max-width: 100%; }
.toast.in { transform: none; opacity: 1; }
.toast .ti { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--sage); color: var(--ink); flex: none; }
.toast.error .ti { background: var(--rose-s); color: #fff; }
.toast.info .ti { background: var(--blue); color: var(--navy); }
.dlg-bg { position: absolute; inset: 0; z-index: 70; background: rgba(25,35,51,.45); display: grid; place-items: center; padding: 28px; opacity: 0; transition: opacity .25s; }
.dlg-bg.in { opacity: 1; }
.dlg { background: #fff; border-radius: 28px; padding: 24px 20px 18px; width: 100%; max-width: 330px; text-align: center; transform: scale(.9); transition: transform .3s var(--ease); }
.dlg-bg.in .dlg { transform: none; }
.dlg .d-ic { width: 60px; height: 60px; border-radius: 50%; background: #E8EFF4; color: var(--plum); display: grid; place-items: center; margin: 0 auto 12px; }
.dlg h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.02em; }
.dlg p { margin: 0 0 18px; font-size: 14px; color: var(--ink-3); line-height: 1.5; }
.dlg .row { gap: 8px; }
.dlg .btn { flex: 1; height: 48px; font-size: 15px; padding: 0 12px; }

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

@media (max-width: 374px) { .tabbar { padding-left: 4px; padding-right: 4px; } .tab-btn { font-size: 10.2px; letter-spacing: -.02em; } .tab-btn .tb-ic { width: 44px; } }

/* =====================================================================
   MARKETPLACE
   ===================================================================== */
.mk-hero { padding-bottom: 26px; }
.mk-title { margin: 6px 0 0; font-size: 29px; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.mk-title em { font-family: var(--serif); font-weight: 400; font-size: 33px; letter-spacing: -.01em; }
.mk-sub { margin: 8px 0 0; font-size: 14px; line-height: 1.45; opacity: .88; max-width: 300px; }
.mk-stats { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.mk-stats span { height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.14); box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; backdrop-filter: blur(8px); }
.mk-stats b { font-weight: 900; }
.mk-search { margin-top: 18px; box-shadow: 0 14px 30px -14px rgba(0,0,0,.45); }
.mk-cats { padding-top: 16px; padding-bottom: 8px; gap: 8px; }
.mk-catpill { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px 0 6px; border-radius: 999px; background: #fff; box-shadow: var(--sh-1); font-weight: 700; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; transition: transform .15s; }
.mk-catpill:active { transform: scale(.95); }
.mk-catpill .cc { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.mk-feats > * { width: 284px; }
.mk-feat { background: #fff; border-radius: 26px; box-shadow: var(--sh-2); overflow: hidden; cursor: pointer; text-align: left; transition: transform .15s; }
.mk-feat:active { transform: scale(.98); }
.mk-feat-img { height: 150px; position: relative; }
.mk-img { position: relative; width: 100%; height: 100%; overflow: hidden; background: #F2ECE1; }
.mk-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-ph { position: absolute; inset: 0; display: grid; place-items: center; }
.mk-ph .art { filter: drop-shadow(0 10px 14px rgba(25,35,51,.12)); }
.mk-ph-mono { position: absolute; left: 12px; bottom: 10px; font-weight: 900; font-size: 13px; letter-spacing: .02em; background: rgba(255,255,255,.88); border-radius: 10px; padding: 4px 8px; }
.mk-badge { position: absolute; z-index: 2; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(25,35,51,.74); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(6px); }
.mk-heart { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink-4); flex: none; box-shadow: 0 0 0 1.5px var(--line) inset; transition: transform .15s, color .2s; }
.mk-heart:active { transform: scale(.85); }
.mk-heart.on { color: #C97E87; }
.mk-heart.on svg { fill: currentColor; }
.mk-heart.float { position: absolute; z-index: 2; top: 10px; right: 10px; box-shadow: 0 6px 14px -6px rgba(0,0,0,.35); }
.mk-feat-body { padding: 14px 16px 16px; }
.mk-feat-body h3 { margin: 8px 0 4px; font-size: 17px; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-feat-body p { margin: 0; font-size: 13px; color: var(--ink-4); display: flex; align-items: center; gap: 4px; }
.mk-feat-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 13.5px; }
.mk-from { font-weight: 800; color: var(--indigo); font-size: 13px; }
.mk-rate { font-weight: 800; color: var(--ink); display: inline-flex; align-items: center; gap: 3px; }
.mk-cat { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; align-self: flex-start; white-space: nowrap; }
.mk-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.mk-row { min-width: 0; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 22px; padding: 10px 12px 10px 10px; box-shadow: var(--sh-1); cursor: pointer; animation: fadeUp .4s var(--ease) both; text-align: left; transition: transform .15s; }
.mk-row:active { transform: scale(.985); }
.mk-row-img { width: 84px; height: 84px; border-radius: 17px; overflow: hidden; flex: none; }
.mk-row-img .mk-ph-mono { font-size: 10.5px; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: 8px; }
.mk-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mk-row-body b { font-size: 15px; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.mk-row-body > span { font-size: 12.5px; color: var(--ink-4); display: flex; align-items: center; gap: 4px; }
.mk-row-meta { gap: 6px !important; }
.mk-row-meta i { font-style: normal; opacity: .5; }
.mk-join { width: 100%; display: flex; align-items: center; gap: 4px; text-align: left; border-radius: 26px; padding: 18px 12px 18px 18px; color: #fff; background: radial-gradient(90% 90% at 100% 0%, rgba(138,177,196,.55), rgba(138,177,196,0) 60%), var(--grad); box-shadow: var(--sh-2); position: relative; overflow: hidden; }
.mk-join-t { flex: 1; display: flex; flex-direction: column; gap: 5px; position: relative; z-index: 1; }
.mk-join-t small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; opacity: .8; }
.mk-join-t b { font-size: 20px; letter-spacing: -.025em; line-height: 1.15; }
.mk-join-t b em { font-family: var(--serif); font-weight: 400; font-size: 23px; }
.mk-join-t > span { font-size: 13px; opacity: .9; line-height: 1.4; max-width: 220px; }
.mk-join-t .pill-cta { align-self: flex-start; margin-top: 8px; }
.mk-join-art { position: absolute; right: -8px; bottom: -6px; opacity: .9; }
.mk-drafts { margin: 10px 4px 0; font-size: 12.5px; color: var(--ink-3); display: flex; gap: 6px; align-items: flex-start; line-height: 1.4; }
.mk-drafts .ic { margin-top: 1px; color: #7A6A2E; }
.mk-home { width: 100%; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 24px; padding: 14px; box-shadow: var(--sh-1); text-align: left; transition: transform .15s; }
.mk-home:active { transform: scale(.98); }
.mk-home-ics { display: grid; grid-template-columns: repeat(2, 28px); gap: 4px; flex: none; }
.mk-home-ics i { width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; }
.mk-home-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mk-home-t small { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--blue-d); }
.mk-home-t b { font-size: 15.5px; letter-spacing: -.02em; }
.mk-home-t > span { font-size: 12.5px; color: var(--ink-4); }
.mk-home-go { width: 36px; height: 36px; border-radius: 50%; background: var(--grad-pill); color: var(--on-pill); display: grid; place-items: center; flex: none; }
/* Búsqueda */
.view-mk .view-body > .search-pill { margin-bottom: 12px; }
.mk-chips { margin: 0 -16px; }
.mk-selects { display: flex; flex-wrap: nowrap; gap: 8px; margin: 10px -20px 0; padding: 2px 20px 4px; overflow-x: auto; scrollbar-width: none; }
.mk-selects::-webkit-scrollbar { display: none; }
.mk-selects .sel-pill { flex: none; }
.fav-biz-img { width: 52px; height: 52px; border-radius: 16px; overflow: hidden; flex: none; position: relative; display: block; }
.fav-biz-img .mk-ph-mono { display: none; }
.sel-pill { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1.5px #D3DCE2 inset; color: var(--ink-4); position: relative; }
.sel-pill select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font-size: 13.5px; font-weight: 700; color: var(--ink-2); padding: 0 2px; max-width: 170px; outline: 0; cursor: pointer; }
.sel-pill:focus-within { box-shadow: 0 0 0 2px var(--blue) inset; }
.mk-count { display: flex; align-items: center; justify-content: space-between; margin: 16px 4px 10px; font-size: 13px; font-weight: 700; color: var(--ink-4); }
/* Detalle */
.view-biz .view-bar { position: absolute; z-index: 6; top: 0; left: 0; right: 0; }
.view-biz .view-bar h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.view-biz .view-bar { justify-content: space-between; }
.view-biz .view-bar .icon-btn { background: rgba(255,255,255,.9); backdrop-filter: blur(8px); }
.glass-heart { width: 44px; height: 44px; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); box-shadow: var(--sh-1); }
.view-biz .view-body { padding-bottom: 0; }
.bz-cover { height: 300px; position: relative; cursor: zoom-in; }
.bz-cover .mk-img { background: #E8EFF4; }
.bz-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25,35,51,.35) 0%, rgba(25,35,51,0) 30%, rgba(25,35,51,0) 60%, rgba(25,35,51,.35) 100%); pointer-events: none; }
.bz-cover .mk-badge { top: auto; bottom: 62px; left: 18px; }
.bz-count { position: absolute; right: 18px; bottom: 62px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--ink-2); font-size: 12px; font-weight: 800; }
.bz-main { padding: 0 16px 16px; margin-top: -46px; position: relative; z-index: 2; }
.bz-head { padding: 18px 16px 16px; }
.bz-head h1 { margin: 10px 0 6px; font-size: 24px; letter-spacing: -.03em; line-height: 1.12; }
.bz-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-4); }
.bz-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.bz-mod { height: 24px; padding: 0 9px; border-radius: 999px; background: #F2ECE1; color: #6E6450; font-weight: 800; font-size: 11.5px; }
.bz-acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 16px; }
.bz-act { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--ink-2); text-decoration: none; text-align: center; }
.bz-act .c { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #E8EFF4; color: #3F6A80; transition: transform .15s; }
.bz-act:active .c { transform: scale(.9); }
.bz-act.wa .c { background: #E9EFE8; color: #3E583F; }
.bz-act.off { opacity: .38; }
.bz-gal { margin: 0 -16px; padding-top: 2px; }
.bz-thumb { width: 92px; height: 92px; border-radius: 18px; overflow: hidden; position: relative; box-shadow: var(--sh-1); cursor: zoom-in; }
.bz-thumb-tag { position: absolute; left: 6px; bottom: 6px; background: rgba(25,35,51,.75); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 8px; letter-spacing: .04em; }
.bz-desc { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-3); }
.bz-svcs { display: grid; gap: 8px; }
.bz-svc { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 18px; padding: 13px 12px 13px 16px; box-shadow: var(--sh-1); text-align: left; width: 100%; }
.bz-svc b { display: block; font-size: 14.5px; line-height: 1.3; }
.bz-svc .grow span { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ink-4); margin-top: 3px; }
.bz-price { font-weight: 800; color: var(--indigo); font-size: 14px; white-space: nowrap; }
.bz-go { width: 28px; height: 28px; border-radius: 50%; background: #E8EFF4; color: var(--indigo); display: grid; place-items: center; flex: none; }
.bz-mini { height: 34px; padding: 0 12px; font-size: 12.5px; flex: none; text-decoration: none; display: inline-flex; align-items: center; border-radius: 999px; font-weight: 800; }
.bz-soc { display: flex; flex-wrap: wrap; gap: 8px; }
.bz-soc a { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 11px; border-radius: 999px; background: #fff; box-shadow: var(--sh-1); color: var(--ink-2); font-size: 13px; font-weight: 700; text-decoration: none; }
.bz-soc a .ic { color: var(--blue-d); }
.rich { font-size: 14px; line-height: 1.6; color: var(--ink-3); }
.rich h2, .rich h3, .rich h4 { color: var(--ink); margin: 0 0 8px; font-size: 16.5px; letter-spacing: -.02em; }
.rich p { margin: 0 0 10px; } .rich ul, .rich ol { margin: 0 0 10px; padding-left: 20px; } .rich li { margin: 3px 0; }
.rich a { color: var(--blue-d); font-weight: 700; }
.rich img { max-width: 100%; border-radius: 14px; }
.rich > :last-child { margin-bottom: 0; }
.bz-foot { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; padding: 14px 16px calc(var(--safe-bot) + 16px); background: linear-gradient(180deg, rgba(251,250,244,0), rgba(251,250,244,.96) 28%); }
.bz-foot .btn { flex: 1; }
.svc-price { font-weight: 600; opacity: .75; margin-left: 2px; }
/* Visor de fotos */
.lightbox { position: absolute; inset: 0; z-index: 300; background: rgba(10,14,22,.94); opacity: 0; transition: opacity .25s; }
.lightbox.in { opacity: 1; }
.lb-stage { position: absolute; inset: 76px 14px 70px; display: grid; place-items: center; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 16px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); }
.lb-ph { width: 100%; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; position: relative; }
.lb-close { position: absolute; top: calc(var(--safe-top) + 10px); right: 14px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; z-index: 2; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; z-index: 2; }
.lb-nav.prev { left: 10px; } .lb-nav.next { right: 10px; }
.lb-count { position: absolute; left: 0; right: 0; bottom: calc(var(--safe-bot) + 24px); text-align: center; color: rgba(255,255,255,.85); font-size: 13px; font-weight: 700; margin: 0; }
/* Súmate */
.sm-hero { position: relative; overflow: hidden; padding: 20px 18px; background: linear-gradient(135deg, #FFFFFF 0%, #FBF9ED 100%); }
.sm-hero h2 { margin: 8px 0 8px; font-size: 22px; line-height: 1.15; letter-spacing: -.03em; padding-right: 70px; }
.sm-hero h2 em { font-family: var(--serif); font-weight: 400; color: var(--indigo); font-size: 25px; }
.sm-hero p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }
.sm-art { position: absolute; right: -14px; top: -8px; opacity: .95; }
.sm-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.sm-pillars > div { background: #fff; border-radius: 20px; padding: 12px 8px; text-align: center; box-shadow: var(--sh-1); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sm-pillars .c { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 4px; }
.sm-pillars b { font-size: 13.5px; }
.sm-pillars span:not(.c) { font-size: 11.5px; color: var(--ink-4); line-height: 1.3; }
.sm-t { display: block; font-size: 17px; margin-bottom: 12px; letter-spacing: -.02em; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.form-hint { font-size: 12.5px; color: var(--ink-4); line-height: 1.45; margin: 12px 2px 0; }
.sm-ok { text-align: center; }
.sm-ok-ic { width: 78px; height: 78px; border-radius: 50%; background: #E9EFE8; color: #3E583F; display: grid; place-items: center; margin: 4px auto 12px; box-shadow: 0 0 0 8px #F3F7F2; }
.sm-ok h2 { margin: 0 0 6px; font-size: 21px; letter-spacing: -.025em; }
.sm-ok p { margin: 0 0 14px; font-size: 14px; color: var(--ink-3); line-height: 1.5; }
.sm-steps { display: grid; gap: 8px; }
.sm-steps > div { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 18px; padding: 12px 14px; box-shadow: var(--sh-1); font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }
.sm-steps i { width: 28px; height: 28px; border-radius: 50%; background: #E8EFF4; color: var(--indigo); font-style: normal; font-weight: 900; display: grid; place-items: center; flex: none; }
.sm-steps b { color: var(--ink); }
