/* Bika · Carta digital — diseño "Carta de mesa · contraste crema" (2a celular / 3a computador) */
:root {
  --petrol: #1f3a40;
  --petrol-2: #26464d;
  --petrol-3: #1b3439;
  --petrol-deep: #183034;
  --petrol-line: #2e4f56;
  --petrol-card: #2a4a51;
  --ink: #172e33;
  --ink-2: #2d3f43;
  --ink-3: #3c4f53;
  --ink-mute: #56686b;
  --cream: #f6f1ea;
  --cream-2: #efe8de;
  --cream-3: #e6dccd;
  --paper: #fffdf9;
  --line-cream: #e1d7c9;
  --coral: #ef6a5a;
  --coral-dk: #c2493a;
  --coral-soft: #fbe3dd;
  --mute: #cfdad8;
  --mute-2: #afc1bf;
  --green: #8fd19e;
  --green-dk: #2e6b45;
  --wa: #25d366;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --g: 20px;
  --torn: polygon(0% 3%, 6% 0.5%, 12% 2.5%, 19% 0.5%, 27% 3%, 34% 1%, 42% 2.8%, 50% 0.3%, 57% 2.6%, 65% 0.8%, 73% 3%, 81% 1%, 88% 2.7%, 95% 0.4%, 100% 2.5%, 99% 14%, 100% 28%, 98.6% 42%, 100% 56%, 98.8% 70%, 100% 84%, 99% 95%, 94% 100%, 87% 97.4%, 80% 99.6%, 72% 97.2%, 64% 99.4%, 56% 97%, 48% 99.7%, 40% 97.3%, 32% 99.5%, 24% 97.1%, 16% 99.6%, 8% 97.4%, 0% 99.3%, 1% 86%, 0% 72%, 1.2% 58%, 0% 44%, 1% 30%, 0% 16%);
  --torn-sm: polygon(0% 4%, 12% 0%, 25% 3%, 38% 0.5%, 52% 3.5%, 66% 0%, 80% 3%, 100% 1%, 98% 22%, 100% 45%, 97.5% 68%, 100% 96%, 85% 100%, 70% 97%, 55% 100%, 40% 96.5%, 25% 99.5%, 10% 97%, 0% 100%, 2% 75%, 0% 52%, 2.5% 28%);
  --tag: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.45; color: var(--cream); background: var(--petrol); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--coral); color: var(--ink); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ── elementos de marca ── */
.dot { position: absolute; border-radius: 50%; background: var(--coral); pointer-events: none; }
.dot--w { background: var(--cream); }
.spiral { position: absolute; border-radius: 50%; pointer-events: none; background: repeating-radial-gradient(circle, transparent 0 4px, var(--coral) 4px 5px); }
.spiral--soft { background: repeating-radial-gradient(circle, transparent 0 5px, rgba(239, 106, 90, .55) 5px 6px); }
.tag { display: inline-block; align-self: flex-start; background: var(--coral); color: var(--ink); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; clip-path: var(--tag); }
.torn { background: var(--cream-2); clip-path: var(--torn); }
.torn img { width: 100%; height: 100%; object-fit: cover; }
.lang { display: flex; border: 1.5px solid var(--coral); border-radius: 999px; padding: 3px; gap: 2px; flex: none; }
.lang button { border: 0; border-radius: 999px; padding: 8px 12px; font-weight: 700; font-size: 14px; line-height: 1; background: transparent; color: var(--cream); min-width: 40px; }
.lang button[aria-pressed="true"] { background: var(--coral); color: var(--ink); }
.back { display: inline-flex; align-items: center; gap: 10px; border: 0; background: none; padding: 8px 0; color: var(--mute); font-weight: 500; font-size: 16px; }
.back span { color: var(--coral); font-size: 24px; line-height: 1; }
.title { position: relative; display: flex; align-items: flex-end; min-height: 56px; }
.title h1, .title h2 { position: relative; margin: 0; font-weight: 800; font-size: 38px; line-height: 1; padding-left: 14px; }
.title .dot { left: -6px; top: -2px; width: 46px; height: 46px; }
.title .spiral { left: 26px; top: -8px; width: 44px; height: 44px; background: repeating-radial-gradient(circle, transparent 0 3px, var(--coral) 3px 4px); }

