/* Layout: one mobile-first column (max 560px) that reads like a menu board at night; sheets slide up for product, cart and confirmation. */
:root {
  --bg: #0E0D0F;
  --surface: #18161A;
  --surface-2: #221F24;
  --line: #2E2A31;
  --fg: #F4EFEA;
  --muted: #ABA3A0;
  --accent: #D71E28;
  --accent-ink: #FFFFFF;
  --accent-soft: #3A1518;
  --accent-text: #FF8F86;
  --ok: #46D18A;
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { background: var(--bg); }
body { color: var(--fg); font-family: var(--body); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
a { color: var(--fg); }
.wrap { max-width: 560px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.num { font-variant-numeric: tabular-nums; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand b { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: 4px; line-height: 1; display: block; }
.brand small { color: var(--muted); font-size: 12px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; font-weight: 600; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

/* Hero */
.hero { position: relative; border-radius: 20px; overflow: hidden; height: 250px; background: var(--surface); }
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-txt { position: absolute; inset: auto 0 0 0; padding: 80px 18px 18px; background: linear-gradient(180deg, transparent, rgba(14,13,15,.94) 65%); }
.hero h1 { margin: 0 0 6px; font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.08; text-transform: uppercase; text-wrap: balance; }
.hero p { margin: 0; color: #D9D2CC; font-size: 13px; }

/* Controls */
.stack { display: flex; flex-direction: column; gap: 12px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.seg button { height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.field input, .field select, .field textarea { height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font-size: 15px; width: 100%; }
.field textarea { height: 76px; padding: 12px 14px; resize: vertical; }
.zone-select { position: relative; }
.zone-select select { appearance: none; padding-left: 42px; font-weight: 600; }
.zone-select svg { position: absolute; left: 14px; bottom: 14px; pointer-events: none; }

.promo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-radius: var(--r); background: var(--accent); color: var(--accent-ink); }
.promo b { font-family: var(--display); font-weight: 600; font-size: 20px; text-transform: uppercase; display: block; line-height: 1.1; }
.promo span { font-size: 13px; opacity: .92; }
.coupon { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r); border: 1px dashed #4D464F; font-size: 13px; }
.coupon code { font-family: var(--display); font-size: 15px; letter-spacing: 1px; color: var(--accent-text); }

/* Categories */
.cats { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); padding-block: 12px; margin-top: 8px; }
.cats-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.cats-row::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: #D9D2CC; font-weight: 500; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); font-weight: 600; }
.search { margin-top: 10px; }

/* Menu */
.sec-title { margin: 22px 0 10px; font-family: var(--display); font-weight: 600; font-size: 22px; text-transform: uppercase; letter-spacing: 1px; }
.list { display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; gap: 14px; width: 100%; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-align: left; }
.item:hover { border-color: #4A434C; }
.item[disabled] { opacity: .5; cursor: not-allowed; }
.thumb { width: 92px; height: 92px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.item-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.item-name { font-weight: 600; font-size: 15px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tag { padding: 2px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.tag.off { background: var(--surface-2); color: var(--muted); }
.item-desc { font-size: 12.5px; color: var(--muted); }
.item-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 4px; }
.price { font-weight: 700; }
.plus { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.empty { padding: 32px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r); }

.info { margin-top: 24px; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: #D9D2CC; }
.info h2 { margin: 0; font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--fg); text-transform: uppercase; letter-spacing: 1px; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.ghost { flex: 1 1 140px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid #4D464F; background: transparent; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--fg); }
.foot-note { margin: 18px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.spacer { height: 120px; }

/* Cart bar */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 14px max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: linear-gradient(180deg, transparent, var(--bg) 35%); }
.cartbar button { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 528px; margin: 0 auto; height: 58px; padding: 0 18px; border: 0; border-radius: 16px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15px; }
.count { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-ink); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; margin-right: 10px; }

/* Sheets */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.6); }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column; background: var(--bg); border-radius: 22px 22px 0 0; border-top: 1px solid var(--line); max-width: 560px; margin: 0 auto; animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(24px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
.sheet-scroll { overflow-y: auto; padding: 0 max(18px, env(safe-area-inset-right, 0px)) 18px max(18px, env(safe-area-inset-left, 0px)); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 8px; }
.sheet-head h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 24px; text-transform: uppercase; letter-spacing: 1px; }
.sheet-foot { padding: 14px max(18px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px)); border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.prod-img { width: 100%; height: 220px; object-fit: cover; border-radius: 16px; display: block; background: var(--surface); }
.prod-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 16px 0 6px; }
.prod-title h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 26px; text-transform: uppercase; line-height: 1.1; }
.group { margin-top: 18px; }
.group-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #D9D2CC; margin: 0 0 8px; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 8px; font-size: 14px; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.opt span:first-child { display: flex; align-items: center; gap: 12px; }
.opt input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.opt .muted { color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); flex: 0 0 auto; }
.stepper button { width: 44px; height: 50px; border: 0; background: transparent; font-size: 20px; font-weight: 600; }
.stepper span { min-width: 20px; text-align: center; font-weight: 700; }
.stepper.sm button { height: 40px; width: 38px; font-size: 18px; }
.primary { flex: 1; min-height: 56px; border: 0; border-radius: 16px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; padding: 0 16px; text-align: center; }
.primary[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.cart-line { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line .thumb { width: 56px; height: 56px; border-radius: 10px; }
.cart-line .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cart-line small { color: var(--muted); font-size: 12px; }
.totals { margin-top: 18px; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; color: #D9D2CC; }
.totals .disc { color: var(--accent-text); }
.totals .grand { color: var(--fg); font-weight: 700; font-size: 19px; padding-top: 10px; border-top: 1px solid var(--line); }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; min-width: 0; }
.small-btn { min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid #4D464F; background: transparent; font-weight: 600; }
.err { color: var(--accent-text); font-size: 12.5px; margin-top: 4px; }
.msg { white-space: pre-wrap; font-size: 13px; line-height: 1.55; padding: 14px; border-radius: 14px 14px 4px 14px; background: #1E3A2B; margin: 0; font-family: var(--body); }
.done-ico { width: 68px; height: 68px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; margin: 8px auto 12px; }
.center { text-align: center; }
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; padding: 10px 16px; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 600; font-size: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.4); }

/* Panel */
.panel-tabs { display: flex; gap: 8px; overflow-x: auto; padding-block: 4px 12px; }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptable th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); padding: 8px 6px; border-bottom: 1px solid var(--line); }
.ptable td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ptable input[type="text"], .ptable input[type="number"] { width: 100%; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); }
.ptable input[type="number"] { max-width: 110px; }
.ptable input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); }
.scroll-x { overflow-x: auto; }
.card { padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.order-card { padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.order-card header { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.order-card small { color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kpi { padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.kpi b { display: block; font-family: var(--display); font-size: 22px; font-weight: 600; }
.kpi span { font-size: 11.5px; color: var(--muted); }
.danger { border-color: var(--accent); color: var(--accent-text); }

/* Promos, sorteo, arma tu roll, sugerencias */
.combos { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.combo { position: relative; flex: 0 0 82%; max-width: 310px; scroll-snap-align: start; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); overflow: hidden; text-align: left; padding: 0; display: flex; flex-direction: column; }
.combo:hover { border-color: #4A434C; }
.combo[disabled] { opacity: .5; cursor: not-allowed; }
.combo img, .combo .thumb { width: 100%; height: 150px; object-fit: cover; display: block; border-radius: 0; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 700; padding: 4px 9px; border-radius: 8px; font-size: 13px; }
.badge.alt { left: auto; right: 10px; background: var(--fg); color: var(--bg); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.combo-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.combo-body b { font-size: 16px; }
.combo-inc { font-size: 12.5px; color: var(--muted); }
.combo-foot { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 6px; }
.old { color: var(--muted); text-decoration: line-through; font-size: 13px; font-weight: 500; }
.ppl { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.raffle { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.raffle b { color: var(--fg); }
.builder-card { display: flex; gap: 14px; align-items: center; width: 100%; padding: 16px; border-radius: var(--r); border: 1.5px solid var(--accent); background: var(--accent-soft); text-align: left; }
.builder-card b { font-family: var(--display); font-size: 20px; font-weight: 600; text-transform: uppercase; display: block; }
.builder-card span { font-size: 13px; color: #E6DDD8; }
.inc-list { margin: 10px 0 0; padding-left: 18px; color: #D9D2CC; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.ups { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.ups button { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); min-width: 128px; font-size: 13px; text-align: left; }
.ups button span { color: var(--muted); font-size: 12px; }
.ticket-line { color: var(--ok) !important; font-size: 13px; }
