/* ============================================================
   Mía Pizza — hoja de estilos
   Paleta: tomate, crema, albahaca, queso, tinta (café horneado)
   Tipografías: Fraunces (display) + Instrument Sans (texto)
   ============================================================ */

:root {
  --c-tomate: #d8362a;
  --c-tomate-hondo: #b3261e;
  --c-tomate-oscuro: #7f1812;
  --c-crema: #fbf5ea;
  --c-crema-suave: #f3e9d8;
  --c-queso: #f2b33d;
  --c-albahaca: #3e7c4a;
  --c-albahaca-hondo: #2f6339;
  --c-tinta: #241511;
  --c-tinta-suave: #3b241c;

  --t-display: "Fraunces", Georgia, serif;
  --t-cuerpo: "Instrument Sans", system-ui, sans-serif;

  --glass-bg: rgba(251, 245, 234, 0.07);
  --glass-bg-fuerte: rgba(251, 245, 234, 0.11);
  --glass-borde: rgba(251, 245, 234, 0.22);
  --glass-desenfoque: blur(18px) saturate(1.15);
  --glass-lectura: rgba(20, 12, 9, 0.62);

  --altura-header: 64px;

  --radio: 22px;
  --sombra: 0 24px 60px -24px rgba(20, 8, 4, 0.55);
  --sombra-suave: 0 10px 30px -12px rgba(20, 8, 4, 0.35);
}

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

html { scroll-behavior: smooth; font-optical-sizing: auto; }

body {
  font-family: var(--t-cuerpo);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--c-crema);
  background: var(--c-tinta);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }

em { font-family: var(--t-display); font-style: italic; }

/* ---------- Utilidades básicas ---------- */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 200;
  background: var(--c-queso);
  color: var(--c-tinta);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

.contenedor {
  width: min(1180px, 92%);
  margin-inline: auto;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-queso);
  margin-bottom: 1rem;
}

.lead, .lead-oscuro {
  max-width: 34em;
  margin-top: 1.1rem;
  font-size: 1.0625rem;
}
.lead-oscuro { color: var(--c-tinta-suave); }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-grande { padding: 1rem 1.7rem; font-size: 1.02rem; }
.btn-chico { padding: 0.62rem 1.15rem; font-size: 0.9rem; }

.btn-wa {
  background: var(--c-albahaca);
  color: var(--c-crema);
  box-shadow: 0 14px 30px -14px rgba(62, 124, 74, 0.75);
}
.btn-wa:hover, .btn-wa:focus-visible { background: var(--c-albahaca-hondo); }

.btn-fantasma {
  background: rgba(251, 245, 234, 0.08);
  border-color: rgba(251, 245, 234, 0.45);
  color: var(--c-crema);
  backdrop-filter: var(--glass-desenfoque);
  -webkit-backdrop-filter: var(--glass-desenfoque);
}
.btn-fantasma:hover, .btn-fantasma:focus-visible {
  background: rgba(251, 245, 234, 0.16);
}

.ico-wa { width: 1.25em; height: 1.25em; flex: none; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--c-queso);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem clamp(1rem, 3vw, 2.2rem);
  background: linear-gradient(180deg, rgba(36, 21, 17, 0.72), rgba(36, 21, 17, 0.25));
  backdrop-filter: var(--glass-desenfoque);
  -webkit-backdrop-filter: var(--glass-desenfoque);
  border-bottom: 1px solid rgba(251, 245, 234, 0.12);
}