/* ── barra superior ── */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--g) 10px; padding-top: calc(14px + env(safe-area-inset-top)); background: rgba(31, 58, 64, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.top__logo img { height: 44px; width: auto; }
.top .top__nav, .top .top__search, .top .top__wa { display: none; }
.preview-banner { position: sticky; top: 0; z-index: 31; background: #ffd166; color: #222; text-align: center; font-weight: 700; padding: 6px; }

/* ── inicio ── */
.hero { position: relative; padding: 14px var(--g) 8px; min-height: 300px; overflow: hidden; background: radial-gradient(120% 60% at 100% 0%, var(--petrol-2) 0%, var(--petrol) 55%, var(--petrol-3) 100%); }
.hero .dot { left: 14px; top: 20px; width: 74px; height: 74px; }
.hero .spiral { left: 62px; top: 0; width: 84px; height: 84px; }
.hero .dot--w { left: 10px; top: 8px; width: 12px; height: 12px; }
.hero__photo { position: absolute; right: 16px; top: 26px; width: min(64%, 260px); aspect-ratio: 250 / 190; padding: 7px; transform: rotate(3deg); }
.hero__text { position: relative; display: flex; flex-direction: column; gap: 10px; padding-top: 196px; }
.hero__greet { margin: 0; font-weight: 800; font-size: 34px; line-height: 1.04; letter-spacing: -.01em; text-wrap: balance; text-shadow: 0 2px 14px rgba(15, 30, 33, .6); }
.hero__tagline { display: none; }
.status { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; line-height: 1.2; color: var(--mute); margin: 0; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mute-2); flex: none; }
.status.is-open::before { background: var(--green); }
.hero__cta { display: none; }

.search { display: flex; align-items: center; gap: 10px; height: 52px; border-radius: 14px; background: var(--cream); padding: 0 16px; color: var(--ink); }
.search::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--coral-dk); flex: none; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.search input::placeholder { color: var(--ink-mute); }
.search input::-webkit-search-cancel-button { display: none; }
.search button { border: 0; background: var(--cream-3); color: var(--ink); width: 30px; height: 30px; border-radius: 50%; font-size: 18px; line-height: 1; }
.home__search { padding: 20px var(--g) 0; }

.promo-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; border-radius: 18px; background: var(--cream); color: var(--ink); padding: 22px 18px 18px; text-align: left; border: 0; width: 100%; }
.promo-card .spiral { right: -26px; top: -26px; width: 110px; height: 110px; background: repeating-radial-gradient(circle, transparent 0 5px, rgba(239, 106, 90, .55) 5px 6px); }
.promo-card .tag { font-size: 14px; line-height: 1; padding: 9px 18px; transform: rotate(-2deg); }
.promo-card p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); position: relative; }
.promo-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; position: relative; }
.promo-card__foot small { font-size: 14px; line-height: 1.3; color: var(--ink-mute); max-width: 210px; }
.promo-card__foot strong { font-weight: 800; font-size: 28px; line-height: 1; }
.home__promo { padding: 26px var(--g) 0; }

.weekly { margin: 26px var(--g) 0; border-radius: 18px; padding: 18px; background: var(--coral); color: var(--ink); }
.weekly h2 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.weekly p { margin: 0 0 10px; }
.weekly ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.weekly li > * { width: 100%; display: flex; justify-content: space-between; gap: 10px; border: 0; border-radius: 10px; padding: 10px 12px; background: rgba(255, 255, 255, .4); color: var(--ink); font-weight: 700; text-align: left; }

.sec-title { display: flex; align-items: center; gap: 10px; padding: 30px var(--g) 4px; margin: 0; font-weight: 800; font-size: 26px; line-height: 1; }
.sec-title::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--coral); flex: none; }
.catlist { list-style: none; margin: 0; padding: 0 var(--g); }
.catlist a { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(239, 106, 90, .6); }
.catlist__range { width: 56px; flex: none; color: var(--coral); font-weight: 600; font-size: 13px; line-height: 1.1; }
.catlist__name { flex: 1; font-weight: 600; font-size: 18px; line-height: 1.2; }
.catlist__count { color: var(--mute-2); font-size: 14px; }
.catlist__chev { color: var(--coral); font-weight: 600; font-size: 20px; line-height: 1; }
.home__cta { display: flex; flex-direction: column; gap: 12px; padding: 28px var(--g) 34px; }
.home__cta small { text-align: center; color: var(--mute-2); font-size: 14px; }
.pill-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; border-radius: 999px; background: var(--coral); color: var(--ink); font-weight: 700; font-size: 16px; border: 0; padding: 0 22px; }
.pill-btn--ghost { background: transparent; border: 1.5px solid var(--coral); color: var(--cream); }

/* ── categoría (celular) ── */
.cat__head { position: sticky; top: 0; z-index: 25; display: flex; flex-direction: column; gap: 14px; padding: 16px var(--g) 12px; padding-top: calc(16px + env(safe-area-inset-top)); background: var(--petrol); }
.cat__bar { display: flex; align-items: center; justify-content: space-between; }
.tabs { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(var(--g) * -1); padding: 4px var(--g); scrollbar-width: none; scroll-snap-type: x proximity; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; scroll-snap-align: start; border: 1.5px solid var(--coral); padding: 10px 16px; font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap; clip-path: var(--tag); color: var(--cream); }
.tabs a[aria-current="true"] { background: var(--coral); color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px var(--g) 0; }
.legend button { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid transparent; background: none; color: var(--mute-2); font-weight: 500; font-size: 14px; padding: 6px 10px 6px 6px; border-radius: 999px; min-height: 40px; }
.legend button[aria-pressed="true"] { border-color: var(--cream); color: var(--cream); background: rgba(246, 241, 234, .08); }
.cat__note { margin: 10px var(--g) 0; color: var(--mute); font-size: 15px; }
.cards { display: flex; flex-direction: column; gap: 12px; padding: 18px 16px 30px; }
.empty { text-align: center; color: var(--mute-2); padding: 30px var(--g); margin: 0; }

