/* Nutria · hoja de estilos */
[hidden] { display: none !important; }
:root {
  --verde: #2f6b4f;
  --verde-2: #3d8563;
  --verde-suave: #e9f2ec;
  --crema: #fbf8f2;
  --crema-2: #f4eee3;
  --terracota: #cf7a52;
  --terracota-suave: #fbece4;
  --tinta: #1f2d26;
  --gris: #6d7d74;
  --gris-2: #9aa8a1;
  --linea: #e7e0d4;
  --blanco: #ffffff;
  --rojo: #b8422f;
  --ambar: #c98a1f;
  --azul: #3b6f8f;
  --radio: 18px;
  --radio-s: 12px;
  --sombra: 0 8px 30px rgba(31, 45, 38, .07);
  --sombra-s: 0 2px 10px rgba(31, 45, 38, .05);
  --nav-h: 72px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--crema);
  color: var(--tinta);
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.28rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .7em; }
a { color: var(--verde); }
small { font-size: .82rem; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: #cfe5d8; }

.app { max-width: 980px; margin: 0 auto; padding: 0 16px calc(var(--nav-h) + 28px); }
@media (min-width: 760px) { .app { padding: 0 28px calc(var(--nav-h) + 36px); } }

/* ---------- cabecera ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0 12px;
  background: linear-gradient(var(--crema) 72%, rgba(251, 248, 242, .86) 92%, transparent);
  backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.logo {
  width: 40px; height: 40px; border-radius: 13px; flex: none;
  display: grid; place-items: center; font-size: 21px;
  background: linear-gradient(145deg, #3d8563, #255a41);
  color: #fff; box-shadow: 0 4px 12px rgba(47, 107, 79, .28);
}
.brand b { display: block; font-size: 1.06rem; letter-spacing: -.02em; }
.brand span { display: block; font-size: .72rem; color: var(--gris); letter-spacing: .04em; text-transform: uppercase; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--blanco);
  background: var(--terracota-suave); color: var(--terracota); font-weight: 700;
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--sombra-s);
  flex: none;
}
.avatar:hover { transform: translateY(-1px); }

/* ---------- navegación ---------- */
.nav {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 14px; z-index: 40;
  width: min(560px, calc(100vw - 24px));
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  border: 1px solid var(--linea);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(31, 45, 38, .16);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 7px 6px;
}
.nav button {
  border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 2px 6px; border-radius: 16px;
  color: var(--gris); font-size: .68rem; font-weight: 600; letter-spacing: .01em;
  transition: background .18s, color .18s;
}
.nav button .ic { font-size: 1.28rem; line-height: 1; filter: grayscale(.35); transition: filter .18s, transform .18s; }
.nav button.on { color: var(--verde); background: var(--verde-suave); }
.nav button.on .ic { filter: none; transform: translateY(-1px) scale(1.05); }
.nav button:hover { color: var(--verde); }

/* ---------- tarjetas ---------- */
.card {
  background: var(--blanco); border: 1px solid var(--linea);
  border-radius: var(--radio); box-shadow: var(--sombra-s);
  padding: 18px; margin-bottom: 14px;
}
.card.pad-lg { padding: 22px; }
.card.flat { box-shadow: none; background: transparent; border: 0; padding: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-h h2, .card-h h3 { margin: 0; }
.muted { color: var(--gris); }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 12px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.auto { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 560px) { .grid.two, .grid.three { grid-template-columns: 1fr 1fr; } }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--linea); background: var(--blanco); color: var(--tinta);
  padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: .92rem;
  cursor: pointer; transition: transform .12s, box-shadow .18s, background .18s;
  min-height: 42px;
}
.btn:hover { box-shadow: var(--sombra-s); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--verde); border-color: var(--verde); color: #fff; }
.btn.primary:hover { background: var(--verde-2); }
.btn.soft { background: var(--verde-suave); border-color: transparent; color: var(--verde); }
.btn.terra { background: var(--terracota); border-color: var(--terracota); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--gris); }
.btn.sm { padding: 7px 11px; font-size: .82rem; min-height: 34px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--linea);
  background: var(--blanco); display: grid; place-items: center; cursor: pointer; font-size: 1rem;
}
.icon-btn:hover { background: var(--crema-2); }