.logo {
  font-family: var(--t-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--c-crema);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.logo span { color: var(--c-tomate); font-style: italic; }

.site-header nav ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.site-header nav ul::-webkit-scrollbar {
  display: none;
}
.site-header nav a {
  color: var(--c-crema);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.9;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.site-header nav a:hover, .site-header nav a:focus-visible {
  border-bottom-color: var(--c-queso);
}

@media (max-width: 760px) {
  :root {
    --altura-header: 112px;
  }
  .site-header { flex-wrap: wrap; }
  .site-header nav { order: 3; width: 100%; }
  .site-header nav ul { gap: 1rem; }
}

/* ---------- Lienzo del recorrido ---------- */

#scroll-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: #1c0f0b;
  touch-action: pan-y;
}
body.seq-oculta-canvas #scroll-canvas { opacity: 0; }

/* Velo sobre el video para legibilidad */
.velo-rotulado {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(20, 10, 6, 0) 40%, rgba(20, 10, 6, 0.45) 100%),
    linear-gradient(180deg, rgba(20, 10, 6, 0.5), rgba(20, 10, 6, 0) 30%, rgba(20, 10, 6, 0) 62%, rgba(20, 10, 6, 0.55));
}
html.no-js .velo-rotulado { display: none; }

/* AJUSTE 2 v3: velo oscuro progresivo al final del carril sobre el último frame */
#velo-fondo {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(180deg, rgba(20, 10, 6, 0.25) 0%, rgba(20, 10, 6, 0.8) 100%);
  will-change: opacity;
}
html.no-js #velo-fondo { display: none; }

/* ---------- Loader ---------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  background:
    radial-gradient(80% 60% at 50% 30%, rgba(216, 54, 42, 0.16), transparent 70%),
    var(--c-crema);
  color: var(--c-tinta);
  transition: opacity 0.6s ease, visibility 0.6s;
}
.loader-logo { font-family: var(--t-display); font-size: 2.2rem; font-weight: 700; }
.loader-logo span { color: var(--c-tomate); font-style: italic; }
.loader p { color: var(--c-tinta-suave); font-weight: 500; }
.loader-bar {
  width: min(300px, 70vw);
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(36, 21, 17, 0.12);
}
.loader-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--c-tomate), var(--c-queso));
  transition: width 0.25s ease;
}
.loader-pct {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--c-tomate);
}
.loader.listo { opacity: 0; visibility: hidden; }

/* ---------- Carril de scroll y capítulos ---------- */

.scroll-track {
  position: relative;
  z-index: 2;
  pointer-events: none;
  touch-action: pan-y;
}

.chapter {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 4vw;
  opacity: 0;
  transform: translateY(26px);
  will-change: opacity, transform;
  touch-action: pan-y;
}
.chapter.visible { pointer-events: auto; }
.chapter .lead { color: var(--c-crema); }

/* AJUSTE 3 · Liquid Glass — chapter de menú
   El chapter ocupa inset:0 (JS controla opacity/translateY normalmente).
   El glass se aplica al inner wrapper .ch-glass-card, evitando conflicto
   con el transform que JS inyecta en #ch-menu. */
#ch-menu {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}
#ch-promo {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: calc(var(--altura-header) + 24px) 1rem 24px;
  box-sizing: border-box;
  overflow: visible;
}

/* Glass wrapper interno — se usa dentro de #ch-menu y #ch-promo */
.ch-glass-card {
  background: var(--glass-lectura);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  padding: 2rem 2.4rem;
  width: min(560px, 88vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  color: #fbf5ea;
}
#ch-promo .ch-glass-card {
  width: min(640px, 90vw);
  max-height: calc(100dvh - var(--altura-header) - 48px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: clamp(1.4rem, 3.2vw, 2.2rem);
  box-sizing: border-box;
}
#ch-promo .ch-glass-card::-webkit-scrollbar {
  display: none;
}
.ch-glass-card .eyebrow { color: var(--c-queso); }
.ch-glass-card .lead,
.ch-glass-card .ch-titulo { color: #fbf5ea; }
.ch-glass-card .btn { margin-top: 0.5rem; }

/* Panel de categorías de menú en liquid glass (AJUSTE 2b, 3) */
.ch-menu-panel {
  background: var(--glass-lectura);
  width: min(880px, 94vw);
  padding: clamp(1.4rem, 3.2vw, 2.2rem);
  overflow: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ch-menu-panel::-webkit-scrollbar {
  display: none;
}

.menu-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.55rem, 1.3vw, 0.95rem);
  width: 100%;
  margin: 1rem 0 1.3rem;
  overflow: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.menu-cat-grid::-webkit-scrollbar {
  display: none;
}

@media (max-width: 768px) {
  .menu-cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
}

.menu-cat-btn {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.45rem;
  padding: clamp(0.8rem, 1.8vw, 1.1rem) clamp(0.5rem, 1vw, 0.85rem);
  min-height: 52px; /* Cumple holgadamente el mínimo de 44px táctil */
  text-decoration: none;
  color: #fbf5ea;
  border-radius: 16px;
  /* Vidrio con backdrop-filter, borde luminoso y brillo diagonal sutil */
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 60%),
    rgba(255, 250, 242, 0.08);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s ease,
              border-color 0.22s ease;
  will-change: transform, box-shadow;
}

