/* ==========================================================================
   LA PICÁ DEL FEÑA · Estilos propios (Tailwind aporta utilidades; aquí vive la marca)
   Paleta cálida por defecto (ámbar, tinta café y naranja llama): cámbiala en :root y en tailwind.config.js.
   Superficies claras #F9FAFB / #FFF.
   ========================================================================== */
:root {
  --ink: #21090F;
  --ink-brand: #3A1410;
  --ink-soft: #7A4A3A;
  --line: rgba(58, 20, 16, .14);
  --sun: #FDE40D;
  --sun-deep: #FFB81D;
  --flame: #D4000B;
  --flame-hover: #A80008;
  --page: #F9FAFB;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);              /* ease-out fuerte para UI */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);      /* movimiento en pantalla */
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);       /* cajones y hojas inferiores (tipo iOS) */
  --spring: cubic-bezier(0.23, 1, 0.32, 1);            /* respaldo si el navegador no entiende linear() */
  --spring-soft: linear(0, 0.18 8%, 0.62 20%, 0.95 32%, 1.06 44%, 1.04 56%, 0.99 70%, 1.005 84%, 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(58, 20, 16, .35) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(58, 20, 16, .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: #FBDF1F; color: var(--ink-brand); }   /* mismo amarillo del fondo del video del logo */
.site-header__wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 28px; display: block; }
.site-header > .topbar, .site-header > .mx-auto { position: relative; z-index: 1; }      /* los textos van por encima de la decoración de las fiestas */

.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: inherit; }
.brand__mark { width: 112px; height: 112px; 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: #F1040E; -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: 100px; height: 100px; } .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 { position: relative; 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-current="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 .22s var(--ease), box-shadow .22s var(--ease);
  animation: rise .5s var(--ease) backwards; 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); } }
