/* =========================================================
   El Chicharrón del Coco — Menú digital (v2, nocturno)
   Café espresso + beige de marca + luz cálida
   ========================================================= */

:root {
  --bg: #140c05;
  --bg-2: #1b1008;
  --card: #24170c;
  --card-2: #2e1d0f;
  --brand: #6e481f;          /* café del PDF */
  --brand-2: #8a5c2a;
  --tan: #c6ab82;            /* beige del PDF */
  --tan-hi: #e6cc9f;
  --cream: #f6ecdc;
  --cream-dim: #cbb89b;
  --muted: #9c876b;
  --line: rgba(230, 210, 175, .11);
  --line-2: rgba(230, 210, 175, .2);
  --ring: var(--tan-hi);

  --f-display: 'Anton', 'Bebas Neue', 'Oswald', sans-serif;
  --f-cond: 'Barlow Condensed', 'Barlow', sans-serif;
  --f-body: 'Barlow', system-ui, sans-serif;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);

  --bar-h: 58px;
  --chips-h: 52px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scrollbar-gutter: stable; background: var(--bg); scrollbar-color: var(--brand) var(--bg); }
body {
  margin: 0;
  font-family: var(--f-body); font-size: 16px; line-height: 1.5;
  color: var(--cream); background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  caret-color: var(--tan-hi);
  overflow-x: clip;
}
body.is-cover { overflow: hidden; height: 100dvh; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

::selection { background: var(--tan); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 8px; }
::-webkit-scrollbar { width: 8px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 99px; }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 80;
  background: var(--tan); color: var(--bg); padding: 10px 16px; border-radius: 99px; font-weight: 700;
  transform: translateY(-160%); transition: transform .2s var(--ease-out);
}
.skip:focus { transform: none; }

/* Ilustraciones del PDF (pulpo, camarón) y monograma, teñidas en beige */
.sketch, .mono {
  display: block;
  background: var(--tan);
  -webkit-mask: var(--m) center / contain no-repeat;
          mask: var(--m) center / contain no-repeat;
}
.sketch--pulpo { --m: url(assets/img/pulpo.webp); }
.sketch--camaron { --m: url(assets/img/camaron.webp); }
.mono { --m: url(assets/img/monograma.webp); }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   PORTADA — solo el logo
   ========================================================= */
.cover {
  position: fixed; inset: 0; z-index: 50;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}
.cover__light {
  position: absolute; inset: 0; z-index: -5;
  background:
    radial-gradient(ellipse 75% 48% at 50% 46%,
      rgba(214, 150, 72, .30) 0%, rgba(214, 150, 72, .22) 18%, rgba(214, 150, 72, .13) 38%,
      rgba(214, 150, 72, .06) 58%, rgba(214, 150, 72, .02) 74%, rgba(214, 150, 72, 0) 90%),
    radial-gradient(ellipse 120% 55% at 50% 118%,
      rgba(150, 90, 35, .42) 0%, rgba(110, 72, 31, .22) 40%, rgba(110, 72, 31, 0) 75%),
    var(--bg);
  opacity: 0;
  animation: fadeIn 2.2s .1s ease forwards;
}
/* monograma de la marca como marca de agua */
.cover__mark {
  position: absolute; left: 50%; top: 46%; z-index: -4;
  width: min(92vw, 70dvh, 560px); aspect-ratio: 734 / 926;
  --m: url(assets/img/monograma-hd.webp);
  translate: -50% -50%;
  background: var(--tan);
  opacity: 0;
  animation: markIn 2.4s .2s ease forwards;
}
@keyframes markIn { from { opacity: 0; scale: 1.08; } to { opacity: .045; scale: 1; } }
.cover__top {
  position: absolute; right: 0; top: 0; z-index: 3;
  padding: calc(14px + var(--safe-t)) 16px 0;
}
.cover__top .lang, .cover__top .call-btn { opacity: 0; animation: fadeIn 1s 2.4s ease forwards; }

.cover__center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 24px calc(24px + var(--safe-b));
}
.cover__logo {
  position: relative; margin: 0;
  width: min(84vw, 460px);
}
/* Logo armado letra por letra */
.logo-anim { position: relative; display: block; width: 100%; }
.lp {
  position: absolute; display: block;
  opacity: 0;
  transform-origin: 50% 100%;
  animation-delay: var(--d);
  animation-fill-mode: both;
}
.logo-anim:not(.is-ready) .lp { animation-play-state: paused; }
.lp img { display: block; width: 100%; height: 100%; }

