/* ============================================================
   HAMTARO'S · estilos
   Un solo acento (naranja), un campo negro (la pizarra),
   un campo amarillo (la casa) y papel.
   ============================================================ */

:root {
  --paper: #ffffff;
  --surface: #f1f1ef;
  --surface-2: #dfdfdc;
  --ink: #161310;
  --muted: #625d57;
  --accent: #ff5a1f;
  --accent-deep: #e8480f;
  --board: #060505;
  --board-2: #171615;
  --board-ink: #ffffff;
  --board-muted: #a6a6a3;
  --yellow: #ffc233;

  --text-xs: 13px;
  --text-sm: 15px;
  --text-body: 17px;
  --text-sub: 22px;
  --text-fig: 40px;
  --text-h3: clamp(26px, 2.4vw, 32px);
  --text-h2: clamp(36px, 5.6vw, 68px);
  --text-h1: clamp(72px, 15vw, 186px);

  --pad: 20px;
  --section: 88px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-text: "Albert Sans", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { list-style: none; padding: 0; }

a { color: inherit; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

::selection { background: var(--accent); color: var(--ink); }

.wrap {
  width: min(1320px, 100% - (var(--pad) * 2));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--yellow);
  color: var(--ink);
  padding: 12px 20px;
  font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- tipografía base ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: .88;
}

/* ============================================================
   BOTONES Y ENLACES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background .18s ease, transform .12s ease;
}
.btn:hover { background: var(--accent-deep); }
.btn:active { transform: translateY(1px); }
.btn[disabled] {
  background: var(--surface-2);
  color: #57534d;
  cursor: not-allowed;
  transform: none;
}
.btn--block { width: 100%; }

.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: #000; }

.btn--accent { background: var(--accent); }

.link-wa {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color .18s ease;
}
.link-wa:hover { color: var(--accent); }

/* ============================================================
   HERO · la pizarra
   ============================================================ */
.hero {
  background: var(--board);
  color: var(--board-ink);
  overflow: hidden;
}

.hero__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px;
}

.wordmark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
}
.wordmark__name {
  font-family: var(--font-display);
  font-size: var(--text-sub);
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--yellow);
}
.wordmark__sub {
  font-size: var(--text-xs);
  color: var(--board-muted);
  margin-top: 3px;
}

.nav { display: none; }
.nav a {
  color: var(--board-ink);
  text-decoration: none;
  font-size: var(--text-sm);
  padding: 8px 0;
}
.nav a:hover { color: var(--yellow); }

.hero__phone {
  display: none;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  color: var(--board-ink);
}
.hero__phone:hover { color: var(--yellow); }

.hero__inner {
  display: grid;
  gap: 40px;
  padding-block: 20px 36px;
  align-items: center;
}

.hero__logo {
  width: min(280px, 74%);
  margin-bottom: 18px;
  mix-blend-mode: lighten;
}

.hero__title {
  font-size: var(--text-h1);
  color: var(--paper);
  letter-spacing: -.025em;
  margin-left: -4px;
}

.hero__sub {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: var(--text-h3);
  letter-spacing: .015em;
  color: var(--yellow);
  margin-top: 8px;
  line-height: 1;
}

.hero__lead {
  max-width: 44ch;
  margin-top: 20px;
  color: #d4d4d1;
  font-size: var(--text-body);
}

.hero__offer {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 16px;
  color: var(--board-ink);
  font-size: var(--text-sm);
}
.hero__offer strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-fig);
  color: var(--accent);
  line-height: 1;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 28px;
}

.hero__actions .btn { width: 100%; }
.hero__actions .link-wa { width: 100%; justify-content: center; }

.hero__sheet {
  position: relative;
  display: none;
  width: min(330px, 80%);
  margin-inline: auto;
  transform: rotate(-2.4deg);
  filter: drop-shadow(0 26px 50px rgba(0, 0, 0, .65)); /* taste-skill-ignore: el menú impreso flota sobre la pizarra */
}
.hero__sheet img { width: 100%; }

.hero__sticker {
  position: absolute;
  left: -44px;
  bottom: -6px;
  background: var(--accent);
  color: var(--ink);
  padding: 12px 18px 10px;
  transform: rotate(-3.5deg);
  clip-path: polygon(1.5% 7%, 100% 0, 98.5% 93%, 0 100%);
  max-width: 72%;
}
.hero__price {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-h2);
  line-height: .9;
}
.hero__price-note {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  margin-top: 4px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  padding-block: 18px 26px;
  color: var(--board-muted);
  font-size: var(--text-sm);
}

