/* ==========================================================================
   SALVAJE PENCO · Estilos propios (Tailwind aporta utilidades; aquí vive la marca)
   Mundo visual: la mascota. Ámbar del logo, tinta café de sus contornos,
   naranja llama para la acción. Superficies claras #F9FAFB / #FFF.
   ========================================================================== */
:root {
  --ink: #3B1208;
  --ink-brand: #591B0E;
  --ink-soft: #7A4A3A;
  --line: rgba(89, 27, 14, .14);
  --sun: #FEC768;
  --sun-deep: #F89E19;
  --flame: #CB3F0E;
  --flame-hover: #A9320A;
  --page: #F9FAFB;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-card: 0 1px 0 rgba(30, 14, 8, .06), 0 10px 24px -12px rgba(30, 14, 8, .28);
  --shadow-pop: 0 2px 0 rgba(30, 14, 8, .08), 0 18px 40px -16px rgba(30, 14, 8, .45);
}

/* Lo que tiene el atributo hidden nunca se muestra, aunque su clase defina display */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { min-height: 100dvh; font-variant-numeric: tabular-nums; }
body.sheet-open { overflow: hidden; }

/* ---- Superficies del navegador que también son marca ---- */
::selection { background: var(--sun); color: var(--ink-brand); }
:focus-visible { outline: 3px solid var(--flame); outline-offset: 2px; border-radius: 8px; }
input, textarea { caret-color: var(--flame); accent-color: var(--flame); }
* { scrollbar-width: thin; scrollbar-color: rgba(89, 27, 14, .35) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(89, 27, 14, .3); border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink-brand); color: var(--sun); padding: .6rem 1rem; border-radius: 999px; font-weight: 800; transition: top .2s var(--ease); }
.skip-link:focus { top: 1rem; }

.ico { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-lg { width: 1.6rem; height: 1.6rem; }
.ico-sm { width: 1rem; height: 1rem; }

/* ==========================================================================
   CABECERA
   ========================================================================== */
.site-header { position: relative; background: var(--sun); color: var(--ink-brand); }
.site-header__wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 28px; display: block; }