/* Chicharrón: cada letra cae, aplasta un poco al tocar y se asienta */
.lp--drop { animation-name: lpDrop; animation-duration: 1s; }
@keyframes lpDrop {
  0%   { opacity: 0; transform: translateY(-58vh) rotate(var(--r)); animation-timing-function: cubic-bezier(.5, 0, .9, .45); }
  10%  { opacity: 1; }
  56%  { opacity: 1; transform: translateY(0) rotate(0); animation-timing-function: cubic-bezier(.25, .7, .4, 1); }
  68%  { transform: translateY(0) scale(1.06, .9); animation-timing-function: cubic-bezier(.3, 0, .4, 1); }
  84%  { transform: translateY(-6%) scale(.98, 1.03); animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  100% { opacity: 1; transform: none; }
}

/* "El": aparece con un pequeño salto */
.lp--pop { transform-origin: 50% 60%; animation-name: lpPop; animation-duration: .75s; animation-timing-function: cubic-bezier(.3, .7, .4, 1); }
@keyframes lpPop {
  0%   { opacity: 0; transform: scale(.3) rotate(-16deg); }
  55%  { opacity: 1; transform: scale(1.1) rotate(3deg); }
  80%  { transform: scale(.97) rotate(-1deg); }
  100% { opacity: 1; transform: none; }
}

/* "del": sube desde abajo */
.lp--rise { animation-name: lpRise; animation-duration: .7s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
@keyframes lpRise {
  from { opacity: 0; transform: translateY(70%); }
  to   { opacity: 1; transform: none; }
}

/* COCO: los cocos caen girando y rebotan */
.lp--roll { transform-origin: 50% 60%; animation-name: lpRoll; animation-duration: 1.05s; }
@keyframes lpRoll {
  0%   { opacity: 0; transform: translateY(-58vh) rotate(-220deg); animation-timing-function: cubic-bezier(.5, 0, .9, .45); }
  10%  { opacity: 1; }
  56%  { opacity: 1; transform: translateY(0) rotate(0); animation-timing-function: cubic-bezier(.25, .7, .4, 1); }
  68%  { transform: translateY(0) scale(1.08, .88); animation-timing-function: cubic-bezier(.3, 0, .4, 1); }
  84%  { transform: translateY(-9%) scale(.97, 1.04); animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  100% { opacity: 1; transform: none; }
}

/* punto de la i y tilde de la ó: caen al final */
.lp--dot { animation-name: lpDot; animation-duration: .6s; }
@keyframes lpDot {
  0%   { opacity: 0; transform: translateY(-320%); animation-timing-function: cubic-bezier(.5, 0, .9, .45); }
  58%  { opacity: 1; transform: translateY(0); animation-timing-function: cubic-bezier(.25, .7, .4, 1); }
  78%  { transform: translateY(-30%); animation-timing-function: cubic-bezier(.5, 0, .9, .45); }
  100% { opacity: 1; transform: none; }
}

/* la raya se dibuja de izquierda a derecha */
.lp--draw { animation-name: lpDraw; animation-duration: 1.1s; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
@keyframes lpDraw {
  from { opacity: 1; clip-path: inset(-60% 100% -60% -60%); }
  to   { opacity: 1; clip-path: inset(-60% -60% -60% -60%); }
}

.enter {
  position: absolute; left: 50%; bottom: calc(24dvh + var(--safe-b));
  overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 36px;
  border: 0; border-radius: 99px;
  background: var(--tan); color: var(--bg);
  font-family: var(--f-display); font-size: 19px; letter-spacing: .07em; text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset, 0 16px 36px -16px rgba(214, 150, 72, .6);
  opacity: 0; transform: translate(-50%, 14px);
  animation: enterIn 1s 2.75s cubic-bezier(.22, 1, .36, 1) forwards;
  transition: transform .16s var(--ease-out);
}
@keyframes enterIn { to { opacity: 1; transform: translate(-50%, 0); } }
.enter:active { transform: translate(-50%, 0) scale(.96); }
.enter__fill { display: none; }

/* Salida de la portada */
/* Salida: el logo vuela a su lugar en el encabezado y la portada se desvanece */
.cover.is-leaving { pointer-events: none; background: transparent; transition: background-color .6s ease .1s; }
.cover.is-leaving .cover__light,
.cover.is-leaving .cover__mark { animation: none; opacity: 0; transition: opacity .55s ease .05s; }
.cover.is-leaving .enter { animation: none; opacity: 0; transform: translate(-50%, 8px); transition: opacity .2s ease, transform .3s var(--ease-out); }
.cover.is-leaving .cover__top, .cover.is-leaving .cover__top .call-btn, .cover.is-leaving .cover__top .lang { animation: none; opacity: 0; transition: opacity .2s ease; }
.app.is-landing .bar__logo img { opacity: 0; }

/* Botón para llamar */
.call-btn {
  display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--tan); color: var(--bg);
  font-size: 19px;
  box-shadow: 0 8px 18px -10px rgba(214, 150, 72, .8);
  transition: transform .16s var(--ease-out);
}
.call-btn svg { fill: currentColor; stroke: none; }
.call-btn:active { transform: scale(.92); }
.cover__top { display: flex; align-items: center; gap: 10px; }

/* Idioma */
.lang {
  position: relative;
  display: inline-grid; grid-template-columns: 1fr 1fr;
  padding: 4px; border-radius: 99px;
  background: rgba(36, 23, 12, .7);
  box-shadow: inset 0 0 0 1px var(--line-2);
  isolation: isolate;
}
.lang button {
  position: relative; z-index: 1;
  min-width: 44px; min-height: 34px; padding: 0 10px;
  border: 0; background: none; border-radius: 99px;
  font-family: var(--f-cond); font-weight: 700; font-size: 15px; letter-spacing: .08em;
  color: var(--cream-dim);
  transition: color .25s ease;
}
.lang button[aria-pressed="true"] { color: var(--bg); }
.lang__thumb {
  position: absolute; z-index: 0; top: 4px; left: 4px; bottom: 4px; width: calc(50% - 4px);
  border-radius: 99px; background: var(--tan);
  transition: transform .4s var(--ease-expo);
}
.lang[data-active="en"] .lang__thumb { transform: translateX(100%); }

/* =========================================================
   APP
   ========================================================= */
.app { min-height: 100dvh; overflow-x: clip; }
.app[inert] { visibility: hidden; }

.bar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(20, 12, 5, .86);
  -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px);
  transition: transform .35s var(--ease-drawer), box-shadow .3s ease;
}
.bar.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 16px 30px -20px rgba(0, 0, 0, .9); }
.bar.is-tucked { transform: translateY(calc(var(--bar-h) * -1)); }
.bar__row {
  height: var(--bar-h);
  display: flex; align-items: center; gap: 6px;
  padding: 0 12px 0 16px;
  max-width: 1180px; margin: 0 auto;
}
.bar__logo { margin-right: auto; border-radius: 8px; }
.bar__logo img { height: 36px; width: auto; }