/* ============================================================
   MENÚ
   ============================================================ */
.section { padding-block: var(--section); }

.menu__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}
.menu h2 { font-size: var(--text-h2); }
.menu__note {
  max-width: 38ch;
  font-size: var(--text-sub);
  line-height: 1.35;
}

.menu__grid { display: grid; gap: 44px; }

.dish {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  padding-block: 26px;
  align-items: start;
}
.dish:first-child { padding-top: 0; }

.dish__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 42% 50%;
}
[data-product="burger"] .dish__media img { object-position: 30% 50%; }
[data-product="papas"] .dish__media img { object-position: 24% 50%; }

.dish--lead { grid-template-columns: 1fr; }
.dish--lead .dish__media img {
  aspect-ratio: 16 / 10;
  object-position: 45% 50%;
}

.dish__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.dish h3 { font-size: var(--text-h3); }

.dish__price {
  font-family: var(--font-display);
  font-size: var(--text-fig);
  line-height: 1;
  white-space: nowrap;
}

.dish__desc {
  margin-top: 8px;
  color: #3b3630;
  font-size: var(--text-sm);
  line-height: 1.45;
  max-width: 48ch;
}

.salsa { margin-top: 16px; }
.salsa__label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}
.salsa__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.salsa__nota {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: 8px;
  min-height: 18px;
}

.chip {
  min-height: 40px;
  padding: 9px 13px;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.chip:hover { background: var(--surface-2); }
.chip.is-on { background: var(--ink); color: var(--paper); }

.chip--extra {
  background: rgba(246, 242, 234, .1);
  color: var(--board-ink);
}
.chip--extra:hover { background: rgba(246, 242, 234, .2); }
.chip--extra:active { background: var(--accent); color: var(--ink); }

.dish__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.qty {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
}
.qty__btn {
  width: 42px;
  height: 44px;
  border: 0;
  background: none;
  font-size: var(--text-sub);
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease;
}
.qty__btn:hover { background: var(--surface-2); }
.qty__n {
  min-width: 26px;
  text-align: center;
  font-weight: 600;
  font-size: var(--text-sm);
}

.btn--add {
  flex: 1;
  min-height: 48px;
  padding-inline: 18px;
  font-size: var(--text-sm);
}

/* --- extras --- */
.extras {
  margin-top: 34px;
  background: var(--board);
  color: var(--board-ink);
  padding: 24px 22px 26px;
}
.extras__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.extras h3 { font-size: var(--text-h3); }
.extras__price {
  font-family: var(--font-display);
  font-size: var(--text-sub);
  color: var(--accent);
}
.extras__note {
  color: var(--board-muted);
  font-size: var(--text-xs);
  margin-top: 6px;
  max-width: 44ch;
}
.extras__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

/* ============================================================
   TICKET
   ============================================================ */
.ticket-col { position: relative; }

.ticket {
  background: var(--paper);
  padding: 26px 20px 34px;
  clip-path: polygon(
    0 0, 100% 0, 100% calc(100% - 9px),
    95% 100%, 90% calc(100% - 9px), 85% 100%, 80% calc(100% - 9px),
    75% 100%, 70% calc(100% - 9px), 65% 100%, 60% calc(100% - 9px),
    55% 100%, 50% calc(100% - 9px), 45% 100%, 40% calc(100% - 9px),
    35% 100%, 30% calc(100% - 9px), 25% 100%, 20% calc(100% - 9px),
    15% 100%, 10% calc(100% - 9px), 5% 100%, 0 calc(100% - 9px)
  );
  filter: drop-shadow(0 22px 34px rgba(22, 19, 16, .16)); /* taste-skill-ignore: el ticket es una hoja que flota */
}

.ticket__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
}
.ticket__brand {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: var(--text-sub);
}
.ticket__folio {
  font-size: var(--text-xs);
  color: var(--muted);
}

.ticket__lines { display: grid; gap: 2px; }

