/* Página pública de pedidos — Fuego y Sazón Grill */
:root {
  --bg: #140e0b;
  --bg-2: #1c1410;
  --card: #221813;
  --card-2: #2b1f18;
  --line: #3a2a20;
  --ink: #f6ece0;
  --ink-2: #cdbba8;
  --muted: #9a8574;
  --fire: #e2542a;
  --fire-2: #f07a3c;
  --gold: #e3a740;
  --ok: #3fae67;
  --wa: #1f9e55;
  --err: #ff8a7a;
  --r: 14px;
  --font-d: "Zodiak", Georgia, serif;
  --font-b: "Satoshi", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(16px, 4.5vw, 28px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 var(--font-b); -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(120% 60% at 50% -10%, rgba(226, 84, 42, 0.22), transparent 60%);
  background-repeat: no-repeat;
  padding-bottom: env(safe-area-inset-bottom);
}
.hidden { display: none !important; }
a { color: var(--fire-2); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }

.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--pad); background: rgba(20, 14, 11, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand b { font: 700 1.15rem/1.1 var(--font-d); letter-spacing: 0.01em; }
.brand small { color: var(--muted); font-size: 0.8rem; }
.top-wa { text-decoration: none; background: var(--wa); color: #fff; font-weight: 700; padding: 8px 14px; border-radius: 999px; font-size: 0.9rem; }

main { max-width: 760px; margin: 0 auto; padding: 0 var(--pad) 120px; }
.pane { padding-top: 20px; }
.center { text-align: center; padding-top: 80px; color: var(--ink-2); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--fire); margin: 0 auto 14px; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

h1, h2 { font-family: var(--font-d); font-weight: 700; letter-spacing: -0.01em; }
.hero h1 { font-size: clamp(2rem, 8vw, 3rem); line-height: 1.05; margin: 8px 0 8px; }
.hero h1 em { font-style: normal; color: var(--fire-2); }
.hero p { color: var(--ink-2); margin: 0 0 16px; }
.h-sm { font-size: 1.6rem; margin: 6px 0 14px; }

.seg { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
@media (max-width: 599px) {
  .seg { grid-template-columns: 1fr; gap: 8px; }
  .seg button { min-height: 0; padding: 10px 14px; }
}
.seg button { text-align: left; border: 2px solid var(--line); background: var(--card); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 2px; min-height: 76px; transition: border-color 0.15s, background 0.15s; }
.seg button b { font-size: 1.1rem; }
.seg button small { color: var(--muted); font-size: 0.82rem; line-height: 1.25; }
.seg button.on { border-color: var(--fire); background: linear-gradient(160deg, rgba(226, 84, 42, 0.28), var(--card)); }
.seg button.on small { color: var(--ink-2); }
.ship-note { margin: 10px 0 0; color: var(--gold); font-weight: 600; font-size: 0.92rem; }

.cats { position: sticky; top: 64px; z-index: 20; display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; margin: 14px calc(-1 * var(--pad)) 0; padding-left: var(--pad); padding-right: var(--pad);
  background: linear-gradient(var(--bg) 80%, transparent); scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats a { flex: none; text-decoration: none; color: var(--ink-2); border: 1px solid var(--line); background: var(--bg-2); padding: 8px 14px; border-radius: 999px; font-size: 0.9rem; font-weight: 500; white-space: nowrap; }
.cats a.on { color: #fff; background: var(--fire); border-color: var(--fire); }

.menu section { scroll-margin-top: 124px; padding-top: 10px; }
.menu h2 { font-size: 1.4rem; margin: 18px 0 10px; color: var(--gold); }
.dish { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; padding: 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); margin-bottom: 10px; }
.dish h3 { margin: 0; font-size: 1.02rem; font-weight: 700; line-height: 1.25; }
.dish p { margin: 2px 0 0; color: var(--muted); font-size: 0.88rem; line-height: 1.35; }
.dish .price { color: var(--ink); font-weight: 700; margin-top: 6px; font-size: 0.98rem; }
.dish .price small { color: var(--muted); font-weight: 500; }
.dish .add { border: none; background: var(--fire); color: #fff; font-weight: 700; border-radius: 12px; padding: 10px 16px; min-width: 88px; min-height: 44px; }
.dish .add .n { display: inline-block; background: #fff; color: var(--fire); border-radius: 999px; min-width: 1.4em; padding: 0 5px; margin-left: 6px; font-size: 0.85em; }
.fine { color: var(--muted); font-size: 0.85rem; }

.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(20, 14, 11, 0.96) 30%); }
.cartbar .btn { max-width: 760px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#cart-count { background: rgba(255, 255, 255, 0.22); border-radius: 999px; min-width: 2em; padding: 2px 8px; text-align: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: 14px; padding: 12px 18px; font-weight: 700; text-decoration: none; min-height: 48px; }
.btn.big { width: 100%; font-size: 1.05rem; min-height: 56px; }
.btn-fire { background: var(--fire); color: #fff; box-shadow: 0 6px 24px rgba(226, 84, 42, 0.35); }
.btn-fire:active { background: #c8441c; }
.btn-fire[disabled] { opacity: 0.6; cursor: wait; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }

.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.6); display: flex; align-items: flex-end; justify-content: center; }
.sheet-box { position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--bg-2); border: 1px solid var(--line); border-bottom: none;
  border-radius: 20px 20px 0 0; padding: 22px var(--pad) calc(20px + env(safe-area-inset-bottom)); animation: up 0.2s ease-out; }
@media (min-width: 700px) { .sheet { align-items: center; } .sheet-box { border-radius: 20px; border-bottom: 1px solid var(--line); } }
@keyframes up { from { transform: translateY(30px); opacity: 0.4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet-box, .spinner { animation: none; } }
.sheet h2 { margin: 0 36px 6px 0; font-size: 1.4rem; }
.sheet .desc { color: var(--ink-2); margin: 0 0 12px; font-size: 0.92rem; }
.x { position: absolute; right: 12px; top: 10px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 1.4rem; line-height: 1; }
.sheet label, .form label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: 0.95rem; }
input, textarea { width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 12px 14px; font-size: 16px; }
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: var(--fire); outline: none; box-shadow: 0 0 0 3px rgba(226, 84, 42, 0.25); }
.optgroup { margin-top: 6px; }
.optgroup .q { font-weight: 700; margin: 10px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 2px solid var(--line); background: var(--card); border-radius: 12px; padding: 10px 14px; min-height: 46px; font-weight: 600; }
.chips button small { display: block; color: var(--muted); font-weight: 500; font-size: 0.8rem; }
.chips button.on { border-color: var(--fire); background: rgba(226, 84, 42, 0.2); }
.qty-row { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.qty-row .btn { flex: 1; min-height: 52px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.qty button { width: 46px; height: 50px; border: none; background: transparent; font-size: 1.4rem; }
.qty span { min-width: 2ch; text-align: center; font-weight: 700; font-size: 1.1rem; }
.err { color: var(--err); font-weight: 600; min-height: 1.2em; margin: 10px 0 0; }

.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line .nm { font-weight: 600; }
.line .nt { color: var(--gold); font-size: 0.86rem; }
.line .pr { font-weight: 700; text-align: right; }
.line .ctl { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; }
.line .ctl .qty button { width: 38px; height: 38px; font-size: 1.2rem; }
.line .ctl .rm { border: none; background: none; color: var(--muted); text-decoration: underline; padding: 8px; }
.sum { display: flex; justify-content: space-between; font-size: 1.15rem; padding: 14px 0 4px; }
.sum b { font-size: 1.25rem; }

.back { border: none; background: none; color: var(--fire-2); padding: 8px 0; font-weight: 600; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 14px; }
.card h2 { font-size: 1.2rem; margin: 0 0 4px; }
.form h2 { margin-top: 18px; }
.form h2:first-child { margin-top: 0; }
.mini { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 0.95rem; }
.mini span:first-child { color: var(--ink-2); }
.mini.tot { font-size: 1.1rem; font-weight: 700; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; padding: 4px 8px; border-radius: 6px; background: var(--fire); color: #fff; margin-bottom: 8px; }
.tag.recoger { background: #2f7a49; }
.tag.comer { background: #1f5399; }
.tipchips { margin-bottom: 8px; }
.tipchips button.on { border-color: var(--fire); background: rgba(226, 84, 42, 0.22); }
.pay { display: grid; gap: 10px; }
.opt { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--line); border-radius: 12px; padding: 12px; margin: 0 !important; font-weight: 500 !important; }
.opt input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--fire); flex: none; }
.opt span { display: flex; flex-direction: column; }
.opt small { color: var(--muted); }
.opt:has(input:checked) { border-color: var(--fire); }
#pay-methods { padding-left: 4px; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.notice { text-align: center; padding: 40px 6px; display: grid; gap: 12px; justify-items: center; }
.notice h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); margin: 0; }
.notice p { color: var(--ink-2); margin: 0; max-width: 32rem; }
.notice .btn { width: min(100%, 360px); }
.hours { list-style: none; padding: 14px 18px; margin: 6px 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); text-align: left; display: grid; gap: 6px; }

.status-card { text-align: center; padding: 26px 18px; border-radius: 20px; background: linear-gradient(170deg, rgba(226, 84, 42, 0.22), var(--card) 60%); border: 1px solid var(--line); margin-bottom: 14px; }
.eyebrow { margin: 0; color: var(--gold); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.8rem; }
.status-card h1 { font-size: clamp(1.7rem, 7vw, 2.3rem); margin: 6px 0 6px; line-height: 1.1; }
.st-msg { color: var(--ink-2); margin: 0 0 14px; }
.steps { list-style: none; padding: 0; margin: 16px auto 16px; display: grid; gap: 0; max-width: 360px; text-align: left; }
.steps li { position: relative; padding: 8px 0 8px 40px; color: var(--muted); }
.steps li::before { content: ""; position: absolute; left: 8px; top: 10px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); }
.steps li::after { content: ""; position: absolute; left: 17px; top: 30px; bottom: -10px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li.done { color: var(--ink); }
.steps li.done::before { background: var(--ok); border-color: var(--ok); }
.steps li.now { color: var(--ink); font-weight: 700; }
.steps li.now::before { background: var(--fire); border-color: var(--fire); box-shadow: 0 0 0 5px rgba(226, 84, 42, 0.25); }
.steps li.bad::before { background: #b23a2a; border-color: #b23a2a; }
.actions { display: grid; gap: 10px; }
.paid { color: #8fe0a8; font-weight: 700; }

.foot { border-top: 1px solid var(--line); padding: 20px var(--pad) 110px; color: var(--muted); font-size: 0.85rem; text-align: center; }
.foot p { margin: 4px 0; }
.form label.opt { display: flex; }

/* Especiales de hoy */
.sp-banner { background: linear-gradient(135deg, #e2572b, #b8361a); color: #fff; border-radius: 14px; padding: 12px 16px; margin: 0 0 16px; box-shadow: 0 6px 18px rgba(226, 87, 43, .25); }
.sp-banner .sp-h { font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .78rem; opacity: .9; margin-bottom: 4px; }
.sp-banner .sp-i { font-size: .95rem; line-height: 1.4; }
.sp-banner .sp-i span { opacity: .92; }
.sp-badge { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #e2572b; color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .02em; vertical-align: middle; }
.dish .price s, .line .pr s, .chips small s, #sc-food s { opacity: .55; font-weight: 400; margin-right: 2px; }
.sp-off { color: #ff9b73; font-size: .85rem; }
.mini.sp-off span { color: #ff9b73; }