.icon-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: transparent; color: var(--cream);
  font-size: 21px;
  transition: background-color .2s ease, transform .16s var(--ease-out);
}
.icon-btn:active { transform: scale(.9); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: rgba(255, 255, 255, .06); } }

.chips {
  height: var(--chips-h);
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-mask: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 28px), transparent);
          mask: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 28px), transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chips__track {
  position: relative;
  display: flex; align-items: center; gap: 2px;
  height: 100%; width: max-content; padding: 0 14px 8px; margin: 0 auto;
}
.chip {
  position: relative; z-index: 1;
  height: 36px; padding: 0 15px;
  border: 0; border-radius: 99px; background: transparent;
  font-family: var(--f-cond); font-weight: 700; font-size: 15.5px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--cream-dim); white-space: nowrap;
  transition: color .25s ease, transform .16s var(--ease-out);
}
.chip:active { transform: scale(.94); }
.chip[aria-current="true"] { color: var(--bg); }
.chips__pill {
  position: absolute; z-index: 0; left: 0; top: 0; height: 36px; border-radius: 99px;
  background: var(--tan);
  box-shadow: 0 6px 18px -6px rgba(214, 150, 72, .7);
  transition: transform .5s var(--ease-expo), width .5s var(--ease-expo), opacity .2s;
  pointer-events: none;
}
.chips.is-searching { opacity: .35; pointer-events: none; transition: opacity .25s ease; }

/* Intro y buscador */
.intro { max-width: 1180px; margin: 0 auto; padding: 18px 18px 6px; }
.intro__title {
  margin: 0;
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(40px, 12vw, 84px); line-height: .92; letter-spacing: .005em;
  color: var(--cream);
  text-wrap: balance;
}
.search { margin-top: 16px; }
.search__field {
  position: relative; display: flex; align-items: center;
  background: var(--card);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow .25s ease, background-color .25s ease;
}
.search__field:focus-within { background: var(--card-2); box-shadow: inset 0 0 0 1.5px var(--tan), 0 14px 34px -16px rgba(214, 150, 72, .55); }
.search__icon { position: absolute; left: 16px; font-size: 20px; color: var(--tan); transition: transform .35s var(--ease-expo); }
.search__field:focus-within .search__icon { transform: rotate(-14deg) scale(1.12); }
.search input {
  width: 100%; min-height: 54px; padding: 0 52px 0 48px;
  border: 0; border-radius: 18px; background: transparent;
  font: 500 17px/1 var(--f-body); color: var(--cream);
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input:focus { outline: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search__clear {
  position: absolute; right: 6px; width: 42px; height: 42px; border: 0; border-radius: 13px;
  background: rgba(255, 255, 255, .06); color: var(--cream);
  display: grid; place-items: center; font-size: 17px;
}
.search__clear[hidden] { display: none; }
.search__suggest {
  display: flex; gap: 8px; margin: 12px -18px 0; padding: 0 18px 2px;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.search__suggest::-webkit-scrollbar { display: none; }
.search__suggest[hidden] { display: none; }
.suggest {
  flex: none; min-height: 36px; padding: 0 15px;
  border: 0; border-radius: 99px;
  background: transparent; color: var(--cream-dim);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-weight: 600; font-size: 15px;
  transition: background-color .2s ease, color .2s ease, transform .16s var(--ease-out);
}
.suggest:active { transform: scale(.95); }
@media (hover: hover) and (pointer: fine) { .suggest:hover { background: var(--card-2); color: var(--cream); } }

/* =========================================================
   LO MÁS PEDIDO — carrusel
   ========================================================= */
.featured { padding: 26px 0 8px; max-width: 1180px; margin: 0 auto; }
.featured__title {
  margin: 0 18px;
  font-family: var(--f-cond); font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--tan);
  display: flex; align-items: center; gap: 12px;
}
.featured__title::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
body.is-searching .featured { display: none; }

.featured__rail {
  display: flex; gap: 14px;
  overflow-x: auto;
  scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding: 74px 18px 22px;
}
.featured__rail::-webkit-scrollbar { display: none; }
.fcard {
  position: relative; flex: none;
  width: min(68vw, 280px); min-height: 250px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 168px 18px 18px;
  border: 0; border-radius: 28px; text-align: left;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(214, 150, 72, .38), transparent 60%),
    linear-gradient(180deg, var(--brand) 0%, #3d2611 100%);
  box-shadow: inset 0 1px 0 rgba(255, 230, 190, .18), 0 24px 40px -24px rgba(0, 0, 0, .9);
  color: var(--cream);
  transition: transform .16s var(--ease-out);
}
.fcard:nth-child(even) {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(230, 204, 159, .35), transparent 60%),
    linear-gradient(180deg, #a38257 0%, #5a3c1c 100%);
}
.fcard:active { transform: scale(.97); }
.fcard__img {
  position: absolute; left: 4%; top: -66px;
  width: 92%; aspect-ratio: 1;
  pointer-events: none;
}
.fcard__img img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 26px 22px rgba(0, 0, 0, .55));
  transform: rotate(var(--rot, 0deg)) scale(var(--sc, 1));
  will-change: transform;
}
.fcard__badge {
  position: relative; align-self: flex-start; margin-bottom: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px 4px; border-radius: 99px;
  background: rgba(20, 12, 5, .6); color: var(--tan-hi);
  font-family: var(--f-cond); font-weight: 700; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
}
.fcard__badge svg { fill: currentColor; stroke-width: 1; font-size: 12px; }
.fcard__name {
  position: relative;
  font-family: var(--f-display); font-size: 30px; line-height: .98; text-transform: uppercase; letter-spacing: .01em;
  text-wrap: balance;
}
.fcard__meta { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 10px; }
.fcard__cat { font-weight: 600; font-size: 14px; color: rgba(246, 236, 220, .78); }
.fcard__price { font-family: var(--f-display); font-size: 24px; color: var(--tan-hi); font-variant-numeric: tabular-nums; }
.fcard:nth-child(even) .fcard__price { color: var(--cream); }