.ticket__line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: start;
  gap: 8px;
  padding-block: 9px;
}
.ticket__line.is-new { animation: printIn .38s var(--ease) both; }
.ticket__qty {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--accent);
  padding-top: 2px;
}
.ticket__name {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.25;
}
.ticket__opt {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: 1px;
}
.ticket__line-price {
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  padding-top: 1px;
}
.ticket__rm {
  width: 30px;
  height: 30px;
  margin: -4px -6px 0 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: var(--text-sub);
  line-height: 1;
  cursor: pointer;
}
.ticket__rm:hover { color: var(--accent); }

.ticket__empty {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.45;
  padding-block: 18px 8px;
}

.ticket__sum {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 3px dotted var(--surface-2);
  font-size: var(--text-sm);
  color: var(--muted);
}
.ticket__sum p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ticket__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 18px;
}
.ticket__total span {
  font-size: var(--text-sm);
  font-weight: 600;
}
.ticket__total strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-fig);
  line-height: 1;
}

.ticket__note {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.35;
}

.ticket__close { display: none; }

/* animación de impresión */
@keyframes printIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
   GALERÍA · campo negro
   ============================================================ */
.cerca {
  background: var(--board);
  color: var(--board-ink);
}
.cerca__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}
.cerca h2 { font-size: var(--text-h2); color: var(--paper); }
.cerca__head p {
  color: var(--board-muted);
  font-size: var(--text-body);
  max-width: 34ch;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 599px) {
  .tile__strip .tile__row--low { display: none; }
  .tile__row span:nth-child(2) { display: none; }
  .tile__strip { padding: 9px 9px 10px; }
}

.tile { display: flex; flex-direction: column; }
.tile__media { overflow: hidden; background: var(--board-2); }
.tile__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 45% 50%;
  transition: transform .6s var(--ease);
}
.tile:hover .tile__media img { transform: scale(1.04); }

.tile__strip {
  padding: 11px 10px 12px;
  display: grid;
  gap: 7px;
  font-size: var(--text-xs);
}
.tile__row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}
.tile__row span:nth-child(2) { text-align: center; }
.tile__row--low { opacity: .72; }

.tile--ink .tile__strip { background: var(--board-2); color: var(--board-ink); }
.tile--accent .tile__strip { background: var(--accent); color: var(--ink); }
.tile--yellow .tile__strip { background: var(--yellow); color: var(--ink); }
.tile--paper .tile__strip { background: var(--surface); color: var(--ink); }

.tile--accent .tile__media img { object-position: 32% 50%; }
.tile--yellow .tile__media img { object-position: 24% 50%; }
.tile--paper .tile__media img { object-position: 50% 4%; }

.tile__link { display: block; }

/* ============================================================
   CÓMO PEDIR · campo amarillo
   ============================================================ */
.como {
  background: var(--yellow);
  color: var(--ink);
}
.como__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }

.como__copy h2 {
  font-size: var(--text-h2);
  max-width: 15ch;
}
.como__copy p {
  max-width: 38ch;
  margin-top: 16px;
  font-size: var(--text-body);
}
.como__copy .btn { margin-top: 24px; }

.slip {
  background: var(--paper);
  padding: 26px 22px 34px;
  clip-path: polygon(
    0 0, 100% 0, 100% calc(100% - 8px),
    96% 100%, 92% calc(100% - 8px), 88% 100%, 84% calc(100% - 8px),
    80% 100%, 76% calc(100% - 8px), 72% 100%, 68% calc(100% - 8px),
    64% 100%, 60% calc(100% - 8px), 56% 100%, 52% calc(100% - 8px),
    48% 100%, 44% calc(100% - 8px), 40% 100%, 36% calc(100% - 8px),
    32% 100%, 28% calc(100% - 8px), 24% 100%, 20% calc(100% - 8px),
    16% 100%, 12% calc(100% - 8px), 8% 100%, 4% calc(100% - 8px), 0 100%
  );
  filter: drop-shadow(0 20px 30px rgba(22, 19, 16, .18)); /* taste-skill-ignore: el itinerario impreso flota */
}
.slip__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: var(--text-sub);
  margin-bottom: 14px;
}
.slip__row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-block: 9px;
  font-size: var(--text-sm);
}
.slip__what { flex: 0 1 auto; }
.slip__val {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.slip__dots {
  flex: 1 1 auto;
  min-width: 18px;
  height: 8px;
  background-image: radial-gradient(circle, var(--ink) 1.6px, transparent 1.7px); /* taste-skill-ignore: puntos de guía, no degradado */
  background-size: 8px 8px;
  background-repeat: repeat-x;
  background-position: 0 50%;
  opacity: .28;
}
.slip__final {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 14px;
  margin-top: 14px;
  font-size: var(--text-xs);
  font-weight: 600;
}

/* ============================================================
   UBICACIÓN · cupón
   ============================================================ */
.ubicacion { padding-bottom: 110px; }

.coupon {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 34px 24px 38px;
  display: grid;
  gap: 26px;
}
.coupon::before,
.coupon::after {
  content: "";
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--paper);
  z-index: 2;
}
.coupon::before { left: -23px; top: var(--notch, 50%); transform: translateY(-50%); }
.coupon::after { right: -23px; top: var(--notch, 50%); transform: translateY(-50%); }