/* El leoncito persigue al sándwich por la ola (js/chase.js). Solo decoración. */
.chase { position: absolute; inset: 0; overflow: clip; pointer-events: none; z-index: 2; }
.chase[hidden] { display: none; }
.actor { position: absolute; left: 0; bottom: -1px; width: 56px; height: 42px; display: none; transform-origin: 50% 100%; will-change: transform; }
.actor.is-on { display: block; }
.actor svg { display: block; width: 100%; height: 100%; overflow: visible; transform-origin: 50% 100%; }
.actor .leg, .actor .bob, .actor .lion-head { transform-box: fill-box; }
.actor .leg { transform-origin: 50% 8%; }
.actor .bob { transform-origin: 50% 100%; }
.actor .lion-head { transform-origin: 30% 70%; }
.actor .flip { width: 100%; height: 100%; transform-origin: 50% 100%; }
.actor .prey { display: none; }
.actor--prey[data-kind="burger"] .prey--burger, .actor--prey[data-kind="hotdog"] .prey--hotdog, .actor--prey[data-kind="fries"] .prey--fries, .actor--prey[data-kind="pizza"] .prey--pizza { display: block; }
.actor .mouth-open, .actor .sweat { display: none; }
.is-run .leg-a { animation: chase-leg .24s ease-in-out infinite alternate; }
.is-run .leg-b { animation: chase-leg .24s ease-in-out infinite alternate-reverse; }
.is-run .bob { animation: chase-bob .24s ease-in-out infinite alternate; }
.actor--prey.is-run .sweat { display: block; animation: chase-sweat .5s linear infinite; }
.is-scared .bob { animation: chase-shake .16s ease-in-out infinite alternate; }
.is-scared .sweat { display: block; }
.is-jump .leg-a { transform: rotate(-60deg); }
.is-jump .leg-b { transform: rotate(60deg); }
.is-eat .lion-head { animation: chase-nom .32s ease-in-out infinite alternate; }
.is-eat .mouth-open { display: block; }
.is-eat .mouth-closed { display: none; }
.chase__nom { position: absolute; top: -17px; padding: .1rem .45rem; border-radius: 999px; background: #fff; border: 1.5px solid var(--ink-brand); color: var(--ink-brand); font: 900 .72rem/1.3 Nunito, system-ui, sans-serif; white-space: nowrap; opacity: 0; transform: scale(.6); transition: opacity .12s, transform .12s; }
.chase__nom.on { opacity: 1; transform: none; }
@keyframes chase-leg { from { transform: rotate(-40deg); } to { transform: rotate(40deg); } }
@keyframes chase-bob { from { transform: translateY(0); } to { transform: translateY(-2.5px); } }
@keyframes chase-shake { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@keyframes chase-sweat { from { transform: translateY(-2px); opacity: 1; } to { transform: translateY(6px); opacity: 0; } }
@keyframes chase-nom { from { transform: rotate(-6deg) translateX(-1px); } to { transform: rotate(5deg) translateX(2px); } }
.actor--car { width: 112px; height: 65px; }
.actor--car .wheel { transform-box: fill-box; transform-origin: center; }
.actor--car.is-run .wheel { animation: chase-spin .32s linear infinite; }
.actor--car.is-fast .wheel { animation-duration: .09s; }
.actor--car.is-run .bob { animation: chase-bump .3s ease-in-out infinite alternate; }
.actor--car .fl { transform-box: fill-box; transform-origin: 50% 100%; }
.actor--car.is-run .fl0 { animation: chase-hop .3s ease-in-out infinite alternate; }
.actor--car.is-run .fl1 { animation: chase-hop .3s ease-in-out -.1s infinite alternate; }
.actor--car.is-run .fl2 { animation: chase-hop .3s ease-in-out -.2s infinite alternate; }
.actor--car.is-run .fl3 { animation: chase-hop .3s ease-in-out -.05s infinite alternate; }
.actor--car.is-fast .fl { animation-duration: .12s; }
.actor--car.is-fast .bob { animation-duration: .1s; }
.is-pant .bob { animation: chase-pant .5s ease-in-out infinite alternate; }
.is-pant .lion-head { transform: rotate(14deg) translateY(2px); }
.is-pant .mouth-open { display: block; }
.is-pant .mouth-closed { display: none; }
.is-pant .sweat { display: block; animation: chase-sweat .9s linear infinite; }
.puff { position: absolute; z-index: 1; border-radius: 50%; background: #FFF4E3; border: 1.5px solid rgba(89, 27, 14, .35); transform: translate(-50%, 50%) scale(.4); opacity: .95; animation: chase-puff 1s ease-out forwards; }
@keyframes chase-spin { to { transform: rotate(360deg); } }
@keyframes chase-bump { from { transform: translateY(0); } to { transform: translateY(-1.6px); } }
@keyframes chase-hop { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-2.5px) rotate(2deg); } }
@keyframes chase-pant { from { transform: scaleY(1); } to { transform: scaleY(.95) translateY(1px); } }
@keyframes chase-puff { to { transform: translate(-50%, 50%) translateY(-26px) scale(1.7); opacity: 0; } }
@media (max-width: 640px) { .actor { width: 46px; height: 34.5px; } .actor--car { width: 88px; height: 51px; } }

.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: inherit; }
.brand__mark { width: 96px; height: 96px; flex: none; transform-origin: 50% 85%; filter: drop-shadow(0 8px 10px rgba(30, 14, 8, .22)); }
.brand__text { display: grid; line-height: .95; }
.brand__name {
  font-family: 'Lilita One', system-ui, sans-serif; font-size: clamp(2.6rem, 9vw, 4.6rem); letter-spacing: .01em;
  color: #F58A1B; -webkit-text-stroke: .13em var(--ink-brand); paint-order: stroke fill;
}
.brand__sub {
  justify-self: start; margin-top: .35rem; padding: .15rem .8rem .2rem; border-radius: 999px;
  background: var(--ink-brand); color: var(--sun); font-family: 'Lilita One', system-ui, sans-serif;
  font-size: 1.15rem; letter-spacing: .38em; padding-left: 1rem;
}
.brand__tag { margin-top: .65rem; font-weight: 800; font-size: .95rem; color: var(--ink-brand); }

