/* ==========================================================================
   Matojitos — retro-diner QSR site
   Design tokens + shared components. Mobile-first responsive.
   ========================================================================== */

:root {
  --ink: #23211e;

  /* Superficies. La base es blanco puro para que el sitio respire;
     --surface-alt es un gris casi imperceptible para alternar bandas
     sin ensuciar el blanco. */
  --off-white: #ffffff;
  --surface-alt: #f7f6f4;

  /* Relleno claro SOBRE fondos oscuros (footer, header oscuro, toldo). */
  --cream: #f5f3f0;

  /* Amarillo: es el acento del sitio, no un color de fondo general. */
  --yellow: #e9c42b;
  --yellow-soft: #f2d34a;
  --yellow-wash: #fdf6dd;    /* fondo tenue para avisos y estados activos */

  /* Rojo: color fuerte del sitio. Todos los titulares y nombres de plato. */
  --red: #c8352b;
  --red-dark: #8f2019;

  --muted: #635c53;
  --muted-2: #6f6961;
  --muted-3: #776f66;
  --stone: #a09a91;

  /* Grises de marca — se usan junto al amarillo como par principal */
  --graphite: #35322d;
  --graphite-2: #24221e;

  --line: #e9e7e3;
  --line-2: #ddd9d3;
  --body: #453f38;
  --green: #2e8f52;

  /* Dos familias redondeadas: Fredoka para titulares, Nunito para texto.
     Las dos tienen terminaciones curvas, que es lo que da el aire amable. */
  --font-display: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, sans-serif;
  --font-mono: 'Nunito', system-ui, sans-serif;

  --page: 1240px;
  --gutter: 28px;
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--off-white);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }

.wrap { max-width: var(--page); margin: 0 auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

.display { font-family: var(--font-display); font-weight: 600; line-height: 1.05; }
.eyebrow {
  font: 700 12px var(--font-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.kicker {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  font: 700 12px var(--font-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 4px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 5.6vw, 62px);
  line-height: 1.02;
  letter-spacing: -.015em;
  color: var(--red);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 800 15px var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(2px); }

/* CTA principal: amarillo sobre tinta, igual que el botón del hero. */
.btn--primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--ink);
}
.btn--primary:hover { background: var(--yellow-soft); }
.btn--primary:active { box-shadow: 0 2px 0 var(--ink); }

.btn--outline {
  background: var(--off-white);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 13px 28px;
}
.btn--outline:hover { background: var(--yellow); }

.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: #3d3934; }

.btn--yellow {
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 13px 28px;
}
.btn--yellow:hover { background: var(--yellow-soft); }

/* Botón fantasma: para usar encima de fotos oscuras */
.btn--ghost {
  background: rgba(255, 255, 255, .96);
  color: var(--graphite-2);
  border: 2px solid transparent;
}
.btn--ghost:hover { background: #fff; }

.btn--square { border-radius: 6px; }
.btn--sm { font-size: 13px; padding: 10px 20px; }
.btn--block { display: flex; width: 100%; }

/* --------------------------------------------------------------------------
   Decorative
   -------------------------------------------------------------------------- */

.checker {
  height: 34px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 34px, var(--cream) 34px 68px);
}
.checker--sm { height: 26px; background: repeating-linear-gradient(90deg, var(--ink) 0 26px, var(--cream) 26px 52px); }

/* --------------------------------------------------------------------------
   Header — variant A (cream/light) and variant B (dark)
   -------------------------------------------------------------------------- */


/* Barra de navegación: dos grupos de píldoras a los lados de la marca,
   que queda centrada. Es el patrón del sitio de referencia. */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  background: var(--off-white);
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.nav-group { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nav-group--right { justify-content: flex-end; }

/* Píldora tipo sticker: borde amarillo, texto rojo y sombra desplazada. */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--off-white);
  color: var(--red);
  border: 2px solid var(--yellow);
  border-radius: 999px;
  padding: 9px 20px;
  font: 700 15px var(--font-body);
  box-shadow: 0 3px 0 var(--yellow-wash);
  transition: background .14s ease, color .14s ease, transform .14s ease, box-shadow .14s ease;
  white-space: nowrap;
}
.pill:hover {
  background: var(--yellow-wash);
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--yellow);
}
.pill:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--yellow); }
.pill[aria-current="page"],
.pill--solid {
  background: var(--red);
  color: #fff;
  border-color: var(--yellow);
  box-shadow: 0 3px 0 var(--yellow);
}
.pill[aria-current="page"]:hover,
.pill--solid:hover { background: var(--red-dark); color: #fff; }

/* Marca centrada: mascota + logotipo */
.brand { display: flex; align-items: center; gap: 10px; justify-self: center; }
.brand__mark {
  height: 54px;
  width: auto;
  object-fit: contain;
  transition: transform .18s ease;
}
.brand:hover .brand__mark { transform: translateY(-3px) rotate(-4deg); }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1;
  color: var(--red);
  letter-spacing: -.01em;
}

