/* Página pública de pedidos: móvil primero. Reutiliza los colores de /css/app.css */
body { background: var(--bg); }
.p-header { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 3px solid var(--yellow); box-shadow: 0 2px 0 var(--purple); }
.p-header .in { max-width: 780px; margin: 0 auto; padding: 8px 14px; display: flex; align-items: center; gap: 10px; }
.p-header .title { font-weight: 800; line-height: 1.15; } .p-header .title small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }
.p-header .logos { margin-left: auto; display: flex; gap: 8px; }
.p-wrap { max-width: 780px; margin: 0 auto; padding: 14px 14px 120px; display: flex; flex-direction: column; gap: 14px; }
.p-banner { padding: 12px 14px; border-radius: 12px; font-weight: 600; }
.p-banner.info { background: color-mix(in srgb, var(--purple) 16%, var(--surface)); color: var(--text); border: 1px solid color-mix(in srgb, var(--purple) 40%, transparent); }
.p-banner.closed { background: var(--bad-soft); color: var(--bad); }
.p-cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; } .p-cats::-webkit-scrollbar { display: none; }
.p-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .p-list { grid-template-columns: 1fr 1fr; } }
.p-item { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
.p-item.off { opacity: .55; }
.p-tile { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; font-weight: 800; color: #fff; flex: none; }
.p-item .info { flex: 1; min-width: 0; } .p-item .name { font-weight: 700; } .p-item .desc { color: var(--muted); font-size: 13px; }
.p-item .price { font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; font-size: 20px; font-weight: 800; cursor: pointer; line-height: 1; }
.stepper button.minus { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper .n { min-width: 30px; text-align: center; font-weight: 800; }
.add-btn { border-radius: 999px; padding: 8px 16px; background: var(--brand); color: #fff; border: 0; font-weight: 700; cursor: pointer; min-height: 40px; }
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, var(--bg) 28%); }
.cartbar button { width: 100%; max-width: 752px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; min-height: 56px; border: 0; border-radius: 16px; background: var(--brand); color: #fff; font-size: 17px; font-weight: 800; padding: 0 18px; box-shadow: 0 6px 20px rgba(217, 43, 20, .35); cursor: pointer; }
.cartbar .count { background: #fff; color: var(--brand); border-radius: 999px; min-width: 28px; height: 28px; display: inline-grid; place-items: center; margin-right: 8px; font-size: 14px; }
.sheet-backdrop { position: fixed; inset: 0; background: rgba(20, 10, 8, .55); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 640px; max-height: 94vh; overflow-y: auto; background: var(--surface); border-radius: 22px 22px 0 0; padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .sheet-backdrop { align-items: center; } .sheet { border-radius: 22px; } }
.sheet h2 { font-size: 20px; margin-bottom: 4px; }
.seg { display: grid; grid-auto-flow: column; gap: 8px; } .seg label { border: 2px solid var(--border); border-radius: 12px; padding: 12px; text-align: center; font-weight: 700; cursor: pointer; }
.seg input { position: absolute; opacity: 0; } .seg label.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.line { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--border); align-items: center; }
.tot { display: flex; justify-content: space-between; padding: 3px 0; font-variant-numeric: tabular-nums; } .tot.big { font-size: 22px; font-weight: 800; color: var(--brand); padding-top: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* trampa para bots */
.code-box { font-size: 30px; letter-spacing: .12em; font-weight: 800; padding: 12px; background: var(--surface-2); border-radius: 12px; text-align: center; user-select: all; }
.wa-btn { background: #25D366 !important; border-color: #25D366 !important; color: #063 !important; font-weight: 800; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; position: relative; padding-bottom: 14px; }
.steps li::before { content: ""; position: absolute; left: 14px; top: 28px; bottom: 0; width: 2px; background: var(--border); } .steps li:last-child::before { display: none; }
.steps .dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--border); background: var(--surface); display: grid; place-items: center; font-size: 14px; font-weight: 800; color: var(--muted); z-index: 1; }
.steps li.done .dot { background: var(--good); border-color: var(--good); color: #fff; } .steps li.done::before { background: var(--good); }
.steps li.now .dot { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 25%, transparent); animation: pulse 1.6s infinite; }
.steps li.now .lbl { font-weight: 800; color: var(--brand); } .steps .lbl { font-weight: 600; } .steps .when { font-size: 12.5px; color: var(--muted); } .steps .msg { font-size: 13.5px; }
.steps li.cancelled .dot { background: var(--bad); border-color: var(--bad); color: #fff; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--brand) 8%, transparent); } }
.mine { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 2px solid var(--purple); cursor: pointer; }
.p-foot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 8px 0 0; }
.p-img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; flex: none; cursor: zoom-in; background: var(--surface-2); }
.p-promos { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.p-promos img { height: 160px; border-radius: 14px; flex: none; scroll-snap-align: start; cursor: zoom-in; border: 1px solid var(--border); }
.chip.menu { border-color: var(--purple); } .chip.menu.active { background: var(--purple); border-color: var(--purple); color: #fff; }
.viewer { align-items: center; }
.viewer-box { max-width: 96vw; max-height: 94vh; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.viewer-box img { max-width: 96vw; max-height: 80vh; object-fit: contain; border-radius: 12px; background: #fff; }
.viewer-title { color: #fff; font-weight: 700; }
