/* Menú de Guayoyo · siempre fondo claro · Poppins · rojo, amarillo tostado, negro y blanco */
:root {
  color-scheme: light;
  --bg: #F7F5F3; --surface: #FFFFFF; --ink: #141111; --muted: #5E5654; --line: #E7E1DE;
  --red: #7A0303; --red-ink: #FFFFFF; --red-soft: #F6E6E6;
  --gold: #F2A81D; --gold-soft: #FDF1D9;
  --ok: #2E7D4F; --ok-soft: #E3F2E8; --warn: #A33A12; --warn-soft: #FBE6DC;
  --r: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Poppins', 'Segoe UI', Arial, sans-serif; font-size: 16px; line-height: 1.5; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { margin: 0; line-height: 1.2; text-wrap: balance; font-weight: 700; }
b, strong { font-weight: 600; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.small { font-size: 14px; color: var(--muted); }
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot-mark { width: 64px; height: 64px; border-radius: 18px; background: var(--red); color: var(--gold); font-weight: 800; font-size: 36px; display: grid; place-items: center; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.92); opacity: .8; } }
@media (prefers-reduced-motion: reduce) { .boot-mark { animation: none; } }

.phone { max-width: 480px; margin: 0 auto; background: var(--bg); min-height: 100vh; padding-bottom: 170px; }
@media (min-width: 700px) { .phone { box-shadow: 0 0 0 1px var(--line); } }