/* chips de etiqueta */
.chip { font-weight: 700; font-size: 11px; line-height: 1; padding: 4px 7px; border-radius: 999px; letter-spacing: .02em; white-space: nowrap; }
.chip--vegan { background: var(--green-dk); color: var(--cream); }
.chip--veggie { border: 1.5px solid var(--green-dk); color: var(--green-dk); padding: 3px 6px; }
.chip--spicy { background: var(--coral-dk); color: var(--cream); }
.chip--no_rice { background: #5a4a8a; color: #fff; }
.chip--new { background: var(--ink); color: var(--coral); }
.chip--recommended { background: var(--coral-soft); color: var(--coral-dk); }
.chip--out { background: var(--ink); color: var(--cream); border-radius: 4px; text-transform: uppercase; letter-spacing: .06em; padding: 4px 8px; }
.legend .chip--vegan { background: var(--green); color: #173226; }
.legend .chip--veggie { border-color: var(--green); color: var(--green); }
.legend .chip--spicy { background: var(--coral); color: var(--ink); }

/* tarjeta de producto */
.card { display: flex; gap: 14px; padding: 12px; border-radius: 18px; background: var(--cream); color: var(--ink); text-align: left; border: 0; width: 100%; }
.card.is-out { opacity: .55; cursor: not-allowed; }
.card__img { width: 92px; height: 104px; flex: none; transform: rotate(-2deg); clip-path: var(--torn-sm); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.noimg { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: var(--cream-3); border-radius: 12px; color: var(--ink-mute); font-weight: 600; font-size: 11px; line-height: 1.2; text-align: center; padding: 0 8px; }
.card__img.noimg { transform: none; clip-path: none; }
.noimg::before { content: ""; position: absolute; left: -24px; bottom: -24px; width: 90px; height: 90px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 5px, rgba(239, 106, 90, .5) 5px 6px); }
.noimg i { position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--coral); border: 5px solid var(--petrol); }
.noimg span { position: relative; }
.card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-top: 2px; }
.card__top { display: flex; align-items: baseline; gap: 8px; }
.num { color: var(--coral-dk); font-weight: 700; font-size: 13px; line-height: 1; flex: none; }
.card__name { flex: 1; margin: 0; font-weight: 700; font-size: 17px; line-height: 1.15; text-wrap: pretty; }
.card__desc { margin: 0; color: var(--ink-3); font-size: 14px; line-height: 1.4; text-wrap: pretty; }
.card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; }
.card__pcs { color: var(--ink-mute); font-weight: 500; font-size: 13px; }
.price-tag { margin-left: auto; background: var(--coral); color: var(--ink); font-weight: 800; font-size: 15px; line-height: 1; padding: 7px 12px; clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%); }

/* ── promociones + local ── */
.promos-head { position: relative; padding: 22px var(--g) 18px; }
.promos-head h1 { margin: 0; font-weight: 800; font-size: 40px; line-height: 1; }
.promos-head .spiral { right: 26px; top: 4px; width: 62px; height: 62px; }
.promos-head .dot--w { right: 80px; top: 14px; width: 12px; height: 12px; }
.promos { display: flex; flex-direction: column; gap: 14px; padding: 0 16px; }
.promo { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; border-radius: 20px; background: var(--cream); color: var(--ink); padding: 22px 18px 18px; }
.promo .spiral { right: -34px; top: -34px; width: 110px; height: 110px; background: repeating-radial-gradient(circle, transparent 0 5px, rgba(239, 106, 90, .5) 5px 6px); }
.promo .tag { font-size: 15px; line-height: 1; padding: 10px 20px; transform: rotate(-1.5deg); letter-spacing: .05em; }
.promo ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; position: relative; flex: 1; }
.promo li { display: flex; gap: 10px; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.promo li b { color: var(--coral-dk); flex: none; min-width: 20px; }
.promo__desc { margin: 0; color: var(--ink-2); font-size: 15px; position: relative; }
.promo__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(239, 106, 90, .7); padding-top: 14px; }
.promo__foot small { color: var(--ink-mute); font-size: 14px; line-height: 1.35; max-width: 210px; }
.promo__foot strong { font-weight: 800; font-size: 28px; line-height: 1; }
.promo__add { align-self: stretch; border: 0; border-radius: 999px; min-height: 48px; background: var(--petrol); color: var(--cream); font-weight: 700; }
.promo.is-out { opacity: .55; }
.promo__dates { color: var(--ink-mute); font-size: 13px; }

