/* ---------- Cabecera ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(120% 80% at 85% 0%, rgba(226, 162, 59, 0.16), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 9px),
    var(--green);
  color: #f6f0e2;
  padding: calc(28px + env(safe-area-inset-top)) var(--gutter) 0;
  overflow: hidden;
}
.hero__inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; gap: 8px;
}
.hero .eyebrow { color: var(--amber); }
.hero__title {
  margin-top: 10px;
  font-size: clamp(44px, 12.5vw, 92px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.025em;
  font-variation-settings: 'opsz' 144;
}
.hero__title em {
  display: block;
  font-style: italic; font-weight: 400;
  color: var(--amber);
}
.hero__lede { margin-top: 16px; max-width: 34ch; font-size: 17px; color: rgba(246, 240, 226, 0.82); }

.ticket {
  position: relative;
  display: flex; align-items: stretch; margin-top: 24px; max-width: 420px;
  background: #f6efe0; color: var(--ink);
  border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55);
}
.ticket__date {
  display: grid; justify-items: center; align-content: center;
  padding: 14px 18px 14px 20px;
  border-right: 2px dashed rgba(33, 29, 23, 0.2);
  position: relative;
}
.ticket__date::before, .ticket__date::after {
  content: ''; position: absolute; right: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--green);
}
.ticket__date::before { top: -8px; }
.ticket__date::after { bottom: -8px; }
.ticket__dow { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.ticket__day { font-family: var(--font-display); font-size: 46px; font-weight: 600; line-height: 1; margin: 2px 0; font-variation-settings: 'opsz' 144; font-variant-numeric: lining-nums; }
.ticket__mon { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.ticket__info { display: grid; align-content: center; gap: 2px; padding: 14px 18px; min-width: 0; }
.ticket__info strong { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.ticket__info a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: 14.5px; text-decoration: none; }
.ticket__info a:hover { color: var(--ink); text-decoration: underline; }
.ticket__info a svg { width: 10px; height: 10px; }
.ticket__count {
  justify-self: start; margin-top: 6px;
  font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: var(--amber-soft); color: #7a4f0d;
}

.steps {
  list-style: none; padding: 0; margin: 26px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: 14.5px; color: rgba(246, 240, 226, 0.85);
}
.steps li { display: flex; align-items: center; gap: 8px; }
.steps span {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid rgba(226, 162, 59, 0.7); color: var(--amber);
  font-size: 12.5px; font-weight: 700;
}

.hero__art {
  position: relative; height: 170px; margin: 12px -8px -6px;
  display: flex; justify-content: center; align-items: flex-end;
}
.hero__art > div { position: absolute; bottom: 0; }
.hero__art .a1 { width: 150px; left: calc(50% - 150px); bottom: -6px; }
.hero__art .a2 { width: 120px; left: calc(50% - 30px); bottom: -4px; transform: rotate(4deg); }
.hero__art .a3 { width: 110px; left: calc(50% + 50px); bottom: -10px; }

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.2fr 1fr; align-items: end; }
  .hero__text { padding-bottom: 44px; }
  .hero__art { height: 380px; margin: 0; }
  .hero__art .a1 { width: 300px; left: 4%; bottom: -12px; }
  .hero__art .a2 { width: 220px; left: 42%; bottom: -6px; }
  .hero__art .a3 { width: 210px; left: 66%; bottom: -16px; }
}

.who {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0 16px;
  border-top: 1px solid rgba(246, 240, 226, 0.14);
  font-size: 14px; color: rgba(246, 240, 226, 0.85);
  position: relative;
}
.who__faces { display: flex; flex-shrink: 0; }
.who__faces span {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700; color: var(--ink);
  border: 2px solid var(--green);
  margin-left: -8px;
}
.who__faces span:first-child { margin-left: 0; }
.who__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who__text b { color: #fff; }

/* ---------- Avisos ---------- */