/* Cabecera */
.cover { height: 200px; background: var(--red); position: relative; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero { background: var(--red); color: var(--red-ink); padding: 0 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.logo { width: 84px; height: 84px; border-radius: 18px; border: 3px solid #fff; background: #141111; margin-top: -54px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--gold); font-weight: 800; position: relative; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.hero h1 { font-size: 26px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; color: #fff; }
.hero .sub { opacity: .9; font-size: 15px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 600; background: rgba(255,255,255,.14); }
.chip.open { background: var(--gold); color: var(--ink); }
.chip.closed { background: #fff; color: var(--red); }
.social { display: flex; gap: 8px; flex-wrap: wrap; }
.social a { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; border: 1.5px solid rgba(255,255,255,.55); border-radius: 999px; padding: 6px 12px 6px 9px; font-size: 14px; font-weight: 600; min-height: 40px; }
.social svg { width: 20px; height: 20px; }
.gbox { display: flex; align-items: center; gap: 10px; background: var(--surface); color: var(--ink); border-radius: 12px; padding: 10px 12px; text-decoration: none; }
.gbox .stars { color: var(--gold); font-size: 18px; letter-spacing: 1px; }
.gbox b { font-size: 20px; }
.gbox span.go { margin-left: auto; font-size: 14px; color: var(--red); font-weight: 700; white-space: nowrap; }
.revs { display: flex; gap: 10px; overflow-x: auto; padding: 14px 16px 2px; scroll-snap-type: x mandatory; }
.rev { flex: 0 0 78%; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; font-size: 14px; }
.rev .stars { color: var(--gold); }
.rev p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; }

.banner { margin: 12px 16px 0; background: var(--warn-soft); border: 1px solid var(--warn); border-radius: var(--r); padding: 12px 14px; font-weight: 600; }

/* Plato del día */
.dia { margin: 16px; background: var(--surface); border: 2px solid var(--gold); border-radius: 18px; overflow: hidden; }
.dia .ph { height: 170px; }
.dia .in { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.eyebrow { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--red); }
.dia h2 { font-size: 23px; }
.price-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.old { text-decoration: line-through; color: var(--muted); }
.big-price { font-size: 21px; font-weight: 700; }

/* Categorías y platos */
.cats { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats button { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 15px; }
.cats button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.sec { padding: 4px 16px 0; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 64px; }
.sec h2 { font-size: 21px; padding-top: 18px; }
.item { display: grid; grid-template-columns: 1fr 104px; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.item .ph { width: 104px; height: 104px; border-radius: 10px; grid-column: 2; grid-row: 1; }
.item .txt { min-width: 0; display: flex; flex-direction: column; gap: 4px; grid-column: 1; grid-row: 1; }
.item h3 { font-size: 17px; font-weight: 600; }
.item p { color: var(--muted); font-size: 14.5px; }
.item .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; flex-wrap: wrap; padding-top: 4px; }
.item .pr { font-weight: 700; font-size: 17px; }
.item.off { opacity: .55; }
.item.off .ph { filter: grayscale(1); }
.soldout { font-weight: 700; color: var(--warn); font-size: 14px; }
.ph { background: var(--red-soft); display: flex; align-items: center; justify-content: center; color: var(--red); font-weight: 800; font-size: 26px; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.add { background: var(--red); color: var(--red-ink); border: 0; border-radius: 12px; padding: 10px 18px; font-weight: 700; font-size: 16px; min-height: 48px; }
.step { display: flex; align-items: center; border: 2px solid var(--red); border-radius: 12px; overflow: hidden; background: var(--surface); }
.step button { border: 0; background: transparent; width: 46px; height: 44px; font-size: 22px; font-weight: 700; color: var(--red); }
.step span { min-width: 26px; text-align: center; font-weight: 700; }
.foot-info { padding: 28px 16px 8px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 14px; }
.foot-info h3 { color: var(--ink); font-size: 16px; }
.hours-list { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; }

/* Barra del carrito */
.cartbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: min(480px, 100%); z-index: 20; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
.prog { display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--gold); border-radius: 99px; transition: width .4s ease; }
.bar.ok i { background: var(--ok); }
.go { width: 100%; background: var(--red); color: #fff; border: 0; border-radius: 14px; padding: 14px 16px; font-size: 18px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; min-height: 56px; }

/* Hoja de sugerencia */
.ov { position: fixed; inset: 0; background: rgba(20,12,8,.55); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: min(480px, 100%); background: var(--surface); border-radius: 22px 22px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; max-height: 92%; overflow: auto; animation: up .25s ease; }
@keyframes up { from { transform: translateY(30px); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } .bar i { transition: none; } }
.sheet h2 { font-size: 23px; }
.sug { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: center; background: var(--gold-soft); border-radius: var(--r); padding: 12px; }
.sug .ph { width: 88px; height: 88px; border-radius: 10px; }
.btn { border: 0; border-radius: 14px; padding: 14px; font-size: 18px; font-weight: 700; min-height: 54px; width: 100%; display: block; text-align: center; text-decoration: none; }
.btn.main { background: var(--red); color: #fff; }
.btn.alt { background: transparent; border: 2px solid var(--line); color: var(--ink); }
.btn.wa { background: #1F8F4E; color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Pedido */
.co { padding: 0 16px; display: flex; flex-direction: column; gap: 16px; }
.co-top { display: flex; align-items: center; gap: 10px; padding: 16px 0 0; }
.back { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 8px 14px; font-weight: 600; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.box h3 { font-size: 18px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg.one { grid-template-columns: 1fr; }
.seg button { border: 2px solid var(--line); background: var(--bg); border-radius: 12px; padding: 12px; font-weight: 600; min-height: 52px; text-align: center; }
.seg button.on { border-color: var(--red); background: var(--gold-soft); }
.seg button:disabled { opacity: .45; }
label { font-weight: 600; font-size: 15px; display: flex; flex-direction: column; gap: 5px; }
label .opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=tel], select, textarea { border: 1.5px solid var(--line); background: var(--bg); border-radius: 10px; padding: 12px; width: 100%; min-width: 0; font-size: 16px; }
input:focus, select:focus, textarea:focus { border-color: var(--red); outline: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cline { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.cline .n { font-weight: 600; }
.line { display: flex; justify-content: space-between; gap: 10px; }
.line.tot { font-size: 20px; font-weight: 700; border-top: 1px solid var(--line); padding-top: 8px; }
.green { color: var(--ok); font-weight: 600; }
.alert { border-radius: 12px; padding: 12px; font-size: 15px; }
.alert.ok { background: var(--ok-soft); }
.alert.warn { background: var(--warn-soft); border: 1px solid var(--warn); }
.alert.info { background: var(--gold-soft); }
.sugg { border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.sugg button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 11px 12px; }
.sugg button:last-child { border-bottom: 0; }
.sugg small { display: block; color: var(--muted); }
.alias { display: flex; gap: 8px; align-items: center; background: var(--bg); border: 1px dashed var(--line); border-radius: 10px; padding: 10px; flex-wrap: wrap; }
.alias code { font-size: 18px; font-weight: 700; user-select: all; word-break: break-all; font-family: inherit; }
.mini { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 12px; font-weight: 600; font-size: 14px; }
.err { color: var(--warn); font-weight: 600; font-size: 15px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(180px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 60; font-weight: 600; font-size: 15px; max-width: 90%; text-align: center; }
.status-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.status-steps div { text-align: center; font-size: 12.5px; color: var(--muted); }
.status-steps div i { display: block; height: 6px; border-radius: 99px; background: var(--line); margin-bottom: 4px; }
.status-steps div.on { color: var(--ink); font-weight: 600; }
.status-steps div.on i { background: var(--red); }