/* Hover / focus: elevación, escala 1.03 y resplandor queso (#f2b33d) */
.menu-cat-btn:hover,
.menu-cat-btn:focus-visible {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(242, 179, 61, 0.65);
  box-shadow:
    0 12px 28px -6px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(242, 179, 61, 0.4),
    inset 0 0 12px rgba(242, 179, 61, 0.15);
  outline: none;
}

.menu-cat-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(242, 179, 61, 0.12);
  border: 1px solid rgba(242, 179, 61, 0.25);
  color: var(--c-queso);
  flex-shrink: 0;
  transition: transform 0.22s ease, background 0.22s ease;
}

.menu-cat-btn:hover .menu-cat-ico,
.menu-cat-btn:focus-visible .menu-cat-ico {
  transform: scale(1.08);
  background: rgba(242, 179, 61, 0.22);
}

.cat-ico-svg {
  width: 22px;
  height: 22px;
  stroke: var(--c-queso);
}

.menu-cat-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.menu-cat-info strong {
  font-family: var(--t-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fbf5ea;
  letter-spacing: -0.01em;
}

.menu-cat-info span {
  font-size: 0.78rem;
  color: rgba(251, 245, 234, 0.78);
  line-height: 1.25;
}

/* AJUSTE 4: tarjetas de promo en overlay con stagger (animadas desde JS) */
.promo-card-overlay {
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
  background: rgba(255, 250, 242, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #fbf5ea;
  font-size: 0.95rem;
  text-align: left;
}
.promo-card-overlay .badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--c-queso);
  color: var(--c-tinta);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  flex: none;
}
.promo-card-overlay strong { color: #fbf5ea; font-weight: 700; }

.promo-overlay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-top: 1.2rem;
  width: 100%;
}
@media (max-width: 560px) {
  .promo-overlay-grid { grid-template-columns: 1fr; }
}

#ch-hero h1 {
  font-family: var(--t-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 6.4vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-shadow: 0 4px 40px rgba(20, 8, 4, 0.55);
  display: grid;
  gap: 0.1em;
}
#ch-hero h1 em { color: var(--c-queso); font-size: 1.06em; }

.chapter-mini .ch-titulo {
  font-family: var(--t-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08;
  text-shadow: 0 4px 36px rgba(20, 8, 4, 0.55);
}
.chapter-mini .ch-titulo em { color: var(--c-queso); }

.chapter-final {
  background: rgba(20, 10, 6, 0.32);
  backdrop-filter: var(--glass-desenfoque);
  -webkit-backdrop-filter: var(--glass-desenfoque);
}
.ch-titulo-xl { font-family: var(--t-display); font-weight: 600; font-size: clamp(2.4rem, 6vw, 4.4rem); }
.ch-titulo-xl em { color: var(--c-queso); }

.ch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 2rem;
}

/* ============================================================
   OPTIMIZACIÓN MÓVIL (<= 768px)
   Problema 3 (Hero) y Problema 4 (Promociones)
   ============================================================ */
