/* ============================================================
   Pedidos (MME) — Parte pública con el diseño de la landing de Presto!
   (Anton + DM Sans, crema, rojo, amarillo, verde WhatsApp, cinta negra).
   Tipografías auto-alojadas: nada se carga de Google (privacidad y CSP).
   ============================================================ */
@font-face { font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/anton-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/anton-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/dmsans-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/dmsans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/spacemono-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/spacemono-700-latin.woff2') format('woff2'); }

body.pub {
  --brand: #E23B2E; --brand-600: #B82A1F; --accent: #F2B705; --ink: #171310; --ink-2: #3a352f; --muted: #8a837b;
  --cream: #FBF7F0; --soft: #f4f1ec; --wa: #25D366; --wa-ink: #0a3d20; --line: #17131012;
  --font: 'DM Sans', system-ui, -apple-system, sans-serif; --display: 'Anton', 'Impact', sans-serif;
  background: #fff; color: var(--ink); font-family: var(--font); padding-bottom: 90px; scroll-behavior: smooth;
}
body.pub h1, body.pub h2, body.pub h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .005em; }
.pub a { color: inherit; text-decoration: none; }
.pub .hl { color: var(--brand); }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 6vw; }
@media (min-width: 1500px) { .wrap { padding: 0 40px; } }

