/* FitDuo — claro por defecto; oscuro o automático en Perfil (o con el botón de tema).
   Cada persona tiene su color: Gabo celeste, Sofi violeta/rosa (data-user en <html>). */
:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f0f2f6;
  --text: #15181e;
  --muted: #6b7280;
  --line: #e4e7ec;
  --accent: #0ea5e9;
  --accent-2: #0284c7;
  --accent-soft: #e0f2fe;
  --accent-text: #ffffff;
  --logo: linear-gradient(135deg, #38bdf8, #2563eb);
  --good: #16a34a;
  --good-soft: #dcfce7;
  --note-bg: #fff5d6;
  --note-text: #7a5300;
  --water-bg: #dbeafe;
  --water-text: #2563eb;
  --toast-bg: #15181e;
  --toast-text: #ffffff;
  --blob1: rgba(56, 189, 248, .30);
  --blob2: rgba(99, 102, 241, .18);
  --blob3: rgba(20, 184, 166, .16);
  --prot: #3b82f6;
  --carb: #f59e0b;
  --fat: #ec4899;
  --fib: #8b5cf6;
  --danger: #d93a2f;
  --danger-soft: #fdecea;
  --warn: #b45309;
  --gabo: #0ea5e9;
  --sofi: #a855f7;
  --backdrop: rgba(17, 20, 26, .38);
  --shadow: 0 1px 2px rgba(15, 20, 30, .04), 0 4px 16px rgba(15, 20, 30, .06);
  --shadow-lg: 0 10px 40px rgba(15, 20, 30, .18);
  --radius: 16px;
  --tabs-h: 64px;
  color-scheme: light;
}
:root[data-user="sofi"] {
  --accent: #a855f7; --accent-2: #9333ea; --accent-soft: #f3e8ff;
  --logo: linear-gradient(135deg, #c084fc, #ec4899);
  --blob1: rgba(192, 132, 252, .28); --blob2: rgba(236, 72, 153, .18); --blob3: rgba(129, 140, 248, .16);
}
:root[data-theme="dark"] {
    --bg: #0d1017; --surface: #161a22; --surface-2: #212632; --text: #e9ebef; --muted: #9aa1ad; --line: #2a2f3a;
    --danger: #ff6b60; --danger-soft: #3a1c1a; --backdrop: rgba(0, 0, 0, .6);
    --good: #4ade80; --good-soft: #12301d; --note-bg: #3a2f12; --note-text: #ffd27a; --water-bg: #1e3a5f; --water-text: #93c5fd;
    --toast-bg: #e9ebef; --toast-text: #111318;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 10px 40px rgba(0, 0, 0, .6);
    color-scheme: dark;
    --accent: #38bdf8; --accent-2: #7dd3fc; --accent-soft: #0c2a3d; --accent-text: #04121c;
    --blob1: rgba(56, 189, 248, .16); --blob2: rgba(99, 102, 241, .14); --blob3: rgba(20, 184, 166, .10);
}
:root[data-theme="dark"][data-user="sofi"] {
    --accent: #c084fc; --accent-2: #d8b4fe; --accent-soft: #2a1840; --accent-text: #1a0826;
    --blob1: rgba(192, 132, 252, .16); --blob2: rgba(236, 72, 153, .13); --blob3: rgba(129, 140, 248, .10);
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #0d1017; --surface: #161a22; --surface-2: #212632; --text: #e9ebef; --muted: #9aa1ad; --line: #2a2f3a;
    --danger: #ff6b60; --danger-soft: #3a1c1a; --backdrop: rgba(0, 0, 0, .6);
    --good: #4ade80; --good-soft: #12301d; --note-bg: #3a2f12; --note-text: #ffd27a; --water-bg: #1e3a5f; --water-text: #93c5fd;
    --toast-bg: #e9ebef; --toast-text: #111318;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 10px 40px rgba(0, 0, 0, .6);
    color-scheme: dark;
    --accent: #38bdf8; --accent-2: #7dd3fc; --accent-soft: #0c2a3d; --accent-text: #04121c;
    --blob1: rgba(56, 189, 248, .16); --blob2: rgba(99, 102, 241, .14); --blob3: rgba(20, 184, 166, .10);
  }
  :root[data-theme="auto"][data-user="sofi"] {
    --accent: #c084fc; --accent-2: #d8b4fe; --accent-soft: #2a1840; --accent-text: #1a0826;
    --blob1: rgba(192, 132, 252, .16); --blob2: rgba(236, 72, 153, .13); --blob3: rgba(129, 140, 248, .10);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.45 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 20px; font-weight: 800; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 6px 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { opacity: .45; cursor: default; }
input, select, textarea { font: inherit; color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.lead { font-size: 16px; }
.pos { color: var(--good); }
.neg { color: var(--danger); }
.neg-soft { color: var(--warn); }
[hidden] { display: none !important; }

.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.sm { width: 16px; height: 16px; }

/* ---------- Estructura ---------- */
#app { min-height: 100vh; }
.side { display: none; }
.main { min-height: 100vh; padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 12px); }
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.logo { width: 30px; height: 30px; border-radius: 9px; background: var(--logo); color: #fff; display: grid; place-items: center; font-weight: 800; }
.top-right { display: flex; align-items: center; gap: 6px; }
.who-btn { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow); font-weight: 600; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; background: var(--gabo); flex: none; }
.avatar[data-who="sofi"] { background: var(--sofi); }
.avatar.big { width: 64px; height: 64px; font-size: 26px; }
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; }
.sync-dot[data-state="ok"] { background: var(--good); }
.sync-dot[data-state="busy"] { background: var(--carb); }
.sync-dot[data-state="err"] { background: var(--danger); }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; height: calc(var(--tabs-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--line);
}
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); }
.tabs a.on { color: var(--accent); }
.tabs a.on .ic { stroke-width: 2.3; }