.coupon__left h2 {
  font-size: var(--text-h2);
  max-width: 13ch;
}
.coupon__left p {
  color: #c6c6c3;
  font-size: var(--text-body);
  margin-top: 14px;
  max-width: 34ch;
}

.coupon__right { position: relative; }
.coupon__right::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -13px;
  height: 3px;
  background-image: radial-gradient(circle, var(--paper) 1.8px, transparent 1.9px); /* taste-skill-ignore: perforación del cupón */
  background-size: 9px 3px;
  background-repeat: repeat-x;
  opacity: .5;
}

.coupon__addr {
  display: grid;
  gap: 6px;
  font-style: normal;
  font-size: var(--text-sm);
  line-height: 1.4;
}
.coupon__addr a {
  color: var(--yellow);
  text-decoration: none;
  font-weight: 600;
}
.coupon__addr a:hover { text-decoration: underline; }

.coupon__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 20px;
}
.link-wa--dark { color: var(--paper); }
.link-wa--dark:hover { color: var(--yellow); }

.coupon__note {
  font-size: var(--text-xs);
  color: #9b9b98;
  margin-top: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding-top: 0; }

.footer__panel {
  position: relative;
  background: var(--surface);
  padding: 64px 22px 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.footer__panel::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 0;
  right: 0;
  height: 14px;
  background-image: radial-gradient(circle at 50% 100%, var(--surface) 13px, transparent 13.5px); /* taste-skill-ignore: borde festoneado del reverso */
  background-size: 54px 14px;
  background-repeat: repeat-x;
}
.footer__msg { max-width: 40ch; }
.footer__sign {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: var(--text-h3);
  line-height: .95;
  margin-bottom: 12px;
}
.footer__msg p:last-child {
  font-size: var(--text-sm);
  color: #4a4742;
  line-height: 1.5;
}
.footer__addr {
  display: grid;
  gap: 8px;
  align-content: start;
  font-size: var(--text-body);
  padding-right: 80px;
}
.footer__addr a {
  text-decoration: none;
  border-bottom: 2px solid var(--surface-2);
  padding-bottom: 2px;
  width: fit-content;
}
.footer__addr a:hover { border-color: var(--accent); }

.footer__stamp {
  position: absolute;
  top: 26px;
  right: 22px;
  width: 64px;
  height: auto;
  padding: 5px 5px 14px;
  background: var(--paper);
  transform: rotate(3deg);
}

.footer__imprint {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--muted);
  padding-block: 22px 34px;
}

/* ============================================================
   BARRA DEL TICKET (móvil)
   ============================================================ */
.cartbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .28)); /* taste-skill-ignore: barra fija del ticket */
}
.cartbar[hidden] { display: none; }
.cartbar button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 0 18px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--text-sm);
  cursor: pointer;
}
.cartbar__count { color: var(--board-muted); }
.cartbar__cta { display: inline-flex; align-items: center; gap: 8px; }
.cartbar__cta strong {
  font-family: var(--font-display);
  font-size: var(--text-sub);
  font-weight: 400;
  color: var(--yellow);
}

/* ticket como hoja inferior en móvil */
@media (max-width: 899px) {
  .ticket-col {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    padding: 0 10px calc(10px + env(safe-area-inset-bottom, 0px));
    transform: translateY(112%);
    transition: transform .34s var(--ease);
    max-height: 92dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .ticket-col.is-open { transform: translateY(0); }
  .ticket { padding: 24px 18px 34px; }
  .ticket__close {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 12px;
    border: 0;
    background: var(--surface);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
  }
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(14, 13, 12, .6);
}
.backdrop[hidden] { display: none; }

/* ============================================================
   CHECKOUT · hoja
   ============================================================ */
.sheet {
  border: 0;
  padding: 0;
  width: min(600px, 100% - 24px);
  max-height: 92dvh;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35); /* taste-skill-ignore: diálogo modal */
}
.sheet::backdrop { background: rgba(14, 13, 12, .66); }
.sheet[open] { animation: sheetIn .28s var(--ease) both; }

