/* Hello Menopausia — App usuarias */
:root {
  /* Paleta tomada de www.hellomenopausia.com */
  --bg: #FBF9F4; --bg-soft: #FFFDF8; --ink: #2B2823; --ink-2: #4A443B; --ink-3: #5C554B; --ink-4: #6B645A; --ink-5: #6B645A;
  --blue: #8DB2C6; --blue-2: #8DB2C6; --blue-d: #2F5568; --blue-pale: #DDE9EF; --indigo: #3A3D26; --navy: #2B2823;
  --cream: #FBF9F4; --cream-2: #F5F1E9; --sand: #E4DCCD;
  --olive: #9D9C8C; --olive-d: #4E5037; --rose-s: #A4555F; --rose-s-d: #8E4450; --rose-pale: #F4E3E3; --green: #4E5037;
  /* alias heredados (roles) */
  --rose: #8DB2C6; --rose-d: #2F5568; --plum: #3A3D26; --mustard: #9D9C8C; --sage: #9D9C8C; --sage-d: #4E5037; --khaki: #A69A84;
  --line: #E7E9E6; --white: #fff;
  --on-pill: #2B2823;
  --grad: linear-gradient(135deg, #3A3D26 0%, #4E5037 55%, #2F5568 100%);
  --grad-pill: linear-gradient(90deg, #A6C4D4 0%, #8DB2C6 55%, #7FA6BB 100%);
  --grad-head: radial-gradient(110% 75% at 100% 0%, rgba(251,249,244,.16) 0%, rgba(251,249,244,0) 50%), radial-gradient(105% 80% at 0% 100%, rgba(141,178,198,1) 0%, rgba(141,178,198,0) 62%), linear-gradient(168deg, #1E1C18 0%, #3A3D26 36%, #4E5037 62%, #8DB2C6 100%);
  --grad-bg: linear-gradient(180deg, #ECE5D8 0%, #F1ECE2 16%, #F5F1E9 40%, #FBF9F4 100%);
  --sh-1: 0 10px 30px -12px rgba(43,40,35,.16), 0 2px 8px -2px rgba(43,40,35,.05);
  --sh-2: 0 18px 44px -18px rgba(43,40,35,.26), 0 4px 12px -4px rgba(43,40,35,.07);
  --sh-btn: 0 10px 22px -10px rgba(47,85,104,.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; }
/* Pantalla completa: sin marco de teléfono. En móvil la app ocupa el viewport de borde a borde. */
html { height: 100%; background: var(--bg); overflow: hidden; overscroll-behavior: none; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; }
html, body { margin: 0; }
body { height: 100%; overflow: hidden; overscroll-behavior: none; font-family: var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button, a, [role="button"] { touch-action: manipulation; -webkit-user-select: none; user-select: none; }
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(141,178,198,.8); outline-offset: 2px; }

/* Logotipo tipográfico */
.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); }

/* ---------- Contenedor de la app ---------- */
.app-root { position: fixed; top: 0; left: 0; right: 0; width: 100%; height: 100vh; height: 100dvh; margin: 0 auto; overflow: hidden; background: var(--bg); isolation: isolate; contain: layout paint; }
/* Teléfono con “Sitio de escritorio” (viewport forzado a ~980 px): boot.js aplica zoom y la app llena la pantalla. */
html.fz .app-root { height: auto; bottom: 0; }
/* Pantallas anchas (tablet horizontal / escritorio): columna centrada limpia, sin dibujo de teléfono. */
@media (min-width: 600px) {
  html:not(.fz), html:not(.fz) body { background: radial-gradient(60% 60% at 85% 15%, rgba(141,178,198,.28), transparent 70%), radial-gradient(50% 50% at 10% 90%, rgba(221,233,239,.95), transparent 70%), radial-gradient(40% 40% at 25% 10%, rgba(236,229,216,.85), transparent 70%), #F5F1E9; }
  html:not(.fz) .app-root { max-width: 480px; box-shadow: 0 0 0 1px rgba(43,40,35,.06), 0 24px 70px -24px rgba(43,40,35,.35); }
}
/* Teclado abierto (Android redimensiona el contenido): ocultar la barra inferior. */
html.kb .tabbar { display: none; }
html.kb .tab-page { padding-bottom: 24px; }

/* ---------- 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: #1E1C18; 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(141,178,198,.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-art-brand { background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.55) 0%, rgba(255,255,255,.25) 50%, rgba(255,255,255,0) 72%); }
.brand-mark { display: block; width: 190px; height: 190px; object-fit: contain; border-radius: 50%; }
/* Registro: logo circular en lugar del arte de hojas; 108px dentro de la caja de 130 para que no se corte en el borde. */
.auth-art .brand-mark { width: 108px; height: 108px; margin: 11px; filter: drop-shadow(0 8px 18px rgba(30,28,24, 0.28)); }
/* Estampa: marca sobre el borde superior de la tarjeta de login (solo LOGIN). */
.auth-card.has-stamp { padding-top: 64px; overflow: visible; }
.auth-stamp {
  position: absolute;
  top: -78px; /* ~60% del círculo flota arriba; ~40% (bottom) sobre el panel blanco */
  right: 14px;
  z-index: 5;
  line-height: 0;
  pointer-events: none;
}
.auth-stamp .brand-mark {
  width: 130px; height: 130px;
  filter: drop-shadow(0 10px 22px rgba(30,28,24, 0.32)) drop-shadow(0 2px 6px rgba(30,28,24, 0.18));
}
.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(141,178,198,.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(141,178,198,.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: #DDE9EF; 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; -webkit-backdrop-filter: blur(10px); 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); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-radius: 28px 28px 0 0; box-shadow: 0 -10px 30px -14px rgba(43,40,35,.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: #DDE9EF; transform: translateY(-1px); }
.tab-btn:active .tb-ic { transform: scale(.9); }
.tab-btn-brand .tb-ic { width: 50px; height: 50px; background: transparent; }
.tab-btn-brand.active .tb-ic,
.tab-btn-brand:active .tb-ic { background: transparent; transform: none; }
.tab-btn-brand { gap: 0; }
.tab-btn .tb-brand {
  width: 50px; height: 50px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: none;
  filter: none;
}
.tab-btn.active .tb-brand { transform: scale(1.05); }
.tab-btn .tb-qr {
  width: 26px; height: 26px; display: block;
  background: currentColor;
  -webkit-mask: url('../assets/icon-qr.webp') center / contain no-repeat;
  mask: url('../assets/icon-qr.webp') center / contain no-repeat;
}
.tab-btn-action.active .tb-ic { background: #DDE9EF; }
.hello-ph-mark {
  width: 96px; height: 96px;
  margin: 0 auto 14px;
  filter: drop-shadow(0 8px 18px rgba(30,28,24, 0.18));
}

/* ---------- 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%, #9D9C8C); 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; -webkit-backdrop-filter: blur(10px); 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: #F5F1E9; box-shadow: none; -webkit-backdrop-filter: 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: #F5F1E9; }
.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, #DDE9EF); 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%, #FBF9F4 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(43,40,35,.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(58,61,38,.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, #FBF9F4, #E4DCCD 45%, #8DB2C6); 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(47,85,104,.7), 0 0 0 6px #DDE9EF; }
.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, #3A3D26); color: #fff; box-shadow: 0 10px 22px -10px rgba(58,61,38,.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: #F5F1E9; 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(43,40,35,.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: #DDE9EF; 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(141,178,198,.8); }

/* ---------- Vistas empujadas ---------- */
#views { position: absolute; inset: 0; z-index: 40; pointer-events: none; }
/* Listas con keepTabbar: acorta #views para que la tabbar (en scr-main) quede visible y tocable */
html.keep-tabbar #views { bottom: calc(var(--tabbar-h) + var(--safe-bot)); }
.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(43,40,35,.3); }
.view.with-tabbar .view-body { padding-bottom: 28px; }
.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(43,40,35,.42); opacity: 0; transition: opacity .32s var(--ease); 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 .32s 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: #F5F1E9; 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(43,40,35,.25); }
.sheet-foot .btn { flex: 1; }
/* Hello hub (botón de marca): modal estilo Facebook, sobre la pestaña actual */
.sheet.hello-hub {
  max-height: min(68vh, 540px);
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, #FFFDF8 0%, #F6F3EA 100%);
  box-shadow: 0 -24px 60px -18px rgba(30,28,24, .38), 0 -2px 0 rgba(141,178,198,.25);
}
.sheet.hello-hub .sheet-body { padding: 2px 16px calc(var(--safe-bot) + 20px); }
.hello-hub-body { position: relative; display: flex; flex-direction: column; gap: 14px; padding-top: 2px; }
.hello-hub-hint { text-align: center; }
.hello-hub-mark {
  width: 48px; height: 48px; margin: 0 auto 8px;
  filter: drop-shadow(0 8px 16px rgba(58,61,38, .22));
}
.hello-hub-hint p {
  margin: 0; font-size: 13.5px; font-weight: 700; color: var(--ink-4); letter-spacing: -.01em;
}
.hello-hub-rows { display: flex; flex-direction: column; gap: 14px; padding: 2px 0 4px; }
.hello-hub-row { display: grid; gap: 10px; }
.hello-hub-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 280px; margin: 0 auto; width: 100%; }
.hello-hub-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hello-hub-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px 8px 10px; border-radius: 20px; background: #fff;
  box-shadow: 0 6px 18px -12px rgba(43,40,35, .35), inset 0 0 0 1px rgba(141,178,198, .18);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.hello-hub-tile:active { transform: scale(.96); box-shadow: 0 3px 10px -8px rgba(43,40,35, .4); }
.hello-hub-ic {
  width: 52px; height: 52px; border-radius: 18px;
  display: grid; place-items: center; flex: none;
}
.hello-hub-lab {
  font-size: 12.5px; font-weight: 800; color: var(--ink-2);
  letter-spacing: -.01em; text-align: center; line-height: 1.2;
}
.hello-hub-close {
  position: absolute; top: 0; right: 0; z-index: 2;
}
.hello-hub-socials {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: 10px; padding: 6px 4px 2px; margin-top: 2px;
  border-top: 1px solid rgba(141,178,198, .22);
}
.hello-hub-soc {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--ink-2);
  box-shadow: 0 4px 12px -8px rgba(43,40,35, .35), inset 0 0 0 1px rgba(141,178,198, .2);
  transition: transform .15s var(--ease), background .15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.hello-hub-soc:active { transform: scale(.94); background: #F5F1E9; }

/* Registro de síntomas */
.sym-row { background: #fff; border-radius: 20px; padding: 12px; margin-bottom: 10px; box-shadow: 0 4px 14px -10px rgba(43,40,35,.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: #DDE9EF; 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: #2B2823; }
.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(43,40,35,.25); }
.log-date b { font-size: 14px; flex: 1; }
.log-date .input { border: 0; background: var(--bg); padding: 10px 12px; font-size: 16px; width: auto; }
.live-idx { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: linear-gradient(135deg, #DDE9EF, #FBF9F4); 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: #F5F1E9; 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(43,40,35,.25); transition: box-shadow .2s; }
.q-item.answered { box-shadow: 0 0 0 1.5px #CFDEE7 inset, 0 4px 14px -10px rgba(43,40,35,.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: #DDE9EF; 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: #4E5037; }
.note.sage .ic { color: #4E5037; }
.note.blue { background: #DDE9EF; color: #36546A; }
.note.blue .ic { color: #2F5568; }
.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(43,40,35,.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, #8DB2C6 0 18%, #9D9C8C 18% 45%, #9D9C8C 45% 68%, #8DB2C6 68% 85%, #3A3D26 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(43,40,35,.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(43,40,35,.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(43,40,35,.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(43,40,35,.3); transition: box-shadow .2s; }
.pick.on { box-shadow: 0 0 0 2px var(--plum) inset, 0 6px 16px -8px rgba(58,61,38,.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(43,40,35,.3); }
.times button.on { background: var(--plum); color: #fff; }
.times button[disabled] { opacity: .4; text-decoration: line-through; box-shadow: none; background: #F5F1E9; }
.book-sum { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 20px; background: linear-gradient(135deg, #DDE9EF, #FBF9F4); 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(43,40,35,.3); width: 100%; text-align: left; }
.step .ck { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #F5F1E9; 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(43,40,35,.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: #DDE9EF; color: var(--plum); flex: none; }
.set-row input[type=time] { width: 110px; padding: 10px; }
.theme-card { margin-bottom: 8px; padding: 14px; }
.theme-card .mi { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: #DDE9EF; color: var(--plum); flex: none; }
.theme-card .grow b { display: block; font-size: 14.5px; }
.theme-card .grow span { display: block; font-size: 12.5px; color: var(--ink-4); margin-top: 2px; }
.theme-card .seg button { font-size: 13.5px; }

/* 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(43,40,35,.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; }
.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(43,40,35,.42), rgba(43,40,35,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(43,40,35,0) 45%, rgba(43,40,35,.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(43,40,35,.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: #DDE9EF; 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; -webkit-backdrop-filter: blur(8px); 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: #F5F1E9; }
.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(43,40,35,.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(43,40,35,.74); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; -webkit-backdrop-filter: blur(6px); 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: #A4555F; }
.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(141,178,198,.55), rgba(141,178,198,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: #4E5037; }
.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); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.glass-heart { width: 44px; height: 44px; background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(8px); 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: #DDE9EF; }
.bz-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,40,35,.35) 0%, rgba(43,40,35,0) 30%, rgba(43,40,35,0) 60%, rgba(43,40,35,.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: #F5F1E9; 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: #DDE9EF; color: #2F5568; transition: transform .15s; }
.bz-act:active .c { transform: scale(.9); }
.bz-act.wa .c { background: #E9EFE8; color: #4E5037; }
.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(43,40,35,.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: #DDE9EF; 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%, #FBF9F4 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: #4E5037; 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: #DDE9EF; color: var(--indigo); font-style: normal; font-weight: 900; display: grid; place-items: center; flex: none; }
.sm-steps b { color: var(--ink); }

/* ---------- Producción móvil ---------- */
/* Campos de al menos 16 px: evita el zoom automático al enfocar en iOS/Android. */
input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { font-size: max(16px, 1em); }
.sel-pill select { max-width: 200px; }
.auth-sample { text-align: center; margin: 2px 0 0; }
.auth-sample button { font-size: 13px; font-weight: 600; color: var(--ink-4); text-decoration: underline; text-decoration-color: rgba(95,107,122,.35); text-underline-offset: 3px; padding: 8px 10px; }

/* iOS Safari: los <input type=date/time> con appearance:none colapsan cuando están vacíos y centran el texto */
input.input[type="date"], input.input[type="time"] { min-height: 52px; display: block; line-height: 1.25; }
.log-date input.input[type="date"] { min-height: 42px; }
input.input::-webkit-date-and-time-value { text-align: left; min-height: 1.25em; }

/* Continuar con Apple / Google / Facebook (lineamientos de cada marca; logos SVG en línea) */
.social-auth { display: flex; justify-content: center; gap: 18px; }
.btn-social { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: transform .15s var(--ease), box-shadow .2s; box-shadow: 0 8px 18px -10px rgba(43,40,35,.45); -webkit-tap-highlight-color: transparent; }
.btn-social:active { transform: scale(.92); }
.btn-social .sb-logo { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.btn-apple { background: #000; color: #fff; }
.btn-google { background: #fff; color: #1F1F1F; border: 1px solid #747775; box-shadow: 0 8px 18px -12px rgba(43,40,35,.35); }
.btn-facebook { background: #1877F2; color: #fff; }
.btn-social:focus-visible { outline: 3px solid rgba(24,119,242,.45); outline-offset: 3px; }
.btn-google:focus-visible { outline-color: rgba(66,133,244,.55); }
.divider span { white-space: nowrap; }

/* La raíz nunca debe desplazarse (un focus o scrollIntoView podía moverla unos px y subir la barra inferior) */
.app-root { overflow: clip; }

/* =====================================================================
   v3.3 · Cursos · Comunidad · @usuario · QR
   ===================================================================== */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.duo-card { background: #fff; border-radius: 22px; box-shadow: var(--sh-1); padding: 14px; text-align: left; display: flex; flex-direction: column; gap: 3px; min-height: 118px; transition: transform .15s; }
.duo-card:active { transform: scale(.97); }
.duo-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 8px; }
.duo-card b { font-size: 15.5px; letter-spacing: -.02em; }
.duo-card > span:last-child { font-size: 12.5px; color: var(--ink-4); line-height: 1.3; }
.duo-badge { font-style: normal; display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--plum); color: #fff; font-size: 11px; font-weight: 800; }
/* Cursos — réplica del sitio web de Cursos y Talleres (estructura y textos), con la paleta de la app */
.cur-list { display: grid; gap: 10px; }
.cur-row { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 20px; padding: 10px; box-shadow: 0 6px 20px -12px rgba(43,40,35,.2); text-align: left; width: 100%; transition: transform .15s; }
.cur-row:active { transform: scale(.98); }
.cur-thumb { position: relative; width: 118px; flex: none; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #DDE9EF; }
.cur-thumb img, .cur-fimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cur-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cur-txt small { font-size: 11px; font-weight: 800; color: var(--blue-d); letter-spacing: .04em; text-transform: uppercase; }
.cur-txt b { font-size: 14.5px; line-height: 1.25; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cur-state { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; color: var(--indigo); margin-top: 6px; }
.cur-state.done { color: var(--sage-d); }
.cur-prog { display: block; height: 7px; border-radius: 99px; background: #EEF0EC; overflow: hidden; margin-top: 6px; }
.cur-prog i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #9D9C8C, #4E5037); transition: width .5s var(--ease); }
.cur-prog-t { display: block; font-size: 11.5px; color: var(--ink-4); margin-top: 3px; }
.fcard.cur-fcard .fc-img.cur-fimg { padding: 0; display: block; background: #DDE9EF; height: 112px; }
.cur-progress { margin-top: 12px; }
.cur-progress b { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--sage-d); }
.cur-pct { font-weight: 900; color: var(--sage-d); }
.cur-leave { color: var(--rose-s-d); font-size: 13.5px; font-weight: 700; }
.cw-eyebrow { margin: 0 0 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-d); }
.cw-hero { padding: 6px 4px 18px; }
.cw-hero h1 { font-size: 30px; line-height: 1.1; letter-spacing: -.03em; margin: 0 0 10px; }
.cw-hero h1 em { display: block; font-family: var(--serif); font-weight: 400; color: var(--plum); font-size: 40px; letter-spacing: 0; }
.cw-lead { margin: 0 0 14px; font-size: 15px; line-height: 1.5; color: var(--ink-3); }
.cw-ctas { display: flex; gap: 8px; flex-wrap: wrap; }
.cw-ctas .btn { flex: 1 1 140px; }
.cw-hnote { margin: 10px 0 14px; font-size: 12.5px; color: var(--ink-5); }
.cw-visual { position: relative; border-radius: 22px; background: var(--grad-head); aspect-ratio: 16 / 10; max-height: 220px; width: 100%; overflow: hidden; display: flex; align-items: flex-end; padding: 18px; box-sizing: border-box; box-shadow: var(--sh-1); }
.cw-visual-in { color: #fff; }
.cw-visual-in b { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 30px; }
.cw-visual-in span { font-size: 14px; opacity: .9; }
.cw-hchip { position: absolute; background: rgba(255,255,255,.92); color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 800; }
.cw-hchip-1 { top: 16px; left: 16px; } .cw-hchip-2 { top: 16px; right: 16px; } .cw-hchip-3 { top: 56px; left: 36%; }
.cw-sec { margin: 0 -16px; padding: 22px 16px; }
.cw-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cw-head { margin: 0 4px 14px; }
.cw-head.center { text-align: center; }
.cw-head.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.cw-head h2 { font-size: 23px; letter-spacing: -.03em; margin: 0; line-height: 1.15; }
.cw-head > p:not(.cw-eyebrow) { margin: 6px 0 0; font-size: 14px; color: var(--ink-4); line-height: 1.45; }
.cw-grid { display: grid; gap: 14px; }
.cw-card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--sh-1); border: 1px solid var(--line); display: flex; flex-direction: column; }
.cw-card[hidden] { display: none; }
.cw-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; background: var(--plum); overflow: hidden; padding: 0; }
.cw-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .88; display: block; }
.cw-play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(43,40,35,.1), rgba(43,40,35,.45)); color: var(--plum); }
.cw-play .ic { width: 52px; height: 52px; padding: 14px; box-sizing: border-box; border-radius: 50%; background: rgba(255,255,255,.95); box-shadow: 0 8px 20px -6px rgba(0,0,0,.35); }
.cw-badge { position: absolute; left: 12px; bottom: 12px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.95); color: var(--ink); border-radius: 999px; padding: 4px 10px; }
.cw-body { padding: 14px 16px 10px; flex: 1; display: flex; flex-direction: column; }
.cw-body h3 { margin: 0 0 6px; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 21px; line-height: 1.22; }
.cw-tlink { font: inherit; color: inherit; text-align: left; padding: 0; }
.cw-body p { margin: 0; font-size: 13.5px; color: var(--ink-4); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cw-body .cw-cmeta { margin-top: 8px; font-size: 12.5px; color: var(--ink-5); -webkit-line-clamp: 2; }
.cw-cta { padding: 0 16px 16px; }
.cw-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 4px 14px; }
.cw-fbtn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ink-2); box-shadow: 0 0 0 1.5px #D3DCE2 inset; }
.cw-fbtn .count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: #EEF1F4; font-size: 12px; }
.cw-fbtn.active { background: var(--plum); color: #fff; box-shadow: 0 8px 16px -8px rgba(58,61,38,.7); }
.cw-fbtn.active .count { background: rgba(255,255,255,.25); color: #fff; }
.cw-seed { font-size: 12px; color: var(--ink-5); text-align: center; margin: 16px 8px 0; line-height: 1.45; }
.cw-seed.left { text-align: left; margin: 10px 4px 0; }
.cw-faq-item { background: #fff; border-radius: 16px; border: 1px solid var(--line); padding: 0 16px; margin-bottom: 10px; }
.cw-faq-item summary { cursor: pointer; font-weight: 800; font-size: 15px; padding: 14px 0; list-style-position: inside; }
.cw-faq-item p { margin: 0 0 14px; font-size: 14px; color: var(--ink-3); line-height: 1.5; }
.view-curso .view-body { padding-top: 6px; }
.cw-crumb { font-size: 12.5px; color: var(--ink-5); margin: 0 4px 10px; }
.cw-crumb span { color: var(--ink-3); font-weight: 700; }
.cw-title { font-size: 24px; line-height: 1.2; letter-spacing: -.03em; margin: 0 4px 6px; }
.view-curso .cw-eyebrow, .cw-head .cw-eyebrow, .cw-sp-hero .cw-eyebrow { margin-left: 4px; }
.cw-sub { margin: 0 4px 14px; font-size: 14px; color: var(--ink-4); line-height: 1.45; }
/* Reproductor 16:9 responsivo (como .video-embed de la web) */
.cw-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #111; box-shadow: var(--sh-1); }
@supports not (aspect-ratio: 16 / 9) { .cw-video { height: 0; padding-top: 56.25%; } }
.cw-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.cw-ytlink { display: inline-flex; align-items: center; gap: 6px; margin: 10px 4px 2px; font-size: 13px; font-weight: 700; color: var(--blue-d); text-decoration: none; }
.cw-enroll { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.cw-enroll b { display: block; font-size: 14.5px; }
.cw-enroll span { font-size: 12.5px; color: var(--ink-4); }
.cw-enroll .btn { flex: none; }
.cw-h2 { font-size: 20px; letter-spacing: -.02em; margin: 22px 4px 8px; }
.cw-desc { margin: 0 4px; font-size: 15px; line-height: 1.55; color: var(--ink-3); }
.cw-side { margin-top: 16px; }
.cw-side h3, .cw-speaker h3 { font-size: 16px; margin: 0 0 8px; }
.cw-meta-list { list-style: none; margin: 0; padding: 0; }
.cw-meta-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.cw-meta-list li:first-child { border-top: 0; }
.cw-meta-list li span:first-child { color: var(--ink-4); }
.cw-meta-list li span:last-child { font-weight: 700; text-align: right; }
.cw-speaker { display: block; width: 100%; text-align: left; margin-top: 12px; }
.cw-speaker p { margin: 0; font-size: 13.5px; color: var(--ink-4); line-height: 1.45; }
.cw-speaker .cw-role { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-d); margin: 10px 0 2px; }
.cw-speaker h3 { margin: 0 0 6px; }
.cw-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 26px; flex: none; }
.cw-avatar.lg { width: 76px; height: 76px; font-size: 34px; }
.cw-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cw-tag { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #DDE9EF; color: var(--blue-d); }
.view-curso #cwRelated { margin-top: 20px; }
.cw-sp-list { display: grid; gap: 12px; }
.cw-sp-list .cw-speaker { margin-top: 0; }
.cw-sp-hero { display: flex; gap: 14px; align-items: center; margin: 4px 0 6px; }
/* Comunidad */
.icon-btn.soft { background: #DDE9EF; color: var(--indigo); box-shadow: none; width: 40px; height: 40px; }
.net-me { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; margin-bottom: 12px; }
.net-me b { display: block; font-size: 15.5px; letter-spacing: -.01em; }
.net-me-act { display: flex; gap: 8px; }
.net-user { display: block; font-size: 13px; font-weight: 700; color: var(--blue-d); }
.net-vis { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ink-4); margin-top: 2px; }
.net-search { margin-bottom: 12px; height: 50px; }
.net-seg { margin-bottom: 14px; }
.net-seg button { font-size: 13px; padding: 0 4px; white-space: nowrap; }
.net-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--rose-s-d); color: #fff; font-size: 10.5px; font-weight: 800; vertical-align: 1px; }
.net-list { display: grid; gap: 10px; }
.net-card { background: #fff; border-radius: 22px; box-shadow: 0 6px 20px -12px rgba(43,40,35,.2); padding: 12px; display: flex; align-items: center; gap: 10px; animation: fadeUp .35s var(--ease) both; }
.net-card .net-main { flex: 1; min-width: 0; }
.net-main { display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%; }
.net-av { width: 52px; height: 52px; font-size: 18px; box-shadow: none; }
.net-av.xl { width: 92px; height: 92px; font-size: 32px; margin: 0 auto 10px; }
.net-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.net-txt b { font-size: 15px; letter-spacing: -.01em; }
.net-ex { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #4E5037; background: #F5F0DC; border-radius: 6px; padding: 2px 6px; vertical-align: 2px; }
.net-sub { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ink-4); }
.net-bio { font-size: 13px; color: var(--ink-3); line-height: 1.4; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.net-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.net-tags.center { justify-content: center; margin: 10px 0 4px; }
.net-tags i { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--indigo); background: #ECEDF4; border-radius: 999px; padding: 3px 9px; }
.net-act { display: flex; justify-content: flex-end; flex: none; }
.net-act .btn-sm { height: 36px; padding: 0 12px; font-size: 13px; }
.net-act .net-pill { height: 32px; padding: 0 10px; font-size: 12.5px; }
.net-act .net-duo { flex-direction: column; gap: 6px; }
.net-act:empty { display: none; }
.net-act .btn, .net-pact .btn { gap: 6px; }
.net-duo { display: flex; gap: 8px; }
.net-pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 800; }
.net-pill.ok { background: #E9EFE8; color: var(--sage-d); }
.net-local { display: flex; gap: 6px; align-items: flex-start; font-size: 11.5px; color: var(--ink-5); line-height: 1.45; margin: 16px 6px 0; }
.net-local .ic { flex: none; margin-top: 1px; }
.net-profile { text-align: center; padding: 22px 18px 18px; }
.net-profile h2 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.net-profile .net-user { font-size: 14px; margin: 2px 0 6px; }
.net-facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-4); font-weight: 700; margin-top: 6px; }
.net-facts span { display: inline-flex; align-items: center; gap: 5px; }
.net-pbio { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 10px 0 0; }
.net-pact { display: flex; justify-content: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.net-since { font-size: 12.5px; margin: 12px 0 0; }
.net-since .btn-ghost { height: auto; padding: 0; font-size: 12.5px; font-weight: 800; color: var(--rose-s-d); }
/* @usuario */
.un-status { font-size: 12.5px; color: var(--ink-5); margin: 6px 4px 0; display: flex; align-items: center; gap: 5px; min-height: 18px; }
.un-status.ok { color: var(--sage-d); font-weight: 700; }
.un-status.err { color: var(--rose-s-d); font-weight: 700; }
.input[aria-invalid="true"]:not(:placeholder-shown) { border-color: #E3B7BD; }
.un-count { text-align: right; font-size: 11.5px; color: var(--ink-5); margin: 4px 6px 0; }
.opt { font-weight: 600; color: var(--ink-5); }
.pc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-tags .chip { height: 34px; font-size: 13px; padding: 0 12px; }
.pc-vis { display: grid; gap: 8px; }
.pc-vopt { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 18px; padding: 12px; box-shadow: 0 0 0 1.5px var(--line) inset; cursor: pointer; transition: box-shadow .2s; }
.pc-vopt input { position: absolute; opacity: 0; pointer-events: none; }
.pc-vopt.on { box-shadow: 0 0 0 2px var(--plum) inset; background: #F7F7FB; }
.pc-vopt:focus-within { outline: 3px solid rgba(141,178,198,.6); outline-offset: 2px; }
.pc-vic { width: 36px; height: 36px; flex: none; border-radius: 12px; background: #ECEDF4; color: var(--indigo); display: grid; place-items: center; }
.pc-vopt b { display: block; font-size: 14.5px; }
.pc-vopt small { display: block; font-size: 12.5px; color: var(--ink-4); line-height: 1.35; margin-top: 1px; }
.acc-user { display: inline-block; margin-top: 2px; color: rgba(255,255,255,.9); font-weight: 700; font-size: 14px; background: rgba(255,255,255,.14); border-radius: 999px; padding: 4px 12px; }
.md-user { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-bottom: 12px; }
.md-user .mi { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: #ECEDF4; color: var(--indigo); flex: none; }
.md-user small { display: block; font-size: 12px; color: var(--ink-4); font-weight: 700; }
.md-user b { font-size: 16px; color: var(--blue-d); }
.auth-pending { margin-bottom: 14px; }
/* QR */
.qr-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 18px 16px; }
.qr-card .net-av { margin-bottom: 8px; }
.qr-name { font-size: 18px; letter-spacing: -.02em; }
.qr-box { width: min(260px, 72vw); aspect-ratio: 1; margin: 14px auto 6px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1.5px var(--line) inset; display: grid; place-items: center; padding: 8px; }
.qr-svg { width: 100%; height: 100%; display: block; }
.qr-loading { font-size: 13px; color: var(--ink-5); padding: 12px; }
.qr-hint { font-size: 12.5px; color: var(--ink-4); line-height: 1.45; margin: 8px 6px 0; }
.qr-vis { display: flex; justify-content: center; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-4); margin: 12px 0; }
.qr-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.qr-acts .btn { gap: 8px; }
/* Escáner — Check-In lead (colores partners.hellomenopausia.com)
   Fixed card height + absolute phrase layers: rotating copy must never change layout.
   Measured @ Figtree 17.5/1.35: taller phrase = 3 lines (70.875px) ≥360px, 4 lines (94.5px) ≤359px. */
.scan-lead {
  display: flex; align-items: flex-start; justify-content: center; gap: 10px;
  margin: 4px 14px 14px; margin-left: auto; margin-right: auto;
  max-width: 340px; width: calc(100% - 28px);
  padding: 14px 16px;
  /* border-box: padding+border+stack 71 → 103px (3-line mobile) */
  height: 103px;
  text-align: left; font-size: 17.5px; line-height: 1.35;
  color: #2D2E45; font-weight: 800; letter-spacing: -.015em;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(209,115,139,.30), transparent 55%),
    radial-gradient(ellipse 55% 65% at 0% 100%, rgba(133,179,198,.28), transparent 55%),
    linear-gradient(165deg, #F7F5EE 0%, #FBF8F1 42%, #f3e8ec 100%);
  border: 2px solid #D1738B;
  border-radius: 18px;
  box-shadow: 0 10px 28px -12px rgba(141,84,115,.38), 0 3px 10px -3px rgba(45,46,69,.12);
  overflow: hidden;
}
/* Gift icon: fixed-size column so it never shifts with text */
.scan-lead .ic {
  flex: none; width: 22px; height: 22px; color: #D1738B; margin-top: 1px;
}
.scan-lead-stack {
  flex: 1; min-width: 0;
  position: relative;
  height: 71px; /* 3 × 23.625 line boxes */
}
.scan-lead-txt {
  position: absolute; inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity .28s ease;
  pointer-events: none;
}
.scan-lead-txt.is-on {
  opacity: 1;
  pointer-events: auto;
}
@media (max-width: 359px) {
  /* narrower phones: taller phrase wraps to 4 lines */
  .scan-lead { height: 127px; }
  .scan-lead-stack { height: 95px; }
}
.scan-box { position: relative; aspect-ratio: 1; width: 100%; max-width: 420px; margin: 4px auto 12px; border-radius: 26px; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #3A3D26 0%, #1E1C18 70%); color: #fff; box-shadow: var(--sh-2); }
.scan-box video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.scan-box.on video { opacity: 1; }
.scan-frame { position: absolute; inset: 17%; pointer-events: none; opacity: 0; transition: opacity .3s; }
.scan-box.on .scan-frame { opacity: 1; }
.scan-frame i { position: absolute; width: 34px; height: 34px; border: 4px solid #fff; border-radius: 6px; }
.scan-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.scan-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.scan-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.scan-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.scan-idle { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; }
.scan-idle .ic { opacity: .85; }
.scan-idle p { margin: 0; font-size: 14px; line-height: 1.45; opacity: .9; max-width: 260px; }
.scan-box.on .scan-idle { display: none; }
[data-state=starting] .scan-idle .btn { opacity: .6; pointer-events: none; }
.scan-msg[hidden] { display: none; }
.scan-alt { display: grid; gap: 10px; }
.scan-alt label.btn { cursor: pointer; gap: 8px; }
.scan-user { display: flex; gap: 8px; }
.scan-user .input-wrap { flex: 1; }
.scan-user .btn { flex: none; }
.scan-note { display: flex; gap: 6px; align-items: flex-start; font-size: 11.5px; color: var(--ink-5); margin: 14px 4px 0; line-height: 1.4; }
.scan-note .ic { flex: none; margin-top: 1px; }
@media (max-width: 350px) { .net-seg button { font-size: 12px; } .qr-acts { grid-template-columns: 1fr; } .duo-card b { font-size: 14.5px; } }

/* Recetas (Recetario Hello Conecta) */
.rec-home { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; background: #fff; border-radius: 22px; box-shadow: var(--sh-1); padding: 12px 14px 12px 12px; text-align: left; transition: transform .15s; }
.rec-home:active { transform: scale(.98); }
.rec-home-imgs { display: flex; flex: none; }
.rec-home-imgs img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff; background: #F5F1E9; }
.rec-home-imgs img + img { margin-left: -12px; }
.rec-home-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rec-home-t b { font-size: 15.5px; letter-spacing: -.02em; }
.rec-home-t span { font-size: 12.5px; color: var(--ink-4); }
.rec-home .chev { color: #A3ADB7; flex: none; }
.rec-intro { margin: 2px 4px 12px; }
.rec-h1 { font-size: 26px; line-height: 1.12; letter-spacing: -.03em; margin: 0; }
.rec-h1 em { font-family: var(--serif); font-weight: 400; color: var(--plum); font-size: 32px; letter-spacing: 0; }
.rec-search { margin-bottom: 12px; }
.rec-chips { margin: 0 -16px 6px; padding: 4px 16px 6px; }
.rec-chips .chip { display: inline-flex; align-items: center; gap: 6px; }
.rec-n { font-size: 11.5px; font-weight: 800; opacity: .7; }
.rec-count { font-size: 12.5px; color: var(--ink-5); margin: 4px 4px 10px; }
.rec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rec-card { position: relative; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--sh-1); display: flex; flex-direction: column; animation: fadeUp .35s var(--ease) both; }
.rec-img { display: block; width: 100%; aspect-ratio: 4 / 3; background: #F5F1E9; padding: 0; overflow: hidden; }
.rec-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rec-fav { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.94); color: var(--ink-3); box-shadow: 0 4px 12px -4px rgba(0,0,0,.3); }
.rec-fav.on { color: #C24E62; }
.rec-cap { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; text-align: left; flex: 1; }
.rec-cap b { font-size: 14px; line-height: 1.25; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rec-cap span { font-size: 11.5px; font-weight: 800; color: var(--blue-d); text-transform: uppercase; letter-spacing: .04em; }
.rec-row { gap: 12px; }
.rec-row .rec-card { animation: none; }
.view-receta .view-body { padding-top: 6px; }
.rec-hero { border-radius: 22px; overflow: hidden; background: #F5F1E9; box-shadow: var(--sh-1); aspect-ratio: 4 / 3; }
.rec-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rec-title { font-size: 25px; line-height: 1.18; letter-spacing: -.03em; margin: 16px 4px 4px; }
.rec-by { margin: 0 4px 12px; font-size: 13px; color: var(--ink-4); font-weight: 700; }
.rec-cats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 4px 10px; }
.rec-cats > span { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-5); margin-right: 2px; }
.chip.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.rec-vnote { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--ink-4); line-height: 1.45; margin: 0 4px 12px; }
.rec-vnote .ic { flex: none; margin-top: 2px; }
.rec-fav-btn { margin: 4px 0 6px; }
.icon-btn.rec-fav-top.on { color: #C24E62; }
.rec-sec { background: #fff; border-radius: 22px; box-shadow: var(--sh-1); padding: 16px 18px; margin-top: 12px; }
.rec-sec h2 { font-size: 17px; letter-spacing: -.02em; margin: 0 0 10px; }
.rec-sec.ing h2::before, .rec-sec.prep h2::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); margin-right: 8px; vertical-align: 2px; }
.rec-list { margin: 0; padding-left: 20px; display: grid; gap: 7px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.rec-list.ol { padding-left: 22px; }
.rec-list li::marker { color: var(--blue-d); font-weight: 800; }
.rec-p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.rec-p:last-child { margin-bottom: 0; }
.rec-table-wrap { overflow-x: auto; margin-top: 4px; }
.rec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rec-table th, .rec-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.rec-table th { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-4); background: #F4F1E8; }
.rec-table tr:last-child td { border-bottom: 0; }
.view-receta .cw-ytlink { margin-top: 14px; }

/* Legal (visualizador en vivo de legal.hellomenopausia.com) */
.view-legal-doc .view-body { padding: 0; display: flex; flex-direction: column; }
.legal-view { display: flex; flex-direction: column; flex: 1; min-height: 0; height: 100%; }
.legal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; background: var(--surface, #fff); border-bottom: 1px solid var(--line); flex: none; }
.legal-src { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-4); }
.legal-stage { position: relative; flex: 1; min-height: 62vh; background: #fff; }
html.dark .legal-stage { background: #0F1624; }
.legal-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.legal-loading { position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; justify-items: center; font-size: 14px; font-weight: 700; color: var(--ink-4); background: var(--bg); z-index: 1; }
.legal-stage[data-state="ok"] .legal-loading, .legal-stage[data-state="fail"] .legal-loading { display: none; }
.legal-stage[data-state="fail"] .legal-frame { display: none; }
.legal-offline { position: absolute; inset: 0; overflow: auto; padding: 24px 18px; background: var(--bg); }
.legal-fallback { text-align: center; max-width: 340px; margin: 24px auto; }
.legal-fallback .e-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin: 0 auto 12px; background: var(--cream-2, #F5F1E9); color: var(--plum); }
.legal-fallback h4 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.02em; }
.legal-fallback p { margin: 0 0 16px; font-size: 14px; color: var(--ink-3); line-height: 1.5; }
.legal-view .cw-seed { padding: 10px 16px 18px; margin: 0; flex: none; }
.view-legal-hub .mrow .mt span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--plum); animation: hm-spin .7s linear infinite; }
@keyframes hm-spin { to { transform: rotate(360deg); } }


/* Video de fondo en splash / onboarding / login (introducción) */
.intro-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .6; pointer-events: none;
  z-index: 0; border: 0; background: #0B111C;
}
html:not(.intro-video) .intro-bg { visibility: hidden; }
.intro-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.intro-veil-dark {
  background: linear-gradient(180deg, rgba(11,17,28,.58) 0%, rgba(30,28,24,.48) 45%, rgba(11,17,28,.66) 100%);
}
.intro-veil-light {
  background: linear-gradient(180deg, rgba(251,249,244,.78) 0%, rgba(246,246,241,.72) 50%, rgba(251,249,244,.86) 100%);
}
html.dark .intro-veil-light {
  background: linear-gradient(180deg, rgba(15,22,36,.72) 0%, rgba(15,22,36,.65) 50%, rgba(15,22,36,.8) 100%);
}
.scr { z-index: 1; }
.scr-splash { z-index: 20; }
.scr-splash,
.scr-onb.has-intro,
.scr-auth.has-intro { background-color: transparent; background-image: none; }
.scr-splash .splash-glow,
.scr-splash .splash-logo,
.scr-splash .splash-tag { z-index: 2; position: relative; }
.scr-onb.has-intro .onb-top,
.scr-onb.has-intro .onb-track,
.scr-onb.has-intro .onb-foot { position: relative; z-index: 2; }
.scr-auth.has-intro .auth-head {
  background: linear-gradient(168deg, rgba(30,28,24,.62) 0%, rgba(51,63,105,.55) 40%, rgba(79,90,136,.5) 70%, rgba(114,151,181,.45) 100%);
  position: relative; z-index: 2; overflow: hidden;
}
.scr-auth.has-intro .auth-card,
.scr-auth.has-intro .auth-alt,
.scr-auth.has-intro .auth-sample,
.scr-auth.has-intro .social-auth { position: relative; z-index: 2; }
.scr-auth.has-intro .auth-card.has-stamp { overflow: visible; }

/* ==== MODO OSCURO (generado con tools/gen_dark_css.py; no editar a mano) ==== */
html.dark {
  color-scheme: dark;
  --bg: #0F1624; --bg-soft: #131C2D; --ink: #F3EFE4; --ink-2: #E6E1D5; --ink-3: #D2CDC2; --ink-4: #B3BAC5; --ink-5: #97A0AD;
  --blue: #8DB2C6; --blue-2: #8DB2C6; --blue-d: #A6C4D4; --blue-pale: #1C2E40; --indigo: #B9BEEA; --navy: #0B111C;
  --cream: #1D283D; --cream-2: #243049; --sand: #2C3953;
  --olive: #CDB96E; --olive-d: #D8C88E; --rose-s: #D3949C; --rose-s-d: #E6A8B0; --rose-pale: #3A2833; --green: #A9C6A6;
  --rose: #8DB2C6; --rose-d: #A9CADB; --plum: #8DB2C6; --mustard: #CDB96E; --sage: #9D9C8C; --sage-d: #A9C6A6; --khaki: #B5AA95;
  --line: #2B3750; --white: #1A2438; --surface: #1A2438; --surface-2: #222E47;
  --on-pill: #0F1726;
  --grad: linear-gradient(135deg, #3A3D26 0%, #4E5037 55%, #2F5568 100%);
  --grad-pill: linear-gradient(90deg, #A6C4D4 0%, #8DB2C6 55%, #7FA6BB 100%);
  --grad-head: radial-gradient(110% 75% at 100% 0%, rgba(141,178,198,.14) 0%, rgba(141,178,198,0) 50%), radial-gradient(105% 80% at 0% 100%, rgba(79,90,136,.55) 0%, rgba(79,90,136,0) 62%), linear-gradient(168deg, #0B111C 0%, #1E1C18 40%, #2A3558 70%, #3B5372 100%);
  --grad-bg: linear-gradient(180deg, #111A2A 0%, #0F1624 40%, #0F1624 100%);
  --sh-1: 0 10px 30px -12px rgba(0,0,0,.55), 0 2px 8px -2px rgba(0,0,0,.3);
  --sh-2: 0 18px 44px -18px rgba(0,0,0,.7), 0 4px 12px -4px rgba(0,0,0,.35);
  --sh-btn: 0 10px 22px -10px rgba(0,0,0,.6);
}
html.dark body { color: var(--ink); background: var(--bg); }

@media (min-width: 600px) {
  html.dark:not(.fz), html.dark:not(.fz) body { background: radial-gradient(60% 60% at 85% 15%, rgba(141,178,198,.28), transparent 70%), radial-gradient(50% 50% at 10% 90%, rgba(48,71,99,0.95), transparent 70%), radial-gradient(40% 40% at 25% 10%, rgba(74,74,75,0.85), transparent 70%), #454B4D; }
  html.dark:not(.fz) .app-root { box-shadow: 0 0 0 1px rgba(0,0,0,0.11), 0 24px 70px -24px rgba(0,0,0,0.63); }
}
html.dark .onb-art { background: radial-gradient(circle at 50% 40%, #1A2438 0%, rgba(26,36,56,0.6) 55%, rgba(255,255,255,0) 72%); }
html.dark .onb-art-brand { background: radial-gradient(circle at 50% 40%, rgba(26,36,56,.55) 0%, rgba(26,36,56,.25) 50%, rgba(255,255,255,0) 72%); }
html.dark .auth-card { background: #1A2438; }
html.dark .auth-hint { background: #2F4762; }
html.dark .input:focus { background: #1A2438; }
html.dark .check-box { border: 2px solid #33405C; background: #1A2438; }
html.dark .check-row input:checked + .check-box { background: var(--plum); border-color: var(--plum); color: #0F1726; }
html.dark .btn-dark { color: #0F1726; }
html.dark .btn-soft { background: #304763; }
html.dark .btn-line { background: #1A2438; }
html.dark .icon-btn { background: #1A2438; }
html.dark .icon-btn.glass { box-shadow: 0 0 0 1px rgba(26,36,56,0.22) inset; }
html.dark .dot-badge { box-shadow: 0 0 0 2px #1A2438; }
html.dark .count-badge { color: #0F1726; box-shadow: 0 0 0 2.5px #1A2438; }
html.dark .tabbar { background: rgba(26,36,56,0.96); box-shadow: 0 -10px 30px -14px rgba(0,0,0,0.4); }
html.dark .tab-btn { color: #CACED4; }
html.dark .tab-btn.active { color: var(--indigo); }
html.dark .tab-btn.active .tb-ic { background: #304763; }
html.dark .tab-btn-brand.active .tb-ic,
html.dark .tab-btn-brand:active .tb-ic,
html.dark .tab-btn-brand .tb-ic { background: transparent; }
html.dark .plus-mini { background: #1A2438; box-shadow: 0 8px 18px -8px rgba(0,0,0,0.72); }
html.dark .gold-pill { background: linear-gradient(135deg, #515449, #C9B46A 55%, #9D9C8C); color: #EDEAD4; box-shadow: 0 8px 18px -8px #000000; }
html.dark .gold-pill .gp-ic { background: rgba(26,36,56,0.55); color: #E7D9C5; }
html.dark .seg { box-shadow: 0 0 0 1px rgba(26,36,56,0.2) inset; }
html.dark .seg button.on { color: var(--plum); }
html.dark .seg .seg-thumb { background: #1A2438; box-shadow: 0 6px 14px -6px rgba(0,0,0,0.63); }
html.dark .seg.light { background: #4A4A4B; }
html.dark .seg.light button.on { color: var(--plum); }
html.dark .card { background: #1A2438; }
html.dark .wb i.empty { background: #4A4A4B; }
html.dark .search-pill { background: #1A2438; }
html.dark .qbtn .qc { background: #1A2438; }
html.dark .qbtn .qc::after { background: var(--tint, #304763); }
html.dark .dots i { background: #384A62; }
html.dark .dots i.on { background: var(--plum); }
html.dark .promo-card { background: #1A2438; }
html.dark .story.seen .ring { background: #484A52; }
html.dark .story .ring > div { border: 3px solid #1A2438; }
html.dark .tv-badge { color: #0F1726; }
html.dark .tip { background: linear-gradient(135deg, #1A2438 0%, #484D48 100%); }
html.dark .date-block.past { background: #49494E; }
html.dark .st-confirmada { background: #384B52; color: #D4DED5; }
html.dark .st-pendiente { background: #4D4F49; color: #E8E1C7; }
html.dark .st-cancelada { background: #47474D; }
html.dark .st-completada { background: #2E4664; color: #C8D6E2; }
html.dark .hero-banner .pill-white { background: #1A2438; }
html.dark .cat .cc { background: #1A2438; }
html.dark .cat.on .cc { background: var(--ink); box-shadow: 0 10px 20px -10px #000000; }
html.dark .cat.on .cc .ic { color: #fff !important; }
html.dark .fav-card { background: #1A2438; }
html.dark .fav-add { background: rgba(26,36,56,0.6); box-shadow: 0 0 0 1.5px dashed #33405C inset; }
html.dark .logo-mono.lg { box-shadow: 0 0 0 5px #1A2438, var(--sh-1); }
html.dark .chip { box-shadow: 0 0 0 1.5px #33405C inset; }
html.dark .chip.on { background: var(--plum); color: #0F1726; }
html.dark .fcard { background: #1A2438; }
html.dark .fcard .fc-kind { background: rgba(26,36,56,0.92); }
html.dark .fcard .fc-off { color: #0F1726; }
html.dark .avatar { background: linear-gradient(135deg, #484D48, #4A4B50 45%, #8DB2C6); box-shadow: 0 0 0 3px rgba(26,36,56,0.55); }
html.dark .avatar.xl { box-shadow: 0 0 0 4px rgba(26,36,56,0.5), 0 14px 30px -12px rgba(0,0,0,0.81); }
html.dark .htag { box-shadow: 0 0 0 1px rgba(26,36,56,0.2) inset; }
html.dark .trio .tb.big .c { box-shadow: 0 16px 30px -12px rgba(47,85,104,.7), 0 0 0 6px #33405C; }
html.dark .plink .pc { background: rgba(26,36,56,0.5); }
html.dark .ring-card { background: #1A2438; }
html.dark .trend { background: #384B52; color: #D4DED5; }
html.dark .month-btn { background: #1A2438; }
html.dark .dchip { background: #1A2438; }
html.dark .dchip.on { background: var(--plum); color: #0F1726; }
html.dark .dchip.on small { color: rgba(255,255,255,.8); }
html.dark .dchip.on::after { background: #1A2438; }
html.dark .dchip.off { background: rgba(26,36,56,0.55); }
html.dark .stag { background: #474A4C; }
html.dark .empty .e-ic { background: #4A4A4B; }
html.dark .mrow { background: #1A2438; box-shadow: 0 6px 20px -12px rgba(0,0,0,0.32); }
html.dark .mrow .mi { background: #304763; }
html.dark .mrow .mcount { color: #0F1726; }
html.dark .toggle span { background: #484A52; }
html.dark .toggle span::after { background: #1A2438; box-shadow: 0 2px 6px rgba(0,0,0,0.36); }
html.dark .toggle input:checked + span { background: var(--plum); }
html.dark .view { box-shadow: -20px 0 40px -20px rgba(0,0,0,0.54); }
html.dark .sheet { box-shadow: 0 -20px 50px -20px rgba(0,0,0,0.63); }
html.dark .sheet-grab i { background: #474A53; }
html.dark .sheet-close { background: #4A4A4B; }
html.dark .sheet-foot { box-shadow: 0 -12px 20px -16px rgba(0,0,0,0.45); }
html.dark .sheet.hello-hub { background: linear-gradient(180deg, #1A2438 0%, #141C2C 100%); box-shadow: 0 -24px 60px -18px rgba(0,0,0,.55), 0 -2px 0 rgba(141,178,198,.18); }
html.dark .hello-hub-tile { background: #1A2438; box-shadow: 0 6px 18px -12px rgba(0,0,0,.45), inset 0 0 0 1px rgba(141,178,198, .16); }
html.dark .hello-hub-lab { color: #E8EDF4; }
html.dark .hello-hub-socials { border-top-color: rgba(141,178,198, .14); }
html.dark .hello-hub-soc { background: #1A2438; color: #E8EDF4; box-shadow: 0 4px 12px -8px rgba(0,0,0,.45), inset 0 0 0 1px rgba(141,178,198, .16); }
html.dark .hello-hub-soc:active { background: #243044; }
html.dark .sym-row { background: #1A2438; box-shadow: 0 4px 14px -10px rgba(0,0,0,0.45); }
html.dark .sym-row .sr-ic { background: #304763; }
html.dark .lvl button.on { color: #fff; box-shadow: 0 6px 12px -6px rgba(0,0,0,0.63); }
html.dark .lvl button.on.l-ninguno { color: #D9E6D7; }
html.dark .lvl button.on.l-leve, html.dark .lvl button.on.l-moderado { color: #D4DCEA; }
html.dark .log-date { background: #1A2438; box-shadow: 0 4px 14px -10px rgba(0,0,0,0.45); }
html.dark .live-idx { background: linear-gradient(135deg, #304763, #484D48); }
html.dark .qz-prog { background: #4A4A4B; }
html.dark .qz-steps button { background: #4B4B4F; }
html.dark .qz-steps button.done { background: var(--sage); }
html.dark .q-item { background: #1A2438; box-shadow: 0 4px 14px -10px rgba(0,0,0,0.45); }
html.dark .q-item.answered { box-shadow: 0 0 0 1.5px #33405C inset, 0 4px 14px -10px rgba(0,0,0,0.45); }
html.dark .q-top .sr-ic { background: #304763; }
html.dark .yn button.on.si { background: var(--plum); color: #0F1726; }
html.dark .yn button.on.no { background: var(--ink-2); color: #0F1726; }
html.dark .opt-row button.on { background: var(--ink); color: #0F1726; }
html.dark .note { background: #4C4F49; color: #E9E3CA; }
html.dark .scan-lead {
  color: #F7F5EE;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(209,115,139,.28), transparent 55%),
    radial-gradient(ellipse 55% 65% at 0% 100%, rgba(133,179,198,.22), transparent 55%),
    linear-gradient(165deg, #2A2430 0%, #243038 50%, #2D2430 100%);
  border-color: #D1738B;
  box-shadow: 0 10px 28px -12px rgba(0,0,0,.5);
}
html.dark .scan-lead .ic { color: #E8A0B0; }
html.dark .note .ic { color: #E5DDC1; }
html.dark .note.rose { color: #DFC2C7; }
html.dark .note.sage { background: #384B52; color: #D1DED1; }
html.dark .note.sage .ic { color: #D1DED1; }
html.dark .note.blue { background: #304763; color: #C9D9E4; }
html.dark .note.blue .ic { color: #C5D8E2; }
html.dark .blk-res { background: #1A2438; box-shadow: 0 4px 14px -10px rgba(0,0,0,0.45); }
html.dark .blk-res .n { background: #474A4C; }
html.dark .kv span.none { color: #B1B7BE; }
html.dark .mini-del { background: #1A2438; }
html.dark .imc-scale { background: linear-gradient(90deg, #8DB2C6 0 18%, #445643 18% 45%, #9D9C8C 45% 68%, #8DB2C6 68% 85%, #3A3D26 85%); }
html.dark .imc-scale i { background: #1A2438; }
html.dark .svc span { background: #1A2438; box-shadow: 0 3px 10px -6px rgba(0,0,0,0.54); }
html.dark .map { background: #4B4A4D; }
html.dark .loc-row { background: #1A2438; box-shadow: 0 3px 10px -6px rgba(0,0,0,0.54); }
html.dark .mini-promo { background: #1A2438; box-shadow: 0 3px 10px -6px rgba(0,0,0,0.54); }
html.dark .coupon { background: #1A2438; }
html.dark .coupon-cut { border-top: 2px dashed #33405C; }
html.dark .code { border: 2px dashed #33405C; }
html.dark .cup-card { background: #1A2438; }
html.dark .cup-card.used .l { background: #584F41; }
html.dark .pick { background: #1A2438; box-shadow: 0 3px 10px -6px rgba(0,0,0,0.54); }
html.dark .pick .radio { border: 2px solid #33405C; }
html.dark .pick.on .radio { border-color: var(--plum); background: var(--plum); color: #0F1726; }
html.dark .times button { background: #1A2438; box-shadow: 0 3px 10px -6px rgba(0,0,0,0.54); }
html.dark .times button.on { background: var(--plum); color: #0F1726; }
html.dark .times button[disabled] { background: #4A4A4B; }
html.dark .book-sum { background: linear-gradient(135deg, #304763, #484D48); }
html.dark .step { background: #1A2438; box-shadow: 0 3px 10px -6px rgba(0,0,0,0.54); }
html.dark .step .ck { background: #4A4A4B; color: #B1B7BE; }
html.dark .step.done .ck { background: #6F8D70; color: #fff; }
html.dark .set-row { background: #1A2438; box-shadow: 0 6px 20px -12px rgba(0,0,0,0.32); }
html.dark .set-row .mi { background: #304763; }
html.dark .theme-card .mi { background: #304763; }
html.dark .ev-info div { background: #1A2438; box-shadow: 0 3px 10px -6px rgba(0,0,0,0.54); }
html.dark .story-view { box-shadow: 0 30px 60px -20px rgba(0,0,0,0.9); }
html.dark .story-bars i b { background: #1A2438; }
html.dark .story-content h2 { text-shadow: 0 2px 20px rgba(0,0,0,0.27); }
html.dark .story-content p { text-shadow: 0 1px 10px rgba(0,0,0,0.36); }
html.dark .toast { color: #0F1726; box-shadow: 0 14px 30px -12px rgba(0,0,0,0.9); }
html.dark .dlg { background: #1A2438; }
html.dark .dlg .d-ic { background: #304763; }
html.dark .mk-stats span { box-shadow: 0 0 0 1px rgba(26,36,56,0.2) inset; }
html.dark .mk-search { box-shadow: 0 14px 30px -14px rgba(0,0,0,0.81); }
html.dark .mk-catpill { background: #1A2438; }
html.dark .mk-feat { background: #1A2438; }
html.dark .mk-img { background: #4A4A4B; }
html.dark .mk-ph-mono { background: rgba(26,36,56,0.88); }
html.dark .mk-heart { background: #1A2438; }
html.dark .mk-heart.on { color: #A4555F; }
html.dark .mk-heart.on svg { fill: currentColor; }
html.dark .mk-heart.float { box-shadow: 0 6px 14px -6px rgba(0,0,0,0.63); }
html.dark .mk-row { background: #1A2438; }
html.dark .mk-drafts .ic { color: #E7E0C4; }
html.dark .mk-home { background: #1A2438; }
html.dark .sel-pill { background: #1A2438; box-shadow: 0 0 0 1.5px #33405C inset; color: var(--ink-4); }
html.dark .sel-pill select { background: transparent; color: var(--ink-2); }
html.dark .view-biz .view-bar .icon-btn { background: rgba(26,36,56,0.9); }
html.dark .glass-heart { background: rgba(26,36,56,0.9); }
html.dark .bz-cover .mk-img { background: #304763; }
html.dark .bz-count { background: rgba(26,36,56,0.9); }
html.dark .bz-mod { background: #4A4A4B; color: #DAD6CD; }
html.dark .bz-act .c { background: #304763; color: #C5D8E2; }
html.dark .bz-act.wa .c { background: #384B52; color: #D1DED1; }
html.dark .bz-svc { background: #1A2438; }
html.dark .bz-go { background: #304763; }
html.dark .bz-soc a { background: #1A2438; }
html.dark .bz-foot { background: linear-gradient(180deg, rgba(251,250,244,0), rgba(71,76,72,0.96) 28%); }
html.dark .lb-stage img { box-shadow: 0 20px 50px -20px #000000; }
html.dark .sm-hero { background: linear-gradient(135deg, #1A2438 0%, #484D48 100%); }
html.dark .sm-pillars > div { background: #1A2438; }
html.dark .sm-ok-ic { background: #384B52; color: #D1DED1; box-shadow: 0 0 0 8px #33405C; }
html.dark .sm-steps > div { background: #1A2438; }
html.dark .sm-steps i { background: #304763; }
html.dark .auth-sample button { text-decoration-color: rgba(203,208,215,0.35); }
html.dark .duo-card { background: #1A2438; }
html.dark .duo-badge { color: #0F1726; }
html.dark .cur-row { background: #1A2438; box-shadow: 0 6px 20px -12px rgba(0,0,0,0.36); }
html.dark .cur-thumb { background: #304763; }
html.dark .cur-state.done { color: var(--sage-d); }
html.dark .cur-prog { background: #1A2438; }
html.dark .cur-prog i { background: linear-gradient(90deg, #445643, #4E5037); }
html.dark .fcard.cur-fcard .fc-img.cur-fimg { background: #304763; }
html.dark .cw-hchip { background: rgba(26,36,56,0.92); }
html.dark .cw-card { background: #1A2438; }
html.dark .cw-play .ic { background: rgba(26,36,56,0.95); box-shadow: 0 8px 20px -6px rgba(0,0,0,0.63); }
html.dark .cw-badge { background: rgba(26,36,56,0.95); }
html.dark .cw-fbtn { box-shadow: 0 0 0 1.5px #33405C inset; }
html.dark .cw-fbtn .count { background: #34445E; }
html.dark .cw-fbtn.active { background: var(--plum); color: #0F1726; }
html.dark .cw-fbtn.active .count { background: rgba(255,255,255,.25); color: #fff; }
html.dark .cw-faq-item { background: #1A2438; }
html.dark .cw-tag { background: #304763; }
html.dark .icon-btn.soft { background: #304763; }
html.dark .net-card { background: #1A2438; box-shadow: 0 6px 20px -12px rgba(0,0,0,0.36); }
html.dark .net-ex { color: #E7E0C4; background: #4D4F49; }
html.dark .net-tags i { background: #323E60; }
html.dark .net-pill.ok { background: #384B52; }
html.dark .input[aria-invalid="true"]:not(:placeholder-shown) { border-color: #33405C; }
html.dark .pc-vopt { background: #1A2438; }
html.dark .pc-vopt.on { background: #1A2438; }
html.dark .pc-vic { background: #323E60; }
html.dark .md-user .mi { background: #323E60; }
html.dark .rec-home { background: #1A2438; }
html.dark .rec-home-imgs img { box-shadow: 0 0 0 3px #1A2438; background: #4A4A4B; }
html.dark .rec-card { background: #1A2438; }
html.dark .rec-img { background: #4A4A4B; }
html.dark .rec-fav { background: rgba(26,36,56,0.94); box-shadow: 0 4px 12px -4px rgba(0,0,0,0.54); }
html.dark .rec-fav.on { color: #C24E62; }
html.dark .rec-hero { background: #4A4A4B; }
html.dark .icon-btn.rec-fav-top.on { color: #C24E62; }
html.dark .rec-sec { background: #1A2438; }
html.dark .rec-table th { background: #474A4C; }
html.dark .legal-toolbar { background: var(--surface, #1A2438); }
html.dark .legal-stage { background: #1A2438; }
html.dark .legal-frame { background: #1A2438; }
html.dark .legal-fallback .e-ic { background: var(--cream-2, #4A4A4B); }
html.dark .intro-veil-light { background: linear-gradient(180deg, rgba(72,77,72,0.78) 0%, rgba(65,74,80,0.72) 50%, rgba(72,77,72,0.86) 100%); }
/* estilos en línea (js) */
html.dark [style*="background:#F5F0DC"] { background: #4D4F49 !important; }
html.dark [style*="color:#4E5037"]:not([style*="background-color:#4E5037"]) { color: #E7E0C4 !important; }
html.dark [style*="background:#ECEDF4"] { background: #323E60 !important; }
html.dark [style*="background:#DDE9EF"] { background: #304763 !important; }
html.dark [style*="--tint:#F4E3E3"] { --tint: #473548 !important; }
html.dark [style*="color:#8E4450"]:not([style*="background-color:#8E4450"]) { color: #DBBDC1 !important; }
html.dark [style*="--tint:#ECEDF4"] { --tint: #323E60 !important; }
html.dark [style*="--tint:#F5F0DC"] { --tint: #4D4F49 !important; }
html.dark [style*="--tint:#E9EFE8"] { --tint: #384B52 !important; }
html.dark [style*="background:#E9EFE8"] { background: #384B52 !important; }
html.dark [style*="background:#F5F1E9"] { background: #4A4A4B !important; }
html.dark [style*="background:#fff"] { background: #1A2438 !important; }
html.dark [style*="color:#6E6028"]:not([style*="background-color:#6E6028"]) { color: #E8E1C7 !important; }
html.dark [style*="background:#EFF1F4"] { background: #35435D !important; }
html.dark [style*="background:#F4F1E8"] { background: #474A4C !important; }
html.dark [style*="background:#F4E3E3"] { background: #473548 !important; }
html.dark [style*="background:#F0F5F8"] { background: #2F4662 !important; }
html.dark [style*="color:#2F5568"]:not([style*="background-color:#2F5568"]) { color: #C5D8E2 !important; }
html.dark [style*="color:#4E5037"]:not([style*="background-color:#4E5037"]) { color: #D1DED1 !important; }
/* ajustes manuales */
html.dark .qr-box { background: #fff; }
html.dark .seg.light { background: var(--cream-2); }
html.dark .seg .seg-thumb { background: #2E3B58; }
html.dark .cw-video { background: #000; }
html.dark img { color-scheme: normal; }
html.dark .input, html.dark input, html.dark select, html.dark textarea { color: var(--ink); }
html.dark .input::placeholder, html.dark input::placeholder, html.dark textarea::placeholder { color: #8791A0; }
html.dark select option { background: #1A2438; color: var(--ink); }
html.dark .toast { background: #F3EFE4; color: #0F1726; }
html.dark .toast .ic { color: #2F5568; }
html.dark .toggle span { background: #3A4660; }
html.dark .net-badge { color: #0F1726; }
html.dark .chip.on .rec-n { opacity: 1; }
html.dark .toggle span::after { background: #F3EFE4; box-shadow: 0 2px 6px rgba(0,0,0,.45); }
html.dark .toggle input:checked + span { background: #8DB2C6; }

/* ==== FIN MODO OSCURO ==== */

/* v3.7.3 — artículos largos con foto */
.art-hero.art-hero-ph{padding:0;overflow:hidden;height:240px;display:block}
.art-hero.art-hero-ph img{width:100%;height:100%;object-fit:cover;display:block}
.article.art-long h2{font-size:19px;line-height:1.3;margin:26px 0 8px;color:var(--plum,#4A443B);font-weight:700}
.article.art-long p{margin:0 0 12px;line-height:1.65}
.article.art-long ul{margin:4px 0 16px;padding-left:20px}
.article.art-long li{margin:0 0 8px;line-height:1.55}
.article.art-long li::marker{color:#A4555F}
@media (min-width:900px){.article.art-long{max-width:720px;margin-left:auto;margin-right:auto}.art-hero.art-hero-ph{height:340px}}
.fc-img.fc-photo{position:relative;overflow:hidden}
.fcard .fc-kind{z-index:2}
/* 1.261104.1528: bloque de sueño en el registro diario */
.sueno-blk .lvl { grid-template-columns: repeat(3, 1fr); }
.sueno-blk .lvl + .sueno-line { margin-top: 10px; }
.sueno-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 6px; font-size: 13.5px; color: var(--ink-3); font-weight: 600; }
.stepper { display: inline-flex; align-items: center; gap: 10px; }
.stepper b { min-width: 28px; text-align: center; font-size: 18px; color: var(--ink); }
.stepper .btn { width: 36px; height: 36px; padding: 0; font-size: 20px; }
.sueno-blk .lvl button.on { color: #2B2823; }
.logo-mono.has-img { background: #fff; overflow: hidden; }
.logo-mono.has-img::after { display: none; }
.logo-mono.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Hello TV: visor de videos */
.tv-view .tv-body{position:absolute;inset:86px 0 0;overflow-y:auto;padding:0 16px 90px;-webkit-overflow-scrolling:touch}
.tv-intro{color:#fff;font-size:14px;line-height:1.45;margin:0 0 14px;opacity:.95}
.tv-player{position:relative;width:100%;aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:#000;box-shadow:0 10px 30px rgba(0,0,0,.3)}
.tv-player iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.tv-meta{color:#fff;margin:12px 2px 6px}
.tv-meta h2{font-size:17px;line-height:1.3;margin:0 0 4px;color:#fff}
.tv-meta small{display:block;opacity:.85;font-size:13px}
.tv-yt{display:inline-flex;align-items:center;gap:6px;margin-top:10px;padding:8px 14px;border-radius:999px;background:rgba(255,255,255,.92);color:#2B2823;font-weight:700;font-size:13px;text-decoration:none}
.tv-nav{display:flex;align-items:center;justify-content:center;gap:18px;color:#fff;margin:10px 0}
.tv-nav button{width:40px;height:40px;border-radius:50%;border:0;background:rgba(255,255,255,.25);color:#fff;display:grid;place-items:center}
.tv-nav button:disabled{opacity:.35}
.tv-list{display:flex;flex-direction:column;gap:8px}
.tv-item{display:flex;gap:10px;align-items:center;text-align:left;border:0;border-radius:14px;padding:8px;background:rgba(255,255,255,.18);color:#fff}
.tv-item.on{background:rgba(255,255,255,.4)}
.tv-item img{width:104px;height:58px;object-fit:cover;border-radius:10px;flex:none;background:#000}
.tv-item b{display:block;font-size:13px;line-height:1.3}
.tv-item small{display:block;font-size:12px;opacity:.85;margin-top:2px}

/* Explorar: categorías en cuadrícula, sin scroll horizontal */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; overflow: visible; gap: 10px 6px; padding: 6px 14px 14px; }
.cats .cat { width: auto; min-width: 0; font-size: 12px; gap: 6px; }
.cats .cat .cc { width: 56px; height: 56px; }
.cats .cat .cl { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) {
  .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row; gap: 12px 4px; padding: 6px 10px 12px; }
  .cats .cat { font-size: 11px; letter-spacing: -.1px; }
  .cats .cat .cc { width: 54px; height: 54px; }
}
@media (max-width: 340px) { .cats .cat .cc { width: 48px; height: 48px; } }
