/* Panel POS: la carta a la izquierda, la comanda como ticket térmico a la derecha.
   Cocina cambia a fondo oscuro, como las pantallas de cocina reales. */

@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('fonts/schibsted-grotesk-latin-wght-normal.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: 'Spline Sans Mono';
  src: url('fonts/spline-sans-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Spline Sans Mono';
  src: url('fonts/spline-sans-mono-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --ice: #e8eef2;
  --ink: #13202a;
  --ink-2: #44566a;
  --paper: #fbfbf8;
  --aji: #f2a900;
  --hoja: #1e7b4e;
  --rojo: #c62e24;
  --azul: #2b6cb0;
  --azul-d: #1f4e85;

  --page: var(--ice);
  --on-page: var(--ink);
  --muted: var(--ink-2);
  --ring: var(--azul);

  --ui: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Spline Sans Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --header-h: 64px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

body[data-view='cocina'] {
  --page: #0f1a22;
  --on-page: #eaf1f6;
  --muted: #a9bccb;
  --ring: #8cc2ff;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--on-page);
  font-family: var(--ui);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { top: 0.75rem; }

.muted { color: var(--muted); }
.nojs { padding: 2rem; }

/* ---------- Cabecera ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ink);
  color: #eaf1f6;
  min-height: var(--header-h);
}
.top-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.5rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
}
.back {
  color: #c6d4df;
  font-size: 0.9375rem;
  text-underline-offset: 3px;
}
.back:hover { color: #fff; }
.brand {
  flex: 1;
  font-weight: 700;
  font-size: 1.0625rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.75rem;
}
.demo-tag {
  font-weight: 500;
  font-size: 0.8125rem;
  color: #c6d4df;
}
.roles { display: flex; gap: 0.25rem; }
.roles a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  color: #c6d4df;
  text-decoration: none;
  font-weight: 600;
}
.roles a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.roles a[aria-current='page'] { background: #eaf1f6; color: var(--ink); }
.top :focus-visible { outline-color: #8cc2ff; }
.badge {
  min-width: 1.4rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--aji);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.4rem;
}

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 5rem;
}
main:focus { outline: none; }

h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.0625rem; font-weight: 700; }

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
}
.page-head .lede { flex: 1 1 22rem; color: var(--muted); max-width: 52ch; }
.head-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-left: auto; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 650;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn:hover:not(:disabled) { background: #26394a; border-color: #26394a; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover:not(:disabled) { background: rgba(19, 32, 42, 0.08); color: var(--ink); }
.btn--ok { background: var(--hoja); border-color: var(--hoja); }
.btn--ok:hover:not(:disabled) { background: #176340; border-color: #176340; }
.btn--danger { background: var(--rojo); border-color: var(--rojo); }
.btn--danger:hover:not(:disabled) { background: #a32018; border-color: #a32018; }
.btn--light { background: #eaf1f6; border-color: #eaf1f6; color: var(--ink); }
.btn--light:hover:not(:disabled) { background: #fff; border-color: #fff; }
.btn--big { width: 100%; min-height: 54px; font-size: 1.0625rem; }
.btn--sm { min-height: 40px; padding: 0.35rem 0.85rem; font-size: 0.9375rem; }

/* ---------- Mesero: la carta ---------- */

.mesero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.chips {
  position: sticky;
  top: var(--header-h);
  z-index: 5;
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0 0.5rem;
  padding: 0.6rem 0;
  overflow-x: auto;
  background: var(--page);
}
.chip {
  flex: none;
  min-height: 40px;
  padding: 0 1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  font-weight: 600;
}
.chip:hover { background: rgba(19, 32, 42, 0.08); }
.chip[aria-current='true'] { background: var(--ink); color: #fff; }

.cat { margin-top: 1.75rem; scroll-margin-top: calc(var(--header-h) + 4.5rem); }
.cat h2 { margin-bottom: 0.25rem; }

.dish {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
}
.dish-text { flex: 1; min-width: 0; }
.dish-line { display: flex; align-items: baseline; gap: 0.5rem; }
.dish-name { font-weight: 650; }
.dots {
  flex: 1;
  min-width: 1rem;
  border-bottom: 2px dotted rgba(19, 32, 42, 0.4);
  transform: translateY(-0.2em);
}
.dish-price { font-variant-numeric: tabular-nums; font-weight: 650; }
.dish-desc { font-size: 0.9375rem; color: var(--muted); }
.dish.is-picked .dish-name { color: var(--azul-d); }

.stepper {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: none;
}
.stepper button {
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: transparent;
  font-size: 1.375rem;
  line-height: 1;
}
.stepper button:hover:not(:disabled) { background: var(--ink); color: #fff; }
.stepper button:disabled { opacity: 0.3; cursor: not-allowed; }
.qty {
  min-width: 2.25ch;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- Mesero: la comanda ---------- */

.comanda {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  max-height: calc(100dvh - var(--header-h) - 2rem);
  overflow-y: auto;
  padding: 0.25rem 0.25rem 1rem;
  display: grid;
  gap: 1rem;
  align-content: start;
}
.comanda h2 { margin-bottom: -0.25rem; }

.field { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.9375rem; }
.field select,
.field input {
  min-height: 46px;
  padding: 0 0.75rem;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  font-weight: 500;
}
.field input::placeholder { color: #6b7d8d; }

.printer { padding-bottom: 12px; }
.slot {
  position: relative;
  z-index: 2;
  height: 14px;
  border-radius: 10px 10px 3px 3px;
  background: #0b141a;
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.08);
}
.paper {
  position: relative;
  margin-top: -8px;
  padding: 1.5rem 1.25rem 1.5rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.45;
  box-shadow: 0 6px 16px rgba(19, 32, 42, 0.18);
}
.paper::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
  background:
    linear-gradient(135deg, var(--paper) 5px, transparent 0) 0 0 / 10px 10px repeat-x,
    linear-gradient(225deg, var(--paper) 5px, transparent 0) 0 0 / 10px 10px repeat-x;
}
.paper-brand { font-weight: 600; text-align: center; }
.paper-meta {
  text-align: center;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 2px dashed rgba(19, 32, 42, 0.35);
}
.tline { display: grid; grid-template-columns: 2.5ch minmax(0, 1fr) auto; gap: 0.5rem; padding: 0.15rem 0; }
.tline .p { text-align: right; font-variant-numeric: tabular-nums; }
.paper-empty { color: #5b6d7d; padding: 0.5rem 0; }
.paper-note { margin-top: 0.75rem; overflow-wrap: anywhere; }
.paper-totals { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 2px dashed rgba(19, 32, 42, 0.35); display: grid; gap: 0.15rem; }
.paper-totals:empty { display: none; }
.paper-totals div { display: flex; justify-content: space-between; }
.paper-totals .grand { font-weight: 600; font-size: 1rem; padding-top: 0.25rem; }

.active { display: grid; gap: 0.5rem; margin-top: 0.5rem; }
.active-list { display: grid; gap: 0.5rem; }
.active-list li {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
  padding: 0.75rem 0.9rem;
  border: 2px solid rgba(19, 32, 42, 0.18);
  border-radius: 10px;
  background: #fff;
}
.active-list li.is-ready { border-color: var(--hoja); }

.dock { display: none; }

/* ---------- Estados ---------- */

.status {
  display: inline-block;
  padding: 0.1rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 650;
  white-space: nowrap;
}
.status--nuevo { background: #ffe7a8; color: #5a3d00; }
.status--preparando { background: #d3e5f7; color: #17406b; }
.status--listo { background: #c9ebd9; color: #124d2f; }
.status--cobrado { background: #e1e7ec; color: #33434f; }

/* ---------- Cocina ---------- */

.rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: start;
}
.col h2 { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.count {
  min-width: 1.8rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: rgba(234, 241, 246, 0.16);
  font-size: 0.9375rem;
  text-align: center;
}
.col-empty { color: var(--muted); padding: 1.25rem 0; }
.tickets { display: grid; gap: 1rem; }

.kt {
  display: grid;
  gap: 0.6rem;
  padding: 1rem 1.1rem 1.1rem;
  border-left: 10px solid #8da0b0;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}
.kt:focus-visible { outline-offset: 4px; }
.kt .muted { color: var(--ink-2); }
.kt :focus-visible { outline-color: var(--azul); }
.kt--warn { border-left-color: var(--aji); }
.kt--late { border-left-color: var(--rojo); }
.kt-top { display: flex; justify-content: space-between; gap: 0.75rem; font-weight: 700; font-size: 1.125rem; }
.kt-table { font-weight: 650; }
.kt-timer { display: flex; align-items: center; gap: 0.75rem; min-height: 2rem; }
.timer { font-family: var(--mono); font-weight: 600; font-size: 1.625rem; font-variant-numeric: tabular-nums; }
.kt-flag { font-weight: 700; font-size: 0.875rem; }
.kt--warn .kt-flag { padding: 0.1rem 0.6rem; border-radius: 999px; background: var(--aji); color: var(--ink); }
.kt--late .kt-flag { padding: 0.1rem 0.6rem; border-radius: 999px; background: var(--rojo); color: #fff; }
.kt-items { display: grid; gap: 0.15rem; font-size: 1.0625rem; }
.kt-items b { display: inline-block; min-width: 2.2ch; }
.kt-note {
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  background: #fff3cf;
  color: #4a3200;
  overflow-wrap: anywhere;
}

/* ---------- Admin ---------- */

.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 2rem;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 3px solid var(--ink);
}
.kpis dt { font-size: 0.9375rem; color: var(--muted); }
.kpis dd { font-size: clamp(1.5rem, 2.6vw, 2.125rem); font-weight: 750; letter-spacing: -0.02em; }

.pending {
  margin: -0.5rem 0 1.5rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: #fff3cf;
  color: #4a3200;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.panel { padding: 1.25rem 1.4rem 1.4rem; border-radius: 12px; background: #fff; }
.panel h2 { margin-bottom: 1rem; }

.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { fill: var(--ink-2); font: 12px var(--ui); }
.chart .axis { stroke: #b7c4cf; stroke-width: 1; }
.chart .bar { fill: #5b8dc0; }
.chart .bar--peak { fill: var(--azul-d); }
.chart .peak-label { fill: var(--ink); font-weight: 650; }

.ranking { display: grid; gap: 0.7rem; }
.ranking li { display: grid; grid-template-columns: minmax(0, 11rem) 1fr 2.2rem; gap: 0.75rem; align-items: center; }
.top-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-bar { height: 10px; border-radius: 5px; background: linear-gradient(var(--azul-d) 0 0) left / var(--w) 100% no-repeat, #d5dee5; }
.top-qty { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.65rem 0.75rem; text-align: left; border-bottom: 1px solid #dde5eb; white-space: nowrap; }
thead th { font-size: 0.9375rem; color: var(--ink-2); font-weight: 650; border-bottom: 2px solid var(--ink); }
tbody th { font-weight: 650; }
.num { text-align: right; }

/* ---------- Diálogos ---------- */

dialog {
  width: calc(100% - 2rem);
  max-width: 26rem;
  padding: 1.5rem;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(10, 18, 24, 0.4);
}
dialog::backdrop { background: rgba(10, 18, 24, 0.62); }
dialog :focus-visible { outline-color: var(--azul); }
.pay { display: grid; gap: 0.9rem; }
.pay-lines { display: grid; gap: 0.25rem; }
.pay-lines li, .pay-total { display: flex; justify-content: space-between; gap: 1rem; }
.pay-total { padding-top: 0.6rem; border-top: 2px solid var(--ink); font-size: 1.125rem; }
.pay fieldset { border: 0; display: grid; gap: 0.35rem; }
.pay legend { font-weight: 650; margin-bottom: 0.3rem; }
.radio { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0 0.75rem; border: 2px solid rgba(19, 32, 42, 0.2); border-radius: 10px; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--ink); background: #eef3f6; }
.radio input { width: 1.1rem; height: 1.1rem; accent-color: var(--ink); }
.actions { display: flex; gap: 0.6rem; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Pantallas medianas y móviles ---------- */

@media (max-width: 1100px) {
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .mesero { grid-template-columns: minmax(0, 1fr); }
  .comanda { position: static; max-height: none; overflow: visible; scroll-margin-top: calc(var(--header-h) + 1rem); }
  .dock {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 0 1.25rem;
    border: 0;
    border-radius: 14px;
    background: var(--ink);
    color: #fff;
    font-weight: 650;
    box-shadow: 0 10px 28px rgba(10, 18, 24, 0.35);
  }
  .dock strong { font-variant-numeric: tabular-nums; }
  .dock-count { font-weight: 500; color: #c6d4df; }
  .dock:focus-visible { outline-color: #8cc2ff; }
  .admin-grid { grid-template-columns: minmax(0, 1fr); }
  main { padding-bottom: 7rem; }
}

@media (max-width: 680px) {
  :root { --header-h: 0px; }
  .top { position: relative; }
  .cat { scroll-margin-top: 4.5rem; }
  .rail { grid-template-columns: minmax(0, 1fr); }
  .top-inner { padding-top: 0.75rem; padding-bottom: 0.6rem; gap: 0.6rem 1rem; }
  .back, .demo-tag { font-size: 0.875rem; }
  .brand { order: 1; flex: 1 1 0; min-width: 0; font-size: 1rem; line-height: 1.3; }
  .back { order: 2; align-self: flex-start; white-space: nowrap; }
  .dish { align-items: center; }
  .dish-line { flex-direction: column; align-items: flex-start; gap: 0; }
  .dots { display: none; }
  .dish-price { margin-top: 0.1rem; font-size: 0.9375rem; }
  .dish-desc { font-size: 0.875rem; }
  .ranking li { grid-template-columns: minmax(0, 8rem) 1fr 2rem; }
}

@media (max-width: 420px) {
  .kpis dd { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Stock y notas por plato ---------- */

.dish-stock { font-size: 0.875rem; font-weight: 650; }
.dish-stock--ok { color: var(--muted); font-weight: 500; }
.dish-stock--low { color: #8a4b00; }
.dish-stock--out { color: #a3211a; }
.dish.is-out .dish-name, .dish.is-out .dish-price { opacity: 0.5; }
.dish-note { display: grid; gap: 0.2rem; margin-top: 0.4rem; }
.dish-note label { font-size: 0.8125rem; font-weight: 650; color: var(--azul-d); }
.dish-note[hidden] { display: none; }
.dish-note input {
  width: 100%;
  min-height: 40px;
  padding: 0 0.7rem;
  border: 2px solid var(--azul);
  border-radius: 8px;
  background: #f4f8fd;
}
.dish-note input::placeholder { color: #5b6b7b; }
.tline-note { margin: -0.15rem 0 0.35rem 2.2ch; font-size: 0.875rem; overflow-wrap: anywhere; }
.stock-msg { color: #8a2a00; font-weight: 600; }
.stock-msg:empty { display: none; }

/* Cocina: disponibilidad de platos */
.stock { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 2px solid rgba(234, 241, 246, 0.25); }
.stock-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.stock .lede { color: var(--muted); max-width: 62ch; margin: 0.35rem 0 0.5rem; }
.stock h3 { margin: 1.4rem 0 0.4rem; font-size: 1rem; color: var(--muted); font-weight: 650; }
.stk-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 25rem), 1fr)); gap: 0.6rem 1.5rem; }
.stk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: 'name ctrl zero' 'state ctrl zero';
  align-items: center;
  gap: 0 0.9rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  background: rgba(234, 241, 246, 0.07);
}
.stk-name { grid-area: name; font-weight: 650; }
.stk-state { grid-area: state; font-size: 0.875rem; font-weight: 650; }
.stk-state--ok { color: #7ddc9d; }
.stk-state--low { color: #ffc861; }
.stk-state--out { color: #ff9a8f; }
.stk-ctrl { grid-area: ctrl; display: flex; align-items: center; gap: 0.25rem; }
.stk-ctrl button {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(234, 241, 246, 0.7);
  border-radius: 10px;
  background: transparent;
  color: var(--on-page);
  font-size: 1.375rem;
  line-height: 1;
}
.stk-ctrl button:hover:not(:disabled) { background: #eaf1f6; color: var(--ink); }
.stk-ctrl button:disabled { opacity: 0.3; cursor: not-allowed; }
.stk-n { min-width: 2.6ch; text-align: center; font-weight: 750; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.stk > .btn { grid-area: zero; }
.btn--ghost-k { background: transparent; border-color: rgba(234, 241, 246, 0.7); color: var(--on-page); }
.btn--ghost-k:hover:not(:disabled) { background: rgba(234, 241, 246, 0.15); }

/* Menú del cliente */
.mcat { margin-top: 2rem; }
.mcat h2 { margin-bottom: 0.9rem; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: 1.25rem; }
.mcard { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 2px 0 rgba(19, 32, 42, 0.08); }
.mcard.is-out .photo, .mcard.is-out h3 { opacity: 0.5; }
.photo {
  --tint: #fbe7b6;
  --tint-2: #f6d98f;
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.35rem;
  aspect-ratio: 5 / 2;
  background: radial-gradient(circle at 50% 50%, var(--tint-2) 0 2.9rem, var(--tint) calc(2.9rem + 1px));
  color: #4a3b12;
}
.photo svg { width: 58px; height: 58px; }
.mcard[data-cat='fuertes'] .photo { --tint: #f7d3bf; --tint-2: #f0c0a6; color: #5a2a12; }
.mcard[data-cat='mar'] .photo { --tint: #cfe6f5; --tint-2: #b9d8ee; color: #123f5e; }
.mcard[data-cat='bebidas'] .photo { --tint: #cfeadb; --tint-2: #b8dec9; color: #124a2d; }
.mcard[data-cat='postres'] .photo { --tint: #f2d6e8; --tint-2: #e8c1da; color: #55173f; }
.mcard-body { display: grid; align-content: start; gap: 0.2rem; padding: 0.9rem 1rem 1rem; }
.mcard-body h3 { font-size: 1.125rem; line-height: 1.25; }
.mcard-desc { color: var(--muted); font-size: 0.9375rem; }
.mcard-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-top: 0.5rem; }
.mcard-price { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.mcard.is-out .mcard-price { text-decoration: line-through; }

@media (max-width: 680px) {
  .roles { order: 3; flex-basis: 100%; margin-left: 0; padding: 0.25rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
  .roles a { flex: 1; justify-content: center; padding: 0 0.4rem; }
  /* Menú del cliente: en móvil, foto pequeña al lado del texto para ver varios platos por pantalla. */
  .mgrid { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
  .mcard { grid-template-rows: none; grid-template-columns: 6.5rem minmax(0, 1fr); }
  .photo { aspect-ratio: auto; min-height: 100%; background: var(--tint); }
  .photo svg { width: 40px; height: 40px; }
  .mcard-body { padding: 0.75rem 0.9rem; }
  .mcard-body h3 { font-size: 1.0625rem; }
  .stk { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'name zero' 'state zero' 'ctrl ctrl'; gap: 0.3rem 0.9rem; }
}
.kt-items .kt-note { display: block; margin: 0.2rem 0 0.45rem 2.2ch; font-size: 0.9375rem; }