.local { margin: 30px var(--g) 34px; border-radius: 20px; background: var(--petrol-deep); padding: 22px 20px; display: flex; flex-direction: column; gap: 16px; }
.local__logo { height: 52px; width: auto; align-self: flex-start; }
.local dl { margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.4; }
.local dl div { display: flex; gap: 12px; }
.local dt { width: 80px; flex: none; color: var(--coral); font-weight: 700; font-size: 13px; line-height: 1.6; text-transform: uppercase; letter-spacing: .06em; }
.local dd { margin: 0; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.links a, .links button { padding: 11px 14px; border-radius: 999px; border: 1.5px solid var(--coral); background: none; color: var(--cream); font-weight: 600; font-size: 14px; line-height: 1; }
.map { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; }
.legal { color: var(--mute-2); font-size: 13px; margin: 0; }

/* ── detalle de producto ── */
.overlay { position: fixed; inset: 0; z-index: 50; background: var(--cream); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; animation: rise .22s ease-out; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
.overlay__close { display: none; }
.d { padding-bottom: 120px; }
.d__top { background: var(--petrol); color: var(--cream); padding-bottom: 56px; }
.d__bar { display: flex; align-items: center; justify-content: space-between; padding: 16px var(--g) 6px; padding-top: calc(16px + env(safe-area-inset-top)); }
.d__media { position: relative; padding: 18px 18px 0; }
.d__media .spiral { right: 6px; top: 0; width: 70px; height: 70px; }
.d__media .dot--w { right: 58px; top: 10px; width: 14px; height: 14px; }
.d__photo { position: relative; height: 260px; padding: 8px; transform: rotate(-1.5deg); }
.d__media .noimg { height: 260px; border-radius: 18px; background: var(--petrol-card); color: var(--cream); font-size: 15px; gap: 12px; }
.d__media .noimg::before { left: -50px; bottom: -70px; width: 220px; height: 220px; background: repeating-radial-gradient(circle, transparent 0 6px, rgba(239, 106, 90, .45) 6px 7px); }
.d__media .noimg i { width: 36px; height: 36px; border: 7px solid var(--cream); }
.d__info { position: relative; margin-top: -32px; background: var(--cream); border-radius: 28px 28px 0 0; padding: 26px var(--g) 0; display: flex; flex-direction: column; gap: 12px; }
.d__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.d__meta .tag { font-size: 13px; line-height: 1; padding: 7px 14px; }
.d__meta span { color: var(--ink-mute); font-weight: 500; font-size: 14px; }
.d__name { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.d__name h2 { margin: 0; font-weight: 800; font-size: 32px; line-height: 1.05; text-wrap: balance; }
.d__name strong { font-weight: 800; font-size: 24px; line-height: 1; flex: none; }
.d__aka { margin: 0; color: var(--coral-dk); font-weight: 500; font-size: 15px; }
.d__desc { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.5; text-wrap: pretty; }
.d__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.d__sec { padding: 26px var(--g) 0; display: flex; flex-direction: column; gap: 10px; }
.d__secHead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-bottom: 1px solid rgba(239, 106, 90, .7); padding-bottom: 10px; }
.d__secHead h3 { margin: 0; font-weight: 700; font-size: 18px; line-height: 1.1; }
.d__secHead small { color: var(--ink-mute); font-weight: 500; font-size: 13px; }
.d__secHead small.ok { color: var(--green-dk); font-weight: 600; }
.d__secHead small.req { color: var(--coral-dk); font-weight: 700; }
.hint { margin: 0; color: var(--ink-mute); font-size: 14px; line-height: 1.4; }
.ings { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.ing { display: flex; align-items: center; gap: 6px; border-radius: 999px; padding: 10px 14px; border: 1.5px solid var(--petrol); background: var(--paper); color: var(--ink); font-weight: 500; font-size: 15px; line-height: 1; }
.ing b { font-weight: 700; }
.ing[aria-pressed="true"] { background: var(--cream-3); color: var(--ink-mute); border-color: #cfc3b2; }
.ing[aria-pressed="true"] span { text-decoration: line-through; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.pill { border-radius: 999px; padding: 11px 16px; border: 1.5px solid #cfc3b2; background: transparent; color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1; }
.pill[aria-pressed="true"] { background: var(--coral); border-color: var(--coral); }
.pill:disabled { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.radio-row { display: flex; align-items: center; gap: 12px; min-height: 56px; border-radius: 12px; border: 1.5px solid var(--line-cream); background: var(--paper); color: var(--ink); padding: 10px 14px; text-align: left; width: 100%; }
.radio-row i { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 1.5px solid #b8ac9b; }
.radio-row span { flex: 1; font-weight: 600; font-size: 15px; line-height: 1.25; display: flex; flex-direction: column; gap: 4px; }
.radio-row span small { font-weight: 400; color: var(--ink-mute); font-size: 13px; }
.radio-row em { font-style: normal; font-weight: 600; font-size: 14px; }
.radio-row em.ok { color: var(--green-dk); }
.radio-row[aria-pressed="true"] { background: var(--coral-soft); border-color: var(--coral); }
.radio-row[aria-pressed="true"] i { border-color: var(--coral); background: var(--coral); }
.xgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 12px; }
.x { display: flex; align-items: center; gap: 10px; min-height: 54px; border-radius: 12px; border: 1.5px solid var(--line-cream); background: var(--paper); color: var(--ink); padding: 8px 10px; text-align: left; }
.x i { width: 20px; height: 20px; flex: none; border-radius: 6px; border: 1.5px solid #b8ac9b; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 12px; }
.x span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 15px; line-height: 1.15; }
.x small { color: var(--ink-mute); font-weight: 500; font-size: 13px; }
.x[aria-pressed="true"] { background: var(--coral-soft); border-color: var(--coral); }
.x[aria-pressed="true"] i { background: var(--coral); border-color: var(--coral); }
.x:disabled { opacity: .5; cursor: not-allowed; }
.note-field { display: flex; flex-direction: column; gap: 8px; font-weight: 700; font-size: 18px; }
.field { height: 52px; border-radius: 12px; border: 1.5px solid var(--line-cream); background: var(--paper); padding: 0 16px; font-weight: 500; font-size: 16px; color: var(--ink); outline: none; width: 100%; }
.field:focus { border-color: var(--coral); }
.field.is-bad { border-color: var(--coral-dk); }

.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; display: flex; gap: 10px; align-items: center; padding: 14px var(--g) calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--cream) 72%, rgba(246, 241, 234, 0)); }
.qty { display: flex; align-items: center; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--line-cream); height: 58px; flex: none; }
.qty button { width: 42px; height: 100%; border: 0; background: none; color: var(--ink); font-size: 22px; }
.qty output { min-width: 18px; text-align: center; font-weight: 700; color: var(--ink); }
.go { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 58px; border-radius: 999px; border: 0; background: var(--petrol); color: var(--cream); padding: 0 8px 0 22px; font-weight: 700; font-size: 16px; }
.go b { background: var(--coral); color: var(--ink); border-radius: 999px; padding: 12px 16px; font-weight: 800; font-size: 16px; line-height: 1; white-space: nowrap; }
.go:disabled { background: #cfc3b2; color: var(--ink-mute); cursor: not-allowed; }
.go:disabled b { background: var(--cream-3); }
.go--wa:not(:disabled) b { background: var(--coral); }
.missing { position: absolute; left: 0; right: 0; bottom: 2px; text-align: center; color: var(--ink-mute); font-size: 12px; font-weight: 500; }

/* ── confirmar pedido ── */
.ck__top { background: var(--petrol); color: var(--cream); padding: 0 var(--g) 56px; display: flex; flex-direction: column; gap: 18px; }
.ck__top .d__bar { padding-left: 0; padding-right: 0; }
.summary { position: relative; overflow: hidden; border-radius: 18px; background: var(--cream); color: var(--ink); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.summary .spiral { right: -30px; top: -30px; width: 100px; height: 100px; background: repeating-radial-gradient(circle, transparent 0 5px, rgba(239, 106, 90, .5) 5px 6px); }
.line { position: relative; display: flex; flex-direction: column; gap: 4px; padding-bottom: 10px; border-bottom: 1px dashed var(--line-cream); }
.line__head { display: flex; align-items: baseline; gap: 8px; }
.line__head strong { flex: 1; font-weight: 700; font-size: 17px; line-height: 1.15; }
.line__head span { font-weight: 600; font-size: 15px; }
.line__sub { display: flex; gap: 10px; color: var(--ink-3); font-size: 14px; line-height: 1.35; }
.line__sub span:first-child { flex: 1; }
.line__rm { align-self: flex-start; border: 0; background: none; color: var(--coral-dk); font-weight: 600; font-size: 14px; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }
.summary__total { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid rgba(239, 106, 90, .7); padding-top: 10px; position: relative; }
.summary__total span { font-weight: 600; font-size: 15px; }
.summary__total strong { font-weight: 800; font-size: 24px; }
.notice { display: flex; gap: 12px; align-items: flex-start; border-radius: 14px; border: 1.5px solid var(--coral); padding: 14px 16px; }
.notice i { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--coral); color: var(--ink); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 13px; }
.notice p { margin: 0; font-size: 15px; line-height: 1.45; }
.ck__form { position: relative; margin-top: -32px; background: var(--cream); border-radius: 28px 28px 0 0; padding: 26px var(--g) 0; display: flex; flex-direction: column; gap: 26px; }
.ck__form .d__sec { padding: 0; }
.ck__form { padding-bottom: 150px; }
.ck__dock { flex-direction: column; align-items: stretch; padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
.modes { display: flex; gap: 10px; padding-top: 4px; }
.modes button { flex: 1; height: 52px; border-radius: 12px; border: 1.5px solid var(--line-cream); background: var(--paper); color: var(--ink); font-weight: 600; font-size: 15px; }
.modes button[aria-pressed="true"] { background: var(--petrol); border-color: var(--petrol); color: var(--cream); }
.time-hint { margin: 0; font-weight: 500; font-size: 14px; line-height: 1.35; color: var(--ink-mute); }
.time-hint.is-bad { color: var(--coral-dk); }
.mp { border-radius: 12px; border: 1.5px dashed #9fb3b1; background: #eef3f2; padding: 16px; display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.mp__k { font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.mp__chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.mp__chips span { font-weight: 600; font-size: 13px; padding: 6px 10px; border-radius: 999px; background: #fff; border: 1px solid #c9d6d4; }
.mp__btn { width: 100%; min-height: 50px; border: 0; border-radius: 10px; background: #009ee3; color: #fff; font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.mp__done { border: 1.5px solid var(--green-dk); background: transparent; color: var(--green-dk); border-radius: 999px; min-height: 44px; padding: 0 16px; font-weight: 700; }
.mp__ok { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; border-radius: 10px; background: #ddf0e3; color: #1f5a36; font-weight: 700; }
.mp small { color: var(--ink-mute); font-size: 13px; line-height: 1.4; }
.bank { border-radius: 12px; border: 1.5px solid var(--line-cream); background: var(--paper); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.bank dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 8px; font-size: 15px; line-height: 1.35; }
.bank dt { color: var(--ink-mute); }
.bank dd { margin: 0; font-weight: 600; word-break: break-word; }
.bank__warn { display: flex; gap: 10px; align-items: flex-start; border-radius: 10px; background: var(--coral-soft); border: 1.5px solid var(--coral-dk); padding: 10px 12px; font-weight: 700; font-size: 14px; line-height: 1.4; color: #a3271a; }
.bank__warn i { width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--coral-dk); color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 12px; }
.copy { border: 0; background: none; color: var(--coral-dk); font-weight: 700; font-size: 14px; text-decoration: underline; padding: 0; justify-self: start; }
.accept { display: flex; align-items: flex-start; gap: 12px; border-radius: 12px; border: 1.5px solid var(--line-cream); background: var(--paper); padding: 14px; text-align: left; color: var(--ink); }
.accept i { width: 22px; height: 22px; flex: none; border-radius: 6px; border: 1.5px solid var(--coral); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 13px; }
.accept span { font-weight: 500; font-size: 15px; line-height: 1.4; }
.accept[aria-pressed="true"] { background: var(--coral-soft); border-color: var(--coral); }
.accept[aria-pressed="true"] i { background: var(--coral); }
.closed-box { border-radius: 12px; background: var(--coral-soft); border: 1.5px solid var(--coral); padding: 14px 16px; color: var(--ink); font-size: 15px; }

/* ── barra del pedido y WhatsApp flotante ── */
.cartbar { position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; gap: 12px; height: 58px; border: 0; border-radius: 999px; background: var(--cream); color: var(--ink); padding: 0 8px 0 10px; font-weight: 700; font-size: 16px; box-shadow: 0 16px 40px -12px rgba(5, 15, 18, .7); max-width: 560px; margin: 0 auto; }
.cartbar__n { min-width: 38px; height: 38px; border-radius: 999px; background: var(--petrol); color: var(--cream); display: grid; place-items: center; font-size: 15px; padding: 0 8px; }
.cartbar span:nth-child(2) { flex: 1; text-align: left; }
.cartbar b { background: var(--coral); border-radius: 999px; padding: 12px 16px; font-weight: 800; }
.fab-wa { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 39; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .6); }
.fab-wa svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }
body.has-cart .fab-wa { bottom: calc(86px + env(safe-area-inset-bottom)); }
.toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 70; background: var(--ink); color: var(--cream); font-weight: 700; padding: 12px 18px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); white-space: nowrap; }

/* sólo en computador */
.desk { display: none; }
@media (max-width: 1023px) { body:not([data-view="home"]) .top { display: none; } }

/* ═════════ Computador (≥ 1024 px) — diseño 3a ═════════ */
@media (min-width: 1024px) {
  :root { --g: 56px; }
  .mob { display: none !important; }
  .desk { display: block; }
  .view[data-view="cat"], .view[data-view="promos"] { display: none !important; }
  .view[data-view="home"] { display: block !important; }
  .top { padding: 22px var(--g); gap: 36px; border-bottom: 1px solid var(--petrol-line); background: rgba(31, 58, 64, .96); }
  .top__logo img { height: 54px; }
  .top .top__nav { display: flex; gap: 28px; font-weight: 600; font-size: 16px; }
  .top__nav a:hover { color: var(--coral); }
  .top .top__search { display: flex; flex: 1; max-width: 420px; margin-left: auto; height: 46px; }
  .top .top__wa { display: flex; align-items: center; height: 46px; border-radius: 999px; background: var(--coral); color: var(--ink); padding: 0 22px; font-weight: 700; font-size: 15px; }
  .top .lang button { padding: 8px 13px; }
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; padding: 64px var(--g) 56px; min-height: 0; background: radial-gradient(80% 90% at 100% 0%, var(--petrol-2) 0%, var(--petrol) 60%); }
  .hero > .dot, .hero > .spiral, .hero > .dot--w { display: none; }
  .hero__text { padding-top: 0; justify-content: center; gap: 22px; }
  .hero__text::before { content: ""; position: absolute; left: -30px; top: -20px; width: 96px; height: 96px; border-radius: 50%; background: var(--coral); }
  .hero__text::after { content: ""; position: absolute; left: 40px; top: -44px; width: 110px; height: 110px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 5px, var(--coral) 5px 6px); }
  .hero__text > * { position: relative; z-index: 1; }
  .status { margin-top: 60px; font-size: 16px; order: -1; }
  .hero__greet { font-size: 72px; line-height: 1; letter-spacing: -.015em; text-shadow: none; }
  .hero__tagline { display: block; margin: 0; font-size: 20px; line-height: 1.5; color: var(--mute); max-width: 480px; }
  .hero__cta { display: flex; gap: 12px; margin-top: 6px; }
  .hero__cta .tag { display: flex; align-items: center; height: 54px; padding: 0 28px; font-size: 16px; letter-spacing: .04em; clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%); }
  .hero__right { position: relative; height: 440px; }
  .hero__photo { position: absolute; right: 0; top: 0; width: 100%; max-width: 560px; height: 380px; aspect-ratio: auto; padding: 10px; transform: rotate(2.5deg); }
  .hero__promo { position: absolute; left: 0; bottom: 0; width: 300px; box-shadow: 0 20px 40px -16px rgba(10, 20, 22, .6); padding: 20px; gap: 10px; }
  .hero__promo .tag { font-size: 13px; padding: 8px 16px; }
  .hero__promo p { font-size: 14px; }
  .hero__promo .promo-card__foot small { font-size: 12px; max-width: 150px; }
  .hero__promo .promo-card__foot strong { font-size: 26px; }

  .dsec { padding: 56px var(--g) 24px; border-top: 1px solid var(--petrol-line); scroll-margin-top: 92px; }
  .dsec__title { position: relative; display: flex; align-items: center; gap: 14px; margin: 0 0 24px; font-weight: 800; font-size: 40px; line-height: 1; }
  .dsec__title::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--coral); }
  .dsec__title::after { content: ""; width: 58px; height: 58px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 4px, var(--coral) 4px 5px); margin-left: 8px; }
  .promos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 0; }
  .promo { padding: 24px 22px 20px; }
  .promo__foot strong { font-size: 30px; }
  .weekly { margin: 0 0 24px; }

  .carta { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; padding: 48px var(--g) 64px; scroll-margin-top: 92px; }
  .side { position: sticky; top: 112px; align-self: start; display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - 130px); overflow-y: auto; scrollbar-width: none; }
  .side h2 { margin: 0; padding: 0 0 14px; font-weight: 800; font-size: 26px; line-height: 1; }
  .side a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--cream); }
  .side a:hover { background: rgba(246, 241, 234, .06); }
  .side a[aria-current="true"] { background: var(--cream); color: var(--ink); }
  .side__range { width: 50px; flex: none; color: var(--coral); font-weight: 600; font-size: 12px; line-height: 1.1; }
  .side a[aria-current="true"] .side__range { color: var(--coral-dk); }
  .side__name { flex: 1; font-weight: 600; font-size: 15px; line-height: 1.2; }
  .side__count { color: var(--mute-2); font-size: 13px; }
  .side a[aria-current="true"] .side__count { color: var(--ink-mute); }
  .carta__main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
  .carta__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
  .carta__head .title { min-height: 64px; }
  .carta__head .title h2 { font-size: 46px; padding-left: 16px; }
  .carta__head .title .dot { left: -10px; top: 0; width: 52px; height: 52px; }
  .carta__head .title .spiral { left: 28px; top: -8px; width: 50px; height: 50px; }
  .carta__head .legend { padding: 0; }
  .carta__note { margin: -8px 0 0; color: var(--mute); }
  .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .grid .card { flex-direction: column; gap: 14px; padding: 12px 12px 16px; border-radius: 20px; transition: transform .15s; }
  .grid .card:not(.is-out):hover { transform: translateY(-3px); }
  .grid .card__img { width: 100%; height: 190px; transform: rotate(-1deg); clip-path: var(--torn); }
  .grid .card__img.noimg { height: 190px; border-radius: 14px; transform: none; clip-path: none; font-size: 12px; gap: 10px; }
  .grid .noimg::before { left: -40px; bottom: -50px; width: 170px; height: 170px; background: repeating-radial-gradient(circle, transparent 0 6px, rgba(239, 106, 90, .45) 6px 7px); }
  .grid .noimg i { width: 30px; height: 30px; border-width: 6px; }
  .grid .card__body { padding: 0 6px; gap: 8px; }
  .grid .card__name { font-size: 19px; }
  .grid .card__desc { font-size: 15px; line-height: 1.45; }
  .grid .price-tag { font-size: 16px; padding: 8px 14px; }
  .grid-group { margin: 26px 0 0; font-size: 22px; font-weight: 800; color: var(--coral); }

  .foot { background: var(--petrol-deep); padding: 48px var(--g) calc(48px + 70px); display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)) auto; gap: 48px; align-items: start; }
  .foot__logo { height: 64px; width: auto; }
  .foot h3 { margin: 0 0 8px; color: var(--coral); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
  .foot p { margin: 0; font-size: 16px; line-height: 1.45; }
  .foot__wa { display: flex; flex-direction: column; justify-content: center; gap: 6px; height: 72px; border-radius: 999px; background: var(--coral); color: var(--ink); padding: 0 30px; }
  .foot__wa b { font-size: 16px; } .foot__wa span { font-size: 14px; font-weight: 500; }
  .foot .legal { grid-column: 1 / -1; margin-top: -16px; }
  .foot .map { margin-top: 12px; max-width: 320px; }

  /* detalle y confirmación como ventana sobre la página */
  .overlay { background: rgba(18, 38, 42, .82); display: flex; align-items: center; justify-content: center; padding: 40px; }
  .overlay__panel { width: min(1040px, 100%); max-height: calc(100vh - 80px); border-radius: 26px; overflow: hidden; background: var(--cream); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); position: relative; }
  .overlay__close { display: grid; place-items: center; position: absolute; right: 20px; top: 20px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--cream-3); color: var(--ink); font-size: 24px; line-height: 1; }
  .d { padding: 0; display: contents; }
  .d__top { padding: 40px; display: flex; align-items: center; justify-content: center; position: relative; }
  .d__top::before { content: ""; position: absolute; left: 24px; top: 24px; width: 80px; height: 80px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 4px, var(--coral) 4px 5px); }
  .d__top::after { content: ""; position: absolute; right: 30px; bottom: 30px; width: 64px; height: 64px; border-radius: 50%; background: var(--coral); }
  .d__bar { display: none; }
  .d__media { width: 100%; padding: 0; z-index: 1; }
  .d__media > .spiral, .d__media > .dot--w { display: none; }
  .d__photo { height: 420px; padding: 10px; transform: rotate(-2deg); }
  .d__media .noimg { height: 420px; }
  .d__right { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
  .d__scroll { flex: 1; overflow-y: auto; padding: 40px 40px 20px; }
  .d__info { margin: 0; padding: 0 40px 0 0; border-radius: 0; background: none; }
  .d__name h2 { font-size: 38px; }
  .d__name strong { font-size: 26px; }
  .d__sec { padding: 22px 0 0; }
  .xgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dock { position: static; background: none; padding: 16px 40px 28px; border-top: 1px solid var(--cream-3); }
  .ck .overlay__panel { grid-template-columns: 420px minmax(0, 1fr); width: min(1080px, 100%); }
  .ck__top { padding: 36px 32px; overflow-y: auto; }
  .ck__top .d__bar { display: flex; padding-top: 0; }
  .ck__form { margin: 0; border-radius: 0; padding: 36px 40px 16px; overflow-y: auto; }
  .ck__right { display: flex; flex-direction: column; min-height: 0; }
  .ck__right .dock { position: relative; }
  .ck__right .missing { bottom: 8px; }

  .cartbar { left: auto; right: 96px; width: 420px; }
  body.has-cart .fab-wa { bottom: calc(16px + env(safe-area-inset-bottom)); }
}
@media (min-width: 1024px) and (max-width: 1240px) {
  .grid, .promos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1500px) {
  .top, .hero, .dsec, .carta, .foot { padding-left: calc((100vw - 1328px) / 2); padding-right: calc((100vw - 1328px) / 2); }
}
@media (min-width: 640px) and (max-width: 1023px) {
  :root { --g: 32px; }
  .cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px var(--g) 30px; }
  .promos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 var(--g); }
  .hero__photo { width: 340px; }
  .overlay > * { max-width: 720px; margin: 0 auto; }
  .dock { max-width: 720px; margin: 0 auto; }
}