/* ---------- Botones de la landing ---------- */
.b-wa, .b-light, .b-yellow, .b-dark { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; border-radius: 12px; padding: 16px 30px; font-size: 16px; border: 0; cursor: pointer; font-family: var(--font); line-height: 1.1; transition: transform .12s, filter .15s; }
.b-wa { background: var(--wa); color: var(--wa-ink) !important; }
.b-light { background: #fff; color: var(--ink) !important; box-shadow: inset 0 0 0 2px #17131018; font-weight: 700; }
.b-yellow { background: var(--accent); color: var(--ink) !important; box-shadow: 0 14px 30px -12px #f2b70588; }
.b-dark { background: var(--ink); color: #fff !important; font-weight: 700; }
.b-wa:hover, .b-yellow:hover, .b-dark:hover { filter: brightness(.95); }
.b-wa:active, .b-light:active, .b-yellow:active, .b-dark:active { transform: translateY(1px); }
.b-sm { padding: 11px 20px; font-size: 14px; border-radius: 10px; }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: #ffffffee; backdrop-filter: blur(10px); border-bottom: 1px solid #17131010; }
.site-header .in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 6vw; max-width: 1400px; margin: 0 auto; }
.brand-logo { height: 84px; width: auto; display: block; }
.nav-links { display: flex; gap: 24px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.nav-links a:hover { color: var(--brand); }
.head-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn { position: relative; width: 48px; height: 46px; border-radius: 12px; border: 0; background: var(--ink); color: #fff; font-size: 20px; cursor: pointer; }
.cart-btn .count { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--accent); color: var(--ink); font: 800 12px/22px var(--font); text-align: center; padding: 0 5px; }
.menu-btn { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--soft); color: var(--ink); font-size: 20px; cursor: pointer; align-items: center; justify-content: center; }
.mobile-menu { background: var(--ink); padding: 8px 6vw 16px; position: sticky; top: 70px; z-index: 59; }
.mobile-menu a { display: block; color: #fff; font-weight: 700; text-transform: uppercase; font-size: 15px; letter-spacing: .03em; padding: 13px 0; border-bottom: 1px solid #ffffff18; }
.mobile-menu a:last-child { border-bottom: 0; }
@media (max-width: 1000px) { .nav-links { display: none; } .menu-btn { display: flex; } }
@media (max-width: 820px) { .site-header .in { padding: 8px 5vw; } .brand-logo { height: 58px; } .wa-label { display: none; } .head-actions .b-wa { padding: 12px 14px; font-size: 18px; } }

/* ---------- Hero ---------- */
.hero-wrap { padding: 20px 6vw 0; max-width: 1400px; margin: 0 auto; }
.hero-grid { background: var(--cream); border-radius: 24px; display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; min-height: 480px; }
.hero-copy { padding: 56px; display: flex; flex-direction: column; justify-content: center; }
.pill-dark { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; background: var(--ink); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .04em; padding: 8px 14px; border-radius: 999px; text-transform: uppercase; }
.hero-h1 { font-size: 74px; line-height: .94; margin: 22px 0 18px; }
.hero-copy p { font-size: 18px; line-height: 1.55; color: #4a443f; max-width: 430px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media { position: relative; min-height: 300px; overflow: hidden; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: pp-ken 20s ease-in-out infinite alternate; }
.sticker { position: absolute; top: 20px; right: 20px; background: var(--accent); color: var(--ink); font-family: var(--display); font-size: 16px; width: 86px; height: 86px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.05; transform: rotate(-12deg); box-shadow: 0 10px 24px -8px #00000066; white-space: pre-line; text-transform: uppercase; }
.open-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.open-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; padding: 7px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.open-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-pill.on { background: #dcfce7; color: #166534; }
.open-pill.off { background: var(--soft); color: #6a635c; }
@keyframes pp-ken { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes pp-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* «Forno agora»: el tiempo real de espera sobre la foto del hero */
.oven { position: absolute; left: 20px; bottom: 20px; display: flex; align-items: center; gap: 12px; background: #fffffff2; border-radius: 18px; padding: 10px 16px 10px 10px; box-shadow: 0 18px 40px -16px #00000080; z-index: 2; }
.gauge-wrap { --lvl: .3; position: relative; width: 64px; height: 64px; flex: none; }
.gauge { width: 64px; height: 64px; border-radius: 50%;
  background: conic-gradient(from 225deg, #FFD34D 0deg, #FF8A00 calc(270deg * .55), var(--brand) calc(270deg * .9), var(--brand) 270deg, transparent 270deg);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 22px, #000 23px); mask: radial-gradient(circle at 50% 50%, transparent 22px, #000 23px); }
.gauge-wrap .needle { position: absolute; left: 50%; top: 50%; width: 3px; height: 26px; margin-left: -1.5px; margin-top: -26px; background: var(--ink); border-radius: 2px; transform-origin: 50% 100%; transform: rotate(calc(-135deg + 270deg * var(--lvl, .3))); transition: transform .8s cubic-bezier(.3, 1.4, .5, 1); }
.gauge-wrap .hub { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--ink); }
.oven-txt small { display: block; font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.oven-txt b { display: block; font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.05; }
.oven-txt span { display: block; font-size: 12px; color: var(--ink-2); }
.oven.busy .oven-txt b { color: var(--brand); }

/* ---------- Cinta ---------- */
.ticker { overflow: hidden; background: var(--ink); color: #fff; padding: 15px 0; margin-top: 18px; }
.ticker .track { display: flex; width: max-content; animation: pp-marquee 24s linear infinite; font-family: var(--display); font-size: 16px; letter-spacing: .05em; text-transform: uppercase; }
.ticker .grp { display: flex; gap: 38px; padding-right: 38px; }
.ticker .dot { color: var(--accent); }

/* ---------- Secciones ---------- */
.sec { padding: 56px 6vw 10px; max-width: 1400px; margin: 0 auto; scroll-margin-top: 110px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.sec-title { font-size: 48px; margin: 0; line-height: 1; }
.sec-note { font-size: 14px; color: #6a635c; max-width: 420px; margin: 0; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 30px; }
.chip-s { font-size: 13px; font-weight: 700; background: var(--soft); padding: 9px 16px; border-radius: 999px; }
.chip-s.dark { background: var(--ink); color: #fff; }
.cat-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.cat-title { font-size: 28px; margin: 0; }
.price-chip { font-size: 13px; font-weight: 700; color: var(--ink); background: var(--accent); padding: 6px 12px; border-radius: 8px; }
.price-chip.red { background: var(--brand); color: #fff; font-weight: 800; }
.cat-block { margin-bottom: 38px; scroll-margin-top: 110px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* Tarjetas de producto (botón: al pulsar se monta el pedido) */
.prod { display: flex; gap: 14px; border: 1.5px solid var(--line); border-radius: 16px; padding: 12px; background: #fff; text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%; transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; }
.prod:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -28px #17131055; border-color: #17131022; }
.prod .ph { width: 80px; height: 80px; flex-shrink: 0; object-fit: cover; border-radius: 11px; display: block; background: #F0E7DA; }
.prod .info { flex: 1; min-width: 0; }
.prod .nm { display: block; font-weight: 700; font-size: 15px; margin: 0 0 4px; }
.prod .ds { display: block; font-size: 12px; color: var(--muted); margin: 0; line-height: 1.45; }
.prod .plus { position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 20px; line-height: 1; }
.prod.tile { flex-direction: column; gap: 0; padding: 11px; }
.prod.tile .ph { width: 100%; height: auto; aspect-ratio: 1/1; border-radius: 10px; }
.prod.tile .nm { margin: 10px 0 3px; font-size: 14px; padding-right: 30px; }
.prod.tile .ds { font-size: 11px; padding-right: 30px; }
.prod.drink { align-items: center; }
.prod.drink .ph { width: 56px; height: 76px; border-radius: 9px; object-fit: contain; background: #fff; }
.prod .price { display: block; font-family: var(--display); font-size: 17px; color: var(--brand); }

/* Promociones */
.promo { border-radius: 24px; overflow: hidden; box-shadow: 0 40px 80px -55px #8f1006; display: flex; flex-direction: column; background: #8f1006; }
.promo-top { background: radial-gradient(120% 120% at 100% 0%, #d21f0f 0%, #8f1006 100%); color: #fff; padding: 30px 34px; }
.tag-y { display: inline-block; background: var(--accent); color: #7a1206; font-family: var(--display); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; padding: 6px 14px; border-radius: 8px; }
.promo-top h3 { font-size: 34px; line-height: .95; margin: 16px 0 4px; }
.promo-top p { font-size: 15px; color: #ffd9d3; margin: 0; }
.promo-media { position: relative; flex: 1; min-height: 400px; }
.promo-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(to top, #000000b3, transparent); pointer-events: none; }
.promo-foot { position: absolute; left: 26px; bottom: 24px; display: flex; align-items: center; gap: 16px; z-index: 2; }
.price-ball { background: var(--accent); color: var(--ink); width: 104px; height: 104px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; flex-shrink: 0; box-shadow: 0 12px 30px -8px #00000088; font-family: var(--display); text-align: center; }
.price-ball small { font-size: 12px; }
.price-ball b { font-weight: 400; font-size: 32px; }
.price-ball b span { font-size: 15px; }
.promo-when { font-size: 13px; font-weight: 700; color: #8a837b; padding-bottom: 6px; }

/* Esfihas */
.yellow-box { background: var(--accent); border-radius: 24px; padding: 40px 40px 30px; }
.yellow-box .sec-note { color: #5a4a05; font-weight: 600; max-width: 400px; }
.yellow-box .chip-s { background: #17131012; }
.yellow-box .chip-s.dark { background: var(--ink); color: #fff; }

/* Novidades */
.card-new { border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; color: #fff; }
.card-new.dark { background: var(--ink); }
.card-new.red { background: var(--brand); }
.card-new.cream { background: var(--cream); color: var(--ink); }
.card-new .img { aspect-ratio: 16/8; }
.card-new .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-new .bd { padding: 26px; flex: 1; }
.card-new .ttl { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.card-new .ttl span { background: var(--brand); color: #fff; font-family: var(--display); font-size: 12px; padding: 4px 10px; border-radius: 6px; letter-spacing: .05em; }
.card-new.red .ttl span { background: var(--ink); }
.card-new h3 { font-size: 26px; margin: 0; }
.card-new p { font-size: 14px; color: #c9c2ba; margin: 0 0 16px; }
.card-new.red p { color: #ffe0db; }
.card-new.cream p { color: #5c554d; }
.card-new .cchips { display: flex; gap: 8px; flex-wrap: wrap; }
.card-new .cchips span { font-size: 13px; font-weight: 700; background: #ffffff18; padding: 7px 13px; border-radius: 8px; }
.card-new.red .cchips span { background: #fff; color: var(--brand); font-weight: 800; }
.card-new.cream .cchips span { background: #17131010; }

/* Avaliações */
.stars { font-size: 22px; color: var(--accent); letter-spacing: 3px; }
.hscroll { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: 0 0 auto; }
.review { width: 380px; max-width: 86vw; background: var(--cream); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; }
.review .who { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review .av { width: 44px; height: 44px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.review .nm { font-weight: 700; font-size: 15px; }
.review .mt { font-size: 12px; color: var(--muted); }
.review p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 10px 0 14px; flex: 1; }
.review .g { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.review .g i { width: 16px; height: 16px; border-radius: 3px; background: #4285F4; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 11px; font-style: normal; }
.arrows { display: flex; gap: 8px; }
.arrows button { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--soft); font-size: 20px; cursor: pointer; }
.arrows button + button { background: var(--ink); color: #fff; }

/* App (PWA) */
.pwa { background: var(--ink); color: #fff; border-radius: 24px; padding: 52px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.pwa .eyebrow { font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.pwa h2 { font-size: 46px; margin: 12px 0 14px; line-height: .98; }
.pwa p { font-size: 16px; color: #c9c2ba; margin: 0 0 22px; max-width: 430px; }
.pwa .feat { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; max-width: 400px; }
.pwa .feat div { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.pwa .feat span { width: 30px; height: 30px; border-radius: 8px; background: #F2B70522; color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; }
.phone { width: 230px; height: 400px; background: #26201c; border-radius: 38px; padding: 12px; box-shadow: 0 40px 80px -30px #00000099, inset 0 0 0 2px #ffffff14; position: relative; margin: 0 auto; }
.phone .scr { width: 100%; height: 100%; border-radius: 28px; overflow: hidden; background: linear-gradient(180deg, #3a2f27 0%, #1c1712 100%); display: flex; flex-direction: column; align-items: center; padding-top: 52px; }
.phone .time { font-size: 12px; color: #ffffffcc; font-weight: 600; margin-bottom: 26px; }
.phone .ico { width: 88px; height: 88px; border-radius: 22px; overflow: hidden; box-shadow: 0 12px 26px -8px #00000088; }
.phone .ico img { width: 100%; height: 100%; display: block; }
.phone .lbl { font-size: 12.5px; color: #fff; font-weight: 600; margin-top: 12px; }

/* Contato */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.visit { background: var(--cream); border-radius: 20px; padding: 36px; }
.visit h2 { font-size: 36px; margin: 0 0 20px; }
.visit .rows { display: flex; flex-direction: column; gap: 18px; font-size: 15px; }
.visit .rows > div { display: flex; gap: 12px; }
.visit .rows .i { font-size: 20px; width: 24px; text-align: center; }
.visit .rows span, .visit .rows a { color: #5c554d; white-space: pre-line; }
.visit .rows a.wa { color: #25a355; font-weight: 700; }
.map { border-radius: 20px; overflow: hidden; min-height: 340px; box-shadow: 0 24px 50px -34px #17131066; }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* Rodapé */
.site-foot { background: var(--ink); color: #c9c2ba; padding: 44px 6vw 30px; margin-top: 30px; }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; align-items: start; gap: 40px; padding-bottom: 28px; border-bottom: 1px solid #ffffff18; max-width: 1320px; margin: 0 auto; }
.site-foot .logo-box { background: #fff; border-radius: 16px; padding: 12px 18px; display: inline-block; }
.site-foot .logo-box img { height: 96px; width: auto; display: block; }
.site-foot .info { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; font-size: 13px; line-height: 1.5; white-space: pre-line; }
.site-foot .col { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.site-foot .col .h { color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
.site-foot a:hover { color: #fff; }
.site-foot .legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; font-family: 'Space Mono', monospace; font-size: 11px; color: var(--muted); max-width: 1320px; margin: 0 auto; }
.site-foot .legal a { color: #c9c2ba; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 820px) {
  .hero-wrap { padding: 12px 4vw 0; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 34px 26px; }
  .hero-h1 { font-size: 44px; }
  .hero-media { min-height: 300px; }
  .sec { padding-left: 5vw; padding-right: 5vw; }
  .sec-title { font-size: 34px; }
  .cat-title { font-size: 24px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .promo-media { min-height: 260px; }
  .pwa { grid-template-columns: 1fr; padding: 34px 26px; }
  .yellow-box { padding: 30px 24px 24px; }
  .site-foot .cols { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .site-foot .info { align-items: center; }
  .site-foot .legal { justify-content: center; text-align: center; }
}
@media (min-width: 821px) and (max-width: 1100px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .ticker .track, .hero-media img { animation: none; } }

/* ---------- Hoja modal (montar pizza / producto / carrito) ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(23, 19, 16, .55); z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: #fff; width: 100%; max-width: 620px; max-height: 92vh; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; box-shadow: 0 12px 40px rgba(0,0,0,.25); animation: up .22s ease-out; font-family: var(--font); color: var(--ink); }
@media (min-width: 700px) { .sheet-bg { align-items: center; } .sheet { border-radius: 22px; max-height: 88vh; } }
@keyframes up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-h { display: flex; align-items: center; gap: 12px; padding: 16px 18px 10px; border-bottom: 1px solid var(--line); }
.sheet-h h3 { flex: 1; margin: 0; font-size: 24px; font-family: var(--display); font-weight: 400; text-transform: uppercase; }
.sheet-b { overflow-y: auto; padding: 14px 18px; flex: 1; }
.sheet-f { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.sheet-hero { width: 100%; height: 200px; object-fit: cover; border-radius: 14px; margin-bottom: 12px; }
.step { margin-bottom: 18px; }
.step-t { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.step-t b { font-size: 16px; }
.step-t small { color: var(--muted); }
.opts { display: grid; gap: 8px; }
.opts.sizes { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.opt { position: relative; display: flex; align-items: center; gap: 10px; border: 1.5px solid #17131018; border-radius: 12px; padding: 10px 12px; cursor: pointer; background: #fff; font-weight: 500; margin: 0; }
.opt:hover { border-color: #17131033; }
.opt input { accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.opt .o-main { flex: 1; min-width: 0; }
.opt .o-main b { display: block; font-size: 15px; }
.opt .o-main small { color: var(--muted); display: block; }
.opt .o-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.opt.sel { border-color: var(--brand); background: #FFF5F4; }
.opt.dis { opacity: .45; cursor: not-allowed; }
.opt img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; }
.sizes .opt { flex-direction: column; align-items: flex-start; gap: 2px; }
.sizes .opt input { position: absolute; opacity: 0; }
.flav-search { margin-bottom: 8px; }
.rule-note { font-size: 13px; color: var(--ink-2); background: #FFF4CC; border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid #17131018; border-radius: 999px; }
.qty button { width: 40px; height: 40px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--ink); }
.qty span { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.pizza-pie { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.pizza-pie span { background: var(--soft); border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 600; }
.sheet .btn-primary { background: var(--brand); border-color: var(--brand); }

/* ---------- Carrito ---------- */
.cart-line { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line .cl-main { flex: 1; min-width: 0; }
.cart-line .cl-main b { display: block; }
.cart-line .cl-main small { color: var(--muted); display: block; }
.cart-line .cl-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cart-line .qty button { width: 32px; height: 32px; font-size: 17px; }
.totals { padding: 10px 0; }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; font-variant-numeric: tabular-nums; }
.totals .promo-row { color: #166534; font-weight: 700; }
.totals .grand { font-weight: 800; font-size: 19px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(0deg, #fff 70%, rgba(255,255,255,0)); }
.cart-bar .btn { max-width: 620px; margin: 0 auto; display: flex; width: 100%; justify-content: space-between; background: var(--brand); border-color: var(--brand); }

/* ---------- Checkout (páginas internas con la misma marca) ---------- */
.page-top { padding: 26px 0 0; }
.page-top h1 { font-size: 44px; margin: 6px 0 0; }
.co { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; padding-top: 18px; padding-bottom: 30px; align-items: start; }
@media (max-width: 820px) { .co { grid-template-columns: 1fr; } }
.pub .card { border-radius: 18px; border-color: #17131014; }
.pub .card h2 { font-size: 24px; margin-bottom: 12px; }
.seg { display: flex; background: var(--soft); border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 14px; }
.seg label { flex: 1; margin: 0; text-align: center; padding: 10px; border-radius: 999px; cursor: pointer; font-weight: 700; color: var(--ink-2); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.quote { border-radius: 12px; padding: 10px 12px; background: var(--soft); font-size: 14px; margin-top: 6px; }
.quote.ok { background: #dcfce7; color: #14532D; }
.quote.err { background: #FFF1F2; color: #9F1239; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.summary-sticky { position: sticky; top: 110px; }
.pub .btn-primary { background: var(--brand); border-color: var(--brand); }
.pub .btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); }

/* ---------- Seguimiento ---------- */
.track { max-width: 620px; margin: 0 auto; padding: 22px 16px 40px; }
.track .big { text-align: center; padding: 22px 18px; }
.track .big .num { font: 700 13px 'Space Mono', monospace; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.track .big h1 { font-size: 38px; margin: 6px 0 4px; }
.track .big .eta { font: 400 46px/1 var(--display); color: var(--brand); font-variant-numeric: tabular-nums; margin: 8px 0 2px; }
.steps { display: flex; justify-content: space-between; position: relative; margin: 22px 4px 6px; }
.steps::before { content: ""; position: absolute; left: 14px; right: 14px; top: 13px; height: 4px; background: #17131014; border-radius: 2px; }
.steps .bar { position: absolute; left: 14px; top: 13px; height: 4px; background: #1E8449; border-radius: 2px; transition: width .6s; }
.steps .s { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 20%; text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); }
.steps .s i { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 3px solid #17131018; display: grid; place-items: center; font-style: normal; font-size: 14px; }
.steps .s.done i { background: #1E8449; border-color: #1E8449; color: #fff; }
.steps .s.now i { border-color: #1E8449; box-shadow: 0 0 0 6px #E8F5EC; }
.steps .s.now { color: var(--ink); }
.pix-box { text-align: center; }
.pix-box canvas, .qr canvas { margin: 8px auto; image-rendering: pixelated; width: 220px; height: 220px; }
.copy-row { display: flex; gap: 8px; margin-top: 8px; }
.copy-row input { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