/* Cinta */
.ribbon {
  overflow: hidden;
  background: var(--tan); color: var(--bg);
  transform: rotate(-2deg); margin: 18px -12px 6px;
  box-shadow: 0 16px 30px -18px rgba(214, 150, 72, .6);
}
.ribbon__track { display: flex; width: max-content; animation: marqueeL 32s linear infinite; }
.ribbon__item {
  display: flex; align-items: center; gap: 18px; padding: 12px 18px 11px 0;
  font-family: var(--f-display); font-size: 21px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.ribbon__item .mono { width: 15px; height: 19px; background: var(--brand); }
body.is-searching .ribbon { display: none; }

.status {
  max-width: 1180px; margin: 0 auto; padding: 0 18px;
  font-family: var(--f-cond); font-weight: 700; font-size: 17px; letter-spacing: .04em; color: var(--tan);
}
.status:empty { display: none; }
.status:not(:empty) { padding-top: 18px; animation: rise .35s var(--ease-out) both; }
mark { background: none; color: var(--tan-hi); text-decoration: underline; text-decoration-color: var(--brand-2); text-decoration-thickness: 3px; text-underline-offset: 3px; }

/* =========================================================
   SECCIONES
   ========================================================= */
.sections { max-width: 1180px; margin: 0 auto; padding: 8px 16px 48px; }
.section { padding: 40px 0 6px; scroll-margin-top: calc(var(--chips-h) + 6px); }
.section[hidden] { display: none; }

.sec-head { position: relative; margin-bottom: 8px; }
.sec-title {
  margin: 0;
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(44px, 13vw, 64px); line-height: .9; letter-spacing: .005em;
  color: var(--cream);
}
.sec-title__text { display: inline-block; }
.sec-note { margin: 10px 0 0; max-width: 58ch; font-size: 15.5px; line-height: 1.5; color: var(--cream-dim); }
.sec-note strong { font-family: var(--f-display); font-weight: 400; letter-spacing: .04em; color: var(--tan-hi); }

/* Encabezado con foto: tarjeta de luz cálida */
.sec-head.has-hero {
  min-height: 210px;
  margin-top: 56px;
  padding: 0 20px 20px;
  display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: 30px;
  background:
    radial-gradient(90% 90% at 85% 0%, rgba(214, 150, 72, .45), transparent 60%),
    linear-gradient(160deg, var(--brand) 0%, #2a1a0c 85%);
  box-shadow: inset 0 1px 0 rgba(255, 230, 190, .16), 0 30px 50px -30px rgba(0, 0, 0, .9);
}
.sec-head.has-hero .sec-title,
.sec-head.has-hero .sec-note { position: relative; z-index: 2; max-width: 62%; }
.sec-head.has-hero .sec-note { color: rgba(246, 236, 220, .84); font-size: 15px; }
.sec-hero {
  position: absolute; z-index: 1; right: -18px; top: -64px;
  width: 64%; max-width: 300px; height: auto;
  filter: drop-shadow(0 28px 26px rgba(0, 0, 0, .6));
  will-change: transform;
  pointer-events: none;
}
/* marco listo para la foto de la categoría */
.sec-hero--slot {
  width: 132px; max-width: none; height: auto; aspect-ratio: 1;
  right: 18px; top: -38px;
  display: grid; place-items: center;
  border-radius: 30px;
  background: radial-gradient(70% 70% at 50% 35%, rgba(198, 171, 130, .14), transparent 70%), var(--card);
  box-shadow: inset 0 0 0 1.5px var(--line-2), 0 20px 34px -18px rgba(0, 0, 0, .8);
  filter: none;
}
.sec-hero--slot .mono { width: 30%; height: 38%; opacity: .32; }
.sec-head.has-sketch { padding-right: 38%; }
.sec-sketch {
  position: absolute; right: -4px; top: -18px;
  width: 132px; aspect-ratio: 1.3;
  opacity: .9;
  transform: rotate(var(--spin, 0deg));
}

/* Revelado de sección */
.js .section:not(.is-in) .sec-title__text { clip-path: inset(0 0 100% 0); transform: translateY(40%); }
.js .section:not(.is-in) .sec-hero { opacity: 0; translate: 40px 30px; scale: .7; }
.js .section:not(.is-in) .sec-sketch { opacity: 0; scale: .8; }
.js .section:not(.is-in) .sec-head.has-hero { clip-path: inset(30% 0 0 0 round 30px); opacity: 0; }
.js .section:not(.is-in) .sec-note { opacity: 0; }
.sec-title__text { clip-path: inset(-20% 0 -10% 0); transition: clip-path .8s .1s var(--ease-expo), transform .8s .1s var(--ease-expo); }
.sec-head.has-hero { transition: clip-path .9s var(--ease-expo), opacity .5s ease; }
.sec-hero { transition: opacity .6s .15s ease, translate 1.1s .15s var(--ease-expo), scale 1.1s .15s var(--ease-expo); }
.sec-sketch { transition: opacity .6s .2s ease, scale .9s .2s var(--ease-expo); }
.sec-note { transition: opacity .6s .35s ease; }

/* Platillos */
.dishes { list-style: none; margin: 8px 0 0; padding: 0; }
.dish + .dish { border-top: 1px solid var(--line); }
.dish[hidden] { display: none; }
.dish__btn {
  width: 100%;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 14px 6px 14px 0;
  border: 0; background: none; text-align: left; color: inherit;
  border-radius: 20px;
  transition: background-color .2s ease, transform .16s var(--ease-out);
}
.dish__btn:active { transform: scale(.98); background: var(--card); }
@media (hover: hover) and (pointer: fine) {
  .dish__btn:hover { background: var(--bg-2); }
  .dish__btn:hover .thumb img { transform: scale(1.2) rotate(-8deg); }
}

.thumb {
  position: relative; flex: none;
  width: 82px; height: 82px;
  border-radius: 24px;
  background:
    radial-gradient(75% 75% at 50% 35%, rgba(214, 150, 72, .4), transparent 70%),
    var(--card-2);
  box-shadow: inset 0 1px 0 rgba(255, 230, 190, .12), inset 0 0 0 1px var(--line);
  display: grid; place-items: center;
}
.thumb img {
  width: 100%; height: 100%; object-fit: contain;
  transform: scale(1.08);
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .55));
  transition: transform .6s var(--ease-expo);
}
.thumb--art { background: radial-gradient(75% 75% at 50% 35%, rgba(198, 171, 130, .16), transparent 70%), var(--card); }
.thumb--art .sketch { width: 74%; height: 74%; }
.thumb--art img { transform: scale(.9); }
.thumb--mono { background: radial-gradient(75% 75% at 50% 35%, rgba(198, 171, 130, .1), transparent 70%), var(--card); }
.thumb--mono .mono { width: 34%; height: 44%; opacity: .5; }
.thumb--empty {
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.thumb__star {
  position: absolute; left: -4px; top: -4px; z-index: 2;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--tan); color: var(--bg); font-size: 13px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .4);
}
.thumb__star svg { fill: currentColor; stroke-width: 1.5; }