.status {
  display: inline-flex; align-items: center; gap: .55rem; width: fit-content; margin: 0;
  padding: .5rem .9rem; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 800; font-size: .9rem;
  box-shadow: 0 6px 14px -8px rgba(30, 14, 8, .5);
}
.status__dot { width: .65rem; height: .65rem; border-radius: 50%; background: #1FA855; }
.status.is-closed .status__dot { background: #B3261E; }
.status.is-neutral .status__dot { display: none; }

.chip-btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1rem; border-radius: 999px;
  border: 2px solid var(--ink-brand); color: var(--ink-brand); font-weight: 800; font-size: .92rem; text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
@media (max-width: 639.98px) { .chip-btn { padding: 0 .8rem; font-size: .85rem; gap: .4rem; } .brand__mark { width: 88px; height: 88px; } .status { font-size: .85rem; } }
.chip-btn:hover { background: var(--ink-brand); color: var(--sun); }
.chip-btn:active { transform: scale(.97); }

/* ==========================================================================
   CATEGORÍAS
   ========================================================================== */
.catbar { position: sticky; top: 0; z-index: 30; background: var(--page); border-bottom: 1px solid var(--line); }
.cats { display: flex; gap: .5rem; overflow-x: auto; padding: .7rem 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: none; min-height: 44px; padding: 0 1.15rem; border-radius: 999px; font-weight: 800; font-size: .95rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.cat:hover { border-color: var(--ink-brand); }
.cat:active { transform: scale(.96); }
.cat[aria-pressed="true"] { background: var(--ink-brand); color: var(--sun); border-color: var(--ink-brand); }

.section-title { display: flex; align-items: baseline; gap: .6rem; margin: 0 0 1rem; font-family: 'Lilita One', system-ui, sans-serif; font-weight: 400; font-size: 1.9rem; line-height: 1; color: var(--ink-brand); scroll-margin-top: 5rem; }
.section-title span { font-family: Nunito, system-ui, sans-serif; font-size: .9rem; font-weight: 800; color: var(--ink-soft); }

/* ==========================================================================
   TARJETA DE PRODUCTO
   ========================================================================== */
.card {
  display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: 22px; border: 1.5px solid var(--line);
  box-shadow: var(--shadow-card); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms);
}
@media (hover: hover) { .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); } .card:hover .card__img img { transform: scale(1.05); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.card__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sun); }
.card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.card__img img.is-fallback { object-fit: contain; padding: 14%; }
.card__tag { position: absolute; left: .75rem; top: .75rem; padding: .25rem .7rem; border-radius: 999px; background: var(--ink-brand); color: var(--sun); font-family: 'Lilita One', system-ui, sans-serif; font-size: .9rem; letter-spacing: .04em; }
.card__body { display: flex; flex: 1; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem 1.1rem; }
.card__name { margin: 0; font-size: 1.15rem; font-weight: 900; line-height: 1.2; color: var(--ink); text-wrap: balance; }
.card__desc { margin: 0; font-size: .92rem; line-height: 1.45; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin-top: auto; padding-top: .8rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.card__price { margin: 0; font-family: 'Lilita One', system-ui, sans-serif; font-size: 1.6rem; line-height: 1; color: var(--flame); }
.card__action { min-width: 118px; display: flex; justify-content: flex-end; }


/* Móvil: tarjeta horizontal para ver más productos de un vistazo */
@media (max-width: 639.98px) {
  .card { flex-direction: row; border-radius: 20px; }
  .card__img { flex: none; width: 116px; aspect-ratio: auto; }
  .card__tag { left: .4rem; top: .4rem; padding: .1rem .5rem; font-size: .75rem; }
  .card__body { min-width: 0; padding: .8rem .9rem .85rem; gap: .25rem; }
  .card__name { font-size: 1.05rem; }
  .card__desc { font-size: .85rem; -webkit-line-clamp: 2; }
  .card__foot { padding-top: .5rem; gap: .5rem; }
  .card__price { font-size: 1.35rem; }
  .card__action { min-width: 0; }
  .btn-add { padding: 0 .9rem; min-height: 44px; }
  .stepper { height: 44px; } .stepper button { width: 40px; }
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn-add, .btn-primary, .btn-ghost, .btn-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: 0 1.15rem;
  border-radius: 999px; font-weight: 900; font-size: .98rem; cursor: pointer; text-decoration: none; border: 2px solid transparent;
  transition: background-color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease), opacity .2s;
}
.btn-add { background: var(--sun); color: var(--ink-brand); border-color: var(--ink-brand); }
.btn-add:hover { background: var(--sun-deep); }
.btn-add:active, .btn-primary:active, .btn-ghost:active, .btn-wa:active { transform: scale(.97); }