@media (max-width: 768px) {
  /* ---------- PROBLEMA 3 · HERO EN MÓVIL ---------- */
  #ch-hero {
    padding: calc(var(--altura-header) + 16px) 20px 24px;
    justify-content: center;
  }

  /* Scrim semitransparente detrás del bloque de texto del hero en móvil */
  #ch-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      rgba(20, 12, 9, 0.72) 0%,
      rgba(20, 12, 9, 0.55) 60%,
      rgba(20, 12, 9, 0) 100%
    );
  }

  /* H1 reducido para no copar el alto vertical en pantallas angostas */
  #ch-hero h1 {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
    line-height: 1.08;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 4px 30px rgba(0, 0, 0, 0.6);
  }

  #ch-hero h1 em {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
  }

  /* Subtítulo, eyebrow y CTA con tamaño máx 0.95rem y padding horizontal 20px */
  #ch-hero .eyebrow {
    font-size: 0.85rem;
    padding-inline: 20px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
  }

  #ch-hero .lead {
    font-size: 0.95rem;
    max-width: min(520px, 92vw);
    padding-inline: 20px;
    line-height: 1.45;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
    margin-top: 0.6rem;
  }

  #ch-hero .ch-actions {
    margin-top: 1.2rem;
    gap: 0.6rem;
    padding-inline: 20px;
    width: 100%;
    max-width: 360px;
  }

  #ch-hero .ch-actions .btn {
    font-size: 0.95rem;
    padding: 12px 16px;
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* ---------- PROBLEMA 4 · SECCIÓN PROMOCIÓN EN MÓVIL ---------- */
  /* Centrado vertical y horizontal en el viewport móvil */
  #ch-promo {
    padding: calc(var(--altura-header) + 12px) 16px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  /* Dimensiones del panel de promo en móvil */
  #ch-promo .ch-glass-card {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 16px;
    box-sizing: border-box;
    gap: 0.55rem;
  }

  #ch-promo .ch-glass-card::-webkit-scrollbar {
    display: none;
  }

  #ch-promo .eyebrow {
    font-size: 0.8rem;
    margin-bottom: 0;
  }

  #ch-promo .ch-titulo {
    font-size: clamp(1.35rem, 4.8vw, 1.75rem);
    line-height: 1.15;
  }

  #ch-promo .lead {
    font-size: 0.85rem;
    line-height: 1.35;
    margin: 0;
    max-width: 100%;
  }

  /* Tarjetas de promoción: 1 columna debajo de otra */
  #ch-promo .promo-overlay-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 0.5rem;
  }

  #ch-promo .promo-card-overlay {
    padding: 8px 10px;
    font-size: 0.85rem;
    gap: 8px;
    border-radius: 12px;
  }

  #ch-promo .promo-card-overlay strong {
    font-size: 1rem;
    line-height: 1.25;
  }

  #ch-promo .promo-card-overlay .precio,
  #ch-promo .promo-card-overlay .promo-precio {
    font-size: 1.3rem;
  }

  #ch-promo .promo-card-overlay span {
    font-size: 0.85rem;
    line-height: 1.3;
  }

  #ch-promo .promo-card-overlay .badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.45rem;
  }

  /* Botón de acción / WhatsApp de promo en móvil */
  #ch-promo .btn {
    width: 100%;
    padding: 12px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    margin-top: 0.5rem;
    box-sizing: border-box;
  }
}

/* ---------- Secciones glassmorphism sobre canvas (AJUSTE 2 v3) ---------- */

main { position: relative; z-index: 5; }

.seccion { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }

.seccion h2 {
  font-family: var(--t-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.seccion h2 em { font-size: 1.05em; }

/* AJUSTE 2 v3: Fondos sólidos eliminados. Secciones en bloques glassmorphism */
.seccion-promos,
.seccion-delivery,
.seccion-cta {
  background: transparent;
}

.seccion-promos .contenedor,
.seccion-delivery .contenedor,
.seccion-cta .contenedor {
  background: rgba(255, 250, 242, 0.08);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  padding: clamp(2rem, 5vw, 3.5rem);
}

.seccion-promos .lead-oscuro {
  color: rgba(251, 245, 234, 0.88);
}
.seccion-promos h2 em { color: var(--c-queso); }

/* Menú — estilos para menu.html */
.seccion-menu { background: var(--c-crema); color: var(--c-tinta); border-top: 6px solid var(--c-tomate); }
.seccion-menu .eyebrow, .seccion-menu h2 { color: var(--c-tinta); }
.seccion-menu .eyebrow { color: var(--c-tomate); }
.seccion-menu h2 em { color: var(--c-tomate); }

/* Delivery — bloques internos */
.seccion-delivery h2 em { color: var(--c-queso); }

/* CTA final */
.seccion-cta {
  text-align: center;
}
.seccion-cta p { margin: 1.1rem auto 1.8rem; max-width: 30em; color: rgba(251, 245, 234, 0.9); }
.seccion-cta .btn { margin-inline: auto; }

/* ---------- Tarjetas de menú ---------- */

#menu-lista { margin-top: 2.6rem; display: grid; gap: 2.4rem; }

.categoria h3 {
  font-family: var(--t-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--c-tomate-hondo);
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}
.categoria h3::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(216, 54, 42, 0.4), transparent);
  transform: translateY(-0.25em);
}
.categoria .items {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr));
  gap: 1rem;
}

.plato {
  background: #ffffff;
  border: 1px solid rgba(36, 21, 17, 0.08);
  border-radius: var(--radio);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--sombra-suave);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.plato:hover { transform: translateY(-3px); box-shadow: var(--sombra); }
.plato header { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; }
.plato h4 { font-family: var(--t-display); font-weight: 600; font-size: 1.18rem; }
.plato .precio {
  font-family: var(--t-display);
  font-weight: 700;
  color: var(--c-tomate);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.plato p.desc { font-size: 0.95rem; color: var(--c-tinta-suave); flex: 1; }
.chips { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.chip {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(62, 124, 74, 0.14);
  color: var(--c-albahaca-hondo);
}
.chip-especialidad, .chip-favorita, .chip-picante { background: rgba(216, 54, 42, 0.1); color: var(--c-tomate-hondo); }
.plato .pedir {
  align-self: flex-start;
  margin-top: 0.55rem;
  font-weight: 700;
  color: var(--c-albahaca-hondo);
  text-decoration: none;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.plato .pedir:hover { text-decoration: underline; }
.plato .pedir .ico-wa { width: 1em; height: 1em; }

.nota-menu {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--c-tinta-suave);
}

/* ---------- Tarjeta de promoción ---------- */

#promos-lista {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.2rem;
}

.promo {
  background: var(--glass-bg-fuerte);
  border: 1px solid var(--glass-borde);
  border-radius: var(--radio);
  padding: 1.6rem 1.4rem;
  backdrop-filter: var(--glass-desenfoque);
  -webkit-backdrop-filter: var(--glass-desenfoque);
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
}
.promo .badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--c-queso);
  color: var(--c-tinta);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
}
.promo h3 {
  font-family: var(--t-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.15;
}
.promo .promo-desc { font-size: 0.97rem; opacity: 0.92; flex: 1; }
.promo .promo-precio {
  font-family: var(--t-display);
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--c-queso);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.promo .promo-precio small { font-family: var(--t-cuerpo); font-weight: 600; font-size: 0.85rem; opacity: 0.8; }
.promo .btn { justify-content: center; }

/* ---------- Delivery ---------- */

.grid-delivery {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: 1.2rem;
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-borde);
  border-radius: var(--radio);
  padding: 1.5rem 1.4rem;
  backdrop-filter: var(--glass-desenfoque);
  -webkit-backdrop-filter: var(--glass-desenfoque);
  box-shadow: var(--sombra-suave);
}
.glass-card h3 { font-family: var(--t-display); font-weight: 600; font-size: 1.3rem; margin-bottom: 0.7rem; color: var(--c-queso); }
.glass-card p, .glass-card li { font-size: 0.97rem; opacity: 0.92; }
.glass-card a { color: var(--c-queso); font-weight: 600; }
.glass-card ol, .glass-card ul { padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.glass-card ol li::marker, .glass-card ul li::marker { color: var(--c-queso); font-weight: 700; }

/* ---------- Pie con glassmorphism (AJUSTE 2 v3) ---------- */

.site-footer {
  background: transparent;
  border-top: none;
  padding: 1rem 0 2rem;
  position: relative;
  z-index: 5;
}
.footer-grid, .site-footer .contenedor { display: block; }
.site-footer > .contenedor {
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr 1fr;
  gap: 2rem;
  background: rgba(255, 250, 242, 0.08);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  padding: clamp(2rem, 4vw, 3rem);
}
.site-footer h3 {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-queso);
  margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; display: grid; gap: 0.45rem; }