.dish__body { min-width: 0; }
.dish__name {
  display: block;
  font-family: var(--f-cond); font-weight: 700; font-size: 22px; line-height: 1.1; letter-spacing: .01em;
  color: var(--cream); overflow-wrap: anywhere;
}
.dish__desc {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  margin-top: 4px; font-size: 14.5px; line-height: 1.4; color: var(--cream-dim);
}
.dish__price {
  display: grid; justify-items: end; gap: 6px;
  font-family: var(--f-display); font-size: 22px; letter-spacing: .02em;
  color: var(--tan-hi); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.dish__go {
  width: 26px; height: 26px; padding: 6px; border-radius: 50%;
  background: rgba(198, 171, 130, .12); color: var(--tan);
  transition: transform .3s var(--ease-out), background-color .2s;
}
@media (hover: hover) and (pointer: fine) { .dish__btn:hover .dish__go { transform: translateX(3px); background: var(--tan); color: var(--bg); } }

.js .dish:not(.is-in) { opacity: 0; transform: translateY(22px); }
.dish { transition: opacity .6s var(--ease-out), transform .8s var(--ease-expo); transition-delay: calc(var(--i, 0) * 60ms); }
.dish.is-filtered-in { animation: filterIn .45s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes filterIn { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }

/* Surtidos */
.feature {
  position: relative; margin-top: 70px;
  border-radius: 32px; padding: 0 16px 16px;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(230, 170, 90, .45), transparent 65%),
    linear-gradient(180deg, var(--brand) 0%, #2a1a0c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 230, 190, .18), 0 30px 50px -30px rgba(0, 0, 0, .9);
}
.feature__img {
  width: auto; max-width: 86%; max-height: 32dvh; height: auto;
  margin: -64px auto 10px;
  filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .6));
  will-change: transform;
}
.feature__grid { display: grid; gap: 10px; }
.size {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px;
  width: 100%; padding: 16px 18px;
  border: 0; border-radius: 22px; text-align: left;
  background: rgba(20, 12, 5, .45);
  box-shadow: inset 0 0 0 1px rgba(230, 204, 159, .18);
  color: var(--cream);
  transition: background-color .2s ease, transform .16s var(--ease-out);
}
.size:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .size:hover { background: rgba(20, 12, 5, .65); } }
.size__name { font-family: var(--f-display); font-size: 30px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.size__price { font-family: var(--f-display); font-size: 28px; color: var(--tan-hi); font-variant-numeric: tabular-nums; }
.size__desc { grid-column: 1 / -1; font-size: 14.5px; line-height: 1.45; color: rgba(246, 236, 220, .8); }
.size__more { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-family: var(--f-cond); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--tan-hi); }
.size[hidden] { display: none; }

