:root {
  --brand: #E8572A;
  --brand-ink: #fff;
  --brand-soft: color-mix(in srgb, var(--brand) 12%, transparent);
  --bg: #F7F4EF;
  --surface: #FFFFFF;
  --surface-2: #F1EDE6;
  --ink: #1C1A17;
  --ink-2: #5E5850;
  --ink-3: #9A938A;
  --line: #E7E1D8;
  --ok: #1F9D55;
  --warn: #D98E04;
  --danger: #D64545;
  --wa: #25D366;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(28, 26, 23, .05), 0 8px 24px rgba(28, 26, 23, .07);
  --shadow-lg: 0 20px 60px rgba(28, 26, 23, .22);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Fraunces', Georgia, serif;
  --maxw: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14120F;
    --surface: #1E1B17;
    --surface-2: #29251F;
    --ink: #F4EFE8;
    --ink-2: #C2BAAF;
    --ink-3: #857D72;
    --line: #332E27;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }

/* ---------- Encabezado del restaurante ---------- */
.store { max-width: var(--maxw); margin: 0 auto; }
.cover { height: 180px; position: relative; overflow: hidden; background: var(--surface-2); }
.cover.plain {
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--brand) 80%, #fff) 0%, transparent 55%),
    linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 60%, #000));
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.store-head { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: end; padding: 0 16px; }
.logo { width: 84px; height: 84px; border-radius: 20px; margin-top: -42px; display: grid; place-items: center; overflow: hidden; background: var(--brand); color: var(--brand-ink); border: 4px solid var(--bg); box-shadow: 0 6px 18px rgba(0,0,0,.12); position: relative; z-index: 1; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.logo .initials, .mini-logo .initials { font-weight: 800; font-size: 28px; letter-spacing: -.02em; }
.store-id { grid-column: 1 / -1; min-width: 0; padding-top: 10px; }
.store-name { font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -.015em; }
.store-slogan { color: var(--ink-2); margin: 4px 0 0; font-size: 14.5px; }
.store-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.store-meta .meta { display: inline-flex; align-items: center; gap: 6px; }
.store-meta svg { width: 16px; height: 16px; color: var(--ink-3); }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; font-weight: 700; }
.status.open { background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); }
.status.closed { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.info-link { position: absolute; right: 16px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 700; color: var(--ink); }
.info-link svg { width: 16px; height: 16px; }
.info-link:hover { border-color: var(--ink-3); }
@media (max-width: 420px) { .info-link span { display: none; } .info-link { padding: 8px; } }
@media (min-width: 720px) {
  .cover-wrap { padding: 16px 24px 0; }
  .cover { height: 280px; border-radius: 22px; }
  .store-head { padding: 0 24px 0 48px; grid-template-columns: auto 1fr auto; }
  .logo { width: 112px; height: 112px; border-radius: 26px; margin-top: -56px; }
  .logo .initials { font-size: 38px; }
  .store-id { grid-column: 2; padding-top: 0; padding-bottom: 2px; }
  .store-name { font-size: 34px; }
  .info-link { position: static; align-self: end; margin-bottom: 4px; }
}

.announce { margin: 18px auto 0; max-width: var(--maxw); padding: 0 16px; }
.announce > div { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 12px; padding: 11px 14px; font-weight: 600; font-size: 14px; color: var(--ink); }
.announce svg { width: 18px; height: 18px; flex: none; color: var(--brand); }
.announce.warn > div { border-left-color: var(--warn); }
.announce.warn svg { color: var(--warn); }

/* ---------- Búsqueda y categorías ---------- */
.search { margin: 18px auto 0; max-width: var(--maxw); padding: 0 16px; }
@media (min-width: 720px) { .search, .cat-nav, .topbar-inner, .announce { padding-left: 24px; padding-right: 24px; } }
.search label { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 0 14px; transition: border-color .15s; }
.search label:focus-within { border-color: var(--brand); }
.search svg { color: var(--ink-3); flex: none; }
.search input { border: 0; outline: 0; background: none; padding: 13px 0; width: 100%; font-size: 15px; }

.cat-nav { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; scrollbar-width: none; max-width: var(--maxw); margin: 0 auto; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-pill { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); font-weight: 600; font-size: 14px; white-space: nowrap; transition: all .15s; }
.cat-pill.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); transform: translateY(-100%); transition: transform .25s ease; }
.topbar.show { transform: none; }
.topbar-inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 0; }
.topbar-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; }
.topbar-brand .mini-logo { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); overflow: hidden; }
.topbar-brand .mini-logo .initials { font-size: 12px; }
.topbar-brand .mini-logo img { width: 100%; height: 100%; object-fit: cover; }
.topbar .cat-nav { padding-top: 10px; }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); }

