/* ==========================================================================
   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
   ========================================================================== */
/* El cielo: clima-fx.js cambia --sk1/2/3 según la hora y el clima; el cambio es gradual */
@property --sk1 { syntax: '<color>'; inherits: false; initial-value: #FFD684; }
@property --sk2 { syntax: '<color>'; inherits: false; initial-value: #FEC768; }
@property --sk3 { syntax: '<color>'; inherits: false; initial-value: #FEC768; }
.site-header {
  position: relative; background: linear-gradient(180deg, var(--sk1), var(--sk2) 55%, var(--sk3)); color: var(--ink-brand);
  transition: --sk1 1.6s ease, --sk2 1.6s ease, --sk3 1.6s ease, color .6s ease;
}
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }
.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; } }

/* Aviso rápido "¿Quieres quitar algo?" */
.ask__actions { display: grid; gap: .6rem; }
.ask .xset { margin-top: .25rem; }

/* ==========================================================================
   CLIMA EN VIVO SOBRE EL ENCABEZADO (js/clima-fx.js)
   ========================================================================== */
.wxfx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.wxfx[hidden] { display: none; }
.site-header > .topbar, .site-header > .mx-auto { position: relative; z-index: 1; }      /* los textos van por encima del clima */
.topbar__btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; }
@media (hover: hover) { .topbar__btn:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; } }

/* ==========================================================================
   EL LEONCITO Y EL CLIMA (js/chase.js + js/clima-fx.js)
   Las clases wx-* las pone clima-fx.js en el encabezado según el clima de Penco.
   ========================================================================== */
