@charset "utf-8";
/* Layout: selector de rol arriba; terapeuta y profesionales usan pestañas con lista a la izquierda y ficha a la derecha (apiladas en móvil); el paciente ve un celular centrado con navegación inferior. */
:root {
  --bg: #FFF7EE;
  --surface: #FFFFFF;
  --surface-2: #FDEBDA;
  --fg: #3A2218;
  --muted: #7A5F52;
  --line: #F2DDCA;
  --accent: #C9421A;
  --accent-soft: #FDE3D3;
  --accent-fg: #FFFFFF;
  --warm: #E08A2E;
  --ok: #1E7B4B;
  --warn: #9A6A00;
  --crit: #B3261E;
  --ok-bg: #DDF3E6;
  --warn-bg: #FFF1CC;
  --crit-bg: #FDE3E0;
  --font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1D1410; --surface: #2A1D17; --surface-2: #38271F; --fg: #F3E8E0; --muted: #B9A296; --line: #4A362C;
    --accent: #E8925F; --accent-soft: #4A2A1B; --accent-fg: #1D1410; --warm: #F0B84A;
    --ok: #6FD39B; --warn: #F2C75C; --crit: #FF8A80; --ok-bg: #153325; --warn-bg: #3A2E0C; --crit-bg: #3F1C19;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1D1410; --surface: #2A1D17; --surface-2: #38271F; --fg: #F3E8E0; --muted: #B9A296; --line: #4A362C;
  --accent: #E8925F; --accent-soft: #4A2A1B; --accent-fg: #1D1410; --warm: #F0B84A;
  --ok: #6FD39B; --warn: #F2C75C; --crit: #FF8A80; --ok-bg: #153325; --warn-bg: #3A2E0C; --crit-bg: #3F1C19;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { color: var(--fg); font-family: var(--font-body); font-size: 15px; line-height: 1.5; padding-block: 18px 56px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1180px; margin: 0 auto; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; line-height: 1.15; }
h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 21px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tiny { font-size: 12.5px; color: var(--muted); }
.lead { color: var(--muted); }
header { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.brand small { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 600; color: var(--accent); margin-bottom: 4px; }
.banner { background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: 8px 12px; font-size: 13px; max-width: 52ch; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
@media (max-width: 600px) { .tabs { flex-wrap: wrap; overflow-x: visible; } .tabs .tab { flex: 1 1 auto; justify-content: center; padding: 8px 12px; } }
.tab { border: 0; background: transparent; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--muted); white-space: nowrap; display: flex; gap: 8px; align-items: center; }
.tab:hover { background: var(--surface-2); }
.tab[aria-selected="true"] { color: var(--accent-fg); }
.count { font-size: 12px; background: var(--crit); color: #fff; border-radius: 999px; padding: 0 7px; min-width: 20px; text-align: center; }
:root[data-theme="dark"] .count { color: #1b0d0c; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.btn { color: var(--accent-fg); border: 0; font-weight: 600; cursor: pointer; }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.ghost { background: var(--surface-2); color: var(--fg); }
.btn.small { padding: 6px 11px; font-size: 13px; }
.btn.danger { color: var(--crit); }
input[type="text"], input[type="number"], select, textarea { width: 100%; border: 1px solid var(--line); }
textarea { resize: vertical; min-height: 64px; }
label.lbl { font-size: 12.5px; font-weight: 600; color: var(--muted); display: block; margin-bottom: 4px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 12px; }
.field { min-width: 0; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.crit { background: var(--crit-bg); color: var(--crit); }
.pill.neutral { background: var(--surface-2); color: var(--muted); }
.notice { padding: 10px 12px; font-size: 14px; }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.notice.crit { background: var(--crit-bg); color: var(--crit); }
.notice.info { background: var(--accent-soft); color: var(--fg); }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); padding: 12px 14px; }
.tile b { display: block; font-family: var(--font-display); font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile span { font-size: 12.5px; color: var(--muted); }
.cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.alert { border: 1px solid var(--line); border-left: 4px solid var(--muted); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.alert.alta { border-left-color: var(--crit); }
.alert.media { border-left-color: var(--warn); }
.alert.baja { border-left-color: var(--accent); }
.empty { color: var(--muted); padding: 18px; text-align: center; border: 1px dashed var(--line); border-radius: 10px; }
.tbl-wrap { overflow-x: auto; }
.ctgrid input, .ctgrid select { width: 100%; min-width: 0; box-sizing: border-box; }
.tbl-stack { container-type: inline-size; container-name: tstack; }
.tbl-stack td .row { flex-wrap: wrap; }
@container tstack (max-width: 740px) {
  .tbl-stack table, .tbl-stack tbody, .tbl-stack tr, .tbl-stack td { display: block; width: 100%; }
  .tbl-stack thead { display: none; }
  .tbl-stack tr { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; }
  .tbl-stack td { border: 0; padding: 4px 0; display: flex; gap: 10px; justify-content: space-between; align-items: center; flex-wrap: wrap; text-align: right; }
  .tbl-stack td::before { content: attr(data-l); color: var(--muted); font-size: 12px; text-align: left; }
  .tbl-stack td:first-child { text-align: left; font-size: 15px; padding-bottom: 6px; }
  .tbl-stack td:first-child::before { display: none; }
  .tbl-stack td:last-child { justify-content: flex-start; padding-top: 8px; }
  .tbl-stack td:last-child::before { display: none; }
}
table { border-collapse: collapse; width: 100%; font-size: 13.5px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
td.nw { white-space: nowrap; }
/* pacientes */
.split { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split.has-detail .listcol { display: none; } .split:not(.has-detail) .detailcol { display: none; } }
.listcol { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pitem { width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.pitem:hover { border-color: var(--accent); }
.pitem[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.pitem .top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.pitem b { font-weight: 600; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--crit); display: inline-block; margin-right: 6px; }
.mods { display: flex; flex-wrap: wrap; gap: 6px; }
.mod { font-size: 11.5px; background: var(--surface-2); color: var(--muted); border-radius: 6px; padding: 2px 7px; }
.detailcol { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.seg { display: inline-flex; background: var(--surface-2); padding: 3px; gap: 3px; }
.seg button { border: 0; background: transparent; padding: 7px 13px; cursor: pointer; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.seg button:disabled { opacity: .5; cursor: not-allowed; }
.seg.tabs2 { display: flex; flex-wrap: wrap; align-self: stretch; }
.seg.tabs2 button { flex: 1 1 auto; padding: 8px 10px; font-size: 14px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 14px; background: var(--bg); }
.checks input { accent-color: var(--accent); }
.checks label.on { border-color: var(--accent); background: var(--accent-soft); }
.whoq { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.whoq p { margin: 0; font-weight: 600; }
.whosc { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.whosc button { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 11px 0; font-weight: 600; font-size: 15px; cursor: pointer; color: var(--fg); }
.whosc button[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.whoends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); gap: 8px; }
.whoh summary { cursor: pointer; padding: 6px 0; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.chip:hover { border-color: var(--accent); }
.chip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.chip i.g { background: var(--ok); }
.chip i.y { background: var(--warn); }
.chip i.r { background: var(--crit); }
.chip.on { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.meal { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.meal:last-child { border-bottom: 0; }
.plate { width: 44px; height: 44px; }
.note { border-left: 3px solid var(--line); padding: 2px 0 2px 10px; }
@media (min-width: 861px) { .backbtn { display: none; } }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); background: var(--fg); color: var(--bg); border-radius: 10px; padding: 9px 16px; font-size: 14px; z-index: 20; }
@media (prefers-reduced-motion: no-preference) { .tab, .btn, .chip, .pitem { transition: background .15s, filter .15s, border-color .15s; } }
.who { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 10px 14px; margin-bottom: 14px; }
.who .seg { flex-wrap: wrap; max-width: 100%; }
.who .seg button { padding: 7px 10px; }
.who select { width: auto; min-width: 210px; max-width: 100%; }
.phone { max-width: 400px; margin: 0 auto; background: var(--bg); display: flex; flex-direction: column; min-height: 680px; }
.phone-head small { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 600; opacity: .85; }
.phone-head h2 { font-size: 22px; margin-top: 2px; }
.phone-body { flex: 1; display: flex; flex-direction: column; }
.pnav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; margin: 0 12px 12px; background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); position: sticky; bottom: 12px; z-index: 20; }
.pnav button { border: 0; background: transparent; transition: background .2s, color .2s, transform .15s; padding: 8px 2px 8px; font-size: 11.5px; font-weight: 600; color: var(--muted); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pnav button[aria-current="true"] { font-weight: 700; }
.pnav button:active { transform: scale(.94); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bubbles { display: flex; flex-direction: column; gap: 8px; }
.bub { max-width: 88%; padding: 9px 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.bub.u { align-self: flex-end; color: var(--accent-fg); border-bottom-right-radius: 4px; }
.exsheet { position: fixed; inset: 0; background: rgba(30,15,8,.5); display: flex; align-items: center; justify-content: center; padding: 12px; z-index: 60; }
.exbox { width: min(430px, 100%); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; border-radius: 24px; background: var(--bg); box-shadow: 0 24px 60px rgba(30,15,8,.35); outline: none; overscroll-behavior: contain; }
.exbox > .card { margin: 0; border: 0; box-shadow: none; background: transparent; }
.remind { position: fixed; inset: 0; background: rgba(30,15,8,.55); display: grid; place-items: center; padding: 16px; z-index: 50; }
.rbox { background: var(--surface); color: var(--fg); padding: 24px 20px; max-width: 360px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.rbox h2 { font-size: 22px; }
.rbox p { margin: 0; color: var(--muted); }
.ricon { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; }
.splash { min-height: 740px; border-radius: inherit; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 28px 22px 80px; text-align: center; color: #FFF6EA; background: linear-gradient(170deg, #CF633A 0%, #D56F3E 40%, #DA7842 62%, #EDA05A 82%, #7CC4B0 100%); }
.sp-glow { position: absolute; width: 360px; height: 360px; border-radius: 50%; top: 40px; left: 50%; margin-left: -180px; background: radial-gradient(circle, rgba(255,226,150,.75), rgba(255,226,150,0) 68%); animation: glow 3s ease-in-out infinite; }
.sp-char { position: relative; width: 320px; height: 320px; }
.sp-char video { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-mask-image: radial-gradient(closest-side, #000 74%, transparent 100%); mask-image: radial-gradient(closest-side, #000 74%, transparent 100%); }
.sp-hi { font-size: 34px; color: #FFF6EA; position: relative; opacity: 0; animation: riseIn .8s .3s ease-out forwards; text-shadow: 0 2px 14px rgba(120,40,10,.35); }
.sp-q { font-family: var(--font-display); font-size: 19px; line-height: 1.35; max-width: 28ch; margin: 0; position: relative; opacity: 0; animation: riseIn .9s .8s ease-out forwards; }
.sp-who { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; opacity: .85; margin: 6px 0 0; position: relative; }
.sp-dev { position: absolute; bottom: 78px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; font-size: 12px; background: rgba(255,247,238,.92); color: #5A3A2A; border-radius: 14px; padding: 6px 12px; white-space: nowrap; }
.sp-dev img { height: 28px; width: auto; display: block; }
.splash .sp-enter { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); background: #FFF6EA !important; color: #A33B1A !important; text-shadow: none; box-shadow: 0 4px 14px rgba(120,40,10,.3); white-space: nowrap; }
.spark { position: absolute; animation: twinkleBig 2.2s ease-in-out infinite; }
.spark.sb { top: 110px; right: 42px; animation-delay: .5s; }
.spark.sc { top: 260px; left: 28px; animation-delay: 1s; }
.spark.sd { top: 300px; right: 30px; animation-delay: 1.4s; }
.spark.se { top: 40px; right: 120px; animation-delay: .8s; }
@keyframes glow { 0%,100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes twinkleBig { 0%,100% { opacity: .15; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .sp-glow, .spark { animation: none; } .sp-hi, .sp-q { animation: none; opacity: 1; } }
.bcircle { width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), var(--surface-2)); border: 3px solid var(--accent); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; text-align: center; padding: 14px; transition: transform 4s ease-in-out; }
.bcircle.in { transform: scale(1.18); transition-duration: 4s; }
.bcircle.out { transform: scale(0.82); transition-duration: 6s; }
@media (prefers-reduced-motion: reduce) { .bcircle { transition: none; } }
.vstrip { display: flex; align-items: flex-end; gap: 10px; }
.vstrip .bub { max-width: none; flex: 1; }
.rimg { width: 150px; height: 150px; border-radius: 28px; background: none; overflow: hidden; }
.ricon.drop img { animation: bobBig 1.6s ease-in-out infinite; }
@keyframes bobBig { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .ricon.drop img { animation: none; } }
.coachcard { background: linear-gradient(180deg, var(--accent-soft), var(--surface) 55%, #E4F4EF 100%); }
:root { --teal: #2F9E8F; }
.brandrow { display: flex; align-items: center; gap: 12px; }
.brandlogo, .applogo { border-radius: 22%; flex: none; display: block; }
.devby { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 0 6px; font-size: 12px; color: var(--muted); }
.devby img { height: 34px; width: auto; display: block; background: #FFF7EE; padding: 4px 10px; border-radius: 10px; }
.devby.onphone { padding: 6px 0 2px; }
.bub.gl { max-width: 100%; display: flex; flex-direction: column; gap: 8px; white-space: normal; }
.bub.gl p { margin: 0; }
.heroq2 { font-family: var(--font-display); font-style: italic; color: var(--accent); margin: 2px 2px; font-size: 15px; }
.thinking { align-self: flex-start; display: flex; align-items: center; gap: 10px; }
.bub.s { align-self: center; background: transparent; color: var(--muted); font-size: 12.5px; padding: 2px 8px; text-align: center; }
.bub.a { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.sendrow { display: flex; gap: 8px; }
.metasgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mtile { background: var(--surface-2); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.mtile.wide { align-items: stretch; text-align: left; margin-top: 10px; }
.mt { font-size: 14px; }
.mbig { font-size: 26px; line-height: 1; }
.mhappy { display: flex; align-items: center; gap: 8px; }
.mfaces { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; width: 100%; }
.mf img { width: 100% !important; height: auto !important; aspect-ratio: 1; border-radius: 7px !important; }
.mf { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; color: var(--muted); min-width: 0; }
.mf i { width: 100%; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed var(--line); display: block; }
.mrow3 { display: flex; gap: 22px; align-items: baseline; flex-wrap: wrap; }
.chip.static { cursor: default; }
.hitos { display: flex; gap: 8px; flex-wrap: wrap; }
.hito { flex: 1 1 0; min-width: 0; border-radius: 16px; padding: 8px 4px; text-align: center; border: 2px dashed var(--line); color: var(--muted); display: flex; flex-direction: column; font-size: 12px; }
.hito b { font-size: 20px; }
.hito.on { border: 2px solid var(--accent); background: var(--accent-soft); color: var(--fg); }

.cm-lv { display: flex; gap: 6px; margin: 10px 0 4px; }
.cm-lv > div { flex: 1 1 0; min-width: 0; text-align: center; font-size: 11.5px; color: var(--muted); }
.cm-lv i { display: block; height: 8px; border-radius: 8px; margin-bottom: 4px; opacity: .35; }
.cm-lv .on i { opacity: 1; } .cm-lv .on { color: var(--fg); font-weight: 700; }
.cm-tag { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 13px; }
.cm-tag u { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 2px solid rgba(255,255,255,.7); }
.cm-bar { height: 10px; border-radius: 10px; background: var(--accent-soft); overflow: hidden; margin: 6px 0 2px; }
.cm-bar b { display: block; height: 100%; border-radius: 10px; background: var(--accent); }
.cm-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.cm-row:first-of-type { border-top: 0; }
.cm-row > div { flex: 1; min-width: 0; }
.cm-dot { width: 26px; height: 26px; border-radius: 50%; flex: none; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.hitocel { display: flex; gap: 12px; align-items: center; background: var(--accent-soft); border: 2px solid var(--accent); border-radius: 18px; padding: 10px; margin-bottom: 10px; }
.hitocel > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.faces { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.face { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--fg); cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600; line-height: 1.15; text-align: center; }
.face[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent); }
.fitem { display: grid; grid-template-columns: 1fr 84px 40px; gap: 6px; align-items: center; }
.fitem input, .fitem textarea { min-width: 0; width: 100%; }
.fitem textarea { resize: none; min-height: 0; height: 52px; line-height: 1.25; padding: 6px 10px; }
.mic { min-width: 48px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; }
.mic.rec { background: #d4442a; color: #fff; border-color: #d4442a; animation: micp 1.2s ease-in-out infinite; }
@keyframes micp { 50% { box-shadow: 0 0 0 8px rgba(212,68,42,.18); } }
@media (prefers-reduced-motion: reduce) { .mic.rec { animation: none; } }
.prog { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--accent); }
.apt { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.apt:last-child { border-bottom: 0; }
.date-badge { background: var(--accent-soft); border-radius: 10px; text-align: center; padding: 6px 0; font-size: 12px; line-height: 1.15; }
.date-badge b { display: block; font-size: 18px; font-family: var(--font-display); }
.shopcat label { display: flex; gap: 8px; align-items: center; padding: 3px 0; cursor: pointer; }
.shopcat input { accent-color: var(--accent); }
.photo { max-width: 100%; max-height: 220px; border-radius: 12px; border: 1px solid var(--line); object-fit: cover; }
.sw { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; cursor: pointer; }
.sw input { accent-color: var(--accent); }
.legend { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; overflow: hidden; flex: none; font-family: var(--font-display); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.glasses { display: flex; flex-wrap: wrap; gap: 6px; }
.rtable td:first-child { font-weight: 600; white-space: nowrap; }
a.btn { display: inline-block; text-decoration: none; }
.ic-agua.go .w,
.meta:hover .ic-agua .w,
.pnav button:hover .ic-agua .w,
.icircle:hover .ic-agua .w,
.arow:hover .ic-agua .w,
.chip:hover .ic-agua .w { animation: bob 1.8s ease-in-out infinite; }
.ic-agua.go .b1,
.meta:hover .ic-agua .b1,
.pnav button:hover .ic-agua .b1,
.icircle:hover .ic-agua .b1,
.arow:hover .ic-agua .b1,
.chip:hover .ic-agua .b1 { animation: rise 2s ease-in infinite; }
.ic-agua.go .b2,
.meta:hover .ic-agua .b2,
.pnav button:hover .ic-agua .b2,
.icircle:hover .ic-agua .b2,
.arow:hover .ic-agua .b2,
.chip:hover .ic-agua .b2 { animation: rise 2s 1s ease-in infinite; }
.ic-mover.go,
.meta:hover .ic-mover,
.pnav button:hover .ic-mover,
.icircle:hover .ic-mover,
.arow:hover .ic-mover,
.chip:hover .ic-mover { animation: runb .7s ease-in-out infinite; }
.ic-verduras.go,
.meta:hover .ic-verduras,
.pnav button:hover .ic-verduras,
.icircle:hover .ic-verduras,
.arow:hover .ic-verduras,
.chip:hover .ic-verduras { animation: sway 2.4s ease-in-out infinite; }
.ic-dormir.go .st1,
.meta:hover .ic-dormir .st1,
.pnav button:hover .ic-dormir .st1,
.icircle:hover .ic-dormir .st1,
.arow:hover .ic-dormir .st1,
.chip:hover .ic-dormir .st1 { animation: twinkle 1.6s ease-in-out infinite; }
.ic-dormir.go .st2,
.meta:hover .ic-dormir .st2,
.pnav button:hover .ic-dormir .st2,
.icircle:hover .ic-dormir .st2,
.arow:hover .ic-dormir .st2,
.chip:hover .ic-dormir .st2 { animation: twinkle 1.6s .8s ease-in-out infinite; }
.ic-respirar.go,
.meta:hover .ic-respirar,
.pnav button:hover .ic-respirar,
.icircle:hover .ic-respirar,
.arow:hover .ic-respirar,
.chip:hover .ic-respirar { animation: breathe 4.5s ease-in-out infinite; }
.ic-psico.go,
.meta:hover .ic-psico,
.pnav button:hover .ic-psico,
.icircle:hover .ic-psico,
.arow:hover .ic-psico,
.chip:hover .ic-psico { animation: beat 1.1s ease-in-out infinite; }
.ic-medico.go,
.meta:hover .ic-medico,
.pnav button:hover .ic-medico,
.icircle:hover .ic-medico,
.arow:hover .ic-medico,
.chip:hover .ic-medico { animation: pulse2 1.4s ease-in-out infinite; }
.ic-nutri.go,
.meta:hover .ic-nutri,
.pnav button:hover .ic-nutri,
.icircle:hover .ic-nutri,
.arow:hover .ic-nutri,
.chip:hover .ic-nutri { animation: wobble 1.6s ease-in-out infinite; }
.ic-depor.go,
.meta:hover .ic-depor,
.pnav button:hover .ic-depor,
.icircle:hover .ic-depor,
.arow:hover .ic-depor,
.chip:hover .ic-depor { animation: lift 1s ease-in-out infinite; }
.ic-control.go .ck,
.meta:hover .ic-control .ck,
.pnav button:hover .ic-control .ck,
.icircle:hover .ic-control .ck,
.arow:hover .ic-control .ck,
.chip:hover .ic-control .ck { animation: draw 1.6s ease-in-out infinite; }
.ic-sol.go .rays,
.meta:hover .ic-sol .rays,
.pnav button:hover .ic-sol .rays,
.icircle:hover .ic-sol .rays,
.arow:hover .ic-sol .rays,
.chip:hover .ic-sol .rays { animation: twinkle 1.8s ease-in-out infinite; }
.ic-estrella.go,
.meta:hover .ic-estrella,
.pnav button:hover .ic-estrella,
.icircle:hover .ic-estrella,
.arow:hover .ic-estrella,
.chip:hover .ic-estrella { animation: spinpop 2s ease-in-out infinite; }
.nv-inicio.go,
.meta:hover .nv-inicio,
.pnav button:hover .nv-inicio,
.icircle:hover .nv-inicio,
.arow:hover .nv-inicio,
.chip:hover .nv-inicio { animation: hop .9s ease-in-out infinite; }
.nv-coach.go .eye,
.meta:hover .nv-coach .eye,
.pnav button:hover .nv-coach .eye,
.icircle:hover .nv-coach .eye,
.arow:hover .nv-coach .eye,
.chip:hover .nv-coach .eye { animation: blink 2.6s ease-in-out infinite; }
.nv-ejercicio.go .pulse,
.meta:hover .nv-ejercicio .pulse,
.pnav button:hover .nv-ejercicio .pulse,
.icircle:hover .nv-ejercicio .pulse,
.arow:hover .nv-ejercicio .pulse,
.chip:hover .nv-ejercicio .pulse { animation: drawline 1.8s ease-in-out infinite; }
.nv-comidas.go .pl2,
.meta:hover .nv-comidas .pl2,
.pnav button:hover .nv-comidas .pl2,
.icircle:hover .nv-comidas .pl2,
.arow:hover .nv-comidas .pl2,
.chip:hover .nv-comidas .pl2 { animation: spinq 3s ease-in-out infinite; }
.nv-equipo.go .h1,
.meta:hover .nv-equipo .h1,
.pnav button:hover .nv-equipo .h1,
.icircle:hover .nv-equipo .h1,
.arow:hover .nv-equipo .h1,
.chip:hover .nv-equipo .h1 { animation: hop .9s ease-in-out infinite; }
.nv-equipo.go .h2,
.meta:hover .nv-equipo .h2,
.pnav button:hover .nv-equipo .h2,
.icircle:hover .nv-equipo .h2,
.arow:hover .nv-equipo .h2,
.chip:hover .nv-equipo .h2 { animation: hop .9s .15s ease-in-out infinite; }
.ic * { transform-box: fill-box; transform-origin: center; }
.ic { overflow: visible; }
.ic-verduras, .ic-mover, .ic-respirar, .ic-psico, .ic-medico, .ic-nutri, .ic-depor, .ic-estrella, .nv-inicio { transform-box: fill-box; transform-origin: 50% 85%; }
.ic-respirar, .ic-psico, .ic-medico, .ic-estrella { transform-origin: center; }
@keyframes bob { 0%,100% { transform: translateY(-.5px); } 50% { transform: translateY(.9px); } }
@keyframes rise { 0% { transform: translateY(2px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-5px); opacity: 0; } }
@keyframes runb { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-2px) rotate(3deg); } }
@keyframes sway { 0%,100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes twinkle { 0%,100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes breathe { 0%,100% { transform: scale(.94); } 50% { transform: scale(1.14); } }
@keyframes beat { 0%,40%,100% { transform: scale(1); } 15% { transform: scale(1.2); } 30% { transform: scale(.95); } }
@keyframes pulse2 { 0%,100% { transform: scale(1); } 50% { transform: scale(1.14); } }
@keyframes wobble { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@keyframes lift { 0%,100% { transform: translateY(1px); } 50% { transform: translateY(-2.5px); } }
@keyframes draw { 0% { stroke-dasharray: 0 30; } 60%,100% { stroke-dasharray: 30 0; } }
@keyframes spinpop { 0%,100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.18) rotate(18deg); } }
@keyframes hop { 0%,100% { transform: translateY(0); } 40% { transform: translateY(-2.5px); } }
@keyframes blink { 0%,90%,100% { transform: scaleY(1); } 94% { transform: scaleY(.1); } }
@keyframes drawline { 0% { stroke-dasharray: 0 100; } 70%,100% { stroke-dasharray: 100 0; } }
@keyframes spinq { 0%,100% { transform: rotate(0); } 50% { transform: rotate(120deg); } }
.arow .ic-psico { animation: beat 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .ic, .ic * { animation: none !important; } }
.metas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.meta { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 0; cursor: pointer; color: var(--fg); min-width: 0; }
.metalab { font-size: 10px; letter-spacing: -.02em; hyphens: none; overflow-wrap: normal; font-weight: 600; text-align: center; line-height: 1.15; }
.glassb { border: 0; background: transparent; padding: 2px; cursor: pointer; }
.ok-note { background: var(--ok-bg); color: var(--ok); display: flex; gap: 6px; align-items: center; font-weight: 600; }
.icircle { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.arow { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); }
.arow:last-child { border-bottom: 0; }
.exgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.exitem { border: 1px solid var(--line); background: var(--surface); padding: 6px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; align-items: stretch; text-align: center; font-weight: 600; font-size: 13px; }
.exitem:hover { border-color: var(--accent); }
.exitem img { width: 100% !important; height: 112px !important; object-fit: cover; }
.posepair img { width: 100% !important; height: auto !important; max-width: 100%; }
.posepair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.posepair.p3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.posepair.l1 { grid-template-columns: 1fr; }
.posepair figcaption { margin-top: 4px; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.rday { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.rday:last-child { border-bottom: 0; }
@media (max-width: 480px) { .phone { border-radius: 18px; } }
.ic-consciente .lf, .ic-consciente .lf2 { transform-box: fill-box; transform-origin: 0% 100%; }
.ic-consciente.go .lf, .meta:hover .ic-consciente .lf, .icircle:hover .ic-consciente .lf, .arow:hover .ic-consciente .lf { animation: sway 2.2s ease-in-out infinite; }
.ic-consciente.go .lf2, .meta:hover .ic-consciente .lf2, .icircle:hover .ic-consciente .lf2, .arow:hover .ic-consciente .lf2 { animation: sway 2.2s .4s ease-in-out infinite reverse; }
/* ===== Look moderno + volumen ===== */
:root { --sh1: 0 1px 2px rgba(90,40,15,.06), 0 6px 18px rgba(90,40,15,.07); --sh2: 0 2px 4px rgba(90,40,15,.08), 0 14px 34px rgba(90,40,15,.14); --r: 20px; }
:root[data-theme="dark"] { --sh1: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.28); --sh2: 0 2px 4px rgba(0,0,0,.35), 0 14px 34px rgba(0,0,0,.45); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sh1: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.28); --sh2: 0 2px 4px rgba(0,0,0,.35), 0 14px 34px rgba(0,0,0,.45); } }
body { background: radial-gradient(900px 500px at 10% -10%, color-mix(in srgb, var(--warm) 16%, transparent), transparent 70%), radial-gradient(800px 480px at 100% 0%, color-mix(in srgb, #2F9E8F 12%, transparent), transparent 70%), var(--bg); background-attachment: fixed; letter-spacing: -.003em; }
.panel, .card, .tile { border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-radius: var(--r); box-shadow: var(--sh1); }
.tile { border-radius: 18px; }
.card { padding: 16px; }
.btn { border-radius: 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, #fff), var(--accent)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 10px color-mix(in srgb, var(--accent) 38%, transparent); transition: transform .15s, box-shadow .15s, filter .15s; padding: 10px 18px; }
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); box-shadow: inset 0 2px 4px rgba(0,0,0,.2); }
.btn.ghost, .btn.danger { background: var(--surface-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 1px 3px rgba(0,0,0,.08); }
.btn.danger { background: var(--crit-bg); }
input[type="text"], input[type="number"], select, textarea { border-radius: 14px; padding: 10px 12px; background: color-mix(in srgb, var(--surface) 70%, var(--bg)); box-shadow: inset 0 1px 3px rgba(90,40,15,.08); }
.tab { padding: 10px 16px; transition: background .2s, transform .15s; }
.tab[aria-selected="true"] { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, #fff), var(--accent)); box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 35%, transparent); }
.seg { border-radius: 14px; box-shadow: inset 0 1px 3px rgba(90,40,15,.1); }
.seg button { border-radius: 11px; }
.chip { box-shadow: var(--sh1); }
.notice { border-radius: 14px; }
.phone { border-radius: 38px; box-shadow: var(--sh2); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); overflow: clip; }
.phone-head { background: linear-gradient(135deg, #D8502A, #EC8A3E); border-radius: 0 0 28px 28px; padding: 18px 20px 20px; box-shadow: 0 8px 22px color-mix(in srgb, #D8502A 30%, transparent); position: relative; z-index: 2; }
.phone-body { padding: 18px 14px 14px; gap: 14px; }
.bub { border-radius: 18px; }
.bub.u { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, #fff), var(--accent)); box-shadow: 0 3px 8px color-mix(in srgb, var(--accent) 30%, transparent); }
.bub.a { box-shadow: var(--sh1); }
.exitem { border-radius: 20px; box-shadow: var(--sh1); transition: transform .15s, box-shadow .15s; }
.exitem:hover { transform: translateY(-2px); box-shadow: var(--sh2); }
.rbox { border-radius: 32px; box-shadow: var(--sh2); }
.ricon { background: radial-gradient(circle at 35% 25%, #fff, var(--accent-soft) 70%); box-shadow: inset 0 -6px 12px rgba(201,66,26,.12), 0 10px 24px color-mix(in srgb, var(--accent) 25%, transparent); }
/* Iconos con volumen */
.icircle { border-radius: 34%; color: #fff; background: radial-gradient(120% 90% at 30% 12%, rgba(255,255,255,.55), rgba(255,255,255,0) 46%), linear-gradient(160deg, var(--c2, #F0A062), var(--c1, #D8502A));
  box-shadow: inset 0 2px 2px rgba(255,255,255,.65), inset 0 -5px 8px rgba(0,0,0,.2), 0 8px 14px color-mix(in srgb, var(--c1, #D8502A) 42%, transparent), 0 2px 3px rgba(0,0,0,.14); position: relative; transition: transform .2s; }
.icircle:hover { transform: translateY(-2px) scale(1.04); }
.icircle::after { content: ""; position: absolute; left: 14%; right: 14%; top: 6%; height: 34%; border-radius: 50%; background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,0)); pointer-events: none; }
.icircle svg, .vi { filter: drop-shadow(0 1.5px 1px rgba(0,0,0,.28)); position: relative; z-index: 1; }
.vol { filter: drop-shadow(0 3px 3px rgba(0,0,0,.25)); }
.pnav { border-radius: 30px; padding: 7px; border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 16px 36px rgba(120,50,20,.28), 0 2px 8px rgba(0,0,0,.1); }
.pnav button { border-radius: 23px; }
.pnav svg { filter: drop-shadow(0 2px 1.5px rgba(90,40,15,.28)); width: 24px; height: 24px; transition: transform .2s; }
.pnav button[aria-current="true"] { color: #fff; background: linear-gradient(180deg, #EE8A4F, var(--accent) 70%); box-shadow: inset 0 1px 1px rgba(255,255,255,.5), inset 0 -3px 5px rgba(0,0,0,.18), 0 8px 16px color-mix(in srgb, var(--accent) 45%, transparent); }
.pnav button[aria-current="true"] svg { filter: drop-shadow(0 2px 1px rgba(0,0,0,.3)); transform: translateY(-1px) scale(1.08); }
.phone-head { color: #fff; }
.pnav button[aria-current="true"] svg * { fill-opacity: .3; }
.glassb svg { filter: drop-shadow(0 2px 2px rgba(0,60,80,.25)); }
.arow { padding: 10px 0; }
.modegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modeopt { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 12px; border-radius: 20px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; box-shadow: var(--sh1); transition: transform .15s, border-color .15s, background .15s; }
.modeopt:hover:not(:disabled) { transform: translateY(-2px); }
.modeopt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.modeopt:disabled { opacity: .45; cursor: not-allowed; }
.planrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.planrow:last-of-type { border-bottom: 0; }
.planlab { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.planlab input { width: 20px; height: 20px; accent-color: var(--accent); }
.planrow input[type="time"] { width: auto; min-width: 118px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: var(--bg); }
.apptplan { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 10px; border-radius: 18px; background: var(--surface-2); align-items: start; }
.apptplan.soon { background: var(--warn-bg); }
.apptplan .tiny { margin-top: 2px; }
.warnt { color: var(--warn); font-weight: 600; }
.gcal { margin-top: 8px; display: inline-block; text-decoration: none; }
.alertrow { display: flex; gap: 8px; align-items: center; }
.alertrow .ic-alerta, .apptplan.soon .ic-alerta { animation: ring 2.4s ease-in-out infinite; transform-origin: 50% 15%; }
@keyframes ring { 0%,60%,100% { transform: rotate(0); } 10% { transform: rotate(14deg); } 20% { transform: rotate(-12deg); } 30% { transform: rotate(8deg); } 40% { transform: rotate(-5deg); } }
.sess { align-items: start; overflow: auto; }
.sbox { max-width: 400px; margin: 0 auto; }
.bigclock { font-family: var(--font-display); font-size: 54px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; color: var(--accent); }
.sp-prog { width: 100%; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.12); }
.sp-prog i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--warm), var(--accent)); transition: width .8s; }
.stk-top { width: 100%; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.phasechip { padding: 6px 14px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; }
.phasechip.rest { background: #D8F2EC; color: #1F7A6D; }
.poseholder svg { filter: drop-shadow(0 6px 10px rgba(90,40,15,.16)); }
@media (prefers-reduced-motion: reduce) { .alertrow .ic-alerta { animation: none; } }
.outline { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 18px; background: var(--surface-2); }
.outrow { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: center; }
.outrow svg { border-radius: 10px; }
.mealcard { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 12px; border-radius: 18px; background: #E4F4E6; color: #1F4A2B; width: 100%; }
.mealcard small { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: 10.5px; display: block; }
.mealcard .tiny { color: #3E6B4A; margin-top: 2px; }
.mealcard svg { color: #2F8F4E; flex: none; margin-top: 2px; }
.mealplan { margin: -2px 0 6px 30px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mealcard { background: #1B3324; color: #CFEAD4; } :root:not([data-theme="light"]) .mealcard .tiny { color: #A9CDB0; } }
:root[data-theme="dark"] .mealcard { background: #1B3324; color: #CFEAD4; }
:root[data-theme="dark"] .mealcard .tiny { color: #A9CDB0; }
.cues { justify-content: center; gap: 6px; margin-top: 8px; }
.chip.cue { cursor: default; background: #E4F4E6; color: #1F4A2B; border-color: transparent; font-weight: 600; font-size: 12.5px; padding: 5px 10px; }
.chip.cue svg { color: #2F8F4E; }
.idlebreath { width: 190px; height: auto; border-radius: 18px; box-shadow: 0 6px 16px rgba(90,40,15,.18); transform-origin: 50% 100%; animation: idlebr 4.2s ease-in-out infinite; }
@keyframes idlebr { 0%,100% { transform: scale(1); } 50% { transform: scale(1.022, 1.012); } }
@media (prefers-reduced-motion: reduce) { .idlebreath { animation: none; } }

.jcard { border-radius: 22px; overflow: hidden; background: var(--surface); box-shadow: var(--sh1); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.jhead { padding: 14px 16px; color: #fff; display: flex; flex-direction: column; gap: 2px; }
.jhead small { text-transform: uppercase; letter-spacing: .1em; font-weight: 700; opacity: .85; font-size: 11px; }
.jhead h3 { font-size: 17px; } .jhead p { font-size: 13px; opacity: .9; }
.jbody { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.jing { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.jflag { font-size: 12.5px; padding: 8px 10px; }
.dxweek { border: 1px solid var(--line); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.dxweek.cur { border-color: var(--accent); background: var(--accent-soft); }
.dxweek.off { opacity: .7; }
.phase { padding: 10px 12px; border-radius: 16px; background: var(--surface-2); display: flex; flex-direction: column; gap: 2px; }
.phase.cur { background: var(--accent-soft); border: 2px solid var(--accent); }
.phase.off { opacity: .6; }

.nervopts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 700px) { .nervopts { grid-template-columns: 1fr; } }
.nervopt { border: 1px solid var(--line); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); align-items: flex-start; }
.nervopt.on { border: 2px solid var(--accent); background: var(--accent-soft); }
.dxtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.dxtable th, .dxtable td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid var(--line); }
.tablewrap { overflow-x: auto; }

.favchip { display: inline-flex; align-items: center; gap: 2px; }
.favx { border: 0; background: var(--surface-2); color: var(--muted, inherit); width: 28px; height: 28px; border-radius: 50%; font-size: 17px; line-height: 1; cursor: pointer; }
.favx:hover { background: var(--accent-soft); }
#fav-new { flex: 1 1 200px; width: auto; min-width: 0; } #fav-col { width: auto; flex: 0 0 auto; }

.mealtotal { display: flex; justify-content: space-between; gap: 10px; padding: 10px 2px 2px; margin-top: 4px; border-top: 2px solid var(--line); font-size: 15px; }
.camwrap { display: flex; flex-direction: column; gap: 10px; }
.camwrap video { width: 100%; max-height: 62vh; border-radius: 18px; background: #000; object-fit: cover; }

.dietlist { display: flex; flex-direction: column; gap: 8px; }
.dietopt { border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.dietopt.on { border: 2px solid var(--accent); background: var(--accent-soft); }
.dietrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dietname { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dietbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.dietdet { border-top: 1px solid var(--line); padding-top: 8px; }

.bub.consent { max-width: 92%; }

.cheer { font-size: 18px; line-height: 1.3; position: relative; align-self: center; max-width: 92%; margin: 4px auto; padding: 10px 14px; border-radius: 18px; background: var(--accent-soft); border: 2px solid var(--accent); font-weight: 700; text-align: center; opacity: 0; transform: translateY(4px) scale(.97); transition: opacity .3s, transform .3s; min-height: 20px; visibility: hidden; }
.cheer.on { opacity: 1; transform: none; visibility: visible; }
.cheer::before { content: ""; position: absolute; left: 50%; top: -9px; width: 14px; height: 14px; background: var(--accent-soft); border-left: 2px solid var(--accent); border-top: 2px solid var(--accent); transform: translateX(-50%) rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .cheer { transition: none; } }
.sdots{display:flex;gap:5px;flex-wrap:wrap;align-items:center}.sdots i{width:13px;height:13px;border-radius:50%;border:2px solid var(--accent);display:inline-block;box-sizing:border-box}.sdots i.f{background:var(--accent)}.sdots i.m{background:linear-gradient(90deg,var(--accent) 50%,transparent 50%)}.sdots i.h{border-style:dashed}.sdots i.n{width:7px;height:7px;border:1px solid var(--line);margin:0 3px}.semrow{border:1px solid var(--line);border-radius:14px;padding:12px;background:var(--surface)}
.remind { display: flex; align-items: center; justify-content: center; padding: 12px; overflow-y: auto; }
.rbox > * { flex-shrink: 0; }
.rbox { margin: auto; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; padding-bottom: 0; gap: 10px; overscroll-behavior: contain; }
.rbox > .stack:last-child { position: sticky; bottom: 0; z-index: 2; background: var(--surface); padding: 10px 0 20px; margin-top: auto; box-shadow: 0 -10px 12px -8px var(--surface); }
@media (max-height: 780px) {
  .rbox { padding-top: 14px; gap: 8px; }
  .rbox > div:first-child { display: flex; justify-content: center; }
  .rbox > div:first-child img, .rbox > div:first-child video, .rbox > div:first-child canvas { max-height: 26vh !important; width: auto !important; height: auto !important; max-width: 100%; object-fit: contain; }
  .rbox > div:first-child .rimg { width: 96px !important; height: 96px !important; }
  .rbox > div:first-child .rimg img { max-height: 96px !important; }
  .rbox h2 { font-size: 19px; }
}
.jdet { border: 1px solid var(--line); border-radius: 14px; margin: 6px 0; background: var(--surface); overflow: hidden; }
.jdet > summary { padding: 11px 14px; cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 8px; }
.jdet > summary::-webkit-details-marker { display: none; }
.jdet > summary:after { content: "Ver receta"; font-weight: 600; font-size: 12px; color: var(--accent); }
.jdet[open] > summary:after { content: "Ocultar"; }
.jdet > .jcard { margin: 0; border: 0; box-shadow: none; border-radius: 0; }