.notice {
  max-width: 1200px; margin: 16px auto 0; padding: 0 var(--gutter);
}
.notice__box {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 16px; border-radius: var(--radius);
  background: var(--card); border: 1.5px solid var(--line);
  box-shadow: var(--shadow);
}
.notice__box + .notice__box { margin-top: 10px; }
.notice__icon {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green-soft); color: var(--green);
}
.notice__icon svg { width: 18px; height: 18px; }
.notice__body { flex: 1 1 200px; min-width: 0; }
.notice__body strong { display: block; }
.notice__body span { color: var(--ink-2); font-size: 14.5px; }
.notice__box--closed { background: var(--red-soft); border-color: rgba(178, 65, 44, 0.25); }
.notice__box--closed .notice__icon { background: var(--red); color: #fff; }

/* ---------- Navegación por secciones ---------- */

.cats {
  position: sticky; top: 0; z-index: 30;
  background: rgba(244, 238, 224, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  margin-top: 8px;
}
.cats__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 10px var(--gutter);
}
.cats__filter {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 12px; border-radius: 999px;
  background: var(--ink); color: var(--paper); border: 0; cursor: pointer;
  font-size: 14px; font-weight: 600;
}
.cats__filter svg { width: 18px; height: 18px; }
.cats__filter b {
  display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--amber); color: var(--ink); font-size: 12px;
}
.cats__list {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  mask-image: linear-gradient(90deg, #000 85%, transparent);
  padding-right: 24px;
}
.cats__list::-webkit-scrollbar { display: none; }
.cats__list a {
  flex-shrink: 0;
  height: 38px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: 999px;
  text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  transition: background-color 0.2s, color 0.2s;
}
.cats__list a:hover { color: var(--ink); background: rgba(33, 29, 23, 0.05); }
.cats__list a.is-active { background: var(--green); color: #fbf7ee; }
.cats__sep { flex-shrink: 0; width: 1px; margin: 8px 6px; background: var(--line-strong); }

/* ---------- Layout ---------- */

.layout {
  max-width: 1200px; margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 1080px) {
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
}

/* ---------- Carta ---------- */

.menu:focus { outline: none; }

.group-title {
  display: flex; align-items: baseline; gap: 14px;
  margin: 44px 0 0; padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}
.group-title h2 { font-size: clamp(30px, 7vw, 40px); font-weight: 500; font-style: italic; }
.group-title span { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }

.sec { padding-top: 30px; scroll-margin-top: 64px; }
.sec__head { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline; margin-bottom: 6px; }
.sec__num { font-family: var(--font-display); font-size: 15px; font-style: italic; color: var(--amber-2); }
.sec__head h3 { font-size: 26px; font-weight: 600; }
.sec__eu { grid-column: 2; font-size: 13px; font-style: italic; font-family: var(--font-display); color: var(--ink-3); margin-top: 2px; }
.sec__blurb { grid-column: 2; margin-top: 6px; font-size: 14.5px; color: var(--ink-2); }

.items { list-style: none; margin: 0; padding: 0; }

.item {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line-strong);
}
.item:last-child { border-bottom: 0; }
.item::before {
  content: ''; position: absolute; inset: 4px -10px; border-radius: 16px;
  background: var(--amber-soft); opacity: 0; transform: scale(0.98);
  transition: opacity 0.25s, transform 0.25s var(--ease);
  z-index: -1;
}
.item.is-picked::before { opacity: 0.75; transform: none; }
.item.is-picked { border-bottom-color: transparent; }

.item__open {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 14px;
  background: none; border: 0; padding: 0; text-align: left; cursor: pointer;
}
.item__art {
  position: relative; flex-shrink: 0;
  width: 72px; height: 72px; border-radius: 18px;
  background: var(--tint, #f0e4cf);
  box-shadow: inset 0 0 0 1px rgba(33, 29, 23, 0.06);
  transition: transform 0.25s var(--ease);
}
.item__art svg { width: 100%; height: 100%; padding: 2px; }
.item__open:hover .item__art { transform: rotate(-3deg) scale(1.04); }
.item__badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--green); color: #fbf7ee; font-size: 13px; font-weight: 700;
  border: 2px solid var(--paper);
  animation: pop 0.3s var(--ease);
}
@keyframes pop { from { transform: scale(0.4); } }