/* Bebidas */
.drink-group + .drink-group { margin-top: 16px; }
.drink-group__title {
  margin: 14px 0 0;
  font-family: var(--f-cond); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--tan);
}
.drink-group[hidden] { display: none; }
.drinks .thumb { width: 58px; height: 58px; border-radius: 18px; }
.drinks .dish__btn { padding-top: 10px; padding-bottom: 10px; }
.drinks .dish__name { font-size: 20px; }
.drinks .dish__price { font-size: 20px; }
.drinks .dish__go { display: none; }

/* Vacío */
.empty { max-width: 520px; margin: 0 auto; padding: 24px 24px 80px; text-align: center; animation: rise .5s var(--ease-out) both; }
.empty[hidden] { display: none; }
.empty .sketch { width: 180px; aspect-ratio: 1.44; margin: 0 auto 12px; opacity: .8; }
.empty__title { margin: 0; font-family: var(--f-display); font-size: 32px; line-height: 1.05; text-transform: uppercase; color: var(--cream); overflow-wrap: anywhere; }
.empty__text { margin: 8px 0 14px; color: var(--cream-dim); }
.empty__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* Pie */
.foot {
  text-align: center; color: var(--cream-dim);
  margin-top: 30px;
  padding: 110px 24px calc(80px + var(--safe-b));
  background:
    radial-gradient(70% 55% at 50% 70%, rgba(214, 150, 72, .22), transparent 75%),
    linear-gradient(180deg, rgba(27, 16, 8, 0) 0%, var(--bg-2) 45%, var(--bg-2) 100%);
}
.foot__logo { width: 210px; height: auto; margin: 0 auto 20px; }
.foot__big { font-family: var(--f-display); font-size: 34px; line-height: 1; text-transform: uppercase; color: var(--cream); margin: 0 0 10px !important; }
.foot p { margin: 4px 0; }

.totop {
  position: fixed; right: 16px; bottom: calc(18px + var(--safe-b)); z-index: 25;
  width: 50px; height: 50px; border-radius: 16px; border: 0;
  display: grid; place-items: center; font-size: 21px;
  background: var(--tan); color: var(--bg);
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .8);
  opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none;
  transition: opacity .25s ease, transform .35s var(--ease-expo);
}
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop:active { transform: scale(.92); }