.card[data-wait] { animation-play-state: paused; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } 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 .3s 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(58, 20, 16, .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(58, 20, 16, .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(212, 0, 11, .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(58, 20, 16, .35); background: #FFFBE0; }

/* ==========================================================================
   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(33, 9, 15, .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 .3s var(--ease-drawer), visibility 0s .3s;
  }
  .cart.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease-drawer), 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: 150px; height: 150px; }
}

/* ==========================================================================
   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; }
/* Entrada 260ms, salida 180ms (más rápida: el sistema responde). Hoja inferior en celular, ver más abajo. */
.checkout { opacity: 0; transform: translateY(12px) scale(.97); transition: opacity .18s var(--ease), transform .18s var(--ease), overlay .18s allow-discrete, display .18s allow-discrete; }
.checkout[open] { opacity: 1; transform: none; transition: opacity .22s var(--ease), transform .26s var(--ease), overlay .26s allow-discrete, display .26s allow-discrete; }
@starting-style { .checkout[open] { opacity: 0; transform: translateY(12px) scale(.97); } }
.checkout::backdrop { background: rgba(33, 9, 15, 0); transition: background-color .18s var(--ease), overlay .18s allow-discrete, display .18s allow-discrete; }
.checkout[open]::backdrop { background: rgba(33, 9, 15, .6); transition-duration: .26s; }
@starting-style { .checkout[open]::backdrop { background: rgba(33, 9, 15, 0); } }
.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(58, 20, 16, .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; opacity: 1; transform: translateY(100%); transition: transform .24s var(--ease-drawer), overlay .24s allow-discrete, display .24s allow-discrete; }
  .checkout[open] { transform: none; transition: transform .4s var(--ease-drawer), overlay .4s allow-discrete, display .4s allow-discrete; }
  @starting-style { .checkout[open] { opacity: 1; transform: translateY(100%); } }
  .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(58, 20, 16, .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(58, 20, 16, .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(212, 0, 11, .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: #FFF6B8; 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(58, 20, 16, .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: #FFFBE0; 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 del local)
   ========================================================================== */
.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 { opacity: 0; transform: scale(.95); transition: opacity .16s var(--ease), transform .16s var(--ease), overlay .16s allow-discrete, display .16s allow-discrete; }
.lightbox[open] { opacity: 1; transform: none; transition-duration: .24s; }
@starting-style { .lightbox[open] { opacity: 0; transform: scale(.95); } }
.lightbox::backdrop { background: rgba(33, 9, 15, 0); transition: background-color .16s var(--ease), overlay .16s allow-discrete, display .16s allow-discrete; }
.lightbox[open]::backdrop { background: rgba(33, 9, 15, .86); transition-duration: .24s; }
@starting-style { .lightbox[open]::backdrop { background: rgba(33, 9, 15, 0); } }
.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(253, 228, 13, .35); min-height: 320px; background: #21090F; }
.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(253, 228, 13, .3); background: rgba(253, 228, 13, .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(253, 228, 13, .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(253, 228, 13, .18); } .loc-btn--main:hover { background: #FFEA6B; } }
.site-footer { border-top: 1px solid rgba(253, 228, 13, .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: #FFF6C2; 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; }

/* ==========================================================================
   FECHAS ESPECIALES (js/fiestas.js): decoración del encabezado según la fecha de Chile
   Solo se animan transform y opacity. Lo que dice "side" se oculta en pantallas angostas (ahí el logo ocupa todo el ancho).
   ========================================================================== */
.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%; }
.fi-sky { left: var(--x); top: calc(var(--tb, 28px) + var(--y, 0px)); transform: translateX(-50%); rotate: var(--rot, 0deg); }
.topbar__fiesta { font-weight: 900; color: #fff; letter-spacing: .01em; }
@media (max-width: 999.98px) { .fi-side { display: none; } }
@media (max-width: 639.98px) { .fi-sm { display: none; } }

/* Movimientos sueltos (se aplican al dibujo de adentro, para no pisar la posición) */
.fi-bob svg { animation: fi-hover var(--dur, 3.4s) ease-in-out var(--delay, 0s) infinite alternate; }
@keyframes fi-hover { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-10px) rotate(4deg); } }
.fi-twinkle svg { animation: fi-tw 1.8s ease-in-out var(--delay, 0s) infinite alternate; }
@keyframes fi-tw { from { opacity: 1; transform: scale(1); } to { opacity: .3; transform: scale(.7); } }
.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; } }

/* Halloween */
.pk-face { fill: #FFD23F; }
.fi-pumpkin svg { filter: drop-shadow(0 0 5px rgba(255, 170, 30, .55)); }
.fi-moon svg { filter: drop-shadow(0 0 10px rgba(255, 246, 214, .9)); }
.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-sky.fi-spider { top: calc(var(--tb, 28px) + var(--len, 60px)); transform-origin: 50% calc(var(--len, 60px) * -1); animation: fi-swing 3.2s ease-in-out var(--delay, 0s) infinite alternate; }
.fi-spider::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1.4px; height: var(--len, 60px); background: rgba(255, 255, 255, .8); }
@keyframes fi-swing { from { rotate: -7deg; } to { rotate: 7deg; } }
.fi-sky.fi-web { left: 0; top: var(--tb, 28px); transform: none; }
.fi-sky.fi-web--r { left: auto; right: 0; scale: -1 1; }
@media (max-width: 639.98px) { .fi-web { width: 56px !important; height: 56px !important; } }

/* Navidad, Patrias y San Valentín: la cuerda de luces, banderines o corazones */
.fi-string { position: absolute; left: 0; right: 0; top: var(--tb, 28px); }
.fi-string svg { display: block; }
.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 svg { transform-origin: 50% 0; animation: fi-sway 4s ease-in-out var(--delay, 0s) infinite alternate; }
.fi-kite:not(.fi-sky) { left: var(--l); top: calc(var(--tb, 28px) + var(--t)); }
@keyframes fi-sway { from { transform: rotate(calc(var(--rot, 8deg) * -1)) translateY(0); } to { transform: rotate(var(--rot, 8deg)) translateY(7px); } }
.fi-flake { position: absolute; left: var(--l); top: -10px; width: var(--sz); height: var(--sz); border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(58, 20, 16, .22); opacity: .92; animation: fi-fall var(--dur, 7s) linear var(--d, 0s) infinite; }
@keyframes fi-fall { from { transform: translate(0, 0); } to { transform: translate(var(--dx, 0px), calc(var(--hh, 340px) + 20px)); } }

/* Año Nuevo, San Valentín, Día de la Madre y del Niño: globos y corazones que suben */
.fi-rise { position: absolute; left: var(--l); bottom: -34px; animation: fi-rise var(--dur, 9s) linear var(--d, 0s) infinite; }
@keyframes fi-rise { from { transform: translate(0, 0); } 50% { transform: translate(10px, calc(var(--hh, 340px) * -.5)); } to { transform: translate(-6px, calc(var(--hh, 340px) * -1 - 40px)); } }
.fi-glob { display: block; 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: .92; }
.fi-hrt { display: block; width: var(--sz, 20px); height: calc(var(--sz, 20px) * .92); opacity: .92; }
.fi-hrt svg { display: block; }
.fi-burst svg { transform-origin: 50% 50%; animation: fi-burst 2.6s ease-out var(--delay, 0s) infinite; }
@keyframes fi-burst { 0% { transform: scale(.15); opacity: 0; } 12% { opacity: 1; } 100% { transform: scale(1); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .fi-fly, .fi-sleigh, .fi-rise, .fi-flake { display: none; }
  .bulb, .fi-kite svg, .fi-sky.fi-spider, .fi-bob svg, .fi-twinkle svg, .fi-burst svg { animation: none; }
}

/* ==========================================================================
   MOVIMIENTO (js/motion.js): entrada de la cabecera, foto que vuela al pedido, logo que sigue el mouse
   ========================================================================== */
/* Entrada de la cabecera: se ve una sola vez por visita. Sin fill forwards: el logo después responde al mouse. */
@keyframes brand-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes mark-in { from { opacity: 0; transform: scale(.78) rotate(-8deg); } to { opacity: 1; transform: none; } }
.brand__mark { animation: mark-in .7s var(--spring) backwards; animation-timing-function: var(--spring-soft); }
.brand__name { animation: brand-in .5s var(--ease) .08s backwards; }
.brand__sub { animation: brand-in .5s var(--ease) .16s backwards; }
.brand__tag { animation: brand-in .5s var(--ease) .24s backwards; }
.site-header .status { animation: brand-in .5s var(--ease) .24s backwards; }
.site-header .chip-btn:nth-child(1) { animation: brand-in .5s var(--ease) .30s backwards; }
.site-header .chip-btn:nth-child(2) { animation: brand-in .5s var(--ease) .36s backwards; }
.brand__mark.is-tilting { will-change: transform; }

/* La foto del producto vuela hacia el pedido: X, Y y escala en capas separadas para que la trayectoria sea una curva */
.fly, .fly__y { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; }
.fly__y { position: static; }
.fly__in { width: 64px; height: 64px; overflow: hidden; border-radius: 18px; border: 2px solid var(--ink-brand); background: var(--sun); box-shadow: var(--shadow-pop); transform-origin: 50% 50%; }
.fly__in img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fly__in.is-fallback img { object-fit: contain; padding: 10%; }
.brand__mark.chew { animation: chew .55s var(--ease); }   /* la mordida pisa la entrada (misma especificidad, va después) */

/* ==========================================================================
   MENÚ LATERAL DE CATEGORÍAS + TARJETAS EN FILA + BUSCADOR
   Solo se animan transform y opacity: el indicador se desliza con translateY y el resto cambia con opacity/color.
   ========================================================================== */
.sidenav { display: none; }
@media (min-width: 1280px) {
  .catbar { display: none; }                                    /* el menú lateral reemplaza a las pastillas */
  .menu-sec { scroll-margin-top: 1rem; }
  .cart { top: 1rem; max-height: calc(100dvh - 2rem); }
  .sidenav {
    display: flex; flex-direction: column; position: sticky; top: 1rem; align-self: start; max-height: calc(100dvh - 2rem);
    padding: 1.1rem .8rem .9rem; border-radius: 26px; background: var(--ink-brand); color: #FFF3D0; box-shadow: var(--shadow-card);
  }
}
.menu-sec { scroll-margin-top: 4.75rem; }
.sidenav__title { margin: 0; padding: 0 .75rem .7rem; font-family: 'Lilita One', system-ui, sans-serif; font-size: 1.35rem; line-height: 1; color: var(--sun); }
.sidenav__list { position: relative; display: grid; gap: 4px; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.sidenav__list::-webkit-scrollbar { display: none; }
.sidenav__ind {
  position: absolute; left: 0; top: 0; width: 100%; height: 48px; border-radius: 16px; background: var(--sun);
  box-shadow: 0 8px 16px -10px rgba(0, 0, 0, .6); transition: transform .26s var(--ease-in-out); pointer-events: none;
}
.sidenav__item {
  position: relative; z-index: 1; display: flex; align-items: center; gap: .65rem; height: 48px; padding: 0 .75rem; border: 0; border-radius: 16px;
  background: transparent; color: inherit; font: inherit; font-weight: 800; font-size: .98rem; text-align: left; cursor: pointer;
  transition: color .16s ease, transform .12s var(--ease);
}
.sidenav__item::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 16px; background: rgba(253, 228, 13, .14); opacity: 0; transition: opacity .16s ease; }
.sidenav__item:active { transform: scale(.98); }
.sidenav__item[aria-current="true"] { color: var(--ink-brand); }
.sidenav__item:disabled { opacity: .35; cursor: default; }
.sidenav__item:focus-visible { outline-color: var(--sun); outline-offset: -3px; }
.sidenav__item[aria-current="true"]:focus-visible { outline-color: var(--flame); }
.sidenav__emoji { display: inline-block; flex: none; width: 1.6rem; font-size: 1.3rem; line-height: 1; text-align: center; transition: transform .2s var(--ease); }
.sidenav__name { flex: 1; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.12; font-size: .94rem; }
.sidenav__count { flex: none; font-size: .8rem; font-weight: 800; opacity: .6; }
.sidenav__badge { flex: none; display: grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; border-radius: 999px; background: var(--flame); color: #fff; font-size: .78rem; font-weight: 900; }
.sidenav__badge[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) {
  .sidenav__item:not(:disabled):not([aria-current="true"]):hover::before { opacity: 1; }
  .sidenav__item:not(:disabled):hover .sidenav__emoji { transform: rotate(-8deg) scale(1.15); }
}
.sidenav__foot { margin-top: .85rem; padding: .85rem .75rem 0; border-top: 1px dashed rgba(253, 228, 13, .3); }
.sidenav__hours { margin: 0 0 .6rem; font-size: .85rem; font-weight: 800; }
.sidenav__wa { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; border-radius: 14px; background: #1FA855; color: #fff; font-weight: 900; font-size: .92rem; text-decoration: none; transition: transform .12s var(--ease), background-color .16s ease; }
.sidenav__wa:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .sidenav__wa:hover { background: #178544; } }

/* Buscador */
.menusearch { display: flex; align-items: center; gap: .55rem; margin-bottom: 1.25rem; padding: 0 .5rem 0 1rem; min-height: 52px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; box-shadow: var(--shadow-card); color: var(--ink-soft); transition: border-color .16s ease; }
.menusearch:focus-within { border-color: var(--flame); box-shadow: 0 0 0 4px rgba(212, 0, 11, .14); }
.menusearch input { flex: 1; min-width: 0; padding: .6rem 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1rem; font-weight: 700; }
.menusearch input::placeholder { color: #9A7B6E; font-weight: 600; }
.menusearch input::-webkit-search-cancel-button { display: none; }
.no-anim .card { animation: none; }

/* Secciones y tarjetas en fila (foto a la izquierda): se ve mejor con el logo de relleno y deja más productos a la vista */
.section-title { padding-bottom: .55rem; border-bottom: 2px dashed var(--line); }
.section-title__emoji { font-size: 1.5rem; line-height: 1; }
.card { flex-direction: row; border-radius: 20px; }
.card__img { flex: none; width: 128px; min-height: 128px; aspect-ratio: auto; }
.card__tag { left: .5rem; top: .5rem; padding: .1rem .55rem; font-size: .75rem; }
.card__body { min-width: 0; padding: .85rem 1rem .9rem; gap: .25rem; }
.card__name { font-size: 1.08rem; }
.card__desc { font-size: .86rem; -webkit-line-clamp: 2; }
.card__foot { padding-top: .5rem; }
.card__price { font-size: 1.4rem; }
.card__action { min-width: 0; }
@media (max-width: 639.98px) { .card__img { width: 112px; min-height: 112px; } }

/* "Ver todo": separado del resto de la carta; el título de cada sección entra con la lista */
.sidenav__item--all { margin-bottom: 6px; }
.sidenav__item--all::after { content: ''; position: absolute; left: .75rem; right: .75rem; bottom: -6px; border-bottom: 1px dashed rgba(253, 228, 13, .28); }
.menu-sec .section-title { animation: rise .4s var(--ease) backwards; }
.no-anim .section-title { animation: none; }

/* ==========================================================================
   LOGO ANIMADO AL CARGAR LA PÁGINA (js/motion.js): el video aparece sobre el logo, y al terminar vuelve el logo de siempre.
   Solo se anima opacity. El video se muestra recién cuando empieza a reproducirse, y su borde se difumina.
   ========================================================================== */
.brand__logo { position: relative; display: block; flex: none; }
.brand__mark { transition: opacity .4s var(--ease); }
.brand__video {
  position: absolute; left: 50%; top: 50%; width: 123%; aspect-ratio: 920 / 720; height: auto; transform: translate(-50%, -50%);
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); background: transparent;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent), linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent), radial-gradient(ellipse 72% 72% at 50% 50%, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in, source-in;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent), linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent), radial-gradient(ellipse 72% 72% at 50% 50%, #000 70%, transparent 100%);
  mask-composite: intersect, intersect;
}
.brand__logo.is-intro .brand__video { opacity: 1; transition-duration: .12s; transition-timing-function: linear; }
.brand__logo.is-intro .brand__mark { opacity: 0; transition-duration: .12s; transition-timing-function: linear; }

/* ==========================================================================
   CABECERA CENTRADA: logo y nombre al medio, estado del local bajo la hora, dirección centrada
   ========================================================================== */
.head-main { text-align: center; }
.brand { justify-content: center; }
.brand__text { justify-items: center; text-align: center; }
.brand__sub { justify-self: center; margin-top: .5rem; padding: .18rem 1.1rem .26rem 1.45rem; font-size: clamp(1.4rem, 5.2vw, 2.25rem); letter-spacing: .28em; line-height: 1.1; }
.brand__tag { margin-top: .75rem; }
.addr { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .55rem .9rem; }
.addr__ref { margin: 0; font-size: .98rem; font-weight: 800; }
.addr__ref[hidden] { display: none; }

/* ==========================================================================
   FONDO DE LA CABECERA SEGÚN LA FECHA (js/fiestas.js pone data-theme en el encabezado)
   Cielo en degradado + luz amarilla detrás del logo (así el video del logo y el logo quieto se funden con cualquier fondo).
   ========================================================================== */
.brand__logo { isolation: isolate; }
.site-header[data-theme] .brand__logo::before {
  content: ''; position: absolute; left: 50%; top: 50%; z-index: -1; width: 168%; aspect-ratio: 920 / 720; transform: translate(-50%, -50%);
  border-radius: 46%; background: #FBDF1F; filter: blur(22px); opacity: .92;
}
.site-header[data-theme="halloween"]  { background: linear-gradient(180deg, #160933 0%, #3E1766 34%, #8A2F7E 64%, #F2672B 100%); --hd-text: #FFF3D0; --hd-name: #FFA42B; --hd-hover: var(--ink-brand); }
.site-header[data-theme="navidad"]    { background: linear-gradient(180deg, #0B1F4D 0%, #1F4C93 48%, #7FB2E6 100%); --hd-text: #FFFFFF; --hd-name: #FFD23F; --hd-hover: var(--ink-brand); }
.site-header[data-theme="anonuevo"]   { background: linear-gradient(180deg, #0D0B2E 0%, #2B1A63 52%, #7A2F9E 100%); --hd-text: #FFFFFF; --hd-name: #FFD23F; --hd-hover: var(--ink-brand); }
.site-header[data-theme="patrias"]    { background: linear-gradient(180deg, #5FB4F0 0%, #A9DAF7 56%, #FFE9A8 100%); }
.site-header[data-theme="sanvalentin"] { background: linear-gradient(180deg, #FFB3C7 0%, #FFD5DF 56%, #FFE9A8 100%); }
.site-header[data-theme="madre"]      { background: linear-gradient(180deg, #FFC2D6 0%, #FFE0B8 60%, #FFF1B0 100%); }
.site-header[data-theme="padre"]      { background: linear-gradient(180deg, #6FA2E0 0%, #B9D3F2 56%, #FFE9A8 100%); }
.site-header[data-theme="nino"]       { background: linear-gradient(180deg, #4FC3F7 0%, #B3E5FC 60%, #FFF3A6 100%); }
.site-header[data-theme] .brand__name { color: var(--hd-name, #F1040E); }
.site-header[data-theme] .brand__tag, .site-header[data-theme] .addr__ref { color: var(--hd-text, var(--ink-brand)); }
.site-header[data-theme] .chip-btn { border-color: var(--hd-text, var(--ink-brand)); color: var(--hd-text, var(--ink-brand)); }
.site-header[data-theme] .chip-btn:hover { background: var(--hd-text, var(--ink-brand)); color: var(--hd-hover, var(--sun)); }

/* Ambiente: capa debajo de la ola */
.fi-atmo { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: clip; }
.fi-star { position: absolute; width: var(--sz); height: var(--sz); border-radius: 50%; background: var(--c); animation: fi-tw2 var(--dur) ease-in-out var(--delay) infinite alternate; }
@keyframes fi-tw2 { from { opacity: .2; } to { opacity: 1; } }
.fi-fog { position: absolute; left: 0; top: var(--top); width: var(--w); height: 130px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(255, 232, 255, .36), rgba(255, 232, 255, 0) 70%); animation: fi-drift var(--dur) ease-in-out var(--delay) infinite alternate; }
@keyframes fi-drift { from { transform: translateX(-16vw); } to { transform: translateX(34vw); } }
.fi-ember { position: absolute; left: var(--l); bottom: 6%; width: var(--sz); height: var(--sz); border-radius: 50%; background: #FFB347; box-shadow: 0 0 6px 2px rgba(255, 150, 40, .7); opacity: 0; animation: fi-ember var(--dur) ease-out var(--d) infinite; }
@keyframes fi-ember { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: .95; } 100% { opacity: 0; transform: translate(var(--dx), calc(var(--hh, 340px) * -.8)); } }
.fi-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 58%, transparent 46%, rgba(10, 0, 25, .5) 100%); }
.fi-flash { position: absolute; inset: 0; background: radial-gradient(circle at 72% 18%, rgba(255, 255, 255, .8), rgba(190, 150, 255, .28) 55%, transparent 82%); opacity: 0; animation: fi-flash 17s linear 5s infinite; }
@keyframes fi-flash { 0%, 5%, 100% { opacity: 0; } 1% { opacity: .85; } 1.8% { opacity: .1; } 2.6% { opacity: .6; } }
.fi-cloud { position: absolute; left: 0; top: var(--top); width: calc(120px * var(--s, 1)); opacity: .95; animation: fi-cloud var(--dur) linear var(--d) infinite; }
.fi-cloud svg { display: block; width: 100%; height: auto; }
@keyframes fi-cloud { from { transform: translateX(-180px); } to { transform: translateX(calc(100vw + 40px)); } }
.fi-ridge { position: absolute; left: 0; bottom: 0; width: 100%; height: 110px; display: block; }
@media (prefers-reduced-motion: reduce) {
  .fi-star, .fi-fog, .fi-flash { animation: none; }
  .fi-ember { display: none; }
  .fi-cloud { animation: none; left: var(--l); }
}

/* Logo más grande (el video, el brillo y la sombra se miden en % del logo, así que crecen juntos) */
.brand__mark { width: 160px; height: 160px; }
@media (min-width: 480px) { .brand__mark { width: 184px; height: 184px; } }
@media (min-width: 640px) { .brand__mark { width: 216px; height: 216px; } }
@media (min-width: 1024px) { .brand__mark { width: 256px; height: 256px; } }

/* Resplandor pegado al logo: apenas un aro de luz alrededor, no un halo grande */
.site-header[data-theme] .brand__logo::before { width: 113%; aspect-ratio: 1; border-radius: 50%; filter: blur(8px); opacity: 1; }


/* ==========================================================================
   DIRECCIÓN AL LADO DE LA HORA (barra de arriba)
   ========================================================================== */
.topbar__group { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem 1.1rem; min-width: 0; }
.topbar__addr { color: inherit; text-decoration: none; transition: color .15s ease; }
.topbar__addr .ico { flex: none; }
.topbar__ref::before { content: "·"; margin: 0 .4rem; opacity: .7; }
.topbar__ref:empty, .topbar__ref[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { .topbar__addr:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; } }

/* ==========================================================================
   EL AUTITO DE DELIVERY Y SU PERSECUCIÓN (js/fiestas.js)
   El recorrido va por WAAPI (solo transform); acá solo los saltitos, las ruedas y las piernas.
   ========================================================================== */
.fi-chase { position: absolute; inset: 0; pointer-events: none; }
.fi-run { position: absolute; left: 0; bottom: 0; transform-origin: 50% 100%; will-change: transform; }
.fi-hop { width: 100%; height: 100%; transform-origin: 50% 100%; animation: fi-hop var(--hd, 340ms) ease-in-out var(--hdl, 0ms) infinite alternate; }
.fi-hop svg { display: block; overflow: visible; }
.fi-car .fi-hop { --ha: -2px; --hr: 0deg; }
.fi-float .fi-hop { --ha: -11px; --hr: 5deg; }
@keyframes fi-hop { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(var(--ha, -6px)) rotate(var(--hr, 6deg)); } }
.wh { transform-box: fill-box; transform-origin: 50% 50%; animation: fi-spin .34s linear infinite; }
@keyframes fi-spin { to { transform: rotate(360deg); } }
.sl { animation: fi-sl .22s linear infinite alternate; }
@keyframes fi-sl { from { opacity: .95; transform: translateX(0); } to { opacity: .25; transform: translateX(-5px); } }
.zl { transform-box: fill-box; transform-origin: 50% 0; animation: fi-leg .3s ease-in-out infinite alternate; }
.zl2 { animation-direction: alternate-reverse; }
@keyframes fi-leg { from { transform: rotate(-30deg); } to { transform: rotate(30deg); } }
.fi-run--specter svg { filter: drop-shadow(0 0 6px rgba(170, 255, 140, .75)); opacity: .92; }
.fi-run--ghost svg { opacity: .95; }
@media (prefers-reduced-motion: reduce) { .fi-chase { display: none; } }

/* En pantallas anchas: fecha y dirección a la izquierda, el saludo de la fiesta justo al centro, el clima a la derecha */
@media (min-width: 1100px) {
  .topbar__row { display: grid; grid-template-columns: 1fr auto 1fr; }
  .topbar__row .topbar__group { grid-column: 1; }
  .topbar__row #tb-fiesta { grid-column: 2; justify-self: center; }
  .topbar__row #tb-weather { grid-column: 3; justify-self: end; }
}

/* El video se desvanece en un óvalo más cerrado: así no se ven las esquinas de su cuadro aunque el resplandor sea chico */
.brand__video {
  -webkit-mask-image: radial-gradient(ellipse 58% 62% at 50% 50%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 58% 62% at 50% 50%, #000 60%, transparent 100%);
  -webkit-mask-composite: source-over; mask-composite: add;
}

/* Producto agotado (columna "agotado" = SI en la planilla): se ve, pero no se puede pedir */
.card.is-soldout .card__img img { filter: grayscale(1); opacity: .5; }
.card__tag--out { background: #7B2A24; color: #fff; }
.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; }

/* ==========================================================================
   PROMOS, DESTACADOS Y BANNER DE CATEGORÍA (afiches del local)
   ========================================================================== */
.zones { margin: 0; font-size: .85rem; font-weight: 800; color: var(--flame); }

/* Destacados: franja de fotos que lleva a cada categoría */
.highlights { padding-top: 1.1rem; }
.highlights__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
@media (min-width: 900px) { .highlights__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; } }
.hl { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; border: 0; padding: 0; border-radius: 20px; background: var(--ink-brand); color: #fff; text-align: left; cursor: pointer; font: inherit;
  box-shadow: var(--shadow-card); transition: transform .2s var(--ease), box-shadow .2s var(--ease); animation: rise .5s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 60ms); }
.hl:active { transform: scale(.98); }
@media (hover: hover) { .hl:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); } .hl:hover > img:not(.hl__logo) { transform: scale(1.06); } }
.hl > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.hl::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(33, 9, 15, 0) 35%, rgba(33, 9, 15, .85)); }
.hl__txt { position: absolute; left: .85rem; right: .85rem; bottom: .7rem; z-index: 1; display: grid; gap: .1rem; }
.hl__txt b { font-family: 'Lilita One', system-ui, sans-serif; font-weight: 400; font-size: 1.2rem; line-height: 1.05; }
.hl__txt span { font-size: .8rem; font-weight: 800; color: var(--sun); }
.hl--fire { background: radial-gradient(120% 90% at 85% 10%, #FF7A1A 0%, #F1040E 45%, #5A0508 100%); }
.hl__logo { inset: auto !important; right: .6rem; top: .5rem; width: 62% !important; height: auto !important; object-fit: contain !important; opacity: .95; }
@media (max-width: 899.98px) { .hl__txt b { font-size: 1.02rem; } .hl__txt span { font-size: .72rem; } }

/* Banner dentro de una categoría (ej.: cafetería) */
.catbanner { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; margin: 0 0 1rem; border-radius: 22px; background: var(--ink-brand); color: #fff; box-shadow: var(--shadow-card); }
.catbanner > img { width: 100%; height: 150px; object-fit: cover; display: block; }
.catbanner__txt { padding: .9rem 1.1rem 1.1rem; }
.catbanner__kicker { display: inline-block; margin: 0 0 .3rem; padding: .1rem .6rem; border-radius: 999px; background: var(--sun); color: var(--ink-brand); font-weight: 900; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.catbanner h3 { margin: 0; font-family: 'Lilita One', system-ui, sans-serif; font-weight: 400; font-size: 1.5rem; line-height: 1.05; }
.catbanner__txt p:last-child { margin: .3rem 0 0; font-size: .92rem; line-height: 1.4; color: #F3E6DF; }
@media (min-width: 640px) { .catbanner { grid-template-columns: 42% minmax(0, 1fr); } .catbanner > img { height: 100%; min-height: 150px; } .catbanner__txt { align-self: center; } }

/* Tarjeta de promo (combo) */
.card--promo { position: relative; flex-direction: column; gap: .7rem; padding: 1rem 1.1rem 1.05rem; border: 2px solid #F1040E; border-radius: 22px; color: #fff;
  background: radial-gradient(130% 90% at 100% 0%, #5A0508 0%, #2A0A0C 55%, #1A0709 100%); }
.card--promo.is-soldout { opacity: .7; }
.promo__head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.promo__kicker { margin: 0 0 .15rem; font-family: 'Lilita One', system-ui, sans-serif; font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sun); }
.card--promo .card__name { font-family: 'Lilita One', system-ui, sans-serif; font-weight: 400; font-size: 2rem; line-height: 1; letter-spacing: .01em; color: #fff; text-transform: uppercase; }
.promo__price { flex: none; display: grid; place-items: center; width: 5.6rem; height: 5.6rem; border-radius: 50%; background: var(--sun); color: #21090F; transform: rotate(-7deg); text-align: center; line-height: 1; }
.promo__price small { font-size: .62rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; margin-top: .55rem; }
.promo__price b { font-family: 'Lilita One', system-ui, sans-serif; font-weight: 400; font-size: 1.45rem; margin-bottom: .55rem; }
.promo__inc { list-style: none; margin: 0; padding: .65rem .75rem; display: grid; gap: .35rem; border-radius: 14px; background: rgba(255, 255, 255, .07); }
.promo__inc li { display: flex; gap: .55rem; align-items: center; font-size: .95rem; font-weight: 800; line-height: 1.25; }
.promo__inc li span { flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 10px; background: rgba(255, 255, 255, .12); font-size: 1.05rem; }
.promo__hint { margin: 0; font-size: .82rem; font-weight: 800; color: #F3E6DF; }
.card--promo .card__foot { padding-top: .1rem; }
.card--promo .btn-add { box-shadow: none; }
@media (max-width: 639.98px) {
  .card--promo .card__name { font-size: 1.6rem; }
  .promo__price { width: 4.9rem; height: 4.9rem; } .promo__price b { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { .hl, .hl > img { transition: none; animation: none; } }
.card--promo .card__foot { flex-wrap: nowrap; align-items: flex-end; }
.promo__hint { flex: 1; min-width: 0; line-height: 1.25; }
@media (max-width: 899.98px) { .hl { aspect-ratio: 4 / 3; } }

/* Ojos del personaje del logo: se abren cuando el mouse o el dedo se mueven y las pupilas siguen al puntero.
   Posiciones y tamaños en % de la imagen del logo (512 px), medidos sobre los ojos cerrados del dibujo. */
.eyes { position: absolute; inset: 0; pointer-events: none; transform-origin: 50% 85%; z-index: 2; }
.eye { position: absolute; width: 5.7%; height: 4%; margin: -2% 0 0 -2.85%; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.6px #2A1109, inset 0 -1px 0 rgba(42, 17, 9, .18);
  transform: rotate(13deg) scaleY(0); opacity: 0; overflow: hidden; transition: transform .16s cubic-bezier(.23, 1, .32, 1), opacity .1s linear; --ox: 0; --oy: 0; }
.eye--l { left: 48.5%; top: 19.7%; }
.eye--r { left: 55.2%; top: 21.2%; }
.eye i { position: absolute; width: 52%; height: 78%; left: calc(50% + var(--ox) * 1%); top: calc(50% + var(--oy) * 1%); transform: translate(-50%, -50%); border-radius: 50%; background: #2A1109;
  transition: left .09s linear, top .09s linear; }
.eye i::after { content: ""; position: absolute; width: 28%; height: 28%; left: 52%; top: 14%; border-radius: 50%; background: #fff; }
.eyes.is-open .eye { transform: rotate(13deg) scaleY(1); opacity: 1; }
.eyes:not(.is-open) .eye { transition-duration: .22s, .22s; transition-delay: 0s, .1s; }   /* al cerrar: parpadeo hacia abajo y recién ahí desaparece */
.brand__logo.is-intro .eyes { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .eyes { display: none; } }

/* Banner de categoría que es una imagen completa (ej.: almuerzos) */
.catbanner--full { display: block; background: none; box-shadow: var(--shadow-card); }
.catbanner--full > img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
@media (min-width: 640px) { .catbanner--full > img { aspect-ratio: 16 / 10; min-height: 0; height: auto; object-position: 50% 40%; } }

/* Total en vivo en la ventana de opciones y aderezos obligatorios */
.optotal { margin: .2rem 0 .1rem; padding: .75rem .9rem; border-radius: 16px; background: var(--sun-50, #FFFBE0); border: 1.5px solid #F2E27A; }
.optotal__t { margin: 0 0 .35rem; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); }
.optotal ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.optotal li { display: flex; justify-content: space-between; gap: .75rem; font-size: .95rem; font-weight: 700; }
.optotal li b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.optotal__sum { margin: .5rem 0 0; padding-top: .5rem; border-top: 1.5px dashed #E5D567; display: flex; justify-content: space-between; align-items: baseline; font-weight: 900; }
.optotal__sum b { font-family: 'Lilita One', system-ui, sans-serif; font-weight: 400; font-size: 1.6rem; line-height: 1; color: var(--flame); font-variant-numeric: tabular-nums; }
.sauce--none { flex-basis: 100%; }
.sauces.is-missing { outline: 2px solid var(--flame); outline-offset: 4px; border-radius: 14px; }

/* ==========================================================================
   HORA DEL DÍA (js/fiestas.js pone en el encabezado data-phase = dawn | day | dusk | night, y data-native = el cielo de origen de la fiesta)
   ========================================================================== */
.fi-stars { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s ease; }
.site-header[data-phase="night"] .fi-stars { opacity: 1; visibility: visible; }
.site-header[data-phase="dawn"] .fi-stars, .site-header[data-phase="dusk"] .fi-stars { opacity: .4; visibility: visible; }
.fi-orb { position: absolute; left: var(--ox, 88%); top: var(--oy, 16%); width: 104px; height: 104px; transform: translate(-50%, -50%); }
.fi-orb svg { position: absolute; inset: 0; width: 100%; height: 100%; display: none; overflow: visible; }
.site-header[data-phase="day"] .fi-orb { --ox: 82%; --oy: 20%; }
.site-header[data-phase="dawn"] .fi-orb { --ox: 64%; --oy: 74%; }
.site-header[data-phase="dusk"] .fi-orb { --ox: 90%; --oy: 72%; }
.site-header[data-phase="night"] .fi-orb { --ox: 88%; --oy: 16%; }
@media (max-width: 639.98px) {                                                           /* en el celular el logo ocupa el centro: el astro va a un costado */
  .site-header[data-phase="day"] .fi-orb { --ox: 84%; --oy: 16%; }
  .site-header[data-phase="dawn"] .fi-orb { --ox: 12%; --oy: 66%; }
  .site-header[data-phase="dusk"] .fi-orb { --ox: 88%; --oy: 66%; }
  .site-header[data-phase="night"] .fi-orb { --ox: 86%; --oy: 14%; }
}
.site-header:not([data-phase="night"]) .fi-orb__sun { display: block; }
.site-header[data-phase="night"] .fi-orb__moon { display: block; }
.site-header[data-phase="dawn"] .fi-orb__sun, .site-header[data-phase="dusk"] .fi-orb__sun { filter: hue-rotate(-14deg) saturate(1.3); }
.site-header[data-theme="halloween"] .fi-orb__moon { display: none; }                  /* la luna de Halloween ya está dibujada, con sus cráteres */
.site-header[data-theme="halloween"]:not([data-phase="night"]) .fi-moon { display: none; }
.site-header[data-phase="day"] :is(.fi-flash, .fi-vignette, .fi-ember) { display: none; }   /* relámpagos, sombras y brasas son de noche */
.site-header[data-native="day"][data-phase="night"] :is(.fi-ridge, .fi-cloud) { filter: brightness(.42) saturate(.7); }
.site-header[data-native="day"][data-phase="dusk"] :is(.fi-ridge, .fi-cloud) { filter: brightness(.76) sepia(.25); }
.site-header[data-native="day"][data-phase="dawn"] :is(.fi-ridge, .fi-cloud) { filter: brightness(.88) sepia(.15); }
@media (prefers-reduced-motion: reduce) { .fi-stars { transition: none; } }

/* ==========================================================================
   VIDA DE BARRIO (js/fiestas.js): videos de fondo en la cabecera, fundidos con el amarillo de la página
   ========================================================================== */
.fi-video { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%), linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%), linear-gradient(180deg, #000 55%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.fi-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; mix-blend-mode: multiply; filter: saturate(.9) contrast(.98) brightness(1.06); transition: opacity 1.4s ease; }
.fi-video video.is-on { opacity: .7; }
@media (max-width: 640px) { .fi-video { -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 100%); mask-image: linear-gradient(180deg, #000 50%, transparent 100%); } .fi-video video.is-on { opacity: .6; } .fi-video__tag { right: 14px; bottom: 30px; font-size: .62rem; } .fi-video__tag[data-pos="bl"] { left: 14px; } }
/* Texto fino en la esquina de abajo a la derecha */
.fi-video__tag { position: absolute; z-index: 1; right: 24px; bottom: 36px; margin: 0; transition: opacity .8s ease; font-weight: 300; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-brand); opacity: .85; text-shadow: 0 0 6px rgba(251, 223, 31, .9); pointer-events: none; }
.fi-video__tag.is-out { opacity: 0; }
.fi-video__tag[data-pos="bl"] { right: auto; left: 24px; }
.fi-video__tag[data-pos="tr"] { bottom: auto; top: calc(var(--tb, 28px) + 14px); }
.fi-video__tag[data-pos="bc"] { right: auto; left: 50%; transform: translateX(-50%); }
@media (prefers-reduced-motion: reduce) { .fi-video, .fi-video__tag { display: none; } }

/* ==========================================================================
   BOTÓN "AGREGAR" DE COLOR (js/app.js pone --cb y --cbt en cada tarjeta según su categoría): brillante y con relieve
   ========================================================================== */
.card[style*="--cb"] .btn-add:not(.is-soldout) {
  background: var(--cb); border-color: var(--cb);                 /* navegadores antiguos (sin color-mix): botón del color liso, con letra legible */
  background: linear-gradient(180deg, color-mix(in srgb, var(--cb) 62%, #fff) 0%, var(--cb) 50%, color-mix(in srgb, var(--cb) 84%, #000) 100%);
  color: var(--cbt); border-color: color-mix(in srgb, var(--cb) 62%, #000); overflow: hidden;
  text-shadow: 0 1px 0 color-mix(in srgb, var(--cb) 70%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(0, 0, 0, .14), 0 7px 14px -6px color-mix(in srgb, var(--cb) 75%, transparent);
}
.card[style*="--cb"] .btn-add:not(.is-soldout)::before { content: ""; position: absolute; left: 8%; right: 8%; top: 2px; height: 42%; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0)); pointer-events: none; }
.card[style*="--cb"] .btn-add:not(.is-soldout) > :is(span, svg) { position: relative; }
.card[style*="--cb"] .btn-add__n { background: var(--ink-brand); color: var(--sun); text-shadow: none; }
@media (hover: hover) and (pointer: fine) { .card[style*="--cb"] .btn-add:not(.is-soldout):hover { background: linear-gradient(180deg, color-mix(in srgb, var(--cb) 55%, #fff) 0%, color-mix(in srgb, var(--cb) 92%, #fff) 50%, var(--cb) 100%); transform: translateY(-1px); } }
.card[style*="--cb"] .stepper { background: var(--cb); background: linear-gradient(180deg, color-mix(in srgb, var(--cb) 78%, #000), color-mix(in srgb, var(--cb) 55%, #000)); color: #fff; }