/* ---------- Destacados ---------- */
.section-title { font-family: var(--display); font-size: 24px; font-weight: 700; margin: 0 0 12px; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.featured { margin-top: 10px; }
.featured-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 16px 14px; margin: 0 -16px; scrollbar-width: none; }
.featured-row::-webkit-scrollbar { display: none; }
.fcard { flex: none; width: 250px; scroll-snap-align: start; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-align: left; transition: transform .15s; }
.fcard:active { transform: scale(.98); }
.fcard .media { height: 130px; }
.fcard .body { padding: 12px 14px 14px; }
.fcard h3 { margin: 0; font-size: 16px; font-weight: 700; }
.fcard p { margin: 4px 0 8px; color: var(--ink-2); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }

/* ---------- Productos ---------- */
.cat-section { padding-top: 22px; }
.products { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .products { grid-template-columns: 1fr 1fr; gap: 16px; } .featured-row { padding-left: 24px; padding-right: 24px; margin: 0 -24px; } }
@media (min-width: 1100px) { .products { grid-template-columns: 1fr 1fr 1fr; } .fcard { width: 272px; } .fcard .media { height: 160px; } }
.pcard { position: relative; display: grid; grid-template-columns: 1fr 112px; gap: 14px; background: var(--surface); border-radius: var(--radius); padding: 14px; text-align: left; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; align-items: stretch; }
.pcard:hover { transform: translateY(-2px); }
.pcard:active { transform: scale(.985); }
.pcard h3 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.25; }
.pcard p { margin: 4px 0 0; color: var(--ink-2); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .info { display: flex; flex-direction: column; min-width: 0; }
.pcard .price-row { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; gap: 8px; }
.pcard .media { width: 112px; height: 112px; border-radius: 14px; }
.pcard.sold { opacity: .55; }
.pcard .in-cart { position: absolute; top: -6px; right: -6px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 13px; display: grid; place-items: center; box-shadow: 0 4px 10px color-mix(in srgb, var(--brand) 45%, transparent); }
.media { position: relative; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 18%, var(--surface-2)), var(--surface-2)); display: grid; place-items: center; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media .add { position: absolute; right: 6px; bottom: 6px; width: 32px; height: 32px; border-radius: 10px; background: var(--surface); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow); }
.pcard.noimg { grid-template-columns: 1fr; }
.pcard.noimg .price-row { align-items: center; }
.price-row .add { margin-left: auto; width: 32px; height: 32px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; }
.price-row .add svg { width: 18px; height: 18px; stroke-width: 2.6; }
.media.ph svg { width: 40px; height: 40px; stroke-width: 1.4; color: color-mix(in srgb, var(--brand) 50%, var(--ink-3)); }
.sinpe-note.with-ic { display: flex; gap: 8px; align-items: flex-start; }
.sinpe-note.with-ic svg { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--ink-3); }
.media .add svg { width: 18px; height: 18px; stroke-width: 2.6; }
.price { font-weight: 800; font-size: 16px; }
.price-old { color: var(--ink-3); text-decoration: line-through; font-size: 13px; font-weight: 500; }
.price-from { color: var(--ink-3); font-size: 12px; font-weight: 600; }
.badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); text-transform: uppercase; letter-spacing: .03em; }
.badge.hot { background: #FDE7E1; color: #C2410C; }
.badge.new { background: #E0F2FE; color: #0369A1; }
.badge.veg { background: #DCFCE7; color: #15803D; }
.badge.top { background: #FEF3C7; color: #A16207; }
.badge.sold { background: var(--ink); color: var(--bg); }
.badge.off { background: var(--brand); color: var(--brand-ink); }
@media (prefers-color-scheme: dark) {
  .badge.hot { background: #4A1D10; color: #FDBA74; }
  .badge.new { background: #0C2D44; color: #7DD3FC; }
  .badge.veg { background: #0F3320; color: #86EFAC; }
  .badge.top { background: #3B2D06; color: #FCD34D; }
}

.empty { text-align: center; color: var(--ink-3); padding: 50px 20px; }
.empty .big { width: 56px; height: 56px; margin: 0 auto 6px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-3); }

footer.site { text-align: center; color: var(--ink-3); font-size: 13px; padding: 40px 16px 130px; }
footer.site a { color: inherit; }

/* ---------- Carrito flotante ---------- */
.cart-bar { position: fixed; z-index: 40; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(560px, calc(100% - 32px)); display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; background: var(--brand); color: var(--brand-ink); font-weight: 700; box-shadow: 0 14px 34px color-mix(in srgb, var(--brand) 45%, transparent); animation: rise .35s cubic-bezier(.2,.9,.3,1.2); }
.cart-bar .cart-count { min-width: 28px; height: 28px; border-radius: 9px; background: rgba(255,255,255,.22); display: grid; place-items: center; font-size: 14px; }
.cart-bar .cart-label { flex: 1; text-align: left; }
.cart-bar.bump { animation: bump .35s ease; }
@keyframes rise { from { transform: translate(-50%, 120%); } }
@keyframes bump { 50% { transform: translateX(-50%) scale(1.05); } }

/* ---------- Hoja modal ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(15, 12, 8, .5); opacity: 0; pointer-events: none; transition: opacity .25s; }
.sheet-backdrop.show { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; z-index: 51; left: 0; right: 0; bottom: 0; max-height: 92dvh; background: var(--surface); border-radius: 26px 26px 0 0; box-shadow: var(--shadow-lg); transform: translateY(105%); transition: transform .32s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; }
.sheet.show { transform: none; }
.sheet-handle { width: 42px; height: 5px; border-radius: 9px; background: var(--line); margin: 10px auto 0; flex: none; }
.sheet-content { overflow-y: auto; overscroll-behavior: contain; flex: 1; display: flex; flex-direction: column; }
@media (min-width: 720px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 560px; max-height: 88vh; border-radius: 26px; transform: translate(-50%, -46%) scale(.96); opacity: 0; pointer-events: none; transition: transform .25s, opacity .2s; }
  .sheet.show { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
  .sheet-handle { display: none; }
}
.sheet-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; }
.sheet-head { padding: 18px 20px 6px; display: flex; align-items: center; gap: 10px; }
.sheet-head h2 { font-family: var(--display); font-size: 24px; margin: 0; flex: 1; }
.back-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.sheet-body { padding: 8px 20px 20px; flex: 1; }
.sheet-foot { position: sticky; bottom: 0; padding: 12px 20px max(16px, env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }

/* Producto */
.p-media { height: 240px; flex: none; }
.p-title { font-family: var(--display); font-size: 26px; margin: 16px 20px 0; line-height: 1.15; }
.p-desc { color: var(--ink-2); margin: 6px 20px 0; }
.p-price { margin: 10px 20px 0; display: flex; align-items: baseline; gap: 8px; }
.p-price .price { font-size: 20px; }
.group { margin: 18px 20px 0; border-top: 1px solid var(--line); padding-top: 16px; }
.group-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.group-head b { font-size: 16px; }
.group-head small { display: block; color: var(--ink-3); font-size: 12.5px; font-weight: 500; }
.req { font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); letter-spacing: .03em; }
.req.missing { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.req.done { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px dashed var(--line); cursor: pointer; }
.opt:last-child { border-bottom: 0; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .box { width: 22px; height: 22px; flex: none; border: 2px solid var(--line); border-radius: 7px; display: grid; place-items: center; transition: all .15s; }
.opt input[type=radio] + .box { border-radius: 50%; }
.opt input:checked + .box { background: var(--brand); border-color: var(--brand); }
.opt input:checked + .box::after { content: ''; width: 10px; height: 6px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.opt input[type=radio]:checked + .box::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #fff; transform: none; }
.opt input:focus-visible + .box { outline: 3px solid var(--brand-soft); }
.opt .name { flex: 1; font-weight: 500; }
.opt .plus { color: var(--ink-2); font-weight: 600; font-size: 14px; }
.opt.disabled { opacity: .45; pointer-events: none; }
.note-field { margin: 18px 20px 0; }
textarea, .input, select.input { width: 100%; border: 1.5px solid var(--line); background: var(--bg); border-radius: 14px; padding: 12px 14px; outline: 0; resize: none; transition: border-color .15s; font-size: 15px; }
textarea:focus, .input:focus { border-color: var(--brand); }
.input.error { border-color: var(--danger); }

.stepper { display: inline-flex; align-items: center; background: var(--surface-2); border-radius: 14px; flex: none; }
.stepper button { width: 42px; height: 46px; display: grid; place-items: center; }
.stepper button:disabled { opacity: .35; }
.stepper span { min-width: 22px; text-align: center; font-weight: 800; }
.stepper.sm button { width: 34px; height: 34px; }
.stepper.sm svg { width: 16px; height: 16px; }

.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 20px; border-radius: 16px; font-weight: 700; font-size: 15.5px; transition: transform .1s, filter .15s, opacity .15s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: var(--brand-ink); flex: 1; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: var(--surface-2); color: var(--ink); }
.btn-wa { background: var(--wa); color: #fff; width: 100%; font-size: 17px; padding: 16px; }
.btn-block { width: 100%; }
.btn .sp { margin-left: auto; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Carrito */
.citem { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.citem .media { width: 54px; height: 54px; border-radius: 12px; }
.citem.noimg { grid-template-columns: 1fr auto; }
.citem h4 { margin: 0; font-size: 15px; }
.citem .opts { color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.citem .right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.citem .edit { color: var(--brand); font-weight: 700; font-size: 13px; margin-top: 4px; }
.totals { margin-top: 14px; display: grid; gap: 6px; }
.totals div { display: flex; justify-content: space-between; color: var(--ink-2); }
.totals .grand { color: var(--ink); font-size: 18px; font-weight: 800; padding-top: 8px; border-top: 1px dashed var(--line); margin-top: 4px; }
.free { color: var(--ok); font-weight: 700; }
.progress-free { margin-top: 12px; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.progress-free .bar { height: 6px; border-radius: 9px; background: var(--line); margin-top: 8px; overflow: hidden; }
.progress-free .bar i { display: block; height: 100%; background: var(--ok); border-radius: 9px; transition: width .4s; }

/* Checkout */
.field { margin-top: 14px; }
.field > span { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 6px; }
.field > span small { color: var(--ink-3); font-weight: 500; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.step-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 24px 0 2px; display: flex; align-items: center; gap: 8px; }
.step-title:first-child { margin-top: 6px; }
.step-title .n { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 12px; letter-spacing: 0; }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin-top: 10px; }
.seg { padding: 12px 8px; border-radius: 14px; border: 1.5px solid var(--line); text-align: center; font-weight: 700; font-size: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: all .15s; }
.seg .ic { display: grid; place-items: center; color: var(--ink-2); }
.seg.active .ic { color: var(--brand); }
.seg .ic svg { width: 22px; height: 22px; }
.seg small { font-weight: 500; color: var(--ink-3); font-size: 12px; }
.seg.active { border-color: var(--brand); background: var(--brand-soft); }
.pay { border: 1.5px solid var(--line); border-radius: 16px; margin-top: 10px; overflow: hidden; transition: border-color .15s; }
.pay.active { border-color: var(--brand); }
.pay-head { display: flex; align-items: center; gap: 12px; padding: 14px; width: 100%; text-align: left; }
.pay-head .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); flex: none; }
.pay.active .pay-head .ic { color: var(--brand); background: var(--brand-soft); }
.pay-head b { display: block; }
.pay-head small { color: var(--ink-3); }
.pay-head .radio { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.pay.active .radio { border: 7px solid var(--brand); }
.pay-body { padding: 0 14px 14px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.quick button { padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-weight: 600; font-size: 13.5px; border: 1.5px solid transparent; }
.quick button.active { border-color: var(--brand); background: var(--brand-soft); }
.change { margin-top: 10px; font-weight: 700; color: var(--ok); }
.sinpe-card { border-radius: 16px; padding: 16px; color: #fff; background: linear-gradient(135deg, #0B4F9C, #1B7BD8 60%, #23A6F0); position: relative; overflow: hidden; }
.sinpe-card::after { content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -60px; top: -80px; background: rgba(255,255,255,.12); }
.sinpe-card .lbl { font-size: 12px; opacity: .8; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.sinpe-card .num { font-size: 26px; font-weight: 800; letter-spacing: .04em; margin: 2px 0; }
.sinpe-card .holder { font-weight: 600; opacity: .95; }
.sinpe-card .amount { margin-top: 12px; display: flex; justify-content: space-between; align-items: flex-end; }
.sinpe-card .amount b { font-size: 22px; }
.sinpe-actions { display: flex; gap: 8px; margin-top: 12px; position: relative; z-index: 1; }
.sinpe-actions button { flex: 1; padding: 9px; border-radius: 10px; background: rgba(255,255,255,.18); color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.sinpe-actions svg { width: 16px; height: 16px; }
.sinpe-note { font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.drop { margin-top: 12px; border: 2px dashed var(--line); border-radius: 16px; padding: 18px; text-align: center; cursor: pointer; display: block; transition: border-color .15s, background .15s; }
.drop:hover, .drop.drag { border-color: var(--brand); background: var(--brand-soft); }
.drop.error { border-color: var(--danger); }
.drop input { display: none; }
.drop .big { display: grid; place-items: center; color: var(--ink-3); }
.drop .big svg { width: 28px; height: 28px; }
.drop b { display: block; margin-top: 4px; }
.drop small { color: var(--ink-3); }
.receipt-preview { margin-top: 12px; display: flex; gap: 12px; align-items: center; background: color-mix(in srgb, var(--ok) 10%, transparent); padding: 10px; border-radius: 14px; }
.receipt-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.receipt-preview .pdf { width: 64px; height: 64px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); color: var(--ink-3); }
.receipt-preview div { flex: 1; min-width: 0; font-size: 13.5px; }
.receipt-preview b { color: var(--ok); display: block; }
.receipt-preview span { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.link-btn { color: var(--brand); font-weight: 700; font-size: 13.5px; }
.geo-btn { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 700; font-size: 13.5px; }
.geo-btn svg { width: 16px; height: 16px; }
.err-msg { margin-top: 12px; background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: 14px; }
.closed-note { margin-top: 12px; background: color-mix(in srgb, var(--warn) 14%, transparent); color: color-mix(in srgb, var(--warn) 70%, var(--ink)); padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: 14px; }

/* Éxito */
.success { text-align: center; padding: 30px 24px 24px; }
.check { width: 86px; height: 86px; margin: 0 auto 14px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 15%, transparent); display: grid; place-items: center; animation: pop .5s cubic-bezier(.2,.9,.3,1.4); }
.check svg { width: 46px; height: 46px; color: var(--ok); stroke-width: 3; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .45s .25s forwards; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h2 { font-family: var(--display); font-size: 28px; margin: 0; }
.success p { color: var(--ink-2); }
.success .order-no { display: inline-block; background: var(--surface-2); padding: 6px 14px; border-radius: 999px; font-weight: 800; margin: 6px 0 14px; }
.last-step { background: var(--surface-2); border-radius: 18px; padding: 16px; margin: 10px 0 14px; text-align: left; }
.last-step b { display: block; margin-bottom: 4px; }
.last-step p { margin: 0 0 12px; font-size: 14px; }

/* Info */
.info-list { display: grid; gap: 4px; }
.info-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.info-row .ic { width: 28px; display: grid; place-items: center; color: var(--ink-3); padding-top: 1px; }
.hours { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours td { padding: 5px 0; }
.hours td:last-child { text-align: right; color: var(--ink-2); }
.hours tr.today td { font-weight: 800; color: var(--ink); }

.toast { position: fixed; z-index: 80; left: 50%; top: 18px; transform: translate(-50%, -150%); visibility: hidden; background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); transition: transform .3s cubic-bezier(.2,.9,.3,1.2); max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

.skeleton-hero { height: 180px; background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

body.lock { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }

/* ---------- Plataforma: variantes, cantidades, cargos ---------- */
.plus.strong { color: var(--ink); font-weight: 800; }
.qty-opt { cursor: default; }
.qty-opt.picked .name { font-weight: 700; }
.qty-opt .stepper { margin-left: 4px; }
.info-note { margin-top: 12px; background: color-mix(in srgb, var(--info, #2563EB) 10%, transparent); color: var(--ink-2); padding: 10px 14px; border-radius: 12px; font-size: 13.5px; }
.tax-note { font-size: 12.5px; color: var(--ink-3) !important; }
.drop.optional { border-style: dotted; }
.btn-wa-solid { background: var(--wa); color: #fff; flex: 1; }
.btn-wa-solid svg { width: 20px; height: 20px; }
.wa-check { background: color-mix(in srgb, var(--wa) 18%, transparent); }
.wa-check svg { width: 44px !important; height: 44px !important; fill: var(--wa) !important; stroke: none !important; animation: none !important; stroke-dasharray: none !important; }
.recent-order { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--brand); font-weight: 700; text-decoration: none; }
.recent-order small { color: var(--ink-3); font-weight: 500; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- Chat ---------- */
.chat-fab { position: fixed; z-index: 39; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: var(--shadow-lg); border: 1px solid var(--line); transition: bottom .25s; }
.chat-fab svg { color: var(--brand); }
body.has-cart .chat-fab { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 76px); }
.chat-dot { position: absolute; top: 6px; right: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px var(--surface); }
.chat-box { display: flex; flex-direction: column; height: min(70dvh, 560px); }
.chat-log { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.chat-empty { color: var(--ink-3); text-align: center; margin: auto; font-size: 14px; }
.bubble { max-width: 82%; padding: 9px 12px 6px; border-radius: 16px; font-size: 14.5px; line-height: 1.4; display: flex; flex-direction: column; gap: 2px; word-wrap: break-word; }
.bubble.me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 5px; }
.bubble.them { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bubble b { font-size: 12px; color: var(--brand); }
.bubble small { font-size: 11px; opacity: .7; align-self: flex-end; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); align-items: flex-end; }
.chat-form textarea { flex: 1; border: 1.5px solid var(--line); background: var(--bg); border-radius: 18px; padding: 10px 14px; outline: 0; resize: none; font-size: 15px; max-height: 120px; }
.chat-form textarea:focus { border-color: var(--brand); }
.chat-send { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.chat-closed { padding: 14px 16px; text-align: center; color: var(--ink-2); border-top: 1px solid var(--line); }
.chat-closed p { margin: 0 0 8px; }
.btn-sm { padding: 8px 12px; font-size: 13.5px; border-radius: 12px; }