/* Cajón de navegación: solo aparece en móvil (ver bloque responsive) */
.site-nav { display: none; }

/* Estilos heredados que aún usan item.html y orden.html en su subbarra */
.site-header__logo img { height: 66px; width: auto; object-fit: contain; }
.signin {
  display: flex; align-items: center; gap: 8px;
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 9px 16px; font: 700 13px var(--font-body);
}
.signin:hover { background: var(--yellow); }

.cart-count { font-family: var(--font-mono); font-size: 12px; }

.nav-toggle { display: none; }

/* --------------------------------------------------------------------------
   Value bar
   -------------------------------------------------------------------------- */

.value-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ink);
  color: var(--cream);
}
.value-bar li {
  padding: 20px 24px;
  font: 700 14px var(--font-body);
  letter-spacing: .06em;
  text-transform: uppercase;
  border-right: 1px solid rgba(245, 243, 240, .18);
}
.value-bar li:last-child { border-right: none; }

/* --------------------------------------------------------------------------
   Hero A — mascot-led
   -------------------------------------------------------------------------- */

.hero-a { position: relative; background: var(--yellow); padding: 52px var(--gutter) 0; overflow: hidden; }
.hero-a__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}
.hero-a__copy { flex: 1; padding-bottom: 64px; }
.hero-a h1 {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 7vw, 76px);
  line-height: .94;
  letter-spacing: -.01em;
  text-shadow: 6px 6px 0 var(--off-white);
  text-wrap: balance;
}
.hero-a p {
  margin: 22px 0 0;
  max-width: 430px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--body);
  text-wrap: pretty;
}
.hero-a__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-a__cta .btn { font-size: 16px; padding: 16px 32px; }
.hero-a__art { width: 420px; height: 400px; display: flex; align-items: flex-end; justify-content: center; }
.hero-a__art img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

/* --------------------------------------------------------------------------
   Hero — foto a sangre con el texto encima
   -------------------------------------------------------------------------- */

/* La foto ocupa toda la sección; el texto va encima sobre un degradado. */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(540px, 80vh, 780px);
  overflow: hidden;
  background: var(--graphite-2);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 52%;
}
/* Doble degradado: uno lateral para el bloque de texto, otro superior
   para que la barra de navegación siempre tenga contraste. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(96deg,
      rgba(24, 22, 19, .95) 0%,
      rgba(24, 22, 19, .90) 30%,
      rgba(24, 22, 19, .62) 50%,
      rgba(24, 22, 19, .18) 72%,
      rgba(24, 22, 19, .05) 100%),
    linear-gradient(180deg, rgba(24, 22, 19, .55) 0%, rgba(24, 22, 19, 0) 40%);
}
.hero__inner {
  position: relative;
  z-index: 2;                 /* siempre por encima de la mascota */
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 72px var(--gutter) 78px;
}
.hero__copy { max-width: 640px; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 12px var(--font-mono);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--yellow);
}
.hero__eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--yellow);
}
.hero h1 {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(42px, 6.2vw, 84px);
  line-height: .94;
  color: #fff;
  letter-spacing: -.01em;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .45);
}
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p {
  margin: 22px 0 0;
  max-width: 470px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: rgba(255, 255, 255, .84);
  text-wrap: pretty;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__cta .btn { font-size: 15px; padding: 16px 30px; }

/* La mascota hace de mascarón de proa, como la M en el hero de McDonald's. */
.hero__mascot {
  position: absolute;
  right: clamp(8px, 5vw, 96px);
  bottom: 0;
  z-index: 1;
  width: auto;
  height: clamp(300px, 62%, 520px);
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .5));
  pointer-events: none;
}