/* ---------- formularios ---------- */
label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; font-size: .82rem; font-weight: 600; color: var(--gris); margin-bottom: 5px; }
input[type=text], input[type=number], input[type=date], input[type=password], input[type=time], select, textarea {
  width: 100%; padding: 11px 13px; border-radius: 12px;
  border: 1px solid var(--linea); background: var(--blanco);
  outline: none; transition: border .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--verde-2); box-shadow: 0 0 0 3px rgba(61, 133, 99, .13); }
textarea { min-height: 84px; resize: vertical; }
.inline-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inline-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .inline-3 { grid-template-columns: 1fr 1fr; } }
input[type=range] { width: 100%; accent-color: var(--verde); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--linea); background: var(--blanco); color: var(--tinta);
  padding: 8px 13px; border-radius: 999px; font-size: .86rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; transition: all .15s;
}
.chip:hover { border-color: var(--verde-2); }
.chip.on { background: var(--verde); border-color: var(--verde); color: #fff; }
.chip.on.warn { background: var(--terracota); border-color: var(--terracota); }
.chip.sm { padding: 5px 10px; font-size: .78rem; }

.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: 99px; background: #d9d2c5; position: relative; transition: background .2s; cursor: pointer; flex: none; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked { background: var(--verde); }
.switch input:checked::after { transform: translateX(18px); }

/* ---------- anillo de calorías ---------- */
.hero { display: grid; grid-template-columns: 148px 1fr; gap: 18px; align-items: center; }
@media (max-width: 520px) { .hero { grid-template-columns: 128px 1fr; gap: 12px; } }
.ring { position: relative; width: 100%; aspect-ratio: 1; max-width: 148px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .val { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .val b { font-size: 1.55rem; letter-spacing: -.03em; display: block; line-height: 1.05; }
.ring .val span { font-size: .68rem; color: var(--gris); text-transform: uppercase; letter-spacing: .08em; }

.macro { margin-bottom: 9px; }
.macro .lbl { display: flex; justify-content: space-between; font-size: .78rem; margin-bottom: 3px; }
.macro .lbl b { font-weight: 600; }
.bar { height: 7px; border-radius: 99px; background: var(--crema-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; transition: width .5s cubic-bezier(.2,.8,.3,1); }
.bar.p > i { background: linear-gradient(90deg, #3d8563, #63a983); }
.bar.c > i { background: linear-gradient(90deg, #b98b3e, #d9b061); }
.bar.f > i { background: linear-gradient(90deg, #c0704c, #e0996f); }
.bar.fib > i { background: linear-gradient(90deg, #6e8f5e, #9ab98a); }
.bar.w > i { background: linear-gradient(90deg, #3b7f9e, #6aa9c4); }
.bar.over > i { background: linear-gradient(90deg, #b8422f, #d76a55); }

/* ---------- comidas ---------- */
.meal { border: 1px solid var(--linea); border-radius: 14px; padding: 12px 13px; margin-bottom: 9px; background: var(--blanco); }
.meal-top { display: flex; align-items: center; gap: 10px; }
.meal-top .em { font-size: 1.25rem; }
.meal-top .nm { font-weight: 650; font-size: .93rem; }
.meal-top .kc { margin-left: auto; font-size: .82rem; color: var(--gris); font-variant-numeric: tabular-nums; }
.meal-items { margin-top: 7px; display: grid; gap: 4px; }
.meal-item { display: flex; align-items: center; gap: 8px; font-size: .87rem; padding: 5px 0; border-top: 1px dashed var(--linea); }
.meal-item:first-child { border-top: 0; }
.meal-item .x { margin-left: auto; color: var(--gris-2); cursor: pointer; border: 0; background: none; font-size: 1rem; padding: 2px 4px; }
.meal-item .x:hover { color: var(--rojo); }
.planned { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 9px 11px; border-radius: 11px; background: var(--verde-suave); font-size: .86rem; }
.planned .nm { font-weight: 600; color: #24513c; }
.planned .add { margin-left: auto; }

/* ---------- menú semanal ---------- */
.week { display: grid; gap: 10px; }
@media (min-width: 700px) { .week { grid-template-columns: 1fr 1fr; } }
.day { border: 1px solid var(--linea); border-radius: 14px; overflow: hidden; background: var(--blanco); }
.day-h { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--crema-2); font-weight: 650; font-size: .86rem; }
.day-h .tot { margin-left: auto; font-weight: 500; color: var(--gris); font-size: .78rem; }
.day-b { padding: 6px 8px 8px; }
.slot { display: flex; align-items: flex-start; gap: 7px; padding: 6px 4px; border-radius: 9px; cursor: pointer; }
.slot:hover { background: var(--crema); }
.slot .ic { font-size: .9rem; opacity: .8; margin-top: 1px; }
.slot .tx { flex: 1; min-width: 0; }
.slot .tx b { display: block; font-weight: 600; font-size: .84rem; line-height: 1.3; }
.slot .tx span { font-size: .74rem; color: var(--gris); }
.slot .kc { font-size: .75rem; color: var(--gris); white-space: nowrap; font-variant-numeric: tabular-nums; }
.slot.empty .tx b { color: var(--gris-2); font-weight: 500; font-style: italic; }

/* ---------- recetas ---------- */
.recipe-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.recipe { border: 1px solid var(--linea); border-radius: 15px; overflow: hidden; background: var(--blanco); cursor: pointer; transition: transform .15s, box-shadow .18s; display: flex; flex-direction: column; }
.recipe:hover { transform: translateY(-2px); box-shadow: var(--sombra); }
.recipe .thumb { height: 96px; display: grid; place-items: center; font-size: 2.2rem; background: linear-gradient(135deg, #eef4ef, #f7efe4); }
.recipe .body { padding: 11px 12px 12px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.recipe .body h4 { margin: 0; font-size: .92rem; line-height: 1.32; }
.recipe .meta { font-size: .76rem; color: var(--gris); display: flex; gap: 8px; flex-wrap: wrap; }
.recipe .macros { display: flex; gap: 10px; font-size: .74rem; color: var(--gris); margin-top: auto; }
.recipe .macros b { color: var(--tinta); font-weight: 600; }

.stars { letter-spacing: 1px; color: var(--ambar); font-size: .82rem; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; padding: 3px 8px; border-radius: 999px; background: var(--crema-2); color: var(--gris); font-weight: 600; }
.badge.g { background: var(--verde-suave); color: var(--verde); }
.badge.t { background: var(--terracota-suave); color: var(--terracota); }
.badge.si { background: #fdf2d8; color: #8a6516; }

/* ---------- modal ---------- */
.modal-bg {
  position: fixed; inset: 0; z-index: 60; background: rgba(23, 34, 28, .45);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade .18s ease;
}
@media (min-width: 720px) { .modal-bg { align-items: center; } }
@keyframes fade { from { opacity: 0; } }
.sheet {
  width: min(680px, 100%); max-height: 90vh; overflow: auto;
  background: var(--crema); border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 50px rgba(0,0,0,.2);
  animation: up .24s cubic-bezier(.2,.8,.3,1);
  padding-bottom: 22px;
}
@media (min-width: 720px) { .sheet { border-radius: 22px; max-height: 86vh; } }
@keyframes up { from { transform: translateY(24px); opacity: .6; } }
.sheet-h { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: rgba(251, 248, 242, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linea); }
.sheet-h h3 { margin: 0; font-size: 1.05rem; flex: 1; }
.sheet-b { padding: 16px; }
.sheet .grab { width: 42px; height: 4px; border-radius: 99px; background: var(--linea); margin: 8px auto 0; }
@media (min-width: 720px) { .sheet .grab { display: none; } }

/* ---------- varios ---------- */
.kpi { background: var(--blanco); border: 1px solid var(--linea); border-radius: 14px; padding: 12px 13px; }
.kpi b { display: block; font-size: 1.35rem; letter-spacing: -.02em; }
.kpi span { font-size: .74rem; color: var(--gris); text-transform: uppercase; letter-spacing: .05em; }
.tip { display: flex; gap: 11px; align-items: flex-start; background: linear-gradient(135deg, #fdf6ec, #f7efe2); border: 1px solid #efe2cd; border-radius: 14px; padding: 13px 14px; font-size: .88rem; }
.tip .em { font-size: 1.2rem; }
.aviso { display: flex; gap: 10px; background: #fdf1ee; border: 1px solid #f3d9d2; color: #7c3a2b; border-radius: 12px; padding: 11px 13px; font-size: .83rem; }
.aviso .em { font-size: 1.05rem; }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 26px); transform: translate(-50%, 20px);
  background: var(--tinta); color: #fff; padding: 11px 18px; border-radius: 12px;
  font-size: .88rem; z-index: 80; opacity: 0; pointer-events: none; transition: all .25s; max-width: 90vw; text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.empty { text-align: center; padding: 26px 14px; color: var(--gris); }
.empty .em { font-size: 2.2rem; display: block; margin-bottom: 8px; opacity: .8; }
hr.sep { border: 0; border-top: 1px solid var(--linea); margin: 16px 0; }
.link { color: var(--verde); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; gap: 10px; padding-bottom: 8px; }
.chat-log { max-height: 56vh; overflow-y: auto; padding: 6px 2px 10px; scroll-behavior: smooth; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: .9rem; white-space: pre-wrap; word-wrap: break-word; }
.msg.bot { background: var(--blanco); border: 1px solid var(--linea); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg.me { background: var(--verde); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.msg b { font-weight: 700; }
.chat-input { position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 6px); background: linear-gradient(transparent, var(--crema) 30%); padding: 12px 0 calc(4px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 8px; align-items: flex-end; z-index: 5; }
.chat-input .btn { height: 46px; }
@media (max-width: 420px) { .chat-input .btn { padding: 0 14px; } .chat-input input { font-size: 16px; } }
.chat-input textarea { min-height: 46px; max-height: 120px; border-radius: 14px; padding: 12px 14px; }
.chat-input input { flex: 1; min-width: 0; height: 46px; border-radius: 14px; }
.mic { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; background: var(--terracota); color: #fff; font-size: 1.15rem; cursor: pointer; display: grid; place-items: center; }
.mic.rec { animation: pulse 1.2s infinite; background: var(--rojo); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(184,66,47,.45); } 50% { box-shadow: 0 0 0 12px rgba(184,66,47,0); } }

/* ---------- tabla de compra ---------- */
.shop-cat { margin-bottom: 14px; }
.shop-cat h4 { display: flex; align-items: center; gap: 7px; font-size: .92rem; margin-bottom: 6px; }
.shop-cat h4 .tot { margin-left: auto; font-weight: 500; color: var(--gris); font-size: .8rem; }
.shop-item { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px dashed var(--linea); font-size: .89rem; cursor: pointer; }
.shop-item:last-child { border-bottom: 0; }
.shop-item input { width: 18px; height: 18px; accent-color: var(--verde); flex: none; }
.shop-item.done { opacity: .45; text-decoration: line-through; }
.shop-item .q { margin-left: auto; color: var(--gris); font-size: .8rem; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- progreso ---------- */
.chart-wrap { position: relative; width: 100%; }
canvas { display: block; width: 100%; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .78rem; color: var(--gris); margin-top: 6px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }
.logros { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 9px; }
.logro { text-align: center; padding: 12px 8px; border-radius: 13px; border: 1px dashed var(--linea); opacity: .48; }
.logro.on { opacity: 1; border-style: solid; background: #fff; box-shadow: var(--sombra-s); }
.logro .em { font-size: 1.5rem; }
.logro b { display: block; font-size: .78rem; margin-top: 3px; }
.logro span { font-size: .68rem; color: var(--gris); }

/* ---------- onboarding ---------- */
.onb { min-height: 100vh; display: flex; flex-direction: column; padding: 22px 18px calc(28px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; }
.onb .prog { height: 4px; background: var(--crema-2); border-radius: 99px; overflow: hidden; margin-bottom: 22px; }
.onb-dots { display: flex; gap: 7px; justify-content: center; margin-bottom: 18px; }
.onb-dots i { display: block; width: 8px; height: 8px; border-radius: 99px; background: var(--linea); transition: all .25s; }
.onb-dots i.on { width: 26px; background: var(--verde); }
.onb .prog i { display: block; height: 100%; background: var(--verde); border-radius: 99px; transition: width .35s; }
.onb h1 { font-size: 1.6rem; }
.onb .body { flex: 1; }
.onb .foot { display: flex; gap: 10px; padding-top: 15px; }
.onb .foot .btn { flex: 1; }
.hero-onb { text-align: center; padding: 24px 0 12px; }
.hero-onb .big { font-size: 3.6rem; line-height: 1; margin-bottom: 14px; }

/* ---------- utilidades ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mt0 { margin-top: 0; } .mt8 { margin-top: 8px; } .mt14 { margin-top: 14px; } .mt20 { margin-top: 20px; }
.mb0 { margin-bottom: 0; } .mb8 { margin-bottom: 8px; } .mb14 { margin-bottom: 14px; }
.fs08 { font-size: .8rem; } .fs09 { font-size: .9rem; } .fs11 { font-size: 1.1rem; }
.b { font-weight: 700; } .w600 { font-weight: 600; }
.tnum { font-variant-numeric: tabular-nums; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; background: var(--crema-2); font-size: .74rem; font-weight: 600; }
.nowrap { white-space: nowrap; }

/* tabla de calorías */
.busca input { width: 100%; height: 48px; border-radius: 14px; border: 1px solid var(--linea); background: #fff; padding: 0 16px; font-size: 1rem; }
.codigo { display: flex; gap: 8px; }
.codigo input { flex: 1; min-width: 0; height: 42px; border-radius: 12px; border: 1px solid var(--linea); background: #fff; padding: 0 12px; font-size: .9rem; }
.food-head { display: flex; justify-content: space-between; gap: 10px; padding: 14px 2px 6px; }
.food { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px dashed var(--linea); }
.food:last-child { border-bottom: 0; }
.food .fmain { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.food .fmain b { font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.food .fvals { text-align: right; display: flex; flex-direction: column; line-height: 1.2; }
.food .fvals b { font-size: .95rem; }
.food .icon-btn { flex: none; }

/* --- Analizador de platos con IA --- */
.plato-item { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px dashed var(--linea); }
.plato-item:last-child { border-bottom: 0; }
.plato-item > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.plato-item input { width: 72px; flex: none; padding: 6px 8px; border: 1px solid var(--linea); border-radius: 10px; background: #fff; font: inherit; font-size: .9rem; text-align: right; }
.plato-item .unidad { font-size: .76rem; color: var(--muted); }
.plato-item .kcal { font-size: .78rem; color: var(--muted); white-space: nowrap; min-width: 62px; text-align: right; }
.plato-item .x { flex: none; }
#platoTxt { width: 100%; }
