:root {
  --bg: #f7f2ea;
  --surface: #ffffff;
  --ink: #1b1614;
  --muted: #6d625a;
  --line: #e8dfd3;
  --accent: #d1281b;
  --accent-deep: #a81d12;
  --accent-ink: #ffffff;
  --accent-soft: #fde8e4;
  --night: #141110;
  --cheese: #f6c96b;
  --ok: #1e7a46;
  --wa: #1fa855;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(27 22 20 / .06), 0 8px 24px rgb(27 22 20 / .07);
  --shadow-lift: 0 2px 4px rgb(27 22 20 / .06), 0 18px 40px rgb(27 22 20 / .14);
  --spring: cubic-bezier(.3, 1.5, .5, 1);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --top-h: 60px;
  --cats-h: 56px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + var(--cats-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--text); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--accent); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 22px; border: 0; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .18s var(--spring), background .2s, box-shadow .2s; }
.btn:active { transform: scale(.96); }
.btn svg { width: 20px; height: 20px; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 40%, transparent); }
.btn--primary:hover { background: var(--accent-deep); }
.btn--primary:hover svg { animation: nudge .7s ease-in-out infinite; }
.btn--ghost { color: #fff; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .18); }
.btn--ghost:hover { background: rgb(255 255 255 / .14); }
.btn--dark { background: var(--ink); color: #fff; height: 44px; padding: 0 16px; font-size: 15px; flex: none; }
.btn--wa { background: var(--wa); color: #fff; width: 100%; height: 54px; position: relative; overflow: hidden; }
.btn--wa:hover { background: #18914a; }
.btn--wa::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .28) 50%, transparent 70%); transform: translateX(-100%); animation: shine 3.2s ease-in-out 1s infinite; }
.btn--wa.sent { background: var(--ink); }
@keyframes nudge { 50% { transform: translateY(3px); } }
@keyframes shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ---------- barra superior ---------- */
.top { position: sticky; top: 0; z-index: 30; background: var(--night); color: #fff; }
.top__bar { height: var(--top-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 800 21px/1 var(--display); }
.brand__mark { width: 34px; height: 34px; color: var(--accent); transition: transform .5s var(--spring); }
.brand:hover .brand__mark { transform: rotate(-12deg) scale(1.08); }
.status { font-size: 13px; font-weight: 600; color: #c9bdb1; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); padding: 6px 12px 6px 26px; border-radius: 999px; position: relative; white-space: nowrap; }
.status::before { content: ""; position: absolute; left: 11px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #8a7f76; }
.status.is-open { color: #ffd2a8; }
.status.is-open::before { background: #ff8a3d; animation: ember 1.8s ease-out infinite; }
@keyframes ember { 0% { box-shadow: 0 0 0 0 rgb(255 138 61 / .6); } 70%, 100% { box-shadow: 0 0 0 8px rgb(255 138 61 / 0); } }

/* ---------- hero ---------- */
.hero { background: radial-gradient(120% 80% at 80% 10%, #3a1712 0%, var(--night) 55%); color: #fff; padding: 12px 0 36px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: radial-gradient(rgb(255 255 255 / .05) 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.hero__inner { display: grid; gap: 24px; position: relative; z-index: 1; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #ff8f7f; margin-bottom: 12px; }
.hero h1 { font-size: clamp(38px, 10.5vw, 72px); font-weight: 800; letter-spacing: -.03em; max-width: 12ch; }
.hero h1 .w { display: inline-block; animation: rise-in .8s var(--spring) both; }
.hero h1 .w:nth-child(2) { animation-delay: .06s; } .hero h1 .w:nth-child(3) { animation-delay: .12s; } .hero h1 .w:nth-child(4) { animation-delay: .18s; } .hero h1 .w:nth-child(5) { animation-delay: .24s; } .hero h1 .w:nth-child(6) { animation-delay: .30s; }
.hero h1 .hot { background: linear-gradient(90deg, #ff5a3c, var(--cheese), #ff5a3c); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise-in .8s var(--spring) .06s both, heat 4s linear infinite; }
@keyframes rise-in { from { opacity: 0; transform: translateY(.5em) rotate(4deg); } }
@keyframes heat { to { background-position: 200% 0; } }
.lede { margin-top: 14px; color: #cbbfb4; font-size: 16.5px; max-width: 40ch; animation: fade-up .8s ease .35s both; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; animation: fade-up .8s ease .45s both; }
.facts { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; animation: fade-up .8s ease .55s both; }
.facts li { background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); border-radius: 999px; padding: 6px 12px; display: flex; gap: 5px; align-items: baseline; font-size: 13.5px; }
.facts strong { font-weight: 600; }
.facts span { color: #b3a79d; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }

.hero__art { --sy: 0; --mx: 0; --my: 0; position: relative; order: -1; margin: 8px 6px 0; animation: fade-up .9s ease both; }
.hero__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 24px; box-shadow: 0 30px 60px rgb(0 0 0 / .5), 0 0 0 1px rgb(255 255 255 / .06); transform: translate3d(calc(var(--mx) * -10px), calc(var(--sy) * 40px + var(--my) * -10px), 0); transition: transform .4s ease-out; }
.steam { position: absolute; left: 50%; top: -26px; width: 120px; transform: translateX(-50%); overflow: visible; pointer-events: none; }
.steam path { fill: none; stroke: rgb(255 255 255 / .55); stroke-width: 3; stroke-linecap: round; opacity: 0; animation: steam 3.6s ease-in-out infinite; filter: blur(1.2px); }
.steam path:nth-child(2) { animation-delay: 1.2s; } .steam path:nth-child(3) { animation-delay: 2.4s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(14px) scaleY(.8); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-26px) scaleY(1.15); } }
.ing { position: absolute; width: 46px; filter: drop-shadow(0 8px 14px rgb(0 0 0 / .4)); transition: transform .5s ease-out; }
.ing--basil { left: -10px; top: 18%; transform: translate3d(calc(var(--mx) * 24px), calc(var(--sy) * -120px + var(--my) * 24px), 0) rotate(calc(-25deg + var(--sy) * 90deg)); animation: bob 5s ease-in-out infinite; }
.ing--tomato { right: -12px; top: -14px; width: 54px; transform: translate3d(calc(var(--mx) * 34px), calc(var(--sy) * -180px + var(--my) * 34px), 0) rotate(calc(var(--sy) * 200deg)); animation: bob 6s ease-in-out .6s infinite; }
.ing--olive { right: 14%; bottom: -16px; width: 34px; transform: translate3d(calc(var(--mx) * 18px), calc(var(--sy) * -90px + var(--my) * 18px), 0) rotate(calc(var(--sy) * -140deg)); animation: bob 4.6s ease-in-out .3s infinite; }
.ing--basil2 { left: 22%; bottom: -18px; width: 38px; transform: translate3d(calc(var(--mx) * 28px), calc(var(--sy) * -140px + var(--my) * 28px), 0) rotate(calc(40deg - var(--sy) * 120deg)); animation: bob 5.4s ease-in-out 1s infinite; }
@keyframes bob { 50% { translate: 0 -8px; } }
.hero__badge { position: absolute; left: 14px; bottom: 14px; display: grid; place-items: center; text-align: center; width: 88px; height: 88px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgb(0 0 0 / .35); animation: spin-in 1s var(--spring) .6s both; }
.hero__badge::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1.5px dashed rgb(255 255 255 / .55); animation: rotate 18s linear infinite; }
.hero__badge strong { font: 800 22px/1 var(--display); margin-top: 8px; }
.hero__badge span { font-size: 10.5px; line-height: 1.1; margin-bottom: 14px; max-width: 9ch; }
@keyframes spin-in { from { transform: scale(0) rotate(-120deg); } }
@keyframes rotate { to { transform: rotate(360deg); } }

/* ---------- cinta ---------- */
.marquee { background: var(--accent); color: #fff; overflow: hidden; white-space: nowrap; padding: 11px 0; font: 700 15px/1 var(--display); letter-spacing: .01em; transform: rotate(-1.2deg) scale(1.04); margin: -10px 0 0; position: relative; z-index: 2; box-shadow: 0 8px 20px rgb(209 40 27 / .25); }
.marquee__track { display: inline-flex; animation: marquee 34s linear infinite; }
.marquee span { padding: 0 18px; display: inline-flex; align-items: center; gap: 18px; }
.marquee span::after { content: "✦"; color: var(--cheese); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- categorías ---------- */
.cats { position: sticky; top: var(--top-h); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); margin-top: 6px; }
.cats__track { position: relative; display: flex; gap: 6px; height: var(--cats-h); align-items: center; overflow-x: auto; scrollbar-width: none; }
.cats__track::-webkit-scrollbar { display: none; }
.cats a { position: relative; z-index: 1; flex: none; padding: 8px 15px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; transition: color .25s; }
.cats a[aria-current="true"] { color: #fff; }
.cats__ink { position: absolute; left: 0; top: calc(50% - 19px); height: 38px; border-radius: 999px; background: var(--ink); transition: transform .45s var(--spring), width .45s var(--spring); }

/* ---------- menú ---------- */
.layout { padding-top: 8px; padding-bottom: 120px; }
.reorder { margin-top: 20px; display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; border-radius: var(--radius); background: linear-gradient(135deg, #fff6e5, #ffe9d6); border: 1px solid #f3d6b5; animation: fade-up .5s ease both; }
.reorder__text { flex: 1; min-width: 0; display: grid; }
.reorder__text strong { font-family: var(--display); font-size: 18px; }
.reorder__text span { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat { padding-top: 28px; }
.cat__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 14px; }
.cat__head h2 { font-size: 30px; font-weight: 800; }
.cat__head p { color: var(--muted); font-size: 14px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease var(--d, 0ms), transform .7s var(--spring) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

.grid, .rows { list-style: none; margin: 0; padding: 0; }
.grid { display: grid; gap: 16px; }
.card { position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: grid; transition: opacity .6s ease var(--d, 0ms), transform .7s var(--spring) var(--d, 0ms), box-shadow .3s; }
.card.in:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card.is-in { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.card__hit { position: absolute; inset: 0; z-index: 1; border: 0; background: none; border-radius: inherit; }
.card .item__ctl { position: relative; z-index: 2; }
.card__media { position: relative; overflow: hidden; }
.card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card__media img { transform: scale(1.06) rotate(.6deg); }
.card__media::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(to top, rgb(0 0 0 / .25), transparent); pointer-events: none; }
.tag { position: absolute; left: 12px; top: 12px; background: var(--surface); color: var(--accent); font: 700 12px/1 var(--text); padding: 6px 10px; border-radius: 999px; box-shadow: 0 2px 8px rgb(0 0 0 / .12); }
.tag--inline { position: static; display: inline-block; vertical-align: middle; margin-left: 6px; background: var(--accent); color: #fff; box-shadow: none; font-size: 11px; padding: 4px 8px; }
.item__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.item__body h3 { font-size: 20px; font-weight: 600; }
.item__body p { color: var(--muted); font-size: 14.5px; }
.item__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
.item__ctl { display: inline-flex; align-items: center; gap: 10px; }
.price { font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.price small { font-weight: 500; font-size: 13px; color: var(--muted); }
.in-cart { font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; animation: pop-in .35s var(--spring); }
@keyframes pop-in { from { transform: scale(.4); opacity: 0; } }

.rows { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.row { transition: background .3s; }
.row + .row { border-top: 1px solid var(--line); }
.row .item__body { padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; column-gap: 12px; }
.row .item__body h3 { font-size: 17px; grid-column: 1; }
.row .item__body p { grid-column: 1; font-size: 14px; }
.row .item__foot { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; align-items: flex-end; justify-content: center; padding: 0; gap: 6px; margin: 0; }
.row .price { font-size: 16px; }
.row.is-in { background: var(--accent-soft); }

.add { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 6px 14px color-mix(in srgb, var(--accent) 35%, transparent); transition: transform .25s var(--spring), background .2s; }
.add:hover { background: var(--accent-deep); transform: rotate(90deg); }
.add:active { transform: scale(.85); }
.add svg { width: 20px; height: 20px; }
.step { display: inline-flex; align-items: center; background: var(--ink); color: #fff; border-radius: 999px; height: 42px; animation: pop-in .3s var(--spring); }
.step button { width: 40px; height: 42px; border: 0; background: none; color: inherit; font-size: 20px; line-height: 1; border-radius: 50%; transition: transform .15s; }
.step button:active { transform: scale(.8); }
.step output { min-width: 18px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.step--light { background: var(--bg); color: var(--ink); animation: none; }

/* ---------- botón flotante ---------- */
.bag { position: fixed; z-index: 40; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 0; border-radius: 16px; background: var(--accent); color: #fff; font-weight: 600; font-size: 16px; box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 45%, transparent); animation: rise .4s var(--spring); }
.bag__count { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: #fff; color: var(--accent); display: grid; place-items: center; font-size: 14px; font-weight: 800; }
.bag__label { flex: 1; text-align: left; }
.bag__total { font-variant-numeric: tabular-nums; font-weight: 700; }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } }

.ghost { position: fixed; z-index: 90; border-radius: 50%; object-fit: cover; pointer-events: none; box-shadow: 0 10px 24px rgb(0 0 0 / .3); border: 3px solid #fff; }
.bit { position: fixed; z-index: 95; border-radius: 50%; pointer-events: none; }

/* ---------- carrito ---------- */
.scrim { position: fixed; inset: 0; z-index: 45; background: rgb(20 15 12 / .5); animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.cart { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; transform: translateY(100%); transition: transform .4s cubic-bezier(.2, .9, .25, 1); visibility: hidden; }
.cart-open .cart { transform: none; visibility: visible; }
.cart-open { overflow: hidden; }
.cart__panel { background: var(--surface); border-radius: 24px 24px 0 0; max-height: 90vh; max-height: 90dvh; overflow-y: auto; padding: 8px 16px max(20px, env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.cart__panel::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 0; }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 0 6px; position: sticky; top: -8px; background: var(--surface); z-index: 2; }
.cart__head h2 { font-size: 26px; font-weight: 800; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg); display: grid; place-items: center; transition: transform .2s var(--spring); }
.icon-btn:hover { transform: rotate(90deg); }
.icon-btn svg { width: 20px; height: 20px; }
.cart__empty { color: var(--muted); padding: 12px 0 20px; display: grid; justify-items: center; text-align: center; gap: 10px; }
.cart__empty-art { width: 72px; animation: bob 3s ease-in-out infinite; }

.ship { margin: 6px 0 4px; padding: 12px 14px; border-radius: 14px; background: var(--bg); }
.ship__text { font-size: 14px; color: var(--muted); }
.ship__text strong { color: var(--ink); }
.ship__bar { margin-top: 8px; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ship__bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #ff7a45, var(--cheese)); transition: width .6s var(--spring); }
.ship.done { background: #e9f6ee; }
.ship.done .ship__text, .ship.done .ship__text strong { color: var(--ok); }
.ship.done .ship__bar span { background: var(--ok); }

.cart__items { list-style: none; margin: 0; padding: 0; }
.cart__items li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line__info { display: grid; min-width: 0; }
.line__info strong { font-weight: 600; font-size: 15px; }
.line__info small { color: var(--muted); font-size: 12.5px; }
.line__info span { color: var(--ink); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cart__items .step { height: 34px; background: var(--bg); color: var(--ink); animation: none; flex: none; }
.cart__items .step button { width: 34px; height: 34px; font-size: 18px; }

.upsell { padding: 14px 0 2px; }
.upsell__title { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.upsell__track { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
.upsell__track::-webkit-scrollbar { display: none; }
.ups { flex: none; display: grid; text-align: left; gap: 2px; padding: 10px 14px; border-radius: 14px; border: 1.5px dashed #e2c9b4; background: #fffaf3; font-size: 13.5px; transition: transform .2s var(--spring), border-color .2s, background .2s; }
.ups strong { color: var(--accent); }
.ups:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.ups:active { transform: scale(.95); }

.order { display: grid; gap: 12px; padding-top: 16px; }
.seg { border: 0; margin: 0; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 12px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; text-align: center; padding: 9px 6px; border-radius: 9px; font-weight: 600; font-size: 14.5px; color: var(--muted); cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .1); }
.seg input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.field { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.field em { font-weight: 400; color: var(--muted); font-style: normal; }
.field input, .field select { width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 16px; font-weight: 400; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgb(27 22 20 / .06); }

.order__foot { position: sticky; bottom: calc(-1 * max(20px, env(safe-area-inset-bottom))); margin: 0 -16px calc(-1 * max(20px, env(safe-area-inset-bottom))); padding: 12px 16px max(16px, env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); display: grid; gap: 10px; box-shadow: 0 -8px 20px rgb(27 22 20 / .06); z-index: 2; }
.totals { margin: 0; display: grid; gap: 2px; }
.totals div { display: flex; justify-content: space-between; color: var(--muted); font-size: 15px; }
.totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.totals dd.free { color: var(--ok); font-weight: 700; }
.totals .totals__total { color: var(--ink); font-weight: 700; font-size: 19px; padding-top: 4px; }
.order__error { color: var(--accent); font-weight: 600; font-size: 14px; }
.order__hint { text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- ficha de pizza ---------- */
.sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 100%; max-height: 92dvh; border-radius: 24px 24px 0 0; background: var(--surface); color: var(--ink); overflow: hidden; }
.sheet[open] { animation: sheet-up .45s cubic-bezier(.2, .9, .25, 1); }
.sheet::backdrop { background: rgb(20 15 12 / .55); }
@keyframes sheet-up { from { transform: translateY(100%); } }
.sheet__inner { display: flex; flex-direction: column; max-height: 92dvh; }
.sheet__media { position: relative; flex: none; }
.sheet__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.sheet__half { position: absolute; inset: 0; height: 100%; clip-path: inset(0 0 0 50%); animation: half-in .5s var(--spring); }
.sheet__media:has(.sheet__half:not([hidden]))::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgb(0 0 0 / .3); }
@keyframes half-in { from { clip-path: inset(0 0 0 100%); } }
.sheet__close { position: absolute; right: 12px; top: 12px; background: rgb(255 255 255 / .92); box-shadow: 0 2px 10px rgb(0 0 0 / .15); }
.sheet__body { padding: 16px 16px 8px; overflow-y: auto; overscroll-behavior: contain; }
.sheet__body h2 { font-size: 26px; font-weight: 800; }
.sheet__desc { color: var(--muted); margin-top: 4px; font-size: 15px; }
.opt { border: 0; margin: 18px 0 0; padding: 0; min-width: 0; }
.opt legend { font-weight: 700; font-size: 15px; margin-bottom: 8px; padding: 0; }
.opt legend em { font-weight: 400; font-style: normal; color: var(--muted); font-size: 13px; margin-left: 4px; }
.opt__sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chip input, .pick input, .check input { position: absolute; opacity: 0; pointer-events: none; }
.chip { position: relative; }
.chip span { display: grid; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--spring); }
.chip small { color: var(--muted); font-size: 13px; }
.chip input:checked + span { border-color: var(--ink); background: var(--bg); transform: scale(1.02); }
.opt__halves { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; }
.opt__halves::-webkit-scrollbar { display: none; }
.pick { position: relative; flex: none; }
.pick span { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px 0 6px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: border-color .2s, background .2s; }
.pick:first-child span { padding-left: 14px; }
.pick img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.pick input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); }
.opt__extras { display: grid; gap: 6px; }
.check { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); cursor: pointer; font-size: 15px; transition: border-color .2s, background .2s; }
.check span::before { content: ""; display: inline-block; vertical-align: -4px; width: 20px; height: 20px; margin-right: 10px; border-radius: 6px; border: 1.5px solid #cbbfb4; background: #fff center / 14px no-repeat; transition: background-color .2s, border-color .2s, transform .2s var(--spring); }
.check em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 14px; }
.check:has(input:checked) { border-color: var(--ink); background: var(--bg); }
.check input:checked + span::before { background-color: var(--ink); border-color: var(--ink); transform: scale(1.1); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.chip:has(input:focus-visible) span, .pick:has(input:focus-visible) span, .check:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.sheet__foot { display: flex; gap: 10px; padding: 12px 16px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.sheet__add { flex: 1; justify-content: space-between; }
.sheet__add span { font-variant-numeric: tabular-nums; }

/* ---------- aviso ---------- */
.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 74px); transform: translateX(-50%); display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); padding: 12px 12px 12px 16px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 14.5px; box-shadow: 0 12px 30px rgb(0 0 0 / .25); animation: toast-in .4s var(--spring); }
.toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast button { flex: none; border: 0; background: rgb(255 255 255 / .12); color: var(--cheese); font-weight: 700; padding: 6px 10px; border-radius: 8px; }
.toast.out { opacity: 0; transform: translate(-50%, 10px); transition: opacity .25s, transform .25s; }
.cart-open .toast { bottom: auto; top: max(16px, env(safe-area-inset-top)); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 20px) scale(.9); } }

/* ---------- info y pie ---------- */
.info { background: var(--night); color: #efe7dd; padding: 44px 0; }
.info__grid { display: grid; gap: 24px; }
.info h2 { font-size: 20px; color: #fff; margin-bottom: 6px; }
.info p { color: #c9bdb1; }
.info a { color: #ff9c8c; }
.foot { background: var(--night); color: #9d9085; font-size: 13px; padding: 0 0 calc(32px + 80px); border-top: 1px solid rgb(255 255 255 / .08); }
.foot .wrap { padding-top: 20px; display: grid; gap: 2px; }

/* ---------- tablet ---------- */
@keyframes sheet-pop { from { transform: scale(.92) translateY(20px); opacity: 0; } }
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .info__grid { grid-template-columns: repeat(3, 1fr); }
  .sheet { margin: auto; max-width: 560px; border-radius: 24px; max-height: 88vh; }
  .sheet__inner { max-height: 88vh; }
  .sheet[open] { animation: sheet-pop .4s var(--spring); }
  .toast { bottom: 24px; }
}

/* ---------- escritorio: carrito fijo al costado ---------- */
@media (min-width: 1024px) {
  :root { --top-h: 68px; }
  .hero { padding: 28px 0 64px; }
  .hero__inner { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 56px; }
  .hero__art { order: 0; margin: 20px 10px 0 0; }
  .hero__img { aspect-ratio: 5 / 4; }
  .ing { width: 64px; }
  .ing--tomato { width: 76px; }
  .hero__badge { width: 110px; height: 110px; left: -24px; bottom: 28px; }
  .hero__badge strong { font-size: 28px; }
  .hero__badge span { font-size: 12px; }
  .marquee { font-size: 18px; padding: 14px 0; }
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 32px; align-items: start; padding-bottom: 64px; }
  .cart { position: sticky; top: calc(var(--top-h) + var(--cats-h) + 24px); transform: none; visibility: visible; transition: none; margin-top: 28px; }
  .cart__panel { border-radius: var(--radius); box-shadow: var(--shadow); max-height: calc(100vh - var(--top-h) - var(--cats-h) - 48px); padding: 8px 20px 20px; }
  .cart__panel::before { display: none; }
  .order__foot { bottom: -20px; margin: 0 -20px -20px; padding: 12px 20px 20px; border-radius: 0 0 var(--radius) var(--radius); }
  .upsell__track { margin: 0 -20px; padding: 0 20px 4px; }
  .cart__close, .bag, .scrim { display: none !important; }
  .cart-open { overflow: auto; }
  .foot { padding-bottom: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