.site-footer a { color: var(--c-crema); opacity: 0.85; text-decoration: none; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.site-footer p, .site-footer li { font-size: 0.94rem; opacity: 0.85; }
.footer-marca .logo { font-size: 1.8rem; }
.footer-marca p { margin-top: 0.8rem; max-width: 30em; }
.footer-base {
  margin-top: 1.8rem;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(251, 245, 234, 0.12);
  font-size: 0.85rem;
  text-align: center;
}
.footer-credito {
  margin-top: 0.4rem;
  font-size: 0.84rem;
}
.footer-credito a {
  color: var(--c-queso);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-credito a:hover,
.footer-credito a:focus-visible {
  color: var(--c-crema);
}
@media (max-width: 900px) {
  .site-footer > .contenedor { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .site-footer > .contenedor { grid-template-columns: 1fr; }
}

/* ---------- Botón flotante WhatsApp ---------- */

.btn-wa-float {
  position: fixed;
  right: clamp(0.9rem, 2.5vw, 1.6rem);
  bottom: clamp(0.9rem, 2.5vw, 1.6rem);
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--c-albahaca);
  color: var(--c-crema);
  box-shadow: 0 16px 34px -12px rgba(31, 80, 42, 0.8), 0 0 0 0 rgba(62, 124, 74, 0.5);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: pulso 2.8s ease-out infinite;
}
.btn-wa-float .ico-wa { width: 30px; height: 30px; }
.btn-wa-float:hover { transform: translateY(-3px) scale(1.04); }
@keyframes pulso {
  0% { box-shadow: 0 16px 34px -12px rgba(31, 80, 42, 0.8), 0 0 0 0 rgba(62, 124, 74, 0.45); }
  70% { box-shadow: 0 16px 34px -12px rgba(31, 80, 42, 0.8), 0 0 0 16px rgba(62, 124, 74, 0); }
  100% { box-shadow: 0 16px 34px -12px rgba(31, 80, 42, 0.8), 0 0 0 0 rgba(62, 124, 74, 0); }
}

/* ---------- Respaldo sin JavaScript ---------- */

html.no-js #scroll-canvas,
html.no-js #ch-menu,
html.no-js #ch-promo,
html.no-js #ch-final,
html.no-js .loader { display: none; }

html.no-js .scroll-track { height: auto !important; pointer-events: auto; }

html.no-js #ch-hero {
  position: static;
  opacity: 1;
  transform: none;
  min-height: 100vh;
  background:
    radial-gradient(90% 70% at 70% 20%, rgba(216, 54, 42, 0.35), transparent 60%),
    linear-gradient(160deg, var(--c-tomate-oscuro), var(--c-tomate));
}

html.no-js #menu-lista { display: none; }

/* ---------- Accesibilidad: movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .plato, .skip-link { transition: none; }
  .btn-wa-float { animation: none; }
  .chapter { transform: none; will-change: auto; }
  .loader, .loader-fill { transition: none; }
}