.chase .actor.is-on { pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.actor--bfly { width: 28px; height: 22px; }

/* --- accesorios del leoncito (solo se ven con el clima que corresponde) --- */
.actor--lion .acc, .actor--lion .dizzy, .actor--lion .eye-closed { display: none; }
.wx-rain .actor--lion .acc-umbrella { display: block; }
.wx-sunny .actor--lion .acc-glasses, .wx-hot .actor--lion .acc-glasses { display: block; }
.wx-cold .actor--lion .acc-scarf, .wx-snow .actor--lion .acc-scarf { display: block; }
.wx-night .actor--lion .acc-light { display: block; }
.wx-hot .actor--lion.is-run .sweat { display: block; animation: chase-sweat .8s linear infinite; }
.wx-hot .actor--lion.is-run .mouth-open { display: block; }
.wx-hot .actor--lion.is-run .mouth-closed { display: none; }

/* --- viento: la melena ondea, la cola y la bufanda vuelan, el paraguas se mece --- */
.actor--lion .mane .m { transform-box: view-box; transform-origin: 47px 20px; }
.wx-wind .actor--lion .mane .m { animation: mane-wave .38s ease-in-out infinite alternate; animation-delay: var(--d); }
.wx-gale .actor--lion .mane .m { animation: mane-gale .22s ease-in-out infinite alternate; animation-delay: var(--d); }
.wx-wind .actor--lion .tail, .wx-wind .actor--lion .tuft { transform-box: view-box; transform-origin: 14px 30px; animation: tail-flap .3s ease-in-out infinite alternate; }
.wx-wind .actor--lion .scarf-tail { transform-box: view-box; transform-origin: 37px 29.5px; animation: scarf-flap .25s ease-in-out infinite alternate; }
.wx-wind .actor--lion .canopy { transform-box: view-box; transform-origin: 36px 10px; animation: umb-rock .42s ease-in-out infinite alternate; }
.wx-gale .actor--lion .canopy { animation-duration: .24s; }
@keyframes mane-wave { from { transform: rotate(-6deg) translateX(-.5px); } to { transform: rotate(8deg) translateX(.8px); } }
@keyframes mane-gale { from { transform: rotate(-11deg) translateX(-1.1px); } to { transform: rotate(14deg) translateX(1.5px); } }
@keyframes tail-flap { from { transform: rotate(-9deg); } to { transform: rotate(13deg); } }
@keyframes scarf-flap { from { transform: rotate(-12deg); } to { transform: rotate(16deg); } }
@keyframes umb-rock { from { transform: rotate(-5deg); } to { transform: rotate(7deg); } }

/* --- frío: tiritar --- */
.wx-cold .actor--lion .lion-head { animation: shiver .1s linear infinite alternate; }
.wx-cold .actor--lion.is-eat .lion-head { animation: chase-nom .32s ease-in-out infinite alternate; }
@keyframes shiver { from { transform: translateX(-.7px); } to { transform: translateX(.7px) rotate(.8deg); } }

/* --- tormenta: se asusta con cada trueno --- */
.actor--lion.is-startle .mane .m { animation: none; transform: scale(1.28); transition: transform .08s; }
.actor--lion.is-startle .lion-head { animation: shiver .07s linear infinite alternate; }
.actor--lion.is-startle .mouth-open { display: block; }
.actor--lion.is-startle .mouth-closed { display: none; }

/* --- se sacude como perro mojado --- */
.actor--lion.is-shake .flip svg { animation: dog-shake .09s linear infinite alternate; transform-origin: 50% 85%; }
@keyframes dog-shake { from { transform: rotate(-7deg) translateX(-1.5px); } to { transform: rotate(7deg) translateX(1.5px); } }

/* --- resbalón con la cáscara de plátano --- */
.actor--lion.is-slip .flip svg { animation: chase-slip 1s ease-out both; transform-origin: 50% 62%; }
@keyframes chase-slip { 0% { transform: rotate(0); } 45% { transform: rotate(-210deg) translateY(-4px); } 100% { transform: rotate(-360deg); } }
.actor--lion.is-dizzy .dizzy { display: block; animation: dizzy-spin .9s linear infinite; transform-box: view-box; transform-origin: 47px 6px; }
@keyframes dizzy-spin { to { transform: rotate(360deg); } }
.banana { position: absolute; z-index: 1; width: 34px; height: 20px; pointer-events: none; }
.banana svg { display: block; width: 100%; height: 100%; }
.banana[hidden] { display: none; }
.banana.is-gone { opacity: 0; transform: translateY(-12px) rotate(40deg); transition: opacity .6s .2s, transform .6s .2s; }

/* --- mariposa: lo deja bizco --- */
.actor--bfly .wing-l, .actor--bfly .wing-in { transform-box: fill-box; transform-origin: 100% 50%; animation: bf-flap .14s ease-in-out infinite alternate; }
@keyframes bf-flap { from { transform: scaleX(1); } to { transform: scaleX(.22); } }
.actor--lion.is-cross .pupil { transform: translate(2.6px, 1px); }

/* --- siesta: se echa a dormir con "Zzz" --- */
.actor--lion.is-sleep .bob { animation: breathe 2.2s ease-in-out infinite; transform-origin: 50% 100%; }
.actor--lion.is-sleep .leg { display: none; }
.actor--lion.is-sleep .lion-head { transform: rotate(16deg) translate(1px, 3px); transform-origin: 47px 28px; transform-box: view-box; }
.actor--lion.is-sleep .eye-open, .actor--lion.is-yawn .eye-open { display: none; }
.actor--lion.is-sleep .eye-closed, .actor--lion.is-yawn .eye-closed { display: block; }
.actor--lion.is-sleep .sweat { display: none; }
.actor--lion.is-yawn .mouth-open { display: block; }
.actor--lion.is-yawn .mouth-closed { display: none; }
.actor--lion.is-yawn .lion-head { animation: yawn-head .6s ease-in-out infinite alternate; transform-box: view-box; transform-origin: 47px 28px; }
@keyframes breathe { from { transform: translateY(5px) scaleY(.84); } to { transform: translateY(4px) scaleY(.9); } }
@keyframes yawn-head { from { transform: rotate(-4deg); } to { transform: rotate(6deg) translateY(-1px); } }
.chase__zzz { position: absolute; left: 52%; top: -18px; display: none; font: 900 .85rem/1 Nunito, system-ui, sans-serif; color: var(--ink-brand); pointer-events: none; }
.chase__zzz.on { display: block; }
.chase__zzz i { display: inline-block; font-style: normal; margin-left: 1px; animation: zzz 1.8s ease-in-out infinite; }
.chase__zzz i:nth-child(1) { animation-delay: .3s; font-size: 1.05em; }
.chase__zzz i:nth-child(2) { animation-delay: .7s; font-size: 1.3em; }
@keyframes zzz { 0% { transform: translateY(2px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-9px); opacity: 0; } }

/* --- rugido (al tocar al leoncito) --- */
.chase__roar { position: absolute; top: -26px; padding: .12rem .6rem; border: 2px solid var(--ink-brand); border-radius: 999px; background: #E4501A; color: #fff; font: 900 .85rem/1.2 Nunito, system-ui, sans-serif; white-space: nowrap; opacity: 0; transform: scale(.6); transition: opacity .1s, transform .12s; pointer-events: none; }
.chase__roar.on { opacity: 1; transform: none; }
.actor--lion.is-roar .mouth-open { display: block; }
.actor--lion.is-roar .mouth-closed { display: none; }
.actor--lion.is-roar .flip svg { animation: roar-pop .45s ease-out; transform-origin: 50% 100%; }
@keyframes roar-pop { 0% { transform: scale(1); } 30% { transform: scale(1.22, .9); } 60% { transform: scale(.94, 1.12); } 100% { transform: scale(1); } }
.roar-ring { position: absolute; z-index: 3; width: 20px; height: 20px; border: 3px solid rgba(228, 80, 26, .75); border-radius: 50%; transform: translate(-50%, 50%) scale(.3); animation: roar-ring .6s ease-out forwards; pointer-events: none; }
@keyframes roar-ring { to { transform: translate(-50%, 50%) scale(5); opacity: 0; } }
.site-header.is-roaring .brand__mark { animation: logo-roar .5s ease-in-out; }
@keyframes logo-roar { 0%, 100% { transform: none; } 20% { transform: rotate(-7deg) scale(1.06); } 45% { transform: rotate(6deg) scale(1.04); } 70% { transform: rotate(-3deg); } }

/* --- el auto toca bocina --- */
.actor--car.is-honk .flip svg { animation: honk .35s ease-out; transform-origin: 50% 100%; }
@keyframes honk { 30% { transform: translateY(-6px) scale(1.04, .96); } }

/* --- comidas nuevas: helado (con calor) y chocolate caliente (con frío) --- */
.actor--prey[data-kind="helado"] .prey--helado, .actor--prey[data-kind="taza"] .prey--taza { display: block; }
.prey--helado .melt { transform-box: fill-box; transform-origin: 50% 0; animation: melt 1.1s ease-in-out infinite alternate; }
@keyframes melt { from { transform: scaleY(.6); } to { transform: scaleY(1.5) translateY(1px); } }
.prey--taza .steam path { transform-box: fill-box; animation: steam 1.5s ease-in-out infinite; }
.prey--taza .steam path:nth-child(2) { animation-delay: .4s; }
.prey--taza .steam path:nth-child(3) { animation-delay: .8s; }
@keyframes steam { 0% { transform: translateY(2px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(-5px); opacity: 0; } }

/* ==========================================================================
   20 SITUACIONES MÁS DEL LEONCITO: poses, accesorios y utilería (js/chase.js)
   ========================================================================== */
.actor--lion.has-hat .acc-hat { display: block; }
.actor--lion.has-umbrella .acc-umbrella { display: block; }
.actor--lion.no-umbrella .acc-umbrella { display: none !important; }

/* utilería (pelota, globo, paraguas…) */
.prop { position: absolute; left: 0; bottom: -1px; z-index: 2; pointer-events: none; }
.prop svg { display: block; width: 100%; height: 100%; overflow: visible; }
.prop--scale svg { transform-origin: 50% 100%; transform: scale(var(--s, 1)); }
.prop--pop svg { animation: prop-pop .45s cubic-bezier(.22, 1, .36, 1); transform-origin: 50% 100%; }
@keyframes prop-pop { from { transform: scale(.2); } to { transform: scale(1); } }
.prop .fw { transform-box: fill-box; transform-origin: 50% 100%; animation: fly-wing .05s linear infinite alternate; }
@keyframes fly-wing { from { transform: scaleY(1); } to { transform: scaleY(.3); } }
.prop .bwing { transform-box: fill-box; transform-origin: 20% 80%; animation: bird-wing .2s ease-in-out infinite alternate; }
@keyframes bird-wing { from { transform: rotate(-20deg); } to { transform: rotate(24deg); } }
.kite-line { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

/* pompas de jabón */
.bubble { position: absolute; z-index: 2; border-radius: 50%; border: 1.5px solid rgba(110, 170, 240, .85); background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, .95), rgba(190, 225, 255, .25) 60%, rgba(255, 170, 220, .2)); pointer-events: none; animation: bubble-rise 3.4s ease-out forwards; }
@keyframes bubble-rise { 0% { transform: translate(0, 0) scale(.6); opacity: .95; } 50% { opacity: .95; } 100% { transform: translate(var(--dx, 40px), -120px) scale(1.15); opacity: 0; } }

/* poses nuevas */
.actor--lion.is-sit .flip svg { transform-origin: 28% 100%; transform: rotate(-17deg) translateY(2px); }
.actor--lion.is-sit .leg-b { display: none; }
.actor--lion.is-look .lion-head { transform: rotate(-22deg); transform-origin: 47px 28px; transform-box: view-box; }
.actor--lion.is-look .pupil { transform: translate(.7px, -1.1px); }
.actor--lion.is-howl .flip svg { transform-origin: 28% 100%; transform: rotate(-17deg) translateY(2px); }
.actor--lion.is-howl .lion-head { transform: rotate(-34deg); transform-origin: 47px 28px; transform-box: view-box; }
.actor--lion.is-howl .mouth-open { display: block; }
.actor--lion.is-howl .mouth-closed { display: none; }
.actor--lion.is-howl .eye-open { display: none; }
.actor--lion.is-howl .eye-closed { display: block; }
.actor--lion.is-dance .flip svg { animation: dance .46s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.actor--lion.is-dance .mouth-open { display: block; }
.actor--lion.is-dance .mouth-closed { display: none; }
@keyframes dance { from { transform: rotate(-9deg) translateY(0); } to { transform: rotate(9deg) translateY(-3px); } }
.actor--lion.is-slide .flip svg { transform: rotate(7deg) scaleY(.76) translateY(4px); transform-origin: 50% 100%; }
.actor--lion.is-slide .leg { display: none; }
.actor--lion.is-slide .mouth-open { display: block; }
.actor--lion.is-slide .mouth-closed { display: none; }
.actor--lion.is-happy .eye-open { display: none; }
.actor--lion.is-happy .eye-closed { display: block; }
.actor--lion.is-happy .mouth-open { display: block; }
.actor--lion.is-happy .mouth-closed { display: none; }
.actor--lion.is-swat .flip svg { animation: swat .22s ease-in-out 3; transform-origin: 40% 100%; }
@keyframes swat { 0% { transform: rotate(0); } 50% { transform: rotate(-10deg) translateX(3px); } 100% { transform: rotate(0); } }
.actor--lion.is-annoyed .lion-head { animation: shiver .09s linear infinite alternate; }
.actor--lion.is-annoyed .sweat { display: block; }

/* De noche el cielo es oscuro: los textos del encabezado pasan a tonos claros para que se lean */
.wx-night .brand__tag, .wx-night #store-ref { color: var(--sun); }
.wx-night .chip-btn { border-color: var(--sun); color: var(--sun); }
.wx-night .chip-btn:hover { background: var(--sun); color: var(--ink-brand); }
.wx-night .brand__mark { filter: drop-shadow(0 0 14px rgba(255, 214, 132, .35)) drop-shadow(0 8px 10px rgba(0, 0, 0, .35)); }

/* ==========================================================================
   FIESTAS DEL AÑO (js/fiestas.js): Patrias, Halloween, Navidad y Año Nuevo
   ========================================================================== */
.fiesta { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: clip; }
.fi-item { position: absolute; }
.fi-item svg { display: block; overflow: visible; }
.fi-g { transform: translateX(-50%) scale(var(--s, 1)); transform-origin: 50% 100%; }
.topbar__fiesta { font-weight: 900; color: #fff; letter-spacing: .01em; }

/* Halloween */
.pk-face { fill: #7A2A0A; }
.wx-night .pk-face, .wx-dusk .pk-face, .prop--pumpkin.is-lit .pk-face { fill: #FFD23F; }
.wx-night .fi-pumpkin svg, .wx-dusk .fi-pumpkin svg, .prop--pumpkin.is-lit svg { filter: drop-shadow(0 0 7px rgba(255, 170, 30, .85)); }
.fi-ghost { left: 66%; top: calc(var(--tb, 28px) + 38px); opacity: .88; animation: fi-hover 3.4s ease-in-out infinite alternate; }
@keyframes fi-hover { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-10px) rotate(4deg); } }
.fi-fly { left: 0; top: var(--top); animation: fi-fly var(--dur) linear var(--delay) infinite; }
.fi-fly svg { animation: fi-bob 2.4s ease-in-out infinite alternate; }
@keyframes fi-fly { from { transform: translateX(-60px); } to { transform: translateX(calc(100vw + 80px)); } }
@keyframes fi-bob { from { transform: translateY(0); } to { transform: translateY(var(--bob, 14px)); } }
.fi-bat .bw { transform-box: fill-box; transform-origin: 100% 60%; animation: fi-wing .2s ease-in-out infinite alternate; }
.fi-bat .bw2 { transform-origin: 0% 60%; }
@keyframes fi-wing { from { transform: scaleY(1); } to { transform: scaleY(.35); } }
.fi-spider { left: 7%; top: calc(var(--tb, 28px) + 44px); transform-origin: 50% -40px; animation: fi-swing 3.2s ease-in-out infinite alternate; }
.fi-spider::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1.4px; height: 42px; background: rgba(255, 255, 255, .75); }
@keyframes fi-swing { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
.fi-web { position: absolute; top: var(--tb, 28px); width: 84px; height: 84px; }
.fi-web--l { left: 0; }

/* Navidad y Patrias: la cuerda de luces o banderines */
.fi-string { position: absolute; left: 0; right: 0; top: var(--tb, 28px); }
.fi-string svg { display: block; }
.bulb { animation: fi-blink 1.4s ease-in-out infinite alternate; }
.bulb.b1 { animation-delay: -.35s; } .bulb.b2 { animation-delay: -.7s; } .bulb.b3 { animation-delay: -1.05s; }
@keyframes fi-blink { from { opacity: 1; } to { opacity: .3; } }
.fi-sleigh { left: 0; top: calc(var(--tb, 28px) + 40px); animation: fi-sleigh 70s linear 6s infinite; }
@keyframes fi-sleigh { 0% { transform: translateX(calc(100vw + 40px)); } 20% { transform: translateX(-130px); } 100% { transform: translateX(-130px); } }
.fi-kite { left: var(--l); top: calc(var(--tb, 28px) + var(--t)); transform-origin: 50% 0; animation: fi-sway 4s ease-in-out var(--delay) infinite alternate; }
@keyframes fi-sway { from { transform: rotate(calc(var(--rot) * -1)) translateY(0); } to { transform: rotate(var(--rot)) translateY(7px); } }

/* Año Nuevo: globos que suben */
.fi-glob { position: absolute; left: var(--l); bottom: -30px; width: 15px; height: 19px; border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%; background: var(--c); border: 1.6px solid var(--ink-brand); opacity: .9; animation: fi-rise 9s linear var(--d) infinite; }
@keyframes fi-rise { from { transform: translate(0, 0); } 50% { transform: translate(10px, -170px); } to { transform: translate(-6px, -340px); } }

/* sombreros del leoncito */
.fi-halloween .actor--lion .acc-witch, .fi-navidad .actor--lion .acc-santa, .fi-patrias .actor--lion .acc-chupalla, .fi-anonuevo .actor--lion .acc-hat { display: block; }
.prop--sleigh svg, .prop--ghost svg { overflow: visible; }

@media (max-width: 639.98px) { .fi-sm { display: none; } .fi-web { width: 56px; height: 56px; } .fi-ghost { left: 74%; } }
@media (prefers-reduced-motion: reduce) {
  .fi-fly, .fi-sleigh, .fi-glob { display: none; }
  .bulb, .fi-kite, .fi-spider, .fi-ghost, .fi-fly svg { animation: none; }
}

/* ==========================================================================
   MINIJUEGOS EN LA FRANJA DEL LEONCITO (js/juegos.js y js/juegos-core.js)
   ========================================================================== */
.site-header > .mx-auto { transition: padding-bottom .4s var(--ease); }
.site-header.is-gaming > .mx-auto.max-w-7xl { padding-bottom: 10.5rem; }                 /* la franja de juego: 168 px */
.is-gaming .chase { display: none; }
body.is-gaming .game-cta { display: none; }
.is-gaming .actor--lion .acc-umbrella, .is-gaming .actor--lion .acc-light { display: none; }

.notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .45rem 1rem; }
.notice__msgs { flex: 1 1 18rem; min-width: 0; }
.notice__msgs:empty { display: none; }
.game-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: 0 1.1rem; flex: none;
  border-radius: 999px; border: 2px solid var(--sun); background: var(--sun); color: var(--ink-brand); font: 900 .92rem Nunito, system-ui, sans-serif;
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .6); cursor: pointer; transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.game-cta:active { transform: scale(.97); }
@media (hover: hover) { .game-cta:hover { background: #fff; border-color: #fff; } }
.game-cta:disabled { opacity: .7; cursor: progress; }
@media (max-width: 639.98px) { .notice__msgs { flex-basis: 100%; } .game-cta { width: 100%; max-width: 22rem; } }

.game { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: clip; }
.game[hidden] { display: none; }
.game .actor { pointer-events: none; }
.game__lane { position: absolute; left: 0; right: 0; bottom: 0; height: 168px; pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; -webkit-tap-highlight-color: transparent; outline: none; }
.game__lane:focus-visible { outline: 3px solid var(--ink-brand); outline-offset: -3px; border-radius: 12px; }
.game__obj { position: absolute; left: 0; bottom: -1px; pointer-events: none; will-change: transform; }
.game__obj svg { display: block; width: 100%; height: 100%; overflow: visible; }
.game--paused .actor, .game--paused .actor * { animation-play-state: paused !important; }
.game .is-blink .flip { animation: game-blink .24s steps(2, end) infinite; }
@keyframes game-blink { 50% { opacity: .25; } }

.game__hud { position: absolute; right: 10px; bottom: 126px; z-index: 2; display: flex; align-items: center; gap: .35rem; pointer-events: auto; }
.game__hud[hidden], .game__panel[hidden], .game__say[hidden], .game__lives[hidden] { display: none; }
.game__chip { padding: .2rem .7rem; border-radius: 999px; border: 2px solid var(--ink-brand); background: rgba(255, 255, 255, .94); color: var(--ink-brand); font: 900 .95rem/1.3 Nunito, system-ui, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.game__best { font-size: .8rem; }
.game__lives { color: #D9272E; letter-spacing: .08em; }
.game__lives small { color: var(--ink-brand); font-size: .8rem; letter-spacing: 0; }
.game__off { opacity: .25; }
.game__btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink-brand); background: #fff; color: var(--ink-brand); font-size: 1rem; line-height: 1; cursor: pointer; }
@media (pointer: coarse) { .game__btn { width: 44px; height: 44px; } }
@media (max-width: 479.98px) { .game__best { display: none; } .game__hud { right: 6px; gap: .25rem; } }

.game__panel { position: absolute; left: 50%; bottom: 44px; z-index: 3; transform: translateX(-50%); width: min(94%, 470px); padding: .65rem .9rem .75rem; border-radius: 20px; border: 3px solid var(--ink-brand); background: #fff; color: var(--ink); text-align: center; box-shadow: 0 14px 30px -12px rgba(30, 14, 8, .6); pointer-events: auto; animation: game-pop .22s var(--ease); }
@keyframes game-pop { from { opacity: 0; transform: translateX(-50%) translateY(8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.game__title { margin: 0; font: 400 1.3rem/1.15 'Lilita One', system-ui, sans-serif; color: var(--ink-brand); }
.game__text { margin: .2rem 0 .5rem; font-weight: 800; font-size: .88rem; line-height: 1.3; }
.game__text kbd { padding: 0 .35rem; border-radius: 6px; border: 1.5px solid var(--ink-brand); background: #FFF1C9; font: 900 .8rem Nunito, system-ui, sans-serif; }
.game__row { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: .45rem; }
.game__big { flex: 1 1 140px; min-height: 44px; padding: .4rem .7rem; border-radius: 14px; border: 2px solid var(--ink-brand); background: #FFF1C9; color: var(--ink-brand); font: 900 .95rem/1.2 Nunito, system-ui, sans-serif; cursor: pointer; transition: transform .15s var(--ease), background-color .15s var(--ease); }
.game__big small { display: block; font-weight: 800; font-size: .74rem; opacity: .8; }
.game__big--go { background: var(--sun-deep); }
.game__big:active { transform: scale(.97); }
@media (hover: hover) { .game__big:hover { background: var(--sun); } }
.game__link { margin: .35rem 0 0; padding: .25rem .6rem; min-height: 32px; border: 0; background: none; color: var(--ink-brand); font: 800 .85rem Nunito, system-ui, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.game__row .game__link { margin: 0; align-self: center; }
.game__say { position: absolute; z-index: 2; transform: translate(-50%, 0); padding: .1rem .55rem; border-radius: 999px; border: 1.5px solid var(--ink-brand); background: #fff; color: var(--ink-brand); font: 900 .78rem/1.4 Nunito, system-ui, sans-serif; white-space: nowrap; pointer-events: none; }
.game__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 479.98px) { .site-header.is-gaming > .mx-auto.max-w-7xl { padding-bottom: 11.4rem; } .game__lane { height: 182px; } .game__hud { bottom: 140px; } .game__big small { display: none; } .game__panel { bottom: 42px; padding: .5rem .6rem .6rem; } .game__title { font-size: 1.15rem; } .game__text { font-size: .8rem; margin-bottom: .3rem; } }
@media (prefers-reduced-motion: reduce) { .site-header > .mx-auto { transition: none; } .game__panel { animation: none; } }

/* Pilla al auto: turbo, tomates y la comida del camino */
.game .is-turbo .flip { filter: drop-shadow(0 0 7px #FFD23F) drop-shadow(0 0 3px #FFD23F); }
.game .is-slowed .flip { filter: sepia(.35) saturate(2.4) hue-rotate(-22deg) brightness(.92); }
.game__pick.actor { pointer-events: none; }
.game__shot { z-index: 1; }

/* Juego 3 · Invasión OVNI: arena alta dentro del encabezado */
.site-header { --arena: 300px; }
@media (max-width: 639.98px) { .site-header { --arena: 280px; } }
.site-header.is-gaming--tall > .mx-auto.max-w-7xl { padding-bottom: calc(var(--arena) + 6px); }
.is-gaming--tall .game__lane { height: var(--arena); }
.is-gaming--tall .game__hud { bottom: calc(var(--arena) - 50px); flex-wrap: wrap; justify-content: flex-end; max-width: calc(100% - 12px); }
.is-gaming--tall .game__panel { bottom: 44px; }
.game__arena { position: absolute; left: 0; right: 0; bottom: 0; height: var(--arena); pointer-events: none; will-change: transform; }
.game__arena > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.game__arena .actor { pointer-events: none; }
.g3i { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; }
.g3i svg { display: block; width: 100%; height: 100%; overflow: visible; }
.g3i .actor { position: absolute; }
.g3-ufo { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; }
.g3-ufo svg { display: block; width: 100%; height: 100%; overflow: visible; }
.g3-ufo .lt { animation: g3-lt .5s steps(2, end) infinite; }
.g3-ufo .lt2 { animation-delay: -.25s; }
@keyframes g3-lt { 50% { opacity: .25; } }
.g3-ufo.is-tele-good .dome { filter: drop-shadow(0 0 8px #6BFF9A); }
.g3-ufo.is-tele-bad .dome { filter: drop-shadow(0 0 9px #FF3B3B); }
.g3-ufo.is-boss svg { filter: hue-rotate(255deg) saturate(1.5) drop-shadow(0 0 10px rgba(255, 60, 60, .55)); }
.g3-ufo.is-hit svg { filter: brightness(2.2); }
.game__big--new b::after { content: " NUEVO"; margin-left: .3rem; padding: 0 .35rem; border-radius: 999px; background: #D9272E; color: #fff; font-size: .62rem; letter-spacing: .04em; vertical-align: middle; }
.game__pw { color: var(--ink-brand); }

/* La zona de juegos: tarjetas de los siete juegos */
.site-header { --lane: 168px; }
@media (max-width: 639.98px) { .site-header { --lane: 182px; } }
.game__arena--lane { height: var(--lane); }
.site-header.is-gaming--hub > .mx-auto.max-w-7xl { padding-bottom: 16.8rem; }
@media (max-width: 639.98px) { .site-header.is-gaming--hub > .mx-auto.max-w-7xl { padding-bottom: 17.4rem; } }
.is-gaming--hub .game__lane { height: 16.8rem; }
.game__panel--hub { width: min(98%, 1180px); bottom: 10px; padding: .5rem .6rem .45rem; }
.game__panel--hub .game__title small { display: inline-block; margin-left: .4rem; font: 800 .75rem Nunito, system-ui, sans-serif; color: var(--ink); opacity: .75; }
.game__cards { display: flex; gap: .5rem; margin: .4rem 0 .15rem; padding: .25rem .15rem .4rem; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.game__card {
  position: relative; flex: 1 0 128px; min-width: 128px; max-width: 170px; display: flex; flex-direction: column; align-items: flex-start; gap: .05rem; padding: .5rem .55rem .45rem; border-radius: 16px;
  border: 2.5px solid var(--ink-brand); background: linear-gradient(155deg, var(--c1), var(--c2)); color: var(--ink-brand); text-align: left; cursor: pointer; scroll-snap-align: start;
  box-shadow: 0 5px 0 -1px rgba(89, 27, 14, .85); transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.game__card.is-light { color: #fff; }
.game__card.is-light b, .game__card.is-light small, .game__card.is-light em { text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.game__card__ico { font-size: 1.7rem; line-height: 1.1; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .25)); }
.game__card b { font: 900 .88rem/1.15 Nunito, system-ui, sans-serif; }
.game__card small { font: 800 .72rem/1.2 Nunito, system-ui, sans-serif; opacity: .92; min-height: 1.75rem; }
.game__card em { margin-top: .15rem; padding: .02rem .45rem; border-radius: 999px; background: rgba(255, 255, 255, .85); color: var(--ink-brand); font: 900 .7rem/1.5 Nunito, system-ui, sans-serif; font-style: normal; text-shadow: none; }
.game__card.is-light em { text-shadow: none; }
.game__card:active { transform: translateY(3px) scale(.98); box-shadow: 0 2px 0 -1px rgba(89, 27, 14, .85); }
@media (hover: hover) { .game__card:hover { transform: translateY(-3px); box-shadow: 0 8px 0 -1px rgba(89, 27, 14, .85); } }
.game__card:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.game__new { position: absolute; top: -8px; right: 6px; padding: .02rem .4rem; border-radius: 999px; background: #D9272E; color: #fff; font: 900 .58rem/1.5 Nunito, system-ui, sans-serif; font-style: normal; letter-spacing: .05em; border: 1.5px solid var(--ink-brand); }
@media (min-width: 1000px) { .game__card { flex: 1 1 0; } }

/* Juego 5 · Simón Salvaje */
.g5 { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .35rem; padding: 0 0 34px; }
.g5__msg { position: absolute; top: 6px; left: 3%; max-width: 52%; min-height: 1.6rem; padding: 0 .9rem; border-radius: 999px; background: rgba(255, 255, 255, .92); border: 2px solid var(--ink-brand); color: var(--ink-brand); font: 900 .95rem/1.7 Nunito, system-ui, sans-serif; text-align: center; opacity: 0; transition: opacity .2s; order: -1; }
.g5__msg.is-on:not(:empty) { opacity: 1; }
.g5__pads { display: flex; gap: clamp(6px, 1.6vw, 14px); width: min(94%, 560px); }
.g5__pad {
  position: relative; flex: 1; aspect-ratio: 1.12; max-height: 90px; padding: 0; border-radius: 18px; border: 3px solid var(--ink-brand); cursor: pointer; pointer-events: none;
  background: linear-gradient(165deg, var(--c), color-mix(in srgb, var(--c) 70%, #000)); box-shadow: 0 6px 0 -1px rgba(89, 27, 14, .85), inset 0 3px 0 rgba(255, 255, 255, .3);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), background .12s;
}
.g5.is-input .g5__pad { box-shadow: 0 6px 0 -1px rgba(89, 27, 14, .85), inset 0 3px 0 rgba(255, 255, 255, .3), 0 0 0 3px rgba(255, 255, 255, .55); }
.g5__pad.is-lit { background: radial-gradient(circle at 50% 40%, #fff, var(--g)); transform: translateY(4px) scale(1.06); box-shadow: 0 2px 0 -1px rgba(89, 27, 14, .85), 0 0 26px 6px var(--g); }
.g5__pad:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.g5__key { position: absolute; top: 3px; left: 7px; font: 900 .72rem/1 Nunito, system-ui, sans-serif; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 1px rgba(0, 0, 0, .5); }
.g5__pad .actor { position: absolute; inset: auto; left: 50%; top: 52%; width: 66%; height: 66%; transform: translate(-50%, -50%); }
.g5__pad .actor .flip { display: block; width: 100%; height: 100%; }
.g5 .g5__lion { pointer-events: none; }

/* Juego 6 · Chef Rebanadas */
.g6i, .g6h { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; }
.g6i svg, .g6h svg { display: block; width: 100%; height: 100%; overflow: visible; }
.g6i .actor, .g6h .actor { position: absolute; inset: 0; left: 0; bottom: auto; width: 100%; height: 100%; }
.g6i .actor .flip, .g6h .actor .flip { width: 100%; height: 100%; }
.g6i.is-bomb svg { filter: drop-shadow(0 0 7px rgba(255, 60, 40, .85)); }
.g6i.is-gold svg { filter: drop-shadow(0 0 10px #FFD23F) drop-shadow(0 0 4px #fff); animation: g6-pulse .5s ease-in-out infinite alternate; }
@keyframes g6-pulse { from { transform: scale(1); } to { transform: scale(1.12); } }
.g6spark { animation: g3-lt .25s steps(2, end) infinite; }

/* Juego 7 · Pedido relámpago */
.g7__time { position: absolute; left: 8px; right: 8px; top: 4px; height: 8px; border-radius: 6px; background: rgba(89, 27, 14, .25); border: 1.5px solid var(--ink-brand); overflow: hidden; }
.g7__time i { display: block; height: 100%; background: linear-gradient(90deg, #6BBF3B, #FFD23F); transition: width .15s linear; }
.g7__time i.is-low { background: linear-gradient(90deg, #E4251F, #FF8A3D); animation: g7-flash .4s steps(2, end) infinite; }
@keyframes g7-flash { 50% { opacity: .55; } }
.g7__ticket { position: absolute; left: 8px; top: 18px; padding: .35rem .5rem .45rem; background: #FFFDF5; border: 2.5px solid var(--ink-brand); border-radius: 8px; box-shadow: 0 5px 0 -1px rgba(89, 27, 14, .8); color: var(--ink-brand); }
.g7__ticket::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: -3px; height: 3px; background: repeating-linear-gradient(90deg, var(--ink-brand) 0 5px, transparent 5px 9px); opacity: .0; }
.g7__tkt-h { margin: 0 0 .15rem; padding-bottom: .15rem; border-bottom: 2px dashed rgba(89, 27, 14, .45); font: 900 .72rem/1.2 Nunito, system-ui, sans-serif; letter-spacing: .08em; text-align: center; }
.g7__rows { margin: 0; padding: 0; list-style: none; display: grid; gap: .05rem; }
.g7__rows li { display: flex; align-items: center; gap: .35rem; font: 900 1rem/1.3 Nunito, system-ui, sans-serif; }
.g7__rows li span { font-size: 1.25rem; }
.g7__rows li.is-done { opacity: .4; text-decoration: line-through; }
.g7__rows li.is-pop { animation: g7-pop .28s var(--ease); }
@keyframes g7-pop { 40% { transform: scale(1.18); } }
.g7__ticket.is-new { animation: g7-in .35s var(--ease); }
@keyframes g7-in { from { transform: translateY(-14px) rotate(-3deg); opacity: 0; } }
.g7__ticket.is-ok { background: #E6FFD0; }
.g7__belt { position: absolute; bottom: 22px; height: 26px; border-radius: 13px 0 0 13px; border: 2.5px solid #14141A; background: repeating-linear-gradient(90deg, #3C3C48 0 14px, #2A2A34 14px 28px); animation: g7-belt var(--bs, .9s) linear infinite; box-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
@keyframes g7-belt { to { background-position: 28px 0; } }
.g7i { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; }
.g7i .actor { position: absolute; inset: 0; left: 0; bottom: auto; width: 100%; height: 100%; }
.g7i .actor .flip { width: 100%; height: 100%; }
.g7i.is-wrong { filter: drop-shadow(0 0 7px #FF3B3B) saturate(1.6); }
.g7__msg { position: absolute; left: calc((100% + 150px) / 2); top: 50px; transform: translateX(-50%); padding: 0 .8rem; border-radius: 999px; background: #fff; border: 2px solid var(--ink-brand); color: var(--ink-brand); font: 900 .88rem/1.7 Nunito, system-ui, sans-serif; white-space: nowrap; pointer-events: none; }

/* Marcador compacto en pantallas chicas (que no se parta en dos filas) */
@media (max-width: 479.98px) {
  .game__btn { width: 36px; height: 36px; font-size: .9rem; }
  .game__chip { padding: .1rem .5rem; font-size: .8rem; }
  .game__hud { gap: .2rem; }
  .is-gaming--tall .game__hud { flex-wrap: nowrap; }
}

/* Arena "xl": la franja de siempre más una fila arriba para el marcador (Simón y Pedido) */
.site-header { --arena-xl: calc(var(--lane) + 52px); }
.site-header.is-gaming--xl > .mx-auto.max-w-7xl { padding-bottom: calc(var(--arena-xl) + 6px); }
.is-gaming--xl .game__lane { height: var(--arena-xl); }
.game__arena--xl { height: var(--arena-xl); }
.is-gaming--xl .game__hud { bottom: calc(var(--arena-xl) - 46px); }
.is-gaming--xl .game__panel { bottom: 44px; }
.game__arena--xl.g5 { padding-bottom: 34px; }
.g5.game__arena--xl .g5__msg { top: 52px; left: 50%; transform: translateX(-50%); max-width: 94%; white-space: nowrap; }
.g7.game__arena--xl .g7__time { top: 50px; }
.g7.game__arena--xl .g7__ticket { top: 62px; }
.g7.game__arena--xl .g7__msg { top: 76px; }

/* ==========================================================================
   Modo pantalla completa (celulares y pantallas chicas): el juego ocupa toda la pantalla
   ========================================================================== */
html.game-lock, html.game-lock body { overflow: hidden; overscroll-behavior: none; }
.game__floor { display: none; position: absolute; left: 0; bottom: -1px; width: 100%; height: 28px; pointer-events: none; }
.game__fx { display: none; }
.game--full {
  position: fixed; inset: 0; z-index: 75; width: 100%; height: 100dvh; overflow: hidden;
  background: linear-gradient(180deg, var(--gs1, #FFD684), var(--gs2, #FEC768) 55%, var(--gs3, #FEC768));
}
.game--full .game__floor { display: block; }
.game--full .game__fx { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.game--full .game__lane, .game--full .game__arena, .game--full .game__arena--lane, .game--full .game__arena--xl { height: 100%; }
.game--full .game__hud, .is-gaming--tall .game--full .game__hud, .is-gaming--xl .game--full .game__hud {
  top: calc(8px + env(safe-area-inset-top, 0px)); bottom: auto; right: 8px; left: 8px; max-width: none; flex-wrap: wrap; justify-content: flex-end; z-index: 6;
}
.game--full .game__panel, .game--full .game__panel--hub {
  top: 50%; bottom: auto; width: min(94%, 540px); max-height: 88%; overflow-y: auto; transform: translate(-50%, -50%); animation: game-pop-c .22s var(--ease); z-index: 7;
}
@keyframes game-pop-c { from { opacity: 0; transform: translate(-50%, -46%); } to { opacity: 1; transform: translate(-50%, -50%); } }
.game--full .game__title { font-size: 1.45rem; }
.game--full .game__text { font-size: .98rem; }
.game--full .game__big { min-height: 48px; font-size: 1.02rem; }
.game--full .game__cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; max-height: 62dvh; overflow-y: auto; scroll-snap-type: none; padding: .4rem .2rem .5rem; }
.game--full .game__card { max-width: none; min-width: 0; flex: none; min-height: 112px; }
@media (min-aspect-ratio: 3/2) { .game--full .game__cards { grid-template-columns: repeat(4, 1fr); max-height: 58dvh; } .game--full .game__card { min-height: 98px; } }
.game__tip { margin: .1rem 0 .4rem; padding: .35rem .6rem; border-radius: 12px; background: #FFF1C9; border: 2px dashed var(--ink-brand); color: var(--ink-brand); font: 800 .82rem/1.3 Nunito, system-ui, sans-serif; text-align: center; }
.game--full .g5 { justify-content: center; padding-bottom: 60px; }
.game--full .g5__pads { width: min(96%, 640px); }
.game--full .g5__pad { max-height: 170px; }
.game--full .g5.game__arena--xl .g5__msg { top: 64px; }
.game--full .g7.game__arena--xl .g7__time { top: 56px; }
.game--full .g7.game__arena--xl .g7__ticket { top: 70px; }
.game--full .g7.game__arena--xl .g7__msg { top: 84px; }
.game--full .game__say { z-index: 6; }

/* en pantalla completa el encabezado de atrás no se agranda; la cinta del pedido lleva patas */
html.game-lock .site-header.is-gaming > .mx-auto.max-w-7xl { padding-bottom: 4.5rem; }
.g7__belt::after { content: ""; position: absolute; left: 14px; right: 6px; top: 100%; height: var(--bb, 18px); background: repeating-linear-gradient(90deg, rgba(60, 40, 40, .85) 0 7px, transparent 7px 70px); pointer-events: none; }

.game__floorfill { display: none; position: absolute; left: 0; right: 0; bottom: 0; height: var(--floor-lift, 0px); background: repeating-linear-gradient(135deg, #FFF1C9 0 14px, #FFE6A6 14px 28px); pointer-events: none; }
.game__floorfill[data-hint]:not([data-hint=""])::after { content: attr(data-hint); position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); padding: .5rem 1rem; border-radius: 999px; border: 3px solid var(--ink-brand); background: #fff; color: var(--ink-brand); font: 900 1rem/1.2 Nunito, system-ui, sans-serif; white-space: nowrap; box-shadow: 0 5px 0 -1px rgba(89, 27, 14, .85); }
.game--full .game__floorfill { display: block; }
.game--full .game__floor { bottom: calc(var(--floor-lift, 0px) - 1px); }
.game--full::before { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(70px 24px at 18% 16%, rgba(255, 255, 255, .5), transparent 72%), radial-gradient(90px 28px at 74% 27%, rgba(255, 255, 255, .42), transparent 72%),
  radial-gradient(80px 26px at 36% 46%, rgba(255, 255, 255, .34), transparent 72%), radial-gradient(70px 22px at 82% 58%, rgba(255, 255, 255, .3), transparent 72%); }

@media (max-height: 520px) {
  .game--full .game__card small { display: none; }
  .game--full .game__card { min-height: 74px; padding: .35rem .5rem .3rem; }
  .game--full .game__card__ico { font-size: 1.25rem; }
  .game--full .game__title { font-size: 1.1rem; }
  .game--full .game__cards { max-height: 64dvh; }
  .game--full .game__panel { max-height: 94%; padding: .45rem .7rem .55rem; }
  .game--full .game__big { min-height: 42px; }
}

/* Agotado y página congelada (se controlan desde el panel) */
.card.is-soldout .card__img img { filter: grayscale(1); opacity: .5; }
.btn-add.is-soldout { background: #EEE8E3; color: #7B6A64; border-color: transparent; cursor: not-allowed; }
.btn-add.is-soldout:hover, .btn-add.is-soldout:active { background: #EEE8E3; transform: none; }
.frozen-banner { position: sticky; top: 0; z-index: 80; padding: .75rem 1rem; background: #B3261E; color: #fff; text-align: center; font-weight: 900; letter-spacing: .04em; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
body.is-frozen .btn-add, body.is-frozen .btn-primary { opacity: .55; }