.btn-primary { background: var(--flame); color: #fff; min-height: 54px; font-size: 1.1rem; box-shadow: 0 10px 20px -10px rgba(30, 14, 8, .55); }
.btn-primary:hover:not(:disabled) { background: var(--flame-hover); }
.btn-primary:disabled { background: #E6D8D1; color: #8A6F63; box-shadow: none; cursor: not-allowed; }
.btn-primary.is-loading { opacity: .85; }
.btn-ghost { background: transparent; color: var(--ink-brand); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-brand); background: #fff; }
.btn-wa { background: #128C4A; color: #fff; min-height: 54px; font-size: 1.05rem; }
.btn-wa:hover { background: #0E7A3F; }

.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-brand); cursor: pointer; transition: background-color .2s var(--ease), transform .15s var(--ease); }
.icon-btn:hover { background: rgba(89, 27, 14, .09); }
.icon-btn:active { transform: scale(.92); }
.icon-btn--sm { width: 36px; height: 36px; }

.stepper { display: inline-flex; align-items: center; height: 46px; border-radius: 999px; background: var(--ink-brand); color: var(--sun); animation: pop .35s var(--ease); }
.stepper button { display: grid; place-items: center; width: 44px; height: 100%; border: 0; background: transparent; color: inherit; border-radius: 999px; cursor: pointer; transition: background-color .2s var(--ease); }
.stepper button:hover { background: rgba(255, 255, 255, .14); }
.stepper button:active { transform: scale(.88); }
.stepper output { min-width: 1.6rem; text-align: center; font-weight: 900; font-size: 1.05rem; }
.stepper--sm { height: 36px; } .stepper--sm button { width: 36px; } .stepper--sm output { font-size: .95rem; }
.stepper :focus-visible { outline-color: #fff; }
@keyframes pop { from { transform: scale(.88); } to { transform: none; } }

/* ==========================================================================
   CARRITO  (PC: panel fijo · móvil: cajón inferior)
   ========================================================================== */
.cart { display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--line); box-shadow: var(--shadow-card); overflow: hidden; overflow: clip; }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); background: var(--sun); }
.cart__count { display: inline-grid; place-items: center; min-width: 1.7rem; height: 1.7rem; padding: 0 .45rem; margin-left: .35rem; border-radius: 999px; background: var(--ink-brand); color: var(--sun); font-family: Nunito, sans-serif; font-weight: 900; font-size: .95rem; vertical-align: .15em; }
.cart__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 1rem 1.25rem 1.25rem; overscroll-behavior: contain; }
.cart__foot { padding: .85rem 1.25rem calc(.85rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -12px 20px -16px rgba(30, 14, 8, .35); }
.cart__empty { padding: 1.5rem .5rem 1rem; text-align: center; }
.cart__items { list-style: none; margin: 0; padding: 0; }

.line { display: flex; gap: .75rem; padding: .75rem 0; border-bottom: 1px dashed var(--line); animation: pop .3s var(--ease); }
.line__img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: none; background: var(--sun); }
.line__name { margin: 0; font-weight: 900; font-size: .98rem; line-height: 1.2; }
.line__unit { margin: .1rem 0 0; font-size: .82rem; color: var(--ink-soft); }
.line__sub { margin: 0; font-weight: 900; font-size: 1rem; white-space: nowrap; }

.totals { margin: 1.25rem 0 0; padding-top: .9rem; display: grid; gap: .35rem; font-size: .95rem; border-top: 1px dashed var(--line); }
.totals > div { display: flex; justify-content: space-between; gap: 1rem; }
.totals dt { color: var(--ink-soft); font-weight: 700; } .totals dd { margin: 0; font-weight: 800; }
.totals__total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0 0 .7rem; font-weight: 900; letter-spacing: .02em; }
.totals__total strong { font-family: 'Lilita One', system-ui, sans-serif; font-weight: 400; font-size: 2rem; line-height: 1; color: var(--ink-brand); letter-spacing: 0; }