/* Entrada del menú */
.app.is-entering .intro__title { animation: focusIn 1s .3s var(--ease-expo) both; }
.app.is-entering .search { animation: focusIn .9s .42s var(--ease-expo) both; }
.app.is-entering .chips__track { animation: focusIn .9s .36s var(--ease-expo) both; }
.app.is-entering .bar__row .icon-btn, .app.is-entering .bar__row .lang, .app.is-entering .bar__row .call-btn { animation: focusIn .8s .5s var(--ease-expo) both; }
.app.is-entering .featured__title { animation: focusIn .9s .52s var(--ease-expo) both; }
.app.is-entering .fcard { animation: cardIn 1.1s var(--ease-expo) both; animation-delay: calc(.58s + var(--n, 0) * .08s); }
.app.is-entering .ribbon { animation: focusIn .9s .85s var(--ease-expo) both; }
@keyframes focusIn { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes titleIn { from { opacity: 0; transform: translateY(30px); clip-path: inset(0 0 100% 0); } to { clip-path: inset(-20% 0 -10% 0); } }
@keyframes cardIn { from { opacity: 0; transform: translateX(70px) rotate(3deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }

/* Cambio de idioma */
.app main, .app .chips { transition: opacity .18s ease, filter .18s ease; }
.app.is-switching main, .app.is-switching .chips { opacity: .25; filter: blur(4px); }
.cover.is-switching .enter__label { opacity: .2; filter: blur(4px); transition: opacity .15s, filter .15s; }

/* =========================================================
   DETALLE
   ========================================================= */
.sheet {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden;
  color: var(--cream);
}
.sheet::backdrop { background: rgba(8, 4, 1, 0); transition: background-color .35s ease; }
.sheet.is-open::backdrop { background: rgba(8, 4, 1, .72); }
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 92svh;
  display: flex; flex-direction: column;
  background: var(--bg-2);
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -1px 0 var(--line-2), 0 -30px 60px -20px rgba(0, 0, 0, .8);
  transform: translateY(105%);
  transition: transform .5s var(--ease-drawer);
  will-change: transform;
  backface-visibility: hidden;
  contain: layout paint;
}
.sheet.is-open .sheet__panel { transform: translateY(0); }
.sheet.is-closing .sheet__panel { transition-duration: .3s; }
.sheet.is-dragging .sheet__panel { transition: none; }
.sheet__grab { position: absolute; left: 0; right: 0; top: 0; height: 28px; z-index: 3; display: grid; place-items: center; }
.sheet__grab span { width: 42px; height: 5px; border-radius: 99px; background: rgba(246, 236, 220, .35); }
.sheet__close {
  position: absolute; right: 14px; top: 14px; z-index: 4;
  background: rgba(20, 12, 5, .6); color: var(--cream);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.sheet__scroll { overflow-y: auto; overscroll-behavior: contain; border-radius: inherit; }

.sheet__media {
  position: relative; margin: 0;
  height: min(44svh, 400px);
  display: grid; place-items: center;
  overflow: hidden;
  border-radius: 30px 30px 0 0;
  background:
    radial-gradient(55% 55% at 50% 52%, rgba(230, 170, 90, .55), rgba(230, 170, 90, 0) 75%),
    linear-gradient(180deg, #3a2410, var(--bg-2));
}
.sheet__media::before { /* rayos de luz girando */
  content: ''; position: absolute; inset: -40%;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 220, 170, .07) 0deg 8deg, transparent 8deg 22deg);
  -webkit-mask: radial-gradient(closest-side, #000 30%, transparent 75%); mask: radial-gradient(closest-side, #000 30%, transparent 75%);
}
.sheet__media img {
  position: relative; z-index: 1;
  width: 84%; height: 84%; object-fit: contain;
  filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .65));
}
.sheet__media img { opacity: 0; transform: scale(.94) translateY(10px); transition: opacity .45s ease, transform .8s var(--ease-expo); }
.sheet__media img.is-loaded { opacity: 1; transform: none; }
.sheet__media .sketch { position: relative; z-index: 1; width: 62%; height: 62%; }
.sheet__media .mono { position: relative; z-index: 1; width: 22%; height: 30%; opacity: .55; }
.sheet__media.is-art, .sheet__media.is-mono {
  background: radial-gradient(55% 55% at 50% 52%, rgba(198, 171, 130, .25), transparent 75%), linear-gradient(180deg, #2a1a0c, var(--bg-2));
}
.sheet__media figcaption {
  position: absolute; left: 18px; bottom: 16px; z-index: 2;
  padding: 6px 12px 5px; border-radius: 99px;
  background: rgba(20, 12, 5, .6); color: var(--cream-dim);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-family: var(--f-cond); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
}

.sheet__body { position: relative; padding: 6px 22px calc(30px + var(--safe-b)); }
.sheet__cat {
  display: block;
  font-family: var(--f-cond); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--tan);
}
.sheet__title {
  margin: 6px 0 0;
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(38px, 11vw, 56px); line-height: .92; letter-spacing: .005em;
  color: var(--cream); text-wrap: balance;
}
.sheet__price {
  display: inline-block; margin-top: 14px;
  padding: 8px 16px 6px; border-radius: 14px;
  background: var(--tan); color: var(--bg);
  font-family: var(--f-display); font-size: 28px; line-height: 1.1; letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.sheet__desc { margin: 16px 0 0; font-size: 17px; line-height: 1.55; color: var(--cream-dim); max-width: 60ch; }
.sheet__desc strong { font-family: var(--f-display); font-weight: 400; letter-spacing: .04em; color: var(--tan-hi); }

.spec { margin-top: 24px; }
.spec__title {
  margin: 0 0 10px; display: flex; align-items: center; gap: 10px;
  font-family: var(--f-cond); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--tan);
}
.spec__title::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags li {
  padding: 7px 14px; border-radius: 99px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 600; font-size: 15px; color: var(--cream);
}
.tags li.is-main { background: var(--tan); color: var(--bg); box-shadow: none; }
.tags--choice li { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--cream-dim); }

.opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.opt {
  width: 100%;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 8px 16px 8px 8px;
  border: 0; border-radius: 20px; text-align: left; color: inherit;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .2s ease, transform .16s var(--ease-out), box-shadow .2s ease;
}
.opt:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .opt:hover { background: var(--card-2); } }
.opt[aria-current="true"] { background: var(--card-2); box-shadow: inset 0 0 0 1.5px var(--tan); }
.opt .thumb { width: 50px; height: 50px; border-radius: 15px; }
.opt .thumb__star { display: none; }
.opt__name { font-family: var(--f-cond); font-weight: 700; font-size: 19px; color: var(--cream); }
.opt__price { font-family: var(--f-display); font-size: 19px; color: var(--tan-hi); font-variant-numeric: tabular-nums; }

.sheet__body > * { opacity: 0; }
.sheet.is-open .sheet__body > * { animation: sheetFade .5s ease both; }
@keyframes sheetFade { from { opacity: 0; } to { opacity: 1; } }
.sheet.is-open .sheet__body > *:nth-child(1) { animation-delay: .1s; }
.sheet.is-open .sheet__body > *:nth-child(2) { animation-delay: .15s; }
.sheet.is-open .sheet__body > *:nth-child(3) { animation-delay: .2s; }
.sheet.is-open .sheet__body > *:nth-child(4) { animation-delay: .25s; }
.sheet.is-open .sheet__body > *:nth-child(5) { animation-delay: .3s; }
.sheet.is-open .sheet__body > *:nth-child(n+6) { animation-delay: .35s; }
.sheet__body.is-swap > * { animation: swapIn .38s var(--ease-out) both !important; }
@keyframes swapIn { from { opacity: 0; filter: blur(5px); transform: translateY(6px); } to { opacity: 1; filter: none; transform: none; } }
.sheet__media i.is-swap { animation: imgSwap .5s var(--ease-expo) both; }
@keyframes imgSwap { from { opacity: 0; transform: scale(.85) rotate(-20deg); filter: blur(6px); } }

.fly { position: fixed; z-index: 1000; margin: 0; pointer-events: none; object-fit: contain; filter: drop-shadow(0 22px 22px rgba(0, 0, 0, .6)); }

/* =========================================================
   Pantallas grandes
   ========================================================= */
@media (min-width: 760px) {
  .cover__logo { width: min(46vw, 560px); }

  .intro { padding: 36px 32px 6px; }
  .search { max-width: 640px; }
  .featured__title { margin: 0 32px; }
  .featured__rail { padding-left: 32px; padding-right: 32px; }
  .sections { padding: 8px 32px 64px; }

  .sheet__panel {
    left: 50%; top: 50%; bottom: auto; right: auto;
    width: min(960px, calc(100vw - 48px)); max-height: min(660px, calc(100dvh - 48px));
    border-radius: 32px;
    transform: translate(-50%, -46%) scale(.96); opacity: 0;
    transition: transform .5s var(--ease-expo), opacity .25s ease;
  }
  .sheet.is-open .sheet__panel { transform: translate(-50%, -50%); opacity: 1; }
  .sheet.is-closing .sheet__panel { transition-duration: .22s; }
  .sheet__grab { display: none; }
  .sheet__scroll { display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden; height: 100%; }
  .sheet__media { height: auto; min-height: 560px; border-radius: 32px 0 0 32px; }
  .sheet__body { overflow-y: auto; max-height: min(660px, calc(100dvh - 48px)); padding: 48px 34px 34px; }
}

@media (max-height: 520px) {
  .cover__logo { width: min(46vw, 340px); margin-top: -12dvh; }
  .enter { bottom: calc(14dvh + var(--safe-b)); }
}

@media (min-width: 980px) {
  .section { display: grid; grid-template-columns: 380px 1fr; gap: 0 48px; align-items: start; padding: 64px 0 18px; }
  .sec-head { position: sticky; top: calc(var(--chips-h) + 24px); }
  .sec-head.has-hero { margin-top: 70px; }
  .dishes { margin-top: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .dish + .dish { border-top: 0; }
  .dish { border-bottom: 1px solid var(--line); }
  .feature { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 24px; padding: 28px; margin-top: 0; }
  .feature__img { margin: 0; max-width: 100%; max-height: none; }
  .fcard { width: 300px; }
}

/* =========================================================
   Movimiento reducido
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .cover, .cover * { transition: none !important; }
  .ribbon__track, .sheet__media::before { animation: none !important; }
  .cover__mark { animation: none !important; opacity: .045; }
  .lp { animation: fadeIn .5s ease both !important; transform: none !important; clip-path: none !important; }
  .cover__top .lang, .cover__light { animation: fadeIn .4s ease forwards !important; }
  .enter { animation: none !important; opacity: 1; transform: translate(-50%, 0); }
  .js .dish:not(.is-in) { transform: none; }
  .js .section:not(.is-in) .sec-title__text { clip-path: none; transform: none; }
  .js .section:not(.is-in) .sec-head.has-hero { clip-path: none; }
  .js .section:not(.is-in) .sec-hero { translate: none; scale: none; }
  .sec-hero, .sec-sketch, .feature__img, .fcard__img img { transform: none !important; }
  .app.is-entering * { animation-duration: .01ms !important; animation-delay: 0s !important; }
  .sheet__panel, .sheet.is-open .sheet__panel { transition: opacity .2s ease !important; }
  .sheet__body > * { transform: none; }
  .sheet.is-open .sheet__media img { animation: none !important; }
}