.page { padding: 4px 16px 24px; max-width: 1240px; margin: 0 auto; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 14px; }
.cols { display: grid; gap: 14px; }
.col { display: grid; gap: 14px; align-content: start; min-width: 0; }
.cols.tight { gap: 18px; }

/* ---------- Tarjetas y botones ---------- */
.card { background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); min-width: 0; }
.card > h3 { margin-bottom: 10px; }
.card-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-bottom: 10px; }
.card-head h3 { display: flex; align-items: center; gap: 8px; }
.sec-title { margin: 8px 2px 4px; display: flex; gap: 8px; align-items: baseline; }
.sub { margin: 14px 0 8px; font-size: 13px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 700; white-space: nowrap; transition: transform .08s, background .15s; }
.btn:active { transform: scale(.97); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn.block { width: 100%; margin-top: 10px; }
.btn.primary { background: var(--accent); color: var(--accent-text); }
.btn.primary:hover { background: var(--accent-2); }
.btn.soft { background: var(--accent-soft); color: var(--accent-2); }
:root[data-theme="dark"] .btn.soft { color: var(--accent); }
.btn.ghost { background: var(--surface-2); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.ghost.danger, .btn.danger.ghost { background: var(--danger-soft); color: var(--danger); }
.link { color: var(--accent-2); font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 2px; }
:root[data-theme="dark"] .link { color: var(--accent); }
.icon-btn { width: 38px; height: 38px; border-radius: 11px; display: inline-grid; place-items: center; flex: none; }
.icon-btn.soft { background: var(--surface-2); }
.icon-btn.flip .ic { transform: scaleX(-1); }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.row-btns .btn { flex: 1; }
.row-btns.tight .btn { flex: 0 1 auto; }
.badge { background: var(--danger); color: #fff; border-radius: 99px; font-size: 11px; padding: 1px 6px; margin-left: 4px; }

.seg { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 12px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg > * { flex: 1; padding: 8px 10px; border-radius: 9px; font-weight: 600; font-size: 13.5px; text-align: center; white-space: nowrap; color: var(--muted); }
.seg > .on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.seg.small { margin: 0; }
.seg.small > * { padding: 6px 10px; font-size: 12.5px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 8px; padding: 0 16px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip { padding: 7px 12px; border-radius: 99px; background: var(--surface-2); font-size: 13.5px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.chip.sm { padding: 4px 10px; font-size: 12px; }
.chip.on { background: var(--accent-soft); color: var(--accent-2); border-color: var(--accent); }
:root[data-theme="dark"] .chip.on { color: var(--accent); }

/* ---------- Hoy ---------- */
.hint-card { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; background: var(--accent-soft); box-shadow: none; }
.streak { background: var(--surface); padding: 8px 14px; border-radius: 99px; box-shadow: var(--shadow); white-space: nowrap; }
.cal-card { display: grid; gap: 14px; }
.cal-ring { display: grid; place-items: center; }
.ring { position: relative; }
.ring svg { width: 100%; height: 100%; }
.ring-bg { fill: none; stroke: var(--surface-2); }
.ring-fg { fill: none; stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .5s; }
.ring-fg.over { stroke: var(--danger); }
.ring-fg.fast { stroke: var(--fib); }
.ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.big-num { font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.cal-eq { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 4px; }
.cal-eq > div, .stats3 > div, .stats4 > div, .goal-box > div { display: flex; flex-direction: column; gap: 1px; }
.cal-eq b { font-size: 17px; }
.macros { display: grid; gap: 10px; }
.meter-row { display: grid; gap: 4px; }
.meter-top { display: flex; justify-content: space-between; font-size: 13px; }
.meter { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; position: relative; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width .4s; }
.meter.prot i { background: var(--prot); } .meter.carb i { background: var(--carb); } .meter.fat i { background: var(--fat); } .meter.fib i { background: var(--fib); }
.meter-row + .meter-row { margin-top: 6px; }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.q-btn { background: var(--surface); box-shadow: var(--shadow); border-radius: 14px; padding: 12px 4px; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; text-align: center; }
.q-btn .ic { color: var(--accent); }

.meal-line { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.meal-line:first-of-type { border-top: 0; }
.meal-line .grow { display: flex; flex-direction: column; }
.meal-line .grow .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meal-emo { width: 38px; height: 38px; border-radius: 11px; background: var(--surface-2); display: grid; place-items: center; font-size: 18px; flex: none; }
.kc { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.cups { display: flex; flex-wrap: wrap; gap: 6px; }
.cup { width: 34px; height: 40px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.cup.on { background: var(--water-bg); color: var(--water-text); }
.cup.on .ic { fill: currentColor; }

.stats3, .stats4 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; margin: 4px 0 8px; }
.stats4 { grid-template-columns: repeat(4, 1fr); }
.stats3 b, .stats4 b { font-size: 18px; }
.partner .card-head h3 .avatar { width: 24px; height: 24px; font-size: 12px; }

.chart { width: 100%; }
.chart svg { width: 100%; display: block; overflow: visible; }
.bar { fill: var(--accent); opacity: .55; }
.bar.hi { opacity: 1; }
.bar.over { fill: var(--danger); }
.bar.gym { fill: var(--prot); }
.goal-line { stroke: var(--muted); stroke-width: .4; stroke-dasharray: 1.5 1.5; vector-effect: non-scaling-stroke; }
.trend { fill: none; stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
line.dot { stroke: var(--muted); stroke-width: 7; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .55; }
.bar-labels { display: flex; justify-content: space-around; font-size: 11px; color: var(--muted); margin-top: 4px; }
.bar-labels span { flex: 1; text-align: center; }
.bar-labels.between { justify-content: space-between; }
.bar-labels.between span { flex: none; }

/* ---------- Diario ---------- */
.date-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 12px; }
.date-pick { position: relative; display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.date-pick b { font-size: 19px; }
.date-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sum-strip { display: flex; align-items: center; justify-content: space-around; text-align: center; margin-bottom: 14px; padding: 12px; }
.sum-strip > div { display: flex; flex-direction: column; }
.sum-strip b { font-size: 18px; }
.op { color: var(--muted); font-size: 18px; }
.meal .card-head .kc { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 13.5px; }
.entry { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 0; border-top: 1px solid var(--line); }
.entry .grow { display: flex; flex-direction: column; }
.meal-actions { display: flex; gap: 8px; margin-top: 10px; }
.list-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 0; border-top: 1px solid var(--line); }
.card > .list-row:first-of-type, .card-head + .list-row { border-top: 0; }
.list-row .grow { display: flex; flex-direction: column; }
.card-ish { background: var(--surface); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); border: 0; }
.split { display: flex; height: 10px; border-radius: 99px; overflow: hidden; margin-top: 14px; }
.split i.prot { background: var(--prot); } .split i.carb { background: var(--carb); } .split i.fat { background: var(--fat); }
.split-leg { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.dot { display: inline-block; }
.split-leg .dot { width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; opacity: 1; }
i.dot.prot { background: var(--prot); } i.dot.carb { background: var(--carb); } i.dot.fat { background: var(--fat); }
.note { width: 100%; min-height: 80px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--surface-2); resize: vertical; }

/* ---------- Hojas ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 100; }
.sheet-backdrop { position: absolute; inset: 0; background: var(--backdrop); opacity: 0; transition: opacity .2s; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg);
  transform: translateY(100%); transition: transform .22s cubic-bezier(.2, .8, .2, 1);
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet.tall { height: 92vh; }
.sheet-wrap.open .sheet-backdrop { opacity: 1; }
.sheet-wrap.open .sheet { transform: none; }
.sheet::before { content: ''; display: block; width: 42px; height: 5px; border-radius: 9px; background: var(--line); margin: 8px auto 0; flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 6px 18px; }
.sheet-head h2 { font-size: 18px; }
.sheet-body { overflow-y: auto; padding: 4px 18px 20px; overscroll-behavior: contain; flex: 1; }
.menu-list { display: grid; gap: 4px; }
.menu-item { text-align: left; padding: 14px 12px; border-radius: 12px; background: var(--surface-2); font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.menu-item.danger { color: var(--danger); }
.person-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.person { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px; border-radius: 16px; background: var(--surface-2); border: 2px solid transparent; font-size: 17px; }
.person.on { border-color: var(--accent); }

.form { display: grid; gap: 12px; }
.form label, .inline-label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }
.form input, .form select, .inline-label select, .add-line input, .qty-row input, .qty-row select, .search-box input {
  height: 46px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: var(--surface-2); width: 100%; font-size: 16px;
}
.form input:focus, .form select:focus, .search-box input:focus, .add-line input:focus, .note:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.switch-row { display: flex !important; align-items: center; justify-content: space-between; color: var(--text) !important; font-size: 15px !important; }
.switch-row input { width: 46px; height: 26px; accent-color: var(--accent); }
.add-line { display: flex; gap: 8px; margin: 8px 0; }
.add-line .btn { flex: none; }
.big-input { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.big-input input { font-size: 40px; font-weight: 800; text-align: center; width: 160px; height: 64px; }
.big-input span { font-size: 20px; color: var(--muted); }

.search-box { position: relative; margin-bottom: 10px; }
.search-box .ic { position: absolute; left: 12px; top: 12px; color: var(--muted); }
.search-box input { padding-left: 40px; }
.tool-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.tool { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; background: var(--surface-2); font-size: 11.5px; font-weight: 600; text-align: center; line-height: 1.2; }
.tool .ic { color: var(--accent); }
.food-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.food-row .grow { display: flex; flex-direction: column; }
.add-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; flex: none; }
details.cat { border-bottom: 1px solid var(--line); }
details.cat summary { padding: 12px 2px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
details.cat summary::-webkit-details-marker { display: none; }

.food-det { display: grid; gap: 14px; }
.det-head { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.fav.on .ic { fill: #f5b301; stroke: #f5b301; }
.det-macros { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 6px; text-align: center; background: var(--surface-2); border-radius: 14px; padding: 12px 6px; }
.det-macros > div { display: flex; flex-direction: column; }
.det-kcal b { font-size: 24px; color: var(--accent); }
.qty-row { display: flex; align-items: center; gap: 8px; }
.qty-row input { width: 84px; text-align: center; font-weight: 700; flex: none; }
.qty-row select { flex: 1; min-width: 0; }
.qty-row .icon-btn { font-size: 20px; font-weight: 700; }

.loading { display: flex; flex-direction: column; align-items: center; padding: 30px 0; text-align: center; }
.spinner { width: 44px; height: 44px; border: 4px solid var(--surface-2); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.9s linear infinite; margin-bottom: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

.scanner { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; }
.scanner video { width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: absolute; inset: 25% 12%; border: 3px solid rgba(255, 255, 255, .85); border-radius: 12px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .3); }

.ai-review { display: grid; gap: 14px; }
.ai-photo { width: 100%; max-height: 240px; object-fit: cover; border-radius: 14px; }
.ai-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ai-item.off { opacity: .45; }
.ai-item .grow { display: flex; flex-direction: column; }
.g-in { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; }
.g-in input { width: 64px; height: 36px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); text-align: center; }
.ai-note { background: var(--surface-2); padding: 10px; border-radius: 10px; }
.chk { position: relative; display: inline-flex; flex: none; }
.chk input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chk span { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; }
.chk input:checked + span { background: var(--accent); border-color: var(--accent); }
.chk input:checked + span::after { content: '✓'; color: #fff; font-weight: 800; font-size: 14px; }

/* ---------- Recetas ---------- */
.seg.wide > * { flex: 1 0 auto; }
.ai-card { display: grid; gap: 12px; background: linear-gradient(135deg, var(--accent-soft), var(--surface)); }
.rgrid { display: grid; gap: 10px; }
.rcard { display: flex; gap: 12px; align-items: flex-start; text-align: left; background: var(--surface); border-radius: 14px; padding: 12px; box-shadow: var(--shadow); width: 100%; }
.rcard .grow { display: flex; flex-direction: column; gap: 2px; }
.r-emo { width: 48px; height: 48px; border-radius: 13px; background: var(--surface-2); display: grid; place-items: center; font-size: 26px; flex: none; }
.r-emo.big { width: 72px; height: 72px; font-size: 40px; border-radius: 18px; }
.miss { font-size: 12px; color: var(--warn); font-weight: 600; }
.buy-row { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.buy-row .grow { display: flex; flex-direction: column; }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.empty-emo { font-size: 46px; margin-bottom: 6px; }
.recipe { display: grid; gap: 16px; }
.r-hero { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.ing { list-style: none; padding: 0; margin: 8px 0; }
.ing li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.ing li > span { width: 20px; font-weight: 800; flex: none; }
.ing li.have > span { color: var(--accent); }
.ing li.miss > span { color: var(--danger); }
.steps { padding-left: 20px; margin: 8px 0; }
.steps li { margin-bottom: 8px; }
.ok-note { color: var(--good); font-weight: 600; }
.log-box { background: var(--surface-2); padding: 14px; border-radius: 16px; display: grid; gap: 4px; }
.log-box .qty-row { margin-top: 8px; }
.log-box .qty-row input, .log-box .qty-row select { background: var(--surface); }
.sticky-foot { position: sticky; bottom: -20px; background: var(--surface); padding: 6px 0 4px; }
.shop-row { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.shop-row .grow { display: flex; flex-direction: column; }
.shop-row.done b { text-decoration: line-through; color: var(--muted); }

/* ---------- Gimnasio ---------- */
.week-dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); font-weight: 600; }
.wd i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-style: normal; color: var(--text); font-size: 13px; }
.wd.on i { background: var(--accent); color: #fff; }
.wd.today i { outline: 2px solid var(--accent); outline-offset: 2px; }
.mg-row { display: grid; grid-template-columns: 92px 1fr 26px; gap: 8px; align-items: center; font-size: 13px; margin: 6px 0; }
.mg-row b { text-align: right; }
.meter.mg i { background: var(--prot); }
.meter.mg.full i { background: var(--accent); }
.meter.mg em { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--muted); opacity: .5; }
.active-card { display: flex; align-items: center; gap: 12px; background: var(--accent-soft); box-shadow: none; margin-bottom: 14px; }
.active-card .grow { display: flex; flex-direction: column; }
.hist-row { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.set-list { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.pr-note { background: var(--note-bg); color: var(--note-text); padding: 8px 12px; border-radius: 10px; font-weight: 600; }
.ex-plan { margin: 8px 0; }
.re-row { display: flex; align-items: center; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.re-row input { width: 52px !important; height: 38px !important; text-align: center; padding: 0 4px !important; }
.grid-emo { display: flex; gap: 8px; }
.emo-in { width: 60px !important; text-align: center; font-size: 22px !important; flex: none; }

.session-head { display: flex; align-items: center; gap: 12px; margin: 6px 0 10px; }
.session-head h1 { font-size: 22px; }
.progress { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-bottom: 14px; }
.progress i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.ex-card .card-head { align-items: flex-start; }
.ex-card .card-head .grow { display: flex; flex-direction: column; }
.set-grid { display: grid; grid-template-columns: 26px minmax(54px, 1fr) 70px 70px 42px; gap: 6px; align-items: center; padding: 4px 0; border-radius: 10px; }
.set-grid.head { font-size: 11.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.set-grid input { height: 40px; width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); text-align: center; font-weight: 700; font-size: 16px; padding: 0; }
.set-grid.done { background: var(--accent-soft); }
.set-grid.done input { background: transparent; border-color: transparent; }
.set-n { font-weight: 800; text-align: center; color: var(--muted); }
.set-chk { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.set-chk.on { background: var(--accent); color: #fff; }
.note-l { display: grid; gap: 6px; margin: 14px 0 0; font-weight: 600; color: var(--muted); font-size: 13px; }
.rest-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 10px); z-index: 40;
  display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 16px; overflow: hidden;
  background: #15181e; color: #fff; box-shadow: var(--shadow-lg);
}
.rest-bar > span { flex: 1; display: flex; align-items: center; gap: 6px; position: relative; }
.rest-bar b { font-size: 18px; font-variant-numeric: tabular-nums; }
.rest-bar button { position: relative; background: rgba(255, 255, 255, .14); color: #fff; border-radius: 9px; padding: 7px 10px; font-weight: 700; font-size: 13px; }
.rest-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); opacity: .45; transition: width 1s linear; }

/* ---------- Progreso y perfil ---------- */
.fast-row { display: flex; gap: 14px; align-items: center; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 6px 4px; text-align: right; border-bottom: 1px solid var(--line); }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl th { color: var(--muted); font-weight: 600; }
.report .tips { margin: 8px 0 0; padding-left: 18px; }
.report .tips li { margin-bottom: 4px; }
.goal-box { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; text-align: center; background: var(--accent-soft); padding: 12px 6px; border-radius: 14px; }
.goal-box b { font-size: 15px; }

#toast {
  position: fixed; left: 50%; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 18px); z-index: 200;
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: .2s;
  background: var(--toast-bg); color: var(--toast-text); padding: 11px 16px; border-radius: 12px; font-weight: 600; font-size: 14px;
  max-width: calc(100vw - 32px); box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center;
}
#toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast-btn { color: var(--accent); font-weight: 800; }

/* ---------- Celular chico ---------- */
@media (max-width: 380px) {
  .quick { grid-template-columns: repeat(2, 1fr); }
  .tool-row { grid-template-columns: repeat(2, 1fr); }
  .goal-box { grid-template-columns: repeat(3, 1fr); }
  .set-grid { grid-template-columns: 22px minmax(40px, 1fr) 60px 60px 40px; }
}

/* ---------- Tablet / PC ---------- */
@media (min-width: 720px) {
  .rgrid.wide { grid-template-columns: repeat(2, 1fr); }
  .cal-card { grid-template-columns: auto 1fr; align-items: center; }
  .cal-card .macros { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .cal-card .macros .meter-row + .meter-row { margin-top: 0; }
  .sheet { left: auto; right: 0; top: 0; bottom: 0; width: min(480px, 100vw); height: 100dvh; max-height: none; border-radius: 22px 0 0 22px;
    transform: translateX(105%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); padding-bottom: 0; }
  .sheet.wide { width: min(640px, 100vw); }
  .sheet.tall { height: 100dvh; }
  .sheet-wrap.open .sheet { transform: none; }
  .sheet-head { padding-top: 18px; }
  .sheet::before { display: none; }
}
@media (min-width: 1024px) {
  .m-only { display: none !important; }
  .tabs { display: none; }
  .side {
    display: flex; flex-direction: column; position: fixed; left: 0; top: 0; bottom: 0; width: 232px; padding: 22px 14px;
    background: var(--surface); border-right: 1px solid var(--line); z-index: 25;
  }
  .side .brand { padding: 0 10px 22px; font-size: 19px; }
  .side-nav { display: grid; gap: 4px; }
  .side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-weight: 600; color: var(--muted); }
  .side-nav a:hover { background: var(--surface-2); color: var(--text); }
  .side-nav a.on { background: var(--accent-soft); color: var(--accent-2); }
  :root[data-theme="dark"] .side-nav a.on { color: var(--accent); }
  .side-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 0 10px; }
  .main { margin-left: 232px; padding-bottom: 40px; }
  .top { justify-content: flex-end; padding: 16px 28px 8px; }
  .page { padding: 0 28px 40px; }
  h1 { font-size: 30px; }
  .cols { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
  .col { gap: 18px; }
  .rgrid.wide { grid-template-columns: repeat(3, 1fr); }
  .chips.scroll { margin: 0 0 8px; padding: 0; flex-wrap: wrap; }
  .rest-bar { left: auto; right: 28px; bottom: 24px; width: 420px; }
  #toast { bottom: 28px; }
  .seg.wide { max-width: 720px; }
  .q-btn:hover, .rcard:hover, .card-ish:hover { box-shadow: 0 2px 4px rgba(15, 20, 30, .06), 0 8px 24px rgba(15, 20, 30, .1); }
  .entry:hover, .food-row:hover, .list-row:hover { background: var(--surface-2); border-radius: 10px; }
}

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); background: radial-gradient(circle at 20% 0%, var(--accent-soft), transparent 60%), var(--bg); }
.login-card { width: min(420px, 100%); background: var(--surface); border-radius: 24px; padding: 28px 22px; box-shadow: var(--shadow-lg); }
.login-brand { text-align: center; margin-bottom: 14px; }
.login-brand h1 { margin-top: 10px; }
.logo.big { width: 60px; height: 60px; border-radius: 18px; font-size: 30px; margin: 0 auto; }
.login .person-pick { margin: 6px 0 16px; }
.login .person { padding: 14px; }
.login-msg { background: var(--danger-soft); color: var(--danger); padding: 10px 12px; border-radius: 12px; font-weight: 600; text-align: center; }
.ticket-card { background: var(--note-bg); box-shadow: none; }


/* ---------- Medidas, armar plato, describir con IA ---------- */
.tool-row { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 720px) { .tool-row { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 380px) { .tool-row { grid-template-columns: repeat(3, 1fr); } }
.warn-box { background: var(--note-bg); color: var(--note-text); padding: 10px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 600; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.pl-row { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.pl-row .grow { display: flex; flex-direction: column; }
.pl-qty { display: flex; gap: 6px; align-items: center; }
.pl-qty input { width: 70px !important; flex: none; text-align: center; font-weight: 700; }
.pl-qty select { flex: 1; min-width: 0; }
.pl-qty input, .pl-qty select { height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); padding: 0 8px; font-size: 15px; }
.ds-questions { background: var(--accent-soft); border-radius: 14px; padding: 4px 12px 8px; }
.ds-q { margin: 8px 0; }


/* ---------- v6: fondo animado, botón +, tema, heladera con cantidades ---------- */
.bg-anim { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-anim i { position: absolute; width: 75vmax; height: 75vmax; border-radius: 50%; will-change: transform;
  background: radial-gradient(circle, var(--blob1), transparent 62%); top: -30vmax; left: -25vmax; animation: drift1 34s ease-in-out infinite alternate; }
.bg-anim i:nth-child(2) { background: radial-gradient(circle, var(--blob2), transparent 62%); top: auto; bottom: -35vmax; left: auto; right: -30vmax; animation: drift2 42s ease-in-out infinite alternate; }
.bg-anim i:nth-child(3) { background: radial-gradient(circle, var(--blob3), transparent 62%); top: 30%; left: 35%; width: 55vmax; height: 55vmax; animation: drift3 50s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(28vw, 22vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-30vw, -18vh) scale(1.1); } }
@keyframes drift3 { from { transform: translate(-20vw, -10vh); } to { transform: translate(15vw, 20vh) scale(.9); } }
html.no-anim .bg-anim i { animation: none; }
@media (prefers-reduced-motion: reduce) { .bg-anim i { animation: none; } }
.side { background: color-mix(in srgb, var(--surface) 96%, transparent); }
.tabs { background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

.fab { position: fixed; right: 16px; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 16px); z-index: 35;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: color-mix(in srgb, var(--accent) 86%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 45%, transparent); transition: transform .12s; }
.fab .ic { width: 28px; height: 28px; stroke-width: 2.4; }
.fab:active { transform: scale(.92); }
.rest-bar { right: 86px; }
#toast { bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 90px); }
@media (min-width: 1024px) { .fab { display: none; } .rest-bar { right: 28px; } #toast { bottom: 28px; } }

.theme-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow); }
.side-foot { flex-wrap: wrap; row-gap: 10px; }
.side-theme { display: flex; gap: 4px; background: var(--surface-2); padding: 3px; border-radius: 10px; width: 100%; }
.side-theme button { flex: 1; padding: 6px 4px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.side-theme button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

.meal-line { cursor: pointer; }
.meal-line .chev { transition: transform .2s; color: var(--muted); }
.meal-line.open .chev { transform: rotate(90deg); }
.meal-items { padding: 0 0 8px 48px; }
.meal-items .entry { padding: 8px 0; }
.meal-items .btn { margin-top: 6px; }

.stock-chip { display: inline-flex; align-items: center; gap: 6px; }
.stock-chip em { font-style: normal; font-weight: 700; opacity: .75; font-size: 12px; }
.stock-chip.noqty em { opacity: .5; }
.brand-row { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 13.5px; }
.brand-row .grow { display: flex; flex-direction: column; }
.price-row { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.price-row .grow { display: flex; flex-direction: column; }
.price-row b.price { font-size: 17px; white-space: nowrap; }
.price-best { background: var(--good-soft); border-radius: 14px; padding: 12px; margin-bottom: 8px; }
.price-best .price { color: var(--good); }
.main { padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 84px); }
@media (min-width: 1024px) { .main { padding-bottom: 40px; } }

/* ---------- v7: estética (paneles redondeados, menú flotante plegable, fondo integrado) ---------- */
:root { --radius: 22px; --side-w: 236px;
  --bg-grad: linear-gradient(160deg, #f2f5f9 0%, #e9eef5 55%, #eef0f6 100%); }
:root[data-theme="dark"] { --bg-grad: linear-gradient(160deg, #0a0d13 0%, #0e131b 55%, #0c0f16 100%); }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] { --bg-grad: linear-gradient(160deg, #0a0d13 0%, #0e131b 55%, #0c0f16 100%); } }
html.side-mini { --side-w: 84px; }
html { background: var(--bg); }
body { background: transparent; }
/* El degradado vive en la capa del fondo (una sola capa, sin repintar toda la página). */
.bg-anim { background: var(--bg-grad); contain: strict; }
.bg-anim i { opacity: .8; }

/* La barra de arriba ya no tiene fondo propio (era la "franja" de otro color). */
.top { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .2s; }
.top.scrolled { background: color-mix(in srgb, var(--surface) 72%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--line) 70%, transparent); }

.card { border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 95%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03), 0 14px 34px rgba(15, 23, 42, .06); }
:root[data-theme="dark"] .card { box-shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 14px 34px rgba(0, 0, 0, .25); }
.q-btn, .rcard, .card-ish { border-radius: 18px; border: 1px solid color-mix(in srgb, var(--line) 65%, transparent); }
.btn { border-radius: 14px; }
.btn.sm { border-radius: 11px; }
.seg { border-radius: 14px; }
.sheet { border-radius: 26px 26px 0 0; }

.side-toggle { display: none; width: 30px; height: 30px; border-radius: 10px; place-items: center; color: var(--muted); margin-left: auto; }
.side-toggle:hover { background: var(--surface-2); color: var(--text); }
.side-theme button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.side-theme .ic { width: 15px; height: 15px; }

@media (min-width: 720px) { .sheet { border-radius: 26px 0 0 26px; } }
@media (min-width: 1024px) {
  .side { top: 14px; left: 14px; bottom: 14px; width: var(--side-w); border-radius: 26px; padding: 18px 12px;
    border: 1px solid color-mix(in srgb, var(--line) 65%, transparent); box-shadow: 0 14px 40px rgba(15, 23, 42, .08);
    transition: width .22s ease; overflow: hidden; }
  .side .brand { padding: 0 8px 22px; white-space: nowrap; }
  .side-nav a { white-space: nowrap; border-radius: 14px; }
  .side-toggle { display: grid; }
  .main { margin-left: calc(var(--side-w) + 28px); transition: margin-left .22s ease; }
  .top { position: static; padding: 14px 24px 4px 0; }
  .page { max-width: none; padding: 0 24px 40px 0; }

  html.side-mini .side { padding: 18px 10px; }
  html.side-mini .side .brand { flex-direction: column; gap: 12px; padding: 0 0 22px; }
  html.side-mini .side .brand b, html.side-mini .side-nav a span, html.side-mini .side-foot .small, html.side-mini .side-theme span { display: none; }
  html.side-mini .side-toggle { margin: 0; transform: scaleX(-1); }
  html.side-mini .side-nav a { justify-content: center; padding: 12px 0; }
  html.side-mini .side-theme { flex-direction: column; }
  html.side-mini .side-theme button { padding: 8px 0; }
  html.side-mini .side-foot { justify-content: center; padding: 0; }
}
/* Pantallas anchas: se aprovecha todo el ancho (la columna derecha se parte en dos). */
@media (min-width: 1480px) {
  .cols.wide2 { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.5fr); }
  .cols.wide2 > .col:last-child { grid-template-columns: 1fr 1fr; align-items: start; }
  .rgrid.wide { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Animación de la comida al agregar ---------- */
.food-hero { position: relative; height: 128px; border-radius: 22px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 115%, var(--accent-soft), transparent 70%), var(--surface-2); }
.fh-emo { font-size: 66px; line-height: 1; animation: fhfloat 3.2s ease-in-out infinite; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .12)); }
.fh-row { display: flex; gap: 6px; }
.fh-row .fh-emo { font-size: 46px; }
.fh-row .fh-emo:nth-child(2) { animation-delay: .4s; }
.fh-row .fh-emo:nth-child(3) { animation-delay: .8s; }
.fh-row .fh-emo:nth-child(4) { animation-delay: 1.2s; }
@keyframes fhfloat { 50% { transform: translateY(-7px) rotate(-3deg); } }
.food-hero .steam { position: absolute; bottom: 60%; width: 7px; height: 26px; border-radius: 8px; opacity: 0;
  background: linear-gradient(to top, transparent, color-mix(in srgb, var(--muted) 55%, transparent)); animation: steam 2.4s ease-in infinite; }
.food-hero .steam:nth-of-type(1) { left: calc(50% - 16px); }
.food-hero .steam:nth-of-type(2) { left: calc(50% - 3px); animation-delay: .8s; }
.food-hero .steam:nth-of-type(3) { left: calc(50% + 10px); animation-delay: 1.6s; }
@keyframes steam { 0% { transform: translateY(10px) scaleX(1); opacity: 0; } 35% { opacity: .7; } 100% { transform: translateY(-34px) scaleX(1.7); opacity: 0; } }
.food-hero.added .fh-emo { animation: fhpop .45s cubic-bezier(.5, -.4, .7, 1) forwards; }
@keyframes fhpop { 35% { transform: scale(1.25); } 100% { transform: translateY(-90px) scale(.3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fh-emo, .food-hero .steam { animation: none; } }
.comp-box { background: var(--surface-2); border-radius: 16px; padding: 10px 12px; display: grid; gap: 4px; }
.comp-box .brand-row { background: var(--surface); }
/* Sin animación del menú al abrir la página (solo al plegarlo). */
html:not(.ready) .side, html:not(.ready) .main { transition: none !important; }