@keyframes sheetIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.sheet form { display: flex; flex-direction: column; max-height: 92dvh; }

.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: var(--ink);
  color: var(--paper);
}
.sheet__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: var(--text-sub);
}
.sheet__close {
  width: 40px;
  height: 40px;
  border: 0;
  background: rgba(246, 242, 234, .12);
  color: var(--paper);
  font-size: var(--text-sub);
  line-height: 1;
  cursor: pointer;
}
.sheet__close:hover { background: var(--accent); color: var(--ink); }

.sheet__body {
  padding: 20px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-content: start;
}

.seg { border: 0; padding: 0; margin: 0; }
.seg legend {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--muted);
  padding: 0 0 8px;
}
.seg__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg__opt { display: block; cursor: pointer; }
.seg__opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.seg__opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 12px;
  background: var(--surface);
  font-size: var(--text-sm);
  font-weight: 500;
  text-align: center;
  transition: background .16s ease, color .16s ease;
}
.seg__opt input:checked + span {
  background: var(--ink);
  color: var(--paper);
}
.seg__opt input:focus-visible + span {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.fields { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--muted);
}
.field input,
.field textarea {
  width: 100%;
  border: 0;
  background: var(--surface);
  padding: 15px 14px;
  font-size: var(--text-body);
  line-height: 1.3;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: 3px solid var(--yellow);
  outline-offset: -1px;
}
.field input::placeholder,
.field textarea::placeholder { color: #9b958d; }

.mini {
  background: var(--surface);
  padding: 14px 14px;
  font-size: var(--text-sm);
  display: grid;
  gap: 4px;
}
.mini__line { display: flex; justify-content: space-between; gap: 12px; }
.mini__total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 3px dotted var(--surface-2);
  font-weight: 600;
}
.mini__total strong { font-family: var(--font-display); font-size: var(--text-sub); font-weight: 400; }

.form-error {
  background: #ffe6dd;
  color: #8c2400;
  padding: 10px 12px;
  font-size: var(--text-sm);
}

.fine {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.45;
}

/* --- confirmación --- */
.sheet--done { width: min(460px, 100% - 24px); }
.done {
  text-align: center;
  padding: 36px 24px 32px;
  justify-items: center;
}
.done__folio {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: .06em;
  color: var(--accent);
}
.done__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: var(--text-h3);
  line-height: .95;
  margin-top: 6px;
}
.done__text {
  font-size: var(--text-sm);
  color: #48423b;
  max-width: 34ch;
  margin-top: 6px;
}
.done .btn { margin-top: 10px; }
.done__again {
  border: 0;
  background: none;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 12px;
  cursor: pointer;
}
.done__again:hover { color: var(--accent-deep); }

/* ============================================================
   ESCRITORIO
   ============================================================ */
@media (max-width: 599px) {
  .footer__msg { padding-right: 66px; }
}

@media (min-width: 600px) {
  :root { --pad: 28px; }
  .hero__sheet { display: block; }
  .hero__offer { display: none; }
  .hero__actions .btn,
  .hero__actions .link-wa { width: auto; }
  .dish { grid-template-columns: 140px minmax(0, 1fr); gap: 22px; }
  .dish__desc { font-size: var(--text-body); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .footer__panel { grid-template-columns: 1.35fr 1fr; padding: 68px 40px 40px; }
  .footer__stamp { width: 84px; right: 40px; }
}

/* tablet acostado: el menú impreso entra a la derecha */
@media (min-width: 700px) and (max-width: 899px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 290px);
    gap: 32px;
    align-items: center;
  }
  .hero__title { font-size: clamp(72px, 11.5vw, 150px); }
  .hero__sheet { width: 100%; justify-self: end; margin: 0; }
  .hero__logo { width: min(290px, 70%); }
}