.item__body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.item__line { display: flex; align-items: baseline; gap: 6px; }
.item__name { font-weight: 600; font-size: 16.5px; line-height: 1.25; }
.item__leader { flex: 1; min-width: 12px; border-bottom: 2px dotted rgba(33, 29, 23, 0.3); transform: translateY(-4px); }
.item__price { flex-shrink: 0; font-weight: 600; font-size: 16px; font-variant-numeric: lining-nums tabular-nums; }
.item__desc { font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.item__meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.tag {
  display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; line-height: 18px; letter-spacing: 0.02em;
  background: var(--green-soft); color: var(--green);
}
.tag--hot { background: #fde0d3; color: #a33b1c; }

.item.is-flagged .item__art, .item.is-flagged .item__name, .item.is-flagged .item__desc { opacity: 0.45; }

/* Selector de cantidad */
.qty { flex-shrink: 0; display: flex; align-items: center; gap: 2px; }
.qty button {
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  border: 1.5px solid var(--line-strong); background: var(--card);
  transition: background-color 0.15s, border-color 0.15s, transform 0.1s;
}
.qty button:active { transform: scale(0.92); }
.qty button svg { width: 16px; height: 16px; }
.qty .qty__add { border-color: var(--green); color: var(--green); }
.qty .qty__add:hover { background: var(--green); color: #fbf7ee; }
.qty .qty__plus { background: var(--green); border-color: var(--green); color: #fbf7ee; }
.qty .qty__minus:hover { border-color: var(--ink); }
.qty output { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }

@media (max-width: 519px) {
  .item .qty.is-active { flex-direction: column-reverse; gap: 0; }
  .item .qty.is-active button { width: 36px; height: 36px; }
  .item .qty.is-active output { line-height: 24px; }
  .item__art { width: 64px; height: 64px; border-radius: 16px; }
  .item__open { gap: 12px; }
}

/* ---------- Comanda (panel lateral / hoja inferior) ---------- */

.order {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  max-height: 92dvh; overflow: auto; overscroll-behavior: contain;
  background: var(--card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-lg);
  transform: translateY(105%);
  visibility: hidden;
  transition: transform 0.4s var(--ease), visibility 0s linear 0.4s;
  padding-bottom: env(safe-area-inset-bottom);
}
body.order-open .order { transform: none; visibility: visible; transition: transform 0.4s var(--ease), visibility 0s; }
body.order-open { overflow: hidden; }
.order__grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 10px auto 0; }

.scrim {
  position: fixed; inset: 0; z-index: 55; background: rgba(20, 24, 20, 0.5);
  opacity: 0; transition: opacity 0.3s;
}
body.order-open .scrim { opacity: 1; }

@media (min-width: 1080px) {
  .order {
    position: sticky; top: 76px; z-index: 1;
    margin-top: 40px;
    max-height: calc(100dvh - 96px);
    transform: none; visibility: visible; transition: none;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--line);
    box-shadow: var(--shadow);
  }
  .order__grab, .scrim, .cartbar, .order__close { display: none !important; }
  body.order-open { overflow: auto; }
}

.order__content { padding: 18px 20px 22px; }
.order__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.order__head h2 { font-size: 28px; font-weight: 600; }
.order__head p { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.order__close {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  background: transparent; display: grid; place-items: center; cursor: pointer;
}
.order__close svg { width: 14px; height: 14px; }

.order__editing {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 12px 0 0; padding: 10px 12px; border-radius: 12px;
  background: var(--amber-soft); font-size: 14px;
}

.order__empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 18px 8px 8px; color: var(--ink-2); font-size: 15px; }
.order__empty svg { width: 96px; height: 96px; opacity: 0.85; }
.order__empty strong { color: var(--ink); font-family: var(--font-display); font-size: 19px; font-weight: 600; }

.lines { list-style: none; margin: 14px 0 0; padding: 0; }
.line {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 4px 12px; align-items: center;
  padding: 10px 0; border-top: 1px dashed var(--line-strong);
}
.line__art { width: 44px; height: 44px; border-radius: 12px; background: var(--tint); }
.line__art svg { width: 100%; height: 100%; padding: 2px; }
.line__name { font-weight: 600; font-size: 15px; line-height: 1.25; }
.line__sec { font-size: 12.5px; color: var(--ink-3); }
.line__note { font-size: 13px; color: var(--ink-2); font-style: italic; }
.line__right { display: grid; justify-items: end; gap: 4px; }
.line__sub { font-weight: 600; font-variant-numeric: lining-nums tabular-nums; font-size: 15px; }
.line .qty button { width: 30px; height: 30px; }
.line .qty button svg { width: 12px; height: 12px; }
.line .qty output { min-width: 22px; font-size: 14.5px; }

.totals {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 6px; padding: 14px 0 4px; border-top: 2px solid var(--ink);
}
.totals span { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.totals strong { font-family: var(--font-display); font-size: 26px; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }

.form { display: grid; gap: 14px; margin-top: 18px; }
.hint {
  display: flex; gap: 10px; padding: 12px; border-radius: 12px;
  background: var(--green-soft); color: var(--green); font-size: 13.5px; line-height: 1.45;
}
.hint svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; }
.form__actions { display: grid; gap: 10px; margin-top: 4px; }

/* Confirmación */
.done { text-align: center; display: grid; justify-items: center; gap: 8px; padding-top: 8px; }
.stamp {
  width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center;
  border: 3px solid var(--green); color: var(--green);
  transform: rotate(-8deg);
  animation: stamp 0.5s var(--ease);
  margin-bottom: 6px;
}
.stamp svg { width: 44px; height: 44px; }
@keyframes stamp { from { transform: rotate(-8deg) scale(1.8); opacity: 0; } }
.done h2 { font-size: 30px; }
.done p { color: var(--ink-2); max-width: 32ch; }
.done .lines { width: 100%; text-align: left; }
.done .totals { width: 100%; }
.done .form__actions { width: 100%; }

/* Barra inferior (móvil) */
.cartbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; gap: 12px;
  height: 60px; padding: 0 8px 0 10px; border: 0; border-radius: 18px; cursor: pointer;
  background: var(--green); color: #fbf7ee; text-align: left;
  box-shadow: 0 14px 30px -10px rgba(20, 40, 30, 0.6);
  animation: rise 0.35s var(--ease);
}
@keyframes rise { from { transform: translateY(120%); } }
.cartbar__count {
  display: grid; place-items: center; min-width: 38px; height: 38px; border-radius: 12px;
  background: var(--amber); color: var(--ink); font-weight: 700; font-variant-numeric: lining-nums tabular-nums;
}
.cartbar__label { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cartbar__total { font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
.cartbar__cta {
  display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 12px 0 14px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.12); font-weight: 600; font-size: 15px;
}
.cartbar__cta svg { width: 16px; height: 16px; }
body:has(.cartbar:not([hidden])) .foot { padding-bottom: 110px; }

/* ---------- Ficha de producto ---------- */

.modal--item .sheet__art { position: relative; height: 220px; display: grid; place-items: center; background: var(--tint); }
.modal--item .sheet__art svg { width: 190px; height: 190px; }
.sheet__body { padding: 20px 22px 24px; display: grid; gap: 12px; }
.sheet__title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sheet__title h2 { font-size: 28px; }
.sheet__title strong { font-family: var(--font-display); font-size: 24px; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; flex-shrink: 0; }
.sheet__sec { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber-2); }
.sheet__desc { color: var(--ink-2); font-size: 16px; }
.sheet__block h3 { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.sheet__block .alg { font-size: 13px; line-height: 22px; padding: 1px 10px 1px 7px; }
.sheet__none { font-size: 14.5px; color: var(--ink-2); }
.sheet__foot { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.sheet__foot .qty button { width: 46px; height: 46px; }
.sheet__foot .qty output { min-width: 34px; font-size: 19px; }
.sheet__foot .btn { flex: 1; }

/* ---------- Filtro de alérgenos ---------- */

.filter { padding: 22px; display: grid; gap: 16px; }
.filter h2 { font-size: 26px; }
.filter p { color: var(--ink-2); font-size: 15px; }
.filter__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.filter__grid button {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px;
  border-radius: 12px; border: 1.5px solid var(--line-strong); background: #fffdf8; cursor: pointer;
  font-weight: 600; font-size: 15px; text-align: left;
}
.filter__grid button::before {
  content: ''; flex-shrink: 0; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line-strong);
  background: #fff center / 12px no-repeat;
}
.filter__grid button[aria-pressed='true'] { border-color: var(--red); background: var(--red-soft); }
.filter__grid button[aria-pressed='true']::before {
  background-color: var(--red); border-color: var(--red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5 9.5 3.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.filter__foot { display: flex; gap: 10px; }
.filter__foot .btn { flex: 1; }

/* ---------- Pie ---------- */

.foot {
  max-width: 1200px; margin: 56px auto 0; padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  display: grid; gap: 10px; font-size: 14px; color: var(--ink-2);
}
.foot p { max-width: 72ch; }
.foot__small { color: var(--ink-3); font-size: 13px; }