/* Franja amarilla de cierre, con el dentado de toldo. */
.hero__edge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  z-index: 2;
  background: var(--yellow);
}

/* Marquee ticker */
.ticker {
  background: var(--graphite);
  color: var(--yellow);
  padding: 13px 0;
  overflow: hidden;
  border-bottom: 4px solid var(--yellow);
}
.ticker__track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  width: max-content;
  animation: ticker-scroll 32s linear infinite;
}
.ticker__track span { color: var(--yellow); }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* --------------------------------------------------------------------------
   Galería tipo álbum — fotos ladeadas con marco grueso, en carrusel
   -------------------------------------------------------------------------- */

.gallery {
  padding: clamp(44px, 5vw, 72px) 0;
  overflow: hidden;
}
.gallery__head {
  max-width: var(--page);
  margin: 0 auto clamp(28px, 3vw, 44px);
  padding-inline: var(--gutter);
  text-align: center;
}
.gallery__track {
  display: flex;
  gap: 26px;
  width: max-content;
  padding: 26px 13px;      /* aire para que el giro no recorte los marcos */
  animation: gallery-scroll 46s linear infinite;
}
.gallery:hover .gallery__track { animation-play-state: paused; }
@keyframes gallery-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.gallery__item {
  flex: none;
  width: clamp(210px, 22vw, 300px);
  aspect-ratio: 4 / 5;
  border: 8px solid var(--red);
  background: var(--red);
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(35, 33, 30, .16);
  transition: transform .25s ease;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
/* Giros alternos para que parezca un montaje de fotos sueltas */
.gallery__item:nth-child(4n + 1) { transform: rotate(-3deg); }
.gallery__item:nth-child(4n + 2) { transform: rotate(2deg); }
.gallery__item:nth-child(4n + 3) { transform: rotate(-1.5deg); }
.gallery__item:nth-child(4n + 4) { transform: rotate(3.5deg); }
.gallery__item:hover { transform: rotate(0) scale(1.03); }

@media (prefers-reduced-motion: reduce) {
  .gallery__track { animation: none; overflow-x: auto; width: auto; }
}

/* --------------------------------------------------------------------------
   Product cards
   -------------------------------------------------------------------------- */

.section { position: relative; padding: clamp(52px, 6vw, 88px) var(--gutter); }

/* Mascota suelta decorando los márgenes de una sección. Es adorno:
   se oculta en pantallas estrechas para no robarle sitio al contenido. */
.mascot-deco {
  position: absolute;
  width: clamp(74px, 8vw, 132px);
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.mascot-deco--left { left: clamp(4px, 2.5vw, 46px); top: 16%; transform: rotate(-8deg); }
.mascot-deco--right { right: clamp(4px, 2.5vw, 46px); bottom: 12%; transform: rotate(7deg) scaleX(-1); }
.section > .wrap { position: relative; z-index: 1; }
@media (max-width: 1080px) { .mascot-deco { display: none; } }
.section--soft { background: var(--surface-alt); }
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}
.section__link {
  font: 800 14px var(--font-body);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 3px solid var(--yellow);
  padding-bottom: 2px;
}
.section__link:hover { background: var(--yellow-wash); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.food-card {
  display: flex;
  flex-direction: column;
  border: 3px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 6px 6px 0 var(--yellow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.food-card:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--yellow); }
.food-card__img { width: 100%; height: 180px; object-fit: cover; object-position: center 55%; }
.food-card__body { padding: 20px 22px 22px; border-top: 3px solid var(--ink); display: flex; flex-direction: column; flex: 1; }
.food-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 25px; color: var(--red); }
.food-card p { margin: 8px 0 16px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.food-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.price {
  font: 800 21px var(--font-body);
  color: var(--ink);
  background: var(--yellow);
  border-radius: 999px;
  padding: 6px 15px;
}

.add-btn {
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 9px 18px;
  font: 800 13px var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background .12s ease, transform .12s ease;
}
.add-btn:hover { background: var(--yellow-soft); }
.add-btn:active { transform: translateY(2px); }
.add-btn.is-added { background: var(--green); border-color: var(--green); color: #fff; }

/* Compact menu card */
.menu-card {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}
.menu-card:hover { transform: translateY(-3px); box-shadow: 0 8px 0 rgba(42, 39, 35, .12); }
.menu-card__media { position: relative; height: 132px; }
.menu-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--red); color: #fff;
  font: 800 10.5px var(--font-body);
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 4px;
}
.menu-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.menu-card__top { display: flex; justify-content: space-between; gap: 8px; }
.menu-card h3 { font: 700 17px var(--font-body); color: var(--red); }
.menu-card__price {
  font: 800 14px var(--font-body); color: var(--ink); white-space: nowrap;
  background: var(--yellow); border-radius: 999px; padding: 3px 11px; align-self: flex-start;
}
.menu-card p { margin: 6px 0 12px; font-size: 13.5px; line-height: 1.4; color: var(--muted-2); }
.menu-card .add-btn { width: 100%; padding: 8px 0; margin-top: auto; font-size: 12.5px; }

/* --------------------------------------------------------------------------
   Customize band
   -------------------------------------------------------------------------- */

.band { position: relative; background: var(--yellow); }
.band__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 44px var(--gutter);
  max-width: 1080px;
  margin: 0 auto;
}
.band__copy { flex: 1; }
.band h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 5vw, 52px); line-height: 1.02; }
.band p { margin: 14px 0 22px; max-width: 420px; font-size: 18px; line-height: 1.5; color: var(--body); }
.band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.band__photo { width: 300px; height: 200px; border: 3px solid var(--ink); border-radius: 12px; object-fit: cover; object-position: center 52%; }