@media (min-width: 900px) {
  :root { --pad: 32px; --section: 128px; }

  .nav { display: flex; gap: 30px; }
  .hero__phone { display: inline-flex; }

  .hero { padding-bottom: 6px; }
  .hero__bar { padding-block: 22px; }
  .hero__inner {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
    padding-block: 26px 30px;
    align-items: center;
    min-height: 560px;
  }
  .hero__copy { grid-column: 1 / span 7; }
  .hero__sheet {
    grid-column: 8 / span 5;
    justify-self: end;
    width: min(360px, 92%);
    margin: 0;
  }
  .hero__logo { width: min(300px, 72%); }
  .hero__lead { margin-top: 22px; }

  .menu__head {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    gap: 40px;
    margin-bottom: 56px;
  }
  .menu__head h2 { font-size: var(--text-h2); }
  .menu__note { justify-self: end; text-align: right; max-width: 32ch; }

  .menu__grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, .92fr);
    gap: 56px;
    align-items: start;
  }
  .ticket-col { position: sticky; top: 24px; }

  .dish { padding-block: 30px; gap: 28px; }
  .dish--lead {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 30px;
    align-items: center;
    padding-bottom: 38px;
  }
  .dish--lead .dish__media img { aspect-ratio: 4 / 3; }
  .dish--lead .dish__body { padding-right: 6px; }
  .dish--lead h3 { font-size: var(--text-h3); }
  .dish--lead .dish__desc { font-size: var(--text-body); }

  .extras { padding: 30px 30px 32px; }

  .cerca__head {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    gap: 40px;
    margin-bottom: 40px;
  }
  .cerca__head p { justify-self: end; text-align: right; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

  .como__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
  }
  .como__copy { grid-column: 1 / span 5; }
  .slip {
    grid-column: 7 / span 6;
    padding: 32px 30px 44px;
    justify-self: end;
    width: 100%;
    max-width: 520px;
  }

  .coupon {
    grid-template-columns: 46% 54%;
    gap: 0;
    padding: 54px 56px;
    --notch: 50%;
  }
  .coupon::before,
  .coupon::after {
    width: 56px;
    height: 56px;
    left: 46%;
    top: auto;
    transform: translate(-50%, -50%);
  }
  .coupon::before { top: 0; }
  .coupon::after { top: 100%; }
  .coupon__left { padding-right: 56px; }
  .coupon__right {
    padding-left: 56px;
    border-left: 3px dotted rgba(255, 255, 255, .35);
  }
  .coupon__right::before { display: none; }
  .coupon__addr { font-size: var(--text-body); }

  .footer__panel { padding: 74px 56px 48px; }
}

@media (min-width: 1200px) {
  .hero__inner { min-height: 620px; }
  .dish--lead .dish__media img { aspect-ratio: 16 / 11; }
}

/* pantallas muy angostas */
@media (max-width: 380px) {
  .dish { grid-template-columns: 84px minmax(0, 1fr); }
  .dish__foot { flex-wrap: wrap; }
  .btn--add { flex: 1 1 100%; order: 2; }
}

/* ============================================================
   ENTRADAS Y MOVIMIENTO
   ============================================================ */
.js [data-reveal] { opacity: 0; }

.js [data-reveal].is-in {
  animation: revealUp .7s var(--ease) both;
  animation-delay: var(--d, 0ms);
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* la imagen que se mueve: el menú impreso respira */
.hero__sheet img {
  animation: sheetDrift 22s ease-in-out infinite alternate;
}
@keyframes sheetDrift {
  from { transform: scale(1); }
  to { transform: scale(1.045) translateY(-5px); }
}

/* ============================================================
   MOVIMIENTO REDUCIDO
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; }
  .js [data-reveal].is-in { animation: none; }
  .hero__sheet img { animation: none; }
}

/* ============================================================
   AVISOS
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  z-index: 120;
  max-width: calc(100% - 32px);
  transform: translate(-50%, 14px);
  opacity: 0;
  pointer-events: none;
  background: var(--yellow);
  color: var(--ink);
  padding: 10px 16px;
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: center;
  transition: opacity .2s ease, transform .2s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 900px) {
  .toast { bottom: 26px; }
  .cartbar { display: none; }
}

.install {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 14px;
  padding: 8px 14px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
}
.install[hidden] { display: none; }
.install:hover { background: var(--accent); color: var(--ink); }

/* ============================================================
   IMPRESIÓN
   ============================================================ */
@media print {
  .hero, .menu, .cerca, .como, .ubicacion, .footer, .cartbar,
  .sheet, .backdrop { display: none !important; }
}