/* Formulario */
.field { display: grid; gap: .35rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 900; font-size: .92rem; padding: 0; }
.field input[type="text"], .field input[type="tel"], .field input[type="number"], .field textarea {
  width: 100%; min-height: 48px; padding: .65rem .9rem; border-radius: 14px; border: 1.5px solid rgba(89, 27, 14, .3);
  background: #fff; color: var(--ink); font: inherit; font-size: 1rem; /* 16px: sin zoom en iOS */
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 64px; }
.field input::placeholder, .field textarea::placeholder { color: #9A7B6E; }
.field input:hover, .field textarea:hover { border-color: var(--ink-brand); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--flame); box-shadow: 0 0 0 4px rgba(203, 63, 14, .16); }
.field input[aria-invalid="true"] { border-color: #B3261E; }
.field__err { margin: 0; font-size: .85rem; font-weight: 700; color: #B3261E; }

.mode, .pay { display: block; cursor: pointer; }
.mode input, .pay input { position: absolute; opacity: 0; pointer-events: none; }
.mode__box { display: grid; justify-items: start; gap: .1rem; height: 100%; padding: .8rem .9rem; border-radius: 16px; border: 1.5px solid rgba(30, 14, 8, .3); background: #fff; transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease); }
.mode__box .ico { color: var(--flame); margin-bottom: .2rem; }
.mode__title { font-weight: 900; font-size: .95rem; line-height: 1.15; }
.mode__meta { font-weight: 800; font-size: .85rem; color: var(--ink-soft); }
.mode:hover .mode__box, .pay:hover .pay__box { border-color: var(--ink-brand); }
.mode input:checked + .mode__box, .pay input:checked + .pay__box { border-color: var(--ink-brand); background: var(--sun); box-shadow: inset 0 0 0 1px var(--ink-brand); }
.mode input:checked + .mode__box .mode__meta { color: var(--ink-brand); }
.mode input:focus-visible + .mode__box, .pay input:focus-visible + .pay__box { outline: 3px solid var(--flame); outline-offset: 2px; }

.pickup { display: flex; gap: .75rem; padding: .9rem 1rem; border-radius: 16px; border: 1.5px dashed rgba(89, 27, 14, .35); background: #FFF7E3; }

/* ==========================================================================
   MÓVIL: barra flotante + cajón
   ========================================================================== */
.mobilebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); pointer-events: none; animation: slideup .5s var(--ease); }
.mobilebar[hidden] { display: none; }
.mobilebar__btn { pointer-events: auto; display: flex; width: 100%; min-height: 58px; align-items: center; justify-content: center; gap: .6rem; padding: 0 1.1rem; border: 2px solid var(--ink-brand); border-radius: 999px; background: var(--flame); color: #fff; font-weight: 900; font-size: 1.02rem; box-shadow: 0 16px 30px -12px rgba(30, 14, 8, .7); cursor: pointer; transition: transform .15s var(--ease); }
.mobilebar__btn:active { transform: scale(.98); }
@keyframes slideup { from { transform: translateY(120%); } to { transform: none; } }

.backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(59, 18, 8, .55); animation: fade .3s var(--ease); }
.backdrop[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1023.98px) {
  .cart {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: 94dvh; max-height: 94dvh; border-radius: 26px 26px 0 0; border-bottom: 0;
    transform: translateY(105%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s;
  }
  .cart.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease), visibility 0s; box-shadow: 0 -20px 50px -20px rgba(30, 14, 8, .6); }
  .cart__head { border-radius: 26px 26px 0 0; }
}
@media (min-width: 1024px) {
  .mobilebar, .backdrop { display: none !important; }
  .cart { position: sticky; top: 4.75rem; align-self: start; max-height: calc(100dvh - 5.75rem); border-radius: 26px; }
  .brand__mark { width: 124px; height: 124px; }
}

/* ==========================================================================
   CHECKOUT
   ========================================================================== */
.checkout { width: min(560px, 100%); max-height: 100dvh; margin: auto; padding: 0; border: 0; border-radius: 26px; background: #fff; color: var(--ink); box-shadow: 0 40px 80px -30px rgba(30, 14, 8, .7); overflow: auto; }
.checkout::backdrop { background: rgba(59, 18, 8, .6); animation: fade .25s var(--ease); }
.checkout[open] { animation: dialogin .4s var(--ease); }
@keyframes dialogin { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.checkout__panel { display: grid; gap: 1.1rem; padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom)); }
.checkout__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.checkout__total { display: flex; align-items: baseline; justify-content: space-between; margin: 0; padding: .9rem 1.1rem; border-radius: 18px; background: var(--ink-brand); color: var(--sun); font-weight: 800; }
.checkout__total strong { font-family: 'Lilita One', system-ui, sans-serif; font-weight: 400; font-size: 2.2rem; line-height: 1; }
.checkout__foot { display: flex; gap: .6rem; position: sticky; bottom: calc(-1.25rem - env(safe-area-inset-bottom)); margin: 0 -1.25rem calc(-1.25rem - env(safe-area-inset-bottom)); padding: .85rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom)); background: linear-gradient(to top, #fff 82%, rgba(255,255,255,0)); }
.pay__box { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border-radius: 18px; border: 1.5px solid rgba(89, 27, 14, .3); background: #fff; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.pay__box .ico { color: var(--flame); }
.pay__title { display: block; font-weight: 900; }
.pay__sub { display: block; font-size: .86rem; color: var(--ink-soft); font-weight: 600; }
.panel { padding: 1rem; border-radius: 18px; background: #F9FAFB; border: 1px solid var(--line); animation: fade .3s var(--ease); }
.panel[hidden] { display: none; }
.bank { margin: 0; display: grid; }
.bank__row { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: .5rem; padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.bank__row:last-child { border-bottom: 0; }
.bank dt { grid-column: 1; font-size: .78rem; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.bank dd { grid-column: 1; margin: 0; font-weight: 900; word-break: break-word; }
.bank .icon-btn { grid-row: 1 / span 2; grid-column: 2; }
.done__check { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: #1FA855; color: #fff; animation: pop .5s var(--ease); }
.done__check .ico { stroke-width: 3; }
.done__step { flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--ink-brand); color: var(--sun); font-family: Nunito, sans-serif; font-weight: 900; font-size: .9rem; }

@media (max-width: 639.98px) {
  .checkout { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 26px 26px 0 0; }
  .checkout__foot { flex-direction: column-reverse; }
  .checkout__foot .btn-ghost { width: 100%; }
}

/* ==========================================================================
   VARIOS
   ========================================================================== */
.site-footer { background: var(--ink-brand); color: var(--sun); padding-bottom: 5rem; }
.site-credit { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid rgba(255, 200, 100, .25); font-size: .8rem; opacity: .75; }
.site-credit strong { font-weight: 800; }
@media (min-width: 1024px) { .site-footer { padding-bottom: 0; } }

.toast { position: fixed; left: 50%; bottom: 6rem; z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: .6rem 1.1rem; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; font-size: .92rem; transition: opacity .25s var(--ease), transform .35s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* La mascota "muerde" cuando agregas algo */
.chew { animation: chew .55s var(--ease); }
@keyframes chew { 0% { transform: none; } 25% { transform: scale(1.1, .92) rotate(-3deg); } 55% { transform: scale(.96, 1.06) rotate(2deg); } 100% { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   OPCIONES DE PRODUCTO (tamaño, carne, extras)
   ========================================================================== */
.btn-add { position: relative; }
.btn-add__n { position: absolute; top: -.45rem; right: -.35rem; display: grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem; border-radius: 999px; background: var(--ink-brand); color: var(--sun); font-size: .78rem; font-weight: 900; box-shadow: 0 0 0 2px #fff; }
.card__price small { font-family: Nunito, system-ui, sans-serif; font-size: .8rem; font-weight: 800; color: var(--ink-soft); }
.line__detail { margin: .15rem 0 0; font-size: .82rem; font-weight: 700; color: var(--ink-soft); line-height: 1.3; }
.link-btn { min-height: 36px; padding: 0 .5rem; border: 0; background: transparent; color: var(--flame); font-weight: 900; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; border-radius: 8px; }
.link-btn:hover { color: var(--flame-hover); }

.xset { border: 0; padding: 0; margin: 0; min-width: 0; }
.xset legend { font-weight: 900; font-size: 1rem; padding: 0; margin-bottom: .5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.opt { cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__box { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 .9rem; border-radius: 999px; border: 1.5px solid rgba(89, 27, 14, .3); background: #fff; font-weight: 800; font-size: .92rem; transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .12s var(--ease); }
.opt__box em { font-style: normal; font-weight: 800; font-size: .82rem; color: var(--ink-soft); }
.opt:hover .opt__box { border-color: var(--ink-brand); }
.opt:active .opt__box { transform: scale(.96); }
.opt input:checked + .opt__box { background: var(--ink-brand); border-color: var(--ink-brand); color: var(--sun); }
.opt input:checked + .opt__box em { color: var(--sun); }
.opt input:focus-visible + .opt__box { outline: 3px solid var(--flame); outline-offset: 2px; }
.xset .opt__box { min-height: 46px; font-size: .98rem; }

.xgroup { border: 1.5px solid var(--line); border-radius: 16px; background: #fff; }
.xgroup > summary { display: flex; justify-content: space-between; gap: .75rem; align-items: center; min-height: 48px; padding: 0 1rem; font-weight: 900; cursor: pointer; list-style: none; }
.xgroup > summary::-webkit-details-marker { display: none; }
.xgroup > summary span { font-size: .85rem; font-weight: 800; color: var(--ink-soft); }
.xgroup > summary::after { content: ''; width: .55rem; height: .55rem; border-right: 2.5px solid var(--ink-brand); border-bottom: 2.5px solid var(--ink-brand); transform: rotate(45deg); transition: transform .25s var(--ease); margin-left: .25rem; flex: none; }
.xgroup[open] > summary::after { transform: rotate(-135deg); }
.xgroup .chips { padding: 0 1rem 1rem; }
.opts .checkout__foot .btn-primary, .opts .checkout__foot .btn-wa { width: 100%; }

/* Avisos del local */
.notice { background: var(--ink-brand); color: var(--sun); text-align: center; font-weight: 800; font-size: .95rem; padding: .6rem 1rem; }
.notice[hidden] { display: none; }
.notice p { margin: 0 auto; max-width: 60rem; text-wrap: balance; }
.notice p + p { margin-top: .25rem; }

/* ==========================================================================
   CÓDIGOS DE DESCUENTO
   ========================================================================== */
.coupon { margin-top: 1.25rem; }
.coupon[hidden] { display: none; }
.coupon__toggle { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .1rem; border: 0; background: none; color: var(--flame); font-weight: 900; font-size: .95rem; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; border-radius: 8px; }
.coupon__toggle[hidden] { display: none; }
.coupon__toggle:hover { color: var(--flame-hover); }
.coupon__form { display: flex; gap: .5rem; align-items: center; }
.coupon__form[hidden] { display: none; }
.coupon__form input { flex: 1; min-width: 0; min-height: 46px; padding: .6rem .9rem; border-radius: 14px; border: 1.5px solid rgba(89, 27, 14, .3); background: #fff; color: var(--ink); font: inherit; font-size: 1rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.coupon__form input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 600; color: #9A7B6E; }
.coupon__form input:focus { outline: none; border-color: var(--flame); box-shadow: 0 0 0 4px rgba(203, 63, 14, .16); }
.coupon__msg { margin: .4rem 0 0; font-size: .88rem; font-weight: 700; color: var(--ink-soft); }
.coupon__msg:empty { display: none; }
.coupon__msg.is-err { color: #B3261E; }
.coupon__warn { margin: .5rem 0 0; font-size: .88rem; font-weight: 800; color: var(--flame-hover); }
.coupon__warn[hidden] { display: none; }

/* El cupón aplicado se ve como un ticket con muescas */
.coupon__chip { position: relative; display: flex; align-items: center; gap: .75rem; padding: .75rem 1.1rem; border-radius: 14px; background: var(--sun); color: var(--ink-brand); border: 2px dashed var(--ink-brand); animation: pop .4s var(--ease); }
.coupon__chip[hidden] { display: none; }
.coupon__chip::before, .coupon__chip::after { content: ''; position: absolute; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: #fff; border: 2px solid var(--ink-brand); }
.coupon__chip::before { left: -9px; clip-path: inset(0 0 0 50%); }
.coupon__chip::after { right: -9px; clip-path: inset(0 50% 0 0); }
.coupon__code { margin: 0; font-family: 'Lilita One', system-ui, sans-serif; font-size: 1.35rem; line-height: 1; letter-spacing: .08em; }
.coupon__desc { margin: .25rem 0 0; font-size: .85rem; font-weight: 700; line-height: 1.3; }
#t-coupon { color: var(--leaf, #17703B); }

/* Cartel del día: cupones marcados como públicos en la planilla */
.coupon-banner { background: #FFF1C9; border-bottom: 2px dashed var(--ink-brand); color: var(--ink-brand); padding: .6rem 1rem; }
.coupon-banner[hidden] { display: none; }
.coupon-banner p { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem .75rem; max-width: 60rem; margin: 0 auto; font-weight: 800; font-size: .95rem; text-align: center; }
.coupon-banner p + p { margin-top: .4rem; }
.coupon-banner__btn { min-height: 38px; padding: 0 1rem; border: 0; border-radius: 999px; background: var(--ink-brand); color: var(--sun); font-weight: 900; font-size: .88rem; cursor: pointer; transition: transform .15s var(--ease), background-color .2s var(--ease); }
.coupon-banner__btn:hover { background: var(--ink); }
.coupon-banner__btn:active { transform: scale(.96); }

/* Permiso para recibir ofertas (sin marcar de fábrica) */
.optin { display: flex; gap: .75rem; align-items: flex-start; padding: .8rem .9rem; border-radius: 16px; border: 1.5px solid rgba(89, 27, 14, .22); background: #fff; cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.optin[hidden] { display: none; }
.optin:hover { border-color: var(--ink-brand); }
.optin:has(input:checked) { background: #FFF7E3; border-color: var(--ink-brand); }
.optin input { flex: none; width: 1.35rem; height: 1.35rem; margin-top: .1rem; }
.optin strong { display: block; font-size: .95rem; font-weight: 900; line-height: 1.25; }
.optin small { display: block; margin-top: .2rem; font-size: .8rem; font-weight: 600; line-height: 1.4; color: var(--ink-soft); }

/* Vaciar carro */
.cart__clear { display: flex; justify-content: flex-end; align-items: center; padding-top: .35rem; }
.cart__clear .link-btn { display: inline-flex; align-items: center; gap: .35rem; }
.cart__clear-confirm { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .1rem .4rem; font-size: .9rem; font-weight: 800; color: var(--ink); }
#clear-yes { color: #B3261E; }

/* ==========================================================================
   BARRA SUPERIOR (fecha, hora y clima de Penco)
   ========================================================================== */
.topbar { background: var(--ink-brand); color: var(--sun); font-size: .8rem; font-weight: 800; padding: .4rem 0; line-height: 1.3; }
.topbar__item { display: inline-flex; align-items: center; gap: .4rem; margin: 0; }
.topbar b { font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
@media (max-width: 479.98px) { .topbar { font-size: .74rem; } }

/* ==========================================================================
   FOTOS AMPLIABLES
   ========================================================================== */
.card__zoom { display: block; position: relative; width: 100%; height: 100%; padding: 0; border: 0; background: none; color: inherit; cursor: zoom-in; }
.card__zoomico { position: absolute; right: .55rem; bottom: .55rem; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink-brand); box-shadow: 0 2px 8px rgba(30, 14, 8, .25); transition: transform .2s var(--ease); }
@media (hover: hover) { .card__zoom:hover .card__zoomico { transform: scale(1.12); } }
.lightbox { width: min(94vw, 880px); max-width: none; max-height: 94dvh; margin: auto; padding: 0; border: 0; background: transparent; color: #fff; overflow: visible; }
.lightbox::backdrop { background: rgba(59, 18, 8, .86); }
.lightbox[open] { animation: lb-in .25s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.lightbox img { display: block; width: 100%; max-height: 78dvh; margin: 0 auto; object-fit: contain; border-radius: 20px; background: #fff; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6); cursor: zoom-out; }
.lightbox__cap { margin: .8rem 0 0; text-align: center; font-family: "Lilita One", system-ui, sans-serif; font-size: 1.35rem; color: var(--sun); }
.lightbox__x { position: absolute; top: .6rem; right: .6rem; z-index: 2; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); color: var(--ink-brand); box-shadow: 0 4px 14px rgba(0, 0, 0, .3); cursor: pointer; }

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */
.wa-float { position: fixed; right: 1rem; bottom: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 40; display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 50%; background: #1FA855; color: #fff; box-shadow: 0 10px 24px -8px rgba(30, 14, 8, .55), 0 2px 0 rgba(255, 255, 255, .25) inset; transition: transform .2s var(--ease), background .2s; }
.wa-float svg { width: 2rem; height: 2rem; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1FA855; animation: wa-ping 2.6s ease-out infinite; }
@keyframes wa-ping { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
@media (hover: hover) { .wa-float:hover { background: #178544; transform: scale(1.06); } }
@media (max-width: 1023.98px) { body.has-bar .wa-float { bottom: calc(5.4rem + env(safe-area-inset-bottom)); } }

/* ==========================================================================
   CÓMO LLEGAR
   ========================================================================== */
.location { background: var(--ink-brand); color: var(--sun); }
.location__inner { max-width: 80rem; margin: 0 auto; padding: 3rem 1rem; }
@media (min-width: 640px) { .location__inner { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .location__inner { padding-inline: 2rem; } }
.location__kicker { margin: 0; font-size: .85rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; color: var(--sun-deep); }
.location__title { margin: .2rem 0 1.4rem; font-family: "Lilita One", system-ui, sans-serif; font-size: clamp(2rem, 5vw, 3rem); line-height: 1; text-transform: uppercase; }
.location__grid { display: grid; gap: 1rem; }
@media (min-width: 900px) { .location__grid { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); } }
.location__map { overflow: hidden; border-radius: 22px; border: 2px solid rgba(254, 199, 104, .35); min-height: 320px; background: #3B1208; }
.location__map iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; filter: sepia(.5) saturate(1.7) hue-rotate(-14deg) brightness(.95) contrast(1.05); }
.location__card { display: flex; flex-direction: column; gap: .65rem; padding: 1.4rem; border-radius: 22px; border: 1.5px solid rgba(254, 199, 104, .3); background: rgba(254, 199, 104, .08); }
.location__card h3 { margin: 0; font-family: "Lilita One", system-ui, sans-serif; font-size: 1.9rem; line-height: 1.05; text-transform: uppercase; }
.location__addr { display: flex; align-items: flex-start; gap: .5rem; margin: 0; font-weight: 800; }
.location__addr .ico { flex: none; margin-top: .1rem; color: var(--sun-deep); }
.location__ref { margin: -.2rem 0 .3rem 1.6rem; font-size: .9rem; font-weight: 700; opacity: .85; }
.loc-btn { display: flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3rem; padding: .5rem 1rem; border-radius: 14px; border: 1.5px solid rgba(254, 199, 104, .45); color: var(--sun); font-weight: 800; text-align: center; text-decoration: none; transition: background .2s, transform .2s var(--ease); }
.loc-btn--main { background: var(--sun); border-color: var(--sun); color: var(--ink-brand); }
@media (hover: hover) { .loc-btn:hover { background: rgba(254, 199, 104, .18); } .loc-btn--main:hover { background: #FFD58A; } }
.site-footer { border-top: 1px solid rgba(254, 199, 104, .2); }

/* ==========================================================================
   ADEREZOS (gratis) y PAPAS DE REGALO
   ========================================================================== */
.sauces { margin: 0; padding: .9rem 1rem 1rem; border: 1.5px dashed var(--line); border-radius: 16px; background: #fff; min-width: 0; }
.sauces legend { display: inline-flex; align-items: center; gap: .45rem; padding: 0 .4rem; font-weight: 900; color: var(--ink-brand); }
.sauces legend em { font-style: normal; font-weight: 800; color: #1B7F46; }
.sauces__hint { margin: 0 0 .6rem; font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.sauces__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.sauce { display: flex; align-items: center; gap: .5rem; padding: .5rem .65rem; border: 1.5px solid var(--line); border-radius: 12px; font-size: .88rem; font-weight: 800; color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s; }
.sauce input { width: 1.05rem; height: 1.05rem; flex: none; }
.sauce:has(input:checked) { background: #FFF1CF; border-color: var(--flame); }
.sauce:has(input:focus-visible) { outline: 3px solid var(--flame); outline-offset: 2px; }
.line--gift { background: #EAF7EF; border-radius: 14px; padding-left: .7rem; padding-right: .7rem; }
.line--gift .line__name { color: #1B7F46; }
.gift-chip { display: inline-flex; align-items: center; gap: .3rem; margin-top: .35rem; padding: .15rem .55rem; border-radius: 999px; background: #EAF7EF; border: 1px solid #A8DDBD; color: #1B7F46; font-size: .72rem; font-weight: 900; }
.gift-chip.is-off { background: #F3EDE7; border-color: var(--line); color: var(--ink-soft); }
.gift-banner { margin: 0; padding: .55rem 1rem; text-align: center; background: #1B7F46; color: #fff; font-weight: 800; font-size: .92rem; }
@media (min-width: 1024px) { .wa-float { right: auto; left: 1.25rem; } }