/* Category circles */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat { text-align: center; }
.cat__disc {
  aspect-ratio: 1;
  border-radius: 999px;
  border: 3px solid var(--ink);
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #f6f4f1 0 10px, #eceae6 10px 20px);
  transition: transform .15s ease;
}
.cat__disc img { width: 100%; height: 100%; object-fit: cover; }
.cat:hover .cat__disc { transform: scale(1.05); }
.cat__label {
  margin-top: 10px;
  font: 800 13px var(--font-body);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Split promo */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split__copy { background: var(--yellow-wash); color: var(--ink); padding: 56px 48px; }
.split__copy .eyebrow { color: var(--muted); letter-spacing: .2em; }
.split__copy h2 { margin: 12px 0 10px; font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 5vw, 52px); line-height: 1.02; color: var(--red); }
.split__copy p { margin: 0 0 22px; max-width: 380px; font-size: 17px; line-height: 1.5; color: var(--body); }
.split__photo { width: 100%; height: 100%; min-height: 300px; object-fit: cover; object-position: center 52%; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer { background: var(--ink); color: var(--cream); padding: 40px var(--gutter); }
.site-footer__inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
}
.site-footer__mascot { height: 92px; width: auto; margin-bottom: 10px; }
.site-footer__brand { font-family: var(--font-display); font-weight: 600; font-size: 34px; color: var(--yellow); }
.site-footer__brand + p { margin-top: 10px; font-size: 14px; line-height: 1.5; color: rgba(245, 243, 240, .68); max-width: 250px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: rgba(245, 243, 240, .78); }
.footer-col strong {
  font: 800 12px var(--font-body);
  letter-spacing: .14em; text-transform: uppercase; color: var(--yellow);
}
.footer-col a:hover { color: #fff; }

.footer-slim {
  background: var(--ink); color: var(--cream);
  padding: 36px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.footer-slim__lede { font-family: var(--font-display); font-weight: 600; font-size: 26px; color: var(--yellow); }
.footer-slim__links {
  display: flex; flex-wrap: wrap; gap: 26px;
  font: 700 13px var(--font-body); letter-spacing: .1em;
  text-transform: uppercase; color: rgba(245, 243, 240, .78);
}

/* --------------------------------------------------------------------------
   Menu page
   -------------------------------------------------------------------------- */

.page-banner {
  background: var(--yellow-wash);
  padding: clamp(26px, 3.4vw, 44px) var(--gutter);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.page-banner__title { display: flex; align-items: center; gap: 16px; }
.page-banner__title img { height: 84px; width: auto; object-fit: contain; }
.page-banner h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 5.4vw, 56px); line-height: 1.02; color: var(--red); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; font: 700 13px var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.chip { border: 2px solid var(--yellow); color: var(--red); border-radius: 999px; padding: 7px 18px; background: var(--off-white); }
.chip.is-active, .chip:hover { background: var(--red); color: #fff; border-color: var(--yellow); }

.menu-layout { display: grid; grid-template-columns: 210px 1fr; background: var(--off-white); }
.menu-rail { border-right: 2px solid var(--line-2); padding: 24px 18px; display: flex; flex-direction: column; gap: 4px; }
.rail-link {
  padding: 11px 14px; border-radius: 6px;
  font: 700 13px var(--font-body); letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
  text-align: left;
}
.rail-link:hover { background: rgba(42, 39, 35, .07); color: var(--ink); }
.rail-link.is-active { background: var(--ink); color: var(--cream); font-weight: 800; }
.rail-note {
  margin-top: 18px; border: 2px dashed #cbbf9f; border-radius: 10px;
  padding: 14px; font-size: 12.5px; line-height: 1.45; color: var(--muted-3);
}

.menu-body { padding: 26px var(--gutter) 34px; }
.menu-section + .menu-section { margin-top: 40px; }
.menu-section__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; flex-wrap: wrap; }
.menu-section__head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.6vw, 36px); color: var(--red); }
.menu-section__count { font: 700 12px var(--font-mono); color: var(--stone); }
.menu-section__sub { margin: 0 0 20px; font-size: 15px; color: var(--muted-2); }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* --------------------------------------------------------------------------
   Item detail
   -------------------------------------------------------------------------- */

.subbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; background: var(--surface-alt); padding: 12px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.subbar__back, .subbar__meta {
  font: 700 13px var(--font-body); letter-spacing: .04em; color: var(--red);
}
.subbar__back:hover { text-decoration: underline; }

.item-layout { display: grid; grid-template-columns: 1fr 1fr; background: var(--off-white); }
.item-photo { width: 100%; height: 100%; min-height: 520px; object-fit: cover; object-position: center 55%; }
.item-panel { padding: 32px 30px; }
.item-panel .eyebrow { color: var(--muted); letter-spacing: .2em; }
.item-panel h1 { margin: 8px 0 6px; font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 5vw, 46px); line-height: 1.02; color: var(--red); }
.item-panel__desc { margin: 0 0 6px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.item-panel__meta { font: 700 13px var(--font-mono); color: var(--stone); margin-bottom: 20px; }

.opt-group { border-top: 2px solid var(--line); padding-top: 16px; }
.opt-label {
  font: 800 13px var(--font-body); letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 10px;
}
.base-row { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.base-opt {
  flex: 1; min-width: 120px;
  border: 2px solid var(--line-2); border-radius: 10px; padding: 12px;
  text-align: left; background: transparent; transition: background .12s ease, border-color .12s ease;
}
.base-opt__name { font: 800 14px var(--font-body); }
.base-opt__price { font: 600 12.5px var(--font-body); color: var(--muted-3); }
.base-opt:hover { border-color: var(--ink); }
.base-opt.is-active { border-color: var(--ink); background: var(--yellow); }
.base-opt.is-active .base-opt__price { color: #5c5346; }

.extras { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.extra {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 2px solid var(--line); border-radius: 8px; padding: 11px 14px;
  width: 100%; text-align: left; transition: border-color .12s ease, background .12s ease;
}
.extra:hover { border-color: var(--ink); }
.extra.is-active { border-color: var(--ink); background: var(--yellow-wash); }
.extra__name { font: 600 15px var(--font-body); }
.extra__price { font: 700 14px var(--font-body); color: var(--muted); white-space: nowrap; }
.extra__price--free { color: var(--muted-3); font-size: 13px; }

.buy-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.stepper {
  display: flex; align-items: center; gap: 16px;
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 8px 16px; font: 800 16px var(--font-body);
}
.stepper button { width: 22px; height: 22px; line-height: 1; font-size: 20px; }
.stepper button:hover { color: var(--ink); background: var(--yellow-wash); }
.stepper__val { min-width: 18px; text-align: center; }
.buy-row .btn { flex: 1; min-width: 200px; }

/* --------------------------------------------------------------------------
   Locations
   -------------------------------------------------------------------------- */

.loc-layout { display: grid; grid-template-columns: 400px 1fr; min-height: 560px; }
.loc-panel { background: var(--off-white); border-right: 2px solid var(--line-2); display: flex; flex-direction: column; }
.loc-panel__head { padding: 20px 22px; border-bottom: 2px solid var(--line-2); }
.loc-panel__title { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.loc-panel__title img { height: 56px; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.loc-panel__title h1 { font-family: var(--font-display); font-weight: 600; font-size: 38px; color: var(--red); }
.loc-search {
  display: block; width: 100%;
  border: 2px solid var(--ink); border-radius: 8px;
  padding: 12px 14px; font: 500 15px var(--font-body);
  background: #fff; color: var(--ink);
}
.loc-search::placeholder { color: var(--muted-3); }
.loc-filters { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; font: 700 11.5px var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.loc-filters .chip { border-color: var(--line-2); color: var(--muted); padding: 5px 14px; }
.loc-filters .chip.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.loc-list { display: flex; flex-direction: column; overflow-y: auto; }
.loc-item {
  padding: 18px 22px; border-bottom: 1px solid var(--line);
  border-left: 5px solid transparent; text-align: left; width: 100%;
  transition: background .12s ease;
}
.loc-item:hover { background: var(--surface-alt); }
.loc-item.is-active { border-left-color: var(--yellow); background: var(--yellow-wash); }
.loc-item__top { display: flex; justify-content: space-between; gap: 10px; }
.loc-item__name { font: 800 16px var(--font-body); }
.loc-item__dist { font: 700 12px var(--font-mono); color: var(--stone); white-space: nowrap; }
.loc-item__addr { font-size: 14px; color: var(--muted-2); margin-top: 4px; }
.loc-item__status { font: 700 12.5px var(--font-body); margin-top: 6px; color: var(--green); }
.loc-item__status--soon { color: var(--red); }

.loc-map {
  position: relative;
  background: repeating-linear-gradient(135deg, #f2f0ec 0 18px, #e8e5e0 18px 36px);
  display: flex; align-items: center; justify-content: center;
  min-height: 420px;
}
.loc-map__label { font: 700 11px var(--font-mono); color: var(--muted-3); letter-spacing: .12em; }
.loc-map__photo {
  position: absolute; right: 20px; bottom: 20px;
  width: 240px; height: 170px; object-fit: cover; object-position: center 52%;
  border: 3px solid var(--ink); border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.pin {
  position: absolute; width: 26px; height: 26px; border-radius: 999px;
  background: var(--ink); border: 3px solid var(--off-white);
  transition: transform .15s ease;
}
.pin.is-active { width: 34px; height: 34px; background: var(--yellow); box-shadow: 0 3px 8px rgba(0, 0, 0, .25); }
.pin:hover { transform: scale(1.15); }

/* --------------------------------------------------------------------------
   Checkout
   -------------------------------------------------------------------------- */

.bag-layout { display: grid; grid-template-columns: 1.35fr 1fr; background: var(--off-white); align-items: start; }
.bag-main { padding: 28px var(--gutter) 34px; border-right: 2px solid var(--line); }
.bag-main h1 { margin-bottom: 18px; font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4.6vw, 42px); color: var(--red); }
.bag-lines { display: flex; flex-direction: column; gap: 14px; }
.bag-line {
  display: flex; gap: 14px; align-items: center;
  border: 2px solid var(--line); border-radius: 12px; padding: 12px; background: #fff;
}
.bag-line__img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; object-position: center 55%; flex: none; }
.bag-line__info { flex: 1; min-width: 0; }
.bag-line__name { font: 800 16px var(--font-body); }
.bag-line__opts { font-size: 13.5px; color: var(--muted-2); }
.bag-line__edit { font: 700 12.5px var(--font-body); color: var(--muted); margin-top: 4px; display: inline-flex; gap: 12px; }
.bag-line__edit button:hover { text-decoration: underline; }
.bag-line__right { text-align: right; }
.bag-line__price { font: 800 17px var(--font-body); }
.bag-line__qty { font: 700 12px var(--font-mono); color: var(--stone); }
.bag-empty {
  border: 2px dashed var(--line-2); border-radius: 12px; padding: 34px;
  text-align: center; color: var(--muted-2);
}

.upsell {
  margin-top: 22px; border: 2px dashed var(--yellow); background: var(--yellow-wash);
  border-radius: 12px; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.upsell strong { font: 800 15px var(--font-body); }
.upsell__sub { font-size: 13.5px; color: var(--muted-2); }

.bag-side { padding: 28px 26px; display: flex; flex-direction: column; position: sticky; top: 92px; }
.bag-side__label { font: 800 13px var(--font-body); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.bag-rows { display: flex; flex-direction: column; gap: 9px; font-size: 15px; color: #5c5346; }
.bag-rows div { display: flex; justify-content: space-between; gap: 12px; }
.bag-total {
  border-top: 2px solid var(--line); margin-top: 14px; padding-top: 14px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
.bag-total__label { font: 800 17px var(--font-body); }
.bag-total__value { font-family: var(--font-display); font-weight: 600; font-size: 30px; color: var(--ink); }
.bag-side__note { margin-top: 12px; text-align: center; font: 600 13px var(--font-body); color: var(--muted-3); }
.bag-side__logo { width: 150px; height: auto; object-fit: contain; align-self: center; margin-top: 18px; mix-blend-mode: multiply; }
.bag-side__fine { margin-top: 24px; border-top: 2px solid var(--line); padding-top: 16px; font-size: 13px; line-height: 1.5; color: var(--muted-3); }

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--cream);
  border: 2px solid var(--yellow); border-radius: 999px;
  padding: 12px 24px; font: 800 13px var(--font-body);
  letter-spacing: .08em; text-transform: uppercase;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  z-index: 100;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .card-grid, .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .loc-layout { grid-template-columns: 320px 1fr; }
}

@media (max-width: 900px) {
  :root { --gutter: 20px; }

  /* En móvil los dos grupos de píldoras se sustituyen por un cajón */
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 2px solid var(--yellow); border-radius: 999px;
    font-size: 20px; color: var(--red); background: var(--off-white);
    box-shadow: 0 3px 0 var(--yellow-wash);
  }
  .site-header {
    grid-template-columns: 44px 1fr 44px;
    justify-items: center;
    gap: 12px;
  }
  .nav-group { display: none; }
  .site-nav {
    display: none; grid-column: 1 / -1; width: 100%;
    flex-direction: column; align-items: stretch; gap: 8px;
    padding-top: 12px; border-top: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav .pill { justify-content: center; padding: 12px 20px; }
  .site-header__logo img { height: 48px; }
  .signin { display: none; }


  .value-bar { grid-template-columns: 1fr 1fr; }
  .value-bar li:nth-child(2n) { border-right: none; }
  .value-bar li { border-bottom: 1px solid rgba(245, 243, 240, .18); font-size: 12.5px; padding: 16px 18px; }

  .hero-a { padding-top: 36px; }
  .hero-a__inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-a__copy { padding-bottom: 12px; }
  .hero-a__art { width: 100%; max-width: 320px; height: 280px; margin: 0 auto; }

  /* En tablet la mascota se encoge y se pega al borde para no tapar el texto */
  .hero { min-height: 600px; }
  .hero__mascot { height: clamp(220px, 42%, 320px); right: 8px; opacity: .96; }
  .hero__scrim {
    background:
      linear-gradient(100deg, rgba(24,22,19,.95) 0%, rgba(24,22,19,.88) 46%, rgba(24,22,19,.55) 78%, rgba(24,22,19,.3) 100%),
      linear-gradient(180deg, rgba(24,22,19,.6) 0%, rgba(24,22,19,0) 40%);
  }
  .brand__mark { height: 42px; }
  .brand__name { font-size: 23px; }

  .split { grid-template-columns: 1fr; }
  .split__copy { padding: 36px 20px; }
  .split__photo { min-height: 240px; }

  .band__inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .band__photo { width: 100%; height: 220px; }

  .menu-layout { grid-template-columns: 1fr; }
  .menu-rail {
    flex-direction: row; overflow-x: auto; border-right: none;
    border-bottom: 2px solid var(--line-2); padding: 14px 16px; gap: 8px;
    scrollbar-width: thin;
  }
  .rail-link { white-space: nowrap; flex: none; }
  .rail-note { display: none; }

  .item-layout { grid-template-columns: 1fr; }
  .item-photo { min-height: 280px; }
  .item-panel { padding: 24px 20px 32px; }

  .loc-layout { grid-template-columns: 1fr; }
  .loc-panel { border-right: none; border-bottom: 2px solid var(--line-2); }
  .loc-map { min-height: 320px; order: 2; }
  .loc-map__photo { width: 160px; height: 115px; right: 12px; bottom: 12px; }

  .bag-layout { grid-template-columns: 1fr; }
  .bag-main { border-right: none; border-bottom: 2px solid var(--line); }
  .bag-side { position: static; }

  .site-footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-slim { flex-direction: column; align-items: flex-start; }
  .footer-slim__links { gap: 16px; }
}

@media (max-width: 600px) {
  .card-grid, .menu-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 36px var(--gutter); }
  .section__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-a__cta .btn, .hero__cta .btn { flex: 1; min-width: 140px; }
  .bag-line { flex-wrap: wrap; }
  .bag-line__right { margin-left: auto; }
  .ticker__track { font-size: 18px; gap: 28px; }

  /* En móvil la foto pasa a ser fondo puro: la mascota estorbaría el texto */
  .hero { min-height: 540px; align-items: flex-end; }
  .hero__inner { padding: 120px var(--gutter) 54px; }
  .hero__mascot { display: none; }
  .hero__scrim {
    background: linear-gradient(180deg,
      rgba(24, 22, 19, .78) 0%,
      rgba(24, 22, 19, .55) 34%,
      rgba(24, 22, 19, .86) 74%,
      rgba(24, 22, 19, .96) 100%);
  }
  .hero__bg { object-position: 62% 40%; }
  .brand__name { display: none; }
  .brand__mark { height: 46px; }
}
