/* Broastería El Buen Sazón · Catálogo por secciones con pedidos por WhatsApp (Creciéndote)
   Base: motor y estilos de Ruta Smash. Identidad sacada del logo: cinta roja-naranja con borde dorado,
   letras blancas redondas, "El Buen Sazón" en amarillo y estrellas; fondo carbón como la carta de madera.
   Tokens en :root; el resto del CSS usa solo tokens. */

:root {
  /* Fondo: carbón cálido (la madera negra de la carta) */
  --carbon: #110D0B;
  --carbon-2: #1C1613;
  --carbon-3: #2B221D;
  /* Acento principal: naranja de las alas del logo y de las etiquetas de precio */
  --acento: #F7931E;
  --acento-2: #FFA940;
  /* Rojo de la cinta del logo (títulos de sección, panel del pedido, pie) */
  --rojo: #C8261A;
  --rojo-2: #8E140B;
  --rojo-3: #A51C12;
  /* Amarillo de "El Buen Sazón" y dorado del borde */
  --amarillo: #FFD21F;
  --dorado: #F2B33D;
  --naranja: #4ADE80; /* punto de "Abierto" */
  --ink: #FFF6EA;
  --soft: #C9B9A8;
  --wa-green: #25D366;

  /* Tipografía del logo: letras gruesas y redondeadas → Lilita One. Texto: Nunito Sans. */
  --display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --text: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-small: 0.9375rem;
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.125rem, 1.04rem + 0.45vw, 1.375rem);
  --step-sub: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --step-head: clamp(2.75rem, 1.9rem + 4vw, 5.5rem);
  --step-hero: clamp(2.5rem, 1.6rem + 4.4vw, 5rem);

  --m: 16px;
  --max: 1180px;
  --gutter: max(var(--m), (100% - var(--max)) / 2);
  --r: 10px;
  --bar-h: 64px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Hilera de estrellas doradas (las del logo) para separadores y el borde del panel */
  --dash-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='16' viewBox='0 0 44 16'%3E%3Cpath d='M8 1l2 4.6 5 .5-3.8 3.3 1.1 4.9L8 11.8 3.7 14.3l1.1-4.9L1 6.1l5-.5Z' fill='%23F2B33D'/%3E%3C/svg%3E");
  --dash-y: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='40' viewBox='0 0 16 40'%3E%3Cpath d='M8 1l2 4.6 5 .5-3.8 3.3 1.1 4.9L8 11.8 3.7 14.3l1.1-4.9L1 6.1l5-.5Z' fill='%23F2B33D'/%3E%3C/svg%3E");
}
@media (min-width: 600px) { :root { --m: 24px; } }
@media (min-width: 1100px) { :root { --m: 40px; --bar-h: 72px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 64px); }
body {
  margin: 0; background: var(--carbon); color: var(--ink);
  font-family: var(--text); font-size: var(--step-body); line-height: 1.5;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  line-height: 0.88; letter-spacing: -0.005em; text-wrap: balance;
}
:focus-visible { outline: 3px solid var(--acento); outline-offset: 3px; }
::selection { background: var(--acento); color: var(--carbon); }
html { scrollbar-color: var(--carbon-3) var(--carbon); }
.panel__cuerpo, .ficha { scrollbar-color: var(--rojo-2) transparent; }
input, textarea { caret-color: var(--acento); }
[hidden] { display: none !important; }
.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; }
.skip { position: absolute; left: var(--m); top: -80px; z-index: 80; background: var(--acento); color: var(--carbon); padding: 12px 16px; font-weight: 700; border-radius: var(--r); }
.skip:focus { top: 8px; }
.num, .item__price, .linea__precio, .totales dd { white-space: nowrap; font-variant-numeric: proportional-nums; }
.opc { font-weight: 400; color: var(--soft); }

.link { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--acento); font-weight: 600; transition: color 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link:hover { color: var(--acento); } }
.link--quiet { text-decoration-color: currentColor; min-height: 44px; display: inline-flex; align-items: center; }

/* Botón principal: amarillo de la línea, esquinas de señal */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 8px 32px 6px; border-radius: var(--r);
  background: var(--acento); color: var(--carbon); text-decoration: none;
  font-family: var(--display); font-weight: 400; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--acento-2); } }
.btn--wide { flex: 1; min-width: 0; white-space: nowrap; font-size: 1.375rem; padding-inline: 14px; }

/* Aviso de propuesta sin aprobar (quitar al aprobar): franja fija de una línea arriba de todo */
.aviso-muestra { padding: 7px var(--gutter) 6px; background: var(--dorado); color: var(--carbon); font-size: var(--step-small); font-weight: 800; text-align: center; line-height: 1.3; }

/* ---------- Barra superior ---------- */
.bar {
  position: sticky; top: 0; z-index: 30; height: var(--bar-h);
  display: flex; align-items: center; gap: 12px; padding: 0 var(--gutter);
  background: var(--carbon);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; margin-right: auto; }
.brand img { width: auto; height: 44px; }
.brand span { white-space: nowrap; font-family: var(--display); font-weight: 400; font-size: 1.5rem; text-transform: uppercase; line-height: 1; color: var(--acento); }
.bar__nav { display: none; }
.bar__nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-weight: 600; border-radius: var(--r); transition: color 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .bar__nav a:hover { color: var(--acento); } }
.estado { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--step-small); white-space: nowrap; }
.estado__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--soft); }
[data-estado="abierto"] .estado__dot { background: var(--naranja); }
.bar__cart {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px 0 16px;
  background: var(--acento); color: var(--carbon); border-radius: var(--r); text-decoration: none; font-weight: 700;
}
.count { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 4px; background: var(--carbon); color: var(--ink); font-size: var(--step-small); font-variant-numeric: tabular-nums; }
@media (max-width: 439px) { .brand span { display: none; } }
@media (min-width: 1000px) { .bar__nav { display: flex; gap: 4px; margin-right: 16px; } }

/* ---------- Portada ---------- */
.hero {
  display: grid; gap: 32px; padding: 24px var(--gutter) 56px;
  min-height: calc(100svh - var(--bar-h));
}
.hero__text { display: grid; align-content: start; justify-items: start; gap: 20px; container-type: inline-size; }
.hero__logo { width: clamp(240px, 78vw, 420px); height: auto; margin-left: -6px; }
/* Título en 2 líneas a cualquier ancho */
.hero h1 { font-size: min(9.7cqi, 4.75rem); color: var(--ink); } /* "BROASTER CROCANTE," mide 9.85 em: así entra en una línea */
.hero h1 span:last-child { color: var(--amarillo); }
.hero h1 span { display: block; }
.hero__lead { font-size: var(--step-lead); line-height: 1.45; max-width: 34ch; margin-top: -4px; }
.hero__estado { font-weight: 600; color: var(--soft); font-size: var(--step-body); }
.salidas { display: grid; gap: 8px; width: 100%; max-width: 520px; }
.salida a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px;
  min-height: 64px; padding: 14px 18px; border-radius: var(--r);
  background: var(--carbon-3); text-decoration: none;
  transition: background-color 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .salida a:hover { background: var(--carbon-2); } }
.salida b { font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1; text-transform: uppercase; }
.salida span { grid-column: 1; display: flex; align-items: center; gap: 8px; font-size: var(--step-small); font-weight: 600; color: var(--soft); }
.salida span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--soft); flex: none; }
.salida[data-abierta="true"] span { color: var(--ink); }
.salida[data-abierta="true"] span::before { background: var(--naranja); }
.salida svg { grid-row: 1 / span 2; grid-column: 2; width: 28px; height: 28px; fill: none; stroke: var(--acento); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .salida a:hover svg { transform: translateX(3px); } }

.hero__foto { position: relative; margin-inline: calc(var(--gutter) * -1); overflow: clip; aspect-ratio: 4 / 3; background: var(--carbon-2); }
.hero__foto img { width: 100%; height: 100%; object-fit: cover; }
/* Pie de foto como la etiqueta de precio de la carta (naranja, punta a la izquierda) */
.hero__foto figcaption {
  position: absolute; right: var(--m); bottom: var(--m);
  padding: 9px 14px 7px 22px; background: var(--acento); color: var(--carbon);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); border-radius: 0 6px 6px 0;
  font-family: var(--display); font-weight: 400; font-size: 1.375rem; text-transform: uppercase; line-height: 1;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: stretch; padding-top: 40px; padding-bottom: 72px; }
  .hero__text { align-content: center; }
  .hero__foto { margin: 0; aspect-ratio: auto; min-height: 520px; border-radius: var(--r); }
}

/* ---------- Franja de estrellas (la del logo): sale UNA vez, entre la portada y la carta ---------- */
.ruta { height: 44px; background: var(--rojo); overflow: clip; display: grid; align-items: center; border-block: 3px solid var(--dorado); }
.ruta__linea { display: block; height: 16px; width: calc(100% + 88px); margin-left: -44px; background: var(--dash-x) left center / 44px 16px repeat-x; }

/* ---------- Carta ---------- */
.carta { padding: 64px var(--gutter) 96px; }
.carta__head { display: grid; gap: 16px; max-width: 760px; }
.carta h2, .sedes h2 { font-size: var(--step-head); color: var(--amarillo); }
.carta__intro { max-width: 52ch; }
.search { position: relative; max-width: 520px; margin-top: 8px; }
.search svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 22px; height: 22px; fill: none; stroke: var(--soft); stroke-width: 2.4; stroke-linecap: round; pointer-events: none; }
.search input { width: 100%; min-height: 54px; padding: 12px 16px 12px 48px; border: 0; border-radius: var(--r); background: var(--carbon-3); color: var(--ink); }
.search input::placeholder { color: var(--soft); }

/* Fila de secciones: fija arriba; en celular se desliza de costado (10 secciones, no se apilan).
   La sección activa se vuelve una cinta pequeña (rojo con filete dorado). */
.cats {
  position: sticky; top: var(--bar-h); z-index: 20;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter);
  margin: 24px calc(var(--gutter) * -1) 0; padding: 10px var(--gutter);
  background: var(--carbon);
}
.cats::-webkit-scrollbar { display: none; }
.cats a {
  flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 4px;
  border-radius: var(--r); background: var(--carbon-3); text-decoration: none;
  font-family: var(--display); font-weight: 400; font-size: 1.125rem; text-transform: uppercase; line-height: 1;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.cats a span { font-family: var(--text); font-size: var(--step-small); font-weight: 700; color: var(--soft); }
.cats a.is-on { background: var(--rojo); color: var(--ink); box-shadow: inset 0 0 0 2px var(--dorado); } /* taste-skill-ignore: filete dorado de la cinta */
.cats a.is-on span { color: var(--ink); } /* amarillo sobre rojo a 15 px daba 3.9:1; crema da 5.2:1 */
/* PC: las 10 secciones entran sin deslizar (con mouse no hay gesto de costado) */
@media (min-width: 1100px) {
  .cats { flex-wrap: wrap; overflow: visible; gap: 6px; }
  .cats a { font-size: 1rem; padding-inline: 12px; }
}
@media (hover: hover) and (pointer: fine) { .cats a:not(.is-on):hover { background: var(--carbon-2); color: var(--acento); } }

/* Cabecera de sección: la cinta roja de la carta impresa, con filete dorado y muesca en las puntas */
.carta__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 72px; margin-top: 40px; }
.cat { min-width: 0; container-type: inline-size; }
.cat__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 14px; }
/* La cinta va siempre en una línea: en celular la letra se ajusta al ancho ("Broaster con arroz" mide ~10 em) */
.cat__head h3 {
  --muesca: 14px;
  position: relative; isolation: isolate; min-width: 0; white-space: nowrap;
  font-size: min(var(--step-sub), calc((100cqi - 64px) / 10.2)); color: var(--ink); padding: 12px calc(var(--muesca) + 16px) 9px;
  background: var(--dorado);
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--muesca)) 50%, 100% 100%, 0 100%, var(--muesca) 50%);
}
.cat__head h3::before {
  content: ""; position: absolute; z-index: -1; inset: 3px;
  background: var(--rojo);
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--muesca) + 2px) 50%, 100% 100%, 0 100%, calc(var(--muesca) - 2px) 50%);
}
.cat__head p { font-size: var(--step-small); font-weight: 700; color: var(--soft); white-space: nowrap; }
/* En celular el número ya sale en la fila de secciones; aquí saltaba debajo de las cintas largas */
@media (max-width: 599px) { .cat__head p { display: none; } }
.cat__list { display: grid; gap: 10px; }
/* Foto grande que abre la categoría */
.cat__portada { position: relative; margin: 0 0 16px; aspect-ratio: 4 / 3; /* formato original: en celular no se recorta nada */ overflow: clip; border-radius: var(--r); background: var(--carbon-2); }
.cat__portada img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.cat__portada figcaption { position: absolute; left: 12px; bottom: 12px; padding: 7px 10px 5px; border-radius: 4px; background: var(--carbon); color: var(--acento); font-family: var(--display); font-weight: 400; font-size: 1.375rem; text-transform: uppercase; line-height: 1; }
@media (min-width: 600px) { .cat__portada { aspect-ratio: 16 / 9; } }
@media (min-width: 900px) { .cat__portada { aspect-ratio: 21 / 8; margin-bottom: 20px; } }
@media (min-width: 900px) { .cat__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

.item__btn {
  width: 100%; height: 100%; text-align: left;
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 10px; border-radius: var(--r); background: var(--carbon-2);
  transition: background-color 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .item__btn:hover { background: var(--carbon-3); } }
.item__foto { position: relative; width: 112px; aspect-ratio: 4 / 3; border-radius: 4px; overflow: clip; background: var(--carbon-3); }
.item__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .item__btn:hover .item__foto img { transform: scale(1.05); } }
.item__foto--vacia { display: grid; place-items: center; }
.item__foto--vacia img { width: 58%; height: auto; object-fit: contain; }
.item__foto--vacia svg { width: 34%; height: auto; fill: var(--acento); }
.item__body { display: grid; gap: 6px; min-width: 0; }
.item__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 6px 12px; }
.item__name { min-width: 0; overflow-wrap: break-word; font-family: var(--display); font-weight: 400; font-size: 1.375rem; line-height: 0.95; text-transform: uppercase; }
/* Precio como tablero del grifo: dígitos amarillos sobre asfalto */
.item__price { flex: none; padding: 5px 8px 3px; border-radius: 4px; background: var(--carbon); color: var(--acento); font-family: var(--display); font-weight: 400; font-size: 1.375rem; line-height: 1; }
.item__desc { overflow-wrap: anywhere; font-size: var(--step-body); line-height: 1.45; color: var(--soft); }
.item__meta { font-size: var(--step-small); font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.item__meta::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 4px; background: var(--acento) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23110D0B' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12h12M12 6v12'/%3E%3C/svg%3E") center / 18px no-repeat; margin-left: auto; }
.item__plus { display: none; }
.item__agotado { justify-self: start; padding: 4px 8px 2px; border-radius: 4px; background: var(--rojo); color: var(--ink); font-size: var(--step-small); font-weight: 700; }
.item--agotado .item__btn { cursor: not-allowed; }
.item--agotado .item__foto img { filter: grayscale(1); opacity: 0.55; }
.item--agotado .item__name, .item--agotado .item__price { color: var(--soft); }
@media (min-width: 600px) {
  .item__btn { grid-template-columns: 152px minmax(0, 1fr); gap: 18px; padding: 12px; }
  .item__foto { width: 152px; }
}
.carta__msg { padding: 24px 0; font-weight: 600; }

/* ---------- Tu pedido: panel lateral derecho ----------
   No tapa toda la página: en PC (≥1100) la página se corre y se puede seguir eligiendo con el panel abierto;
   en celular deja una franja de la página a la izquierda (tocarla cierra). El borde izquierdo es la pista. */
:root { --panel-w: min(440px, calc(100vw - 44px)); }
.panel {
  position: fixed; z-index: 36; top: var(--bar-h); right: 0; bottom: 0; width: var(--panel-w);
  display: grid; grid-template-rows: auto minmax(0, 1fr);
  padding-left: 16px; background: var(--rojo); color: var(--ink);
  transform: translateX(100%); visibility: hidden;
  transition: transform 320ms var(--ease-drawer), visibility 0s linear 320ms;
}
.panel.is-open {
  transform: none; visibility: visible;
  transition: transform 420ms var(--ease-drawer), visibility 0s;
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.45); /* taste-skill-ignore: capa flotante */
}
/* Borde izquierdo: carbón con filete dorado, como el borde de la cinta */
.panel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 16px; background: var(--carbon); border-right: 4px solid var(--dorado); }
.panel__fondo { position: fixed; z-index: 35; inset: var(--bar-h) 0 0 0; background: rgba(0, 0, 0, 0.55); }
.panel__top { position: relative; display: grid; gap: 14px; padding: 16px 16px 14px 20px; background: var(--rojo); }
.panel__top h2 { font-size: 2.5rem; color: var(--amarillo); padding-right: 52px; outline-offset: 4px; }
.panel__cerrar { position: absolute; top: 8px; right: 8px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--rojo-2); transition: background-color 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .panel__cerrar:hover { background: var(--carbon); } }
.panel__cerrar svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; }
.panel__form { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.panel__cuerpo { overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 24px 20px; background: var(--rojo); }
.paso { display: grid; align-content: start; gap: 18px; min-width: 0; }
.paso h3 { font-size: 1.75rem; }
.panel__seguir { font-size: var(--step-small); }
.lineas:empty ~ .panel__seguir, .paso:has(.vacio:not([hidden])) .panel__seguir { display: none; }
.volver { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px 0 12px; border-radius: var(--r); background: var(--rojo-2); font-weight: 600; transition: background-color 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .volver:hover { background: var(--carbon); } }
.volver svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.panel__pie { display: grid; gap: 10px; padding: 12px 16px max(12px, env(safe-area-inset-bottom)) 20px; background: var(--rojo-3); }
.panel__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 1; }
.panel__total span { font-size: 1.5rem; }
.panel__total b { font-size: 2.25rem; color: var(--amarillo); white-space: nowrap; }
.panel .opc { color: var(--ink); font-weight: 400; } /* el rosado daba 4.3:1 sobre el rojo */
/* PC ancho: la página se corre a la izquierda y se sigue viendo/eligiendo con el panel abierto */
@media (min-width: 1100px) {
  :root { --panel-w: 440px; }
  .panel__fondo { display: none; }
  body.panel-abierto .main, body.panel-abierto .pie { margin-right: var(--panel-w); }
}
body.panel-abierto .wa-float { opacity: 0; visibility: hidden; pointer-events: none; }
.bar__cart[aria-expanded="true"] { background: var(--ink); }

/* Pasos para pedir: tres paradas unidas por la línea discontinua */
.camino { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.camino li { position: relative; display: grid; justify-items: start; gap: 8px; padding-right: 8px; font-weight: 600; font-size: var(--step-small); line-height: 1.25; color: var(--ink); opacity: 0.75; }
.camino li::before { content: ""; position: absolute; left: 30px; right: 4px; top: 10px; height: 4px; background: var(--dorado); height: 3px; top: 11px; opacity: 0.35; }
.camino li:last-child::before { display: none; }
.camino__hito { position: relative; width: 24px; height: 24px; border-radius: 50%; background: var(--rojo-2); transition: background-color 240ms var(--ease-out), box-shadow 240ms var(--ease-out); }
.camino li.is-actual { opacity: 1; font-weight: 700; }
.camino li.is-actual .camino__hito { box-shadow: inset 0 0 0 4px var(--acento); } /* taste-skill-ignore: parada actual marcada */
.camino li.is-ok { opacity: 1; }
.camino li.is-ok::before { opacity: 1; }
.camino li.is-ok .camino__hito { background: var(--acento); box-shadow: none; } /* taste-skill-ignore: quita el anillo, no es sombra */
.camino li.is-ok .camino__hito::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23110D0B' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 16px no-repeat; }

.lineas { display: grid; gap: 4px; }
/* Línea del pedido: foto pequeña 4:3 a la izquierda; nombre, extras y controles a su derecha */
.linea { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 0; align-items: start; }
.linea + .linea { box-shadow: 0 -4px 0 var(--rojo-2); } /* taste-skill-ignore: separación de líneas por tono (bloque de 4 px, no hairline) */
.linea__foto { grid-row: 1 / span 3; width: 64px; aspect-ratio: 4 / 3; border-radius: 4px; overflow: clip; background: var(--carbon); display: grid; place-items: center; }
.linea__foto img { width: 100%; height: 100%; object-fit: cover; }
.linea__foto--vacia img { width: 70%; height: auto; }
.linea__foto--vacia svg { height: 70%; width: auto; fill: var(--acento); }
.linea__nombre { font-weight: 700; overflow-wrap: anywhere; min-width: 0; line-height: 1.3; }
.linea__precio { font-weight: 700; }
.linea__extra { grid-column: 2 / -1; display: grid; gap: 2px; font-size: var(--step-small); }
.linea__extra p { display: flex; justify-content: space-between; gap: 12px; }
.linea__nota { font-style: italic; overflow-wrap: anywhere; }
.linea__ctrl { grid-column: 2 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.mini { display: inline-flex; align-items: center; background: var(--rojo-2); border-radius: var(--r); }
.mini button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r); }
@media (hover: hover) and (pointer: fine) { .mini button:hover { background: var(--carbon); } }
.mini svg, .stepper svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.mini output { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.quitar { min-height: 44px; padding: 0 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.vacio { display: grid; gap: 8px; justify-items: start; }
.vacio .link { min-height: 44px; display: inline-flex; align-items: center; }
.totales { display: grid; gap: 6px; padding-top: 14px; box-shadow: 0 -4px 0 var(--rojo-2); } /* taste-skill-ignore: separación por tono */
.totales div { display: flex; justify-content: space-between; gap: 12px; }
.totales dd { margin: 0; font-weight: 700; }
.minimo { font-weight: 600; font-size: var(--step-small); }
.minimo:empty { display: none; }
.campo { display: grid; gap: 8px; }
.campo > label, .campo legend { font-weight: 700; padding: 0; } /* solo el título del campo: las opciones conservan su relleno */
.campo legend { margin-bottom: 8px; }
.campo input {
  width: 100%; min-height: 54px; padding: 14px 16px; border: 0; border-radius: var(--r);
  background: var(--carbon); color: var(--ink);
}
.campo input::placeholder { color: var(--soft); }
.campo input[aria-invalid="true"] { box-shadow: inset 0 0 0 3px var(--acento); } /* taste-skill-ignore: borde de error */
.opciones { display: grid; gap: 8px; }
.opciones--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opcion {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 56px; padding: 14px 18px; border-radius: var(--r); background: var(--rojo-2); cursor: pointer;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.opcion input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opcion > span { min-width: 0; overflow-wrap: anywhere; font-weight: 600; line-height: 1.3; }
.opcion small { margin-top: 2px; }
.sede { flex-wrap: wrap; row-gap: 8px; }
.opcion small { display: block; font-size: var(--step-small); font-weight: 400; }
.opcion b { white-space: nowrap; font-weight: 700; }
.opciones--3 .opcion { justify-content: center; padding-inline: 10px; }
.opcion:has(input:checked) { background: var(--acento); color: var(--carbon); }
.opcion:has(input:focus-visible) { outline: 3px solid var(--acento); outline-offset: 2px; }
.opcion:has(input[aria-invalid="true"]) { box-shadow: inset 0 0 0 3px var(--acento); } /* taste-skill-ignore: borde de error */
@media (hover: hover) and (pointer: fine) { .opcion:hover { background: var(--carbon); } .opcion:has(input:checked):hover { background: var(--acento-2); } }
.sede__estado { display: inline-flex; align-items: center; gap: 6px; font-size: var(--step-small); }
.sede__estado::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: 0.45; }
.sede[data-sede-estado="abierto"] .sede__estado::before { background: var(--naranja); opacity: 1; }
.opcion:has(input:checked) .sede__estado::before { background: var(--carbon); }
.aviso-cerrado { padding: 14px 16px; border-radius: var(--r); background: var(--rojo-2); font-weight: 600; font-size: var(--step-small); }
.error { font-weight: 700; font-size: var(--step-small); }
.error:not(:empty) { padding: 12px 16px; border-radius: var(--r); background: var(--carbon); color: var(--acento); }
.enviar {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 60px; padding: 12px 22px;
  border-radius: var(--r); background: var(--acento); color: var(--carbon); font-weight: 700; font-size: var(--step-lead);
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.enviar svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.enviar .enviar__flecha { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.enviar:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .enviar:hover { background: var(--acento-2); } }
.enviar[aria-disabled="true"] { background: var(--rojo-2); color: var(--ink); cursor: not-allowed; }

/* ---------- Sedes: dos carteles de carretera ---------- */
.sedes { padding: 64px var(--gutter) 120px; display: grid; gap: 32px; }
.sedes__head { display: grid; gap: 16px; max-width: 760px; }
.sedes__head p { max-width: 48ch; font-size: var(--step-lead); }
.sedes__lista { display: grid; gap: 24px; max-width: 720px; }

.cartel { display: grid; gap: 18px; align-content: start; padding: 28px 22px 24px; border-radius: var(--r); background: var(--rojo); color: var(--ink); border: 3px solid var(--dorado); }
.cartel h3 { font-size: clamp(2rem, 1.6rem + 2vw, 3rem); color: var(--amarillo); }
.cartel__estado { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 4px; background: var(--carbon); color: var(--ink); font-weight: 700; font-size: var(--step-small); }
.cartel__estado::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--soft); }
.cartel[data-abierta="true"] .cartel__estado::before { background: var(--naranja); }
.cartel dl { display: grid; gap: 10px; }
.cartel dt { font-weight: 700; font-size: var(--step-small); }
.cartel dd { margin: 0; font-size: var(--step-body); }
.cartel__acc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.cartel__acc a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--r);
  background: var(--carbon); color: var(--ink); text-decoration: none; font-weight: 700;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.cartel__acc a:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .cartel__acc a:hover { background: var(--carbon-3); } }
.cartel__acc svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
@media (min-width: 600px) { .cartel { padding: 36px 32px 32px; } }

/* ---------- Pie: fin de la ruta (se descubre bajo la página) ---------- */
.main { position: relative; z-index: 1; background: var(--carbon); }
.pie { background: var(--rojo); color: var(--ink); overflow: clip; }
.pie__in { padding: 64px var(--gutter) 24px; display: grid; gap: 32px; container-type: inline-size; }
.pie__msg { display: grid; gap: 12px; max-width: 46ch; }
.pie__msg h2 { font-size: var(--step-head); color: var(--amarillo); }
.pie__links { display: grid; gap: 4px; }
.pie__links a { display: inline-flex; align-items: center; min-height: 44px; }
/* "★ EL BUEN SAZÓN ★" como en el logo: segunda (y última) vez que salen las estrellas */
.pie__nombre { display: flex; align-items: center; justify-content: center; gap: 0.3em; font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 0.8; font-size: 10.6cqi; color: var(--amarillo); white-space: nowrap; letter-spacing: -0.01em; }
.pie__estrella { flex: none; width: 0.62em; height: 0.62em; background: var(--dorado); clip-path: polygon(50% 0, 61.8% 35.4%, 100% 38.2%, 69.1% 61.8%, 80.9% 100%, 50% 76.4%, 19.1% 100%, 30.9% 61.8%, 0 38.2%, 38.2% 35.4%); }
.pie__firma { font-size: var(--step-small); padding-bottom: max(8px, env(safe-area-inset-bottom)); }
.pie__firma .link { display: inline-flex; min-height: 44px; align-items: center; }
@media (min-width: 900px) {
  .pie__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; padding-top: 88px; }
  .pie__links { align-content: start; }
  .pie__nombre, .pie__firma { grid-column: 1 / -1; }
}

/* ---------- Flotantes ---------- */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: var(--wa-green);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); /* taste-skill-ignore: capa flotante */
  transition: transform 260ms var(--ease-out), opacity 200ms var(--ease-out);
}
.wa-float svg { width: 32px; height: 32px; fill: #0B141A; }
@media (hover: hover) and (pointer: fine) { .wa-float:hover { transform: translateY(-2px); } }
@media (max-width: 899px) {
  .has-cartbar .wa-float { transform: translateY(-76px); }
  .en-carta .wa-float { transform: translateY(24px); opacity: 0; pointer-events: none; visibility: hidden; transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out), visibility 0s 200ms; }
}
.cartbar {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 39;
  display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 16px;
  background: var(--acento); color: var(--carbon); text-decoration: none; font-weight: 700;
  border-radius: var(--r); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); /* taste-skill-ignore: capa flotante */
  transition: transform 300ms var(--ease-out), opacity 300ms var(--ease-out);
}
.cartbar.is-out { transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none; }
.cartbar__n { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 7px; background: var(--carbon); color: var(--ink); border-radius: 4px; font-size: var(--step-small); }
.cartbar__total { margin-left: auto; font-family: var(--display); font-weight: 400; font-size: 1.375rem; line-height: 1; }
/* Con la barra "Ver tu pedido" abajo, el final del pie no queda tapado */
@media (max-width: 899px) { .has-cartbar .pie__firma { padding-bottom: 92px; } }
@media (min-width: 900px) { .cartbar { display: none !important; } .wa-float { right: 24px; bottom: 24px; } }

/* ---------- Ficha del producto (diálogo) ---------- */
.ficha {
  width: 100%; max-width: 100%; max-height: 92svh; margin: auto 0 0; padding: 0;
  border: 0; border-radius: 14px 14px 0 0; background: var(--carbon-2); color: var(--ink);
  overflow: auto; overscroll-behavior: contain;
}
.ficha::backdrop { background: rgba(0, 0, 0, 0.75); }
.ficha__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 0 var(--m); position: relative; }
.ficha__foto { margin-inline: calc(var(--m) * -1); aspect-ratio: 4 / 3; background: var(--carbon-3); overflow: clip; display: grid; place-items: center; }
.ficha__foto img { width: 100%; height: 100%; object-fit: cover; }
.ficha__foto--vacia img { width: auto; height: 62%; object-fit: contain; }
.ficha__foto--vacia svg { width: auto; height: 56%; fill: var(--acento); }
.ficha__close {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; background: var(--carbon); transition: background-color 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .ficha__close:hover { background: var(--carbon-3); } }
.ficha__close svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; }
.ficha__top { display: grid; gap: 8px; }
.ficha h3 { font-size: var(--step-sub); color: var(--acento); overflow-wrap: anywhere; }
.ficha__desc { color: var(--soft); }
.grupo { display: grid; gap: 10px; }
.grupo legend, .grupo > label { font-weight: 700; padding: 0; margin-bottom: 10px; }
.grupo > label { margin-bottom: 0; }
.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); gap: 6px; }
.chip { position: relative; display: grid; gap: 2px; min-height: 56px; padding: 12px 16px; border-radius: var(--r); background: var(--carbon-3); cursor: pointer; min-width: 0; overflow-wrap: anywhere; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip:has(input:checked) { background: var(--acento); color: var(--carbon); }
.chip:has(input:focus-visible), .extra:has(input:focus-visible) { outline: 3px solid var(--acento); outline-offset: 2px; }
.extras { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.extra {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  min-height: 54px; padding: 10px 16px; border-radius: var(--r); background: var(--carbon-3); cursor: pointer;
  transition: background-color 160ms var(--ease-out);
}
.extra input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.extra__box { width: 26px; height: 26px; border-radius: 4px; background: var(--carbon); display: grid; place-items: center; transition: background-color 160ms var(--ease-out); }
.extra__box svg { width: 16px; height: 16px; fill: none; stroke: var(--carbon); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 220ms var(--ease-out); }
.extra:has(input:checked) .extra__box { background: var(--acento); }
.extra:has(input:checked) .extra__box svg { stroke-dashoffset: 0; }
.extra__name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.extra__price { font-weight: 700; white-space: nowrap; }
.grupo textarea { width: 100%; min-height: 64px; padding: 12px 14px; border: 0; border-radius: var(--r); background: var(--carbon-3); color: var(--ink); resize: vertical; }
.grupo textarea::placeholder { color: var(--soft); }
.grupo textarea:required { box-shadow: inset 0 0 0 3px var(--acento); } /* taste-skill-ignore: campo obligatorio marcado */
.ficha__foot {
  position: sticky; bottom: 0; display: flex; gap: 12px; align-items: center;
  margin-inline: calc(var(--m) * -1); padding: 14px var(--m) max(14px, env(safe-area-inset-bottom)); background: var(--carbon-2);
}
.stepper { display: inline-flex; align-items: center; background: var(--carbon-3); border-radius: var(--r); }
.stepper button { width: 48px; height: 56px; display: grid; place-items: center; border-radius: var(--r); }
@media (hover: hover) and (pointer: fine) { .stepper button:hover { background: var(--carbon); } }
.stepper output { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (min-width: 700px) {
  .ficha { width: 600px; margin: auto; border-radius: 14px; max-height: 90svh; }
  .ficha__in { padding: 0 32px; }
  .ficha__foto { margin-inline: -32px; aspect-ratio: 16 / 9; }
  .ficha__foot { margin-inline: -32px; padding-inline: 32px; }
}

/* ---------- Movimiento ---------- */
@keyframes count-pop { 0% { transform: scale(1); } 35% { transform: scale(1.22); background: var(--rojo); } 100% { transform: scale(1); } }
.count.is-pop, .cartbar__n.is-pop { animation: count-pop 320ms var(--ease-out); }
@keyframes cart-nudge { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-3px); } }
.bar__cart.is-pop { animation: cart-nudge 360ms var(--ease-out); }
.vuelo { position: fixed; z-index: 60; width: 52px; height: 40px; border-radius: 4px; overflow: hidden; pointer-events: none; background: var(--acento); }
.vuelo img { width: 100%; height: 100%; object-fit: cover; }

.ficha[open] { animation: ficha-in 420ms var(--ease-drawer); }
.ficha[open]::backdrop { animation: fade-in 260ms var(--ease-out); }
@keyframes ficha-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (min-width: 700px) {
  @keyframes ficha-in { from { transform: translateY(12px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }
  .ficha[open] { animation-duration: 280ms; animation-timing-function: var(--ease-out); } /* en PC es un diálogo, no un cajón: más corto */
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.ficha.is-closing { animation: ficha-out 240ms var(--ease-out) forwards; }
.ficha.is-closing::backdrop { animation: fade-out 240ms var(--ease-out) forwards; }
@keyframes ficha-out { to { transform: translateY(100%); } }
@media (min-width: 700px) { @keyframes ficha-out { to { transform: translateY(12px) scale(0.97); opacity: 0; } } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes linea-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.linea.is-new { animation: linea-in 280ms var(--ease-out); }

@media (prefers-reduced-motion: no-preference) {
  /* Portada: entra una vez (logo, título, texto, salidas, foto) */
  .hero__logo, .hero h1, .hero__lead, .hero .btn, .hero__estado, .salidas, .hero__foto { animation: sube 640ms var(--ease-out) both; }
  .hero h1 { animation-delay: 70ms; }
  .hero__lead { animation-delay: 140ms; }
  .hero .btn { animation-delay: 210ms; }
  .hero__estado, .salidas { animation-delay: 280ms; }
  .hero__foto { animation-name: aparece; animation-duration: 900ms; animation-delay: 120ms; }
  @keyframes sube { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  @keyframes aparece { from { opacity: 0; } to { opacity: 1; } }

  /* Firma: la línea de la pista avanza con el scroll */
  @supports (animation-timeline: view()) {
    .ruta__linea { animation: avanza linear both; animation-timeline: view(); }
    @keyframes avanza { from { transform: translateX(-44px); } to { transform: translateX(44px); } }
    .hero__foto img { animation: acerca linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    @keyframes acerca { from { transform: scale(1); } to { transform: scale(1.12); } }
    @media (min-width: 600px) { .cat__portada img { animation: acerca-cat linear both; animation-timeline: view(); } }
    @keyframes acerca-cat { from { transform: scale(1.12) translateY(-3%); } to { transform: scale(1) translateY(3%); } }
    .pie__nombre { animation: entra-nombre linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
    @keyframes entra-nombre { from { transform: translateY(35%); opacity: 0.2; } to { transform: none; opacity: 1; } }
  }

  /* Entradas por sección (solo con JS; sin JS todo queda visible) */
  .js .revela > * { opacity: 0; transform: translateY(20px); transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out); }
  .js .revela > :nth-child(2) { transition-delay: 70ms; }
  .js .revela > :nth-child(3) { transition-delay: 140ms; }
  .js .revela > :nth-child(n+4) { transition-delay: 210ms; }
  .js .revela.is-in > * { opacity: 1; transform: none; }

  /* Firma: al llegar a cada sección, la cinta roja se despliega de izquierda a derecha (≈320 ms).
     Mismo número de puntos en ambos polígonos para que el navegador los interpole. */
  .js .cat .cat__head h3 { clip-path: polygon(0 0, 0 0, 0 50%, 0 100%, 0 100%, 0 50%); }
  .js .cat.is-in .cat__head h3 {
    clip-path: polygon(0 0, 100% 0, calc(100% - var(--muesca)) 50%, 100% 100%, 0 100%, var(--muesca) 50%);
    transition: clip-path 340ms var(--ease-out);
  }
  .js .cat .cat__head p, .js .cat .cat__intro { opacity: 0; transition: opacity 320ms var(--ease-out) 160ms; }
  .js .cat.is-in .cat__head p, .js .cat.is-in .cat__intro { opacity: 1; }

  /* Carta: los productos entran escalonados una vez */
  /* 300 ms, 10 px y 35 ms entre filas (máx. 6): toda la sección entra en ≈0.5 s. Lo que pasa a la fila
     (hover, :active) no hereda el retraso. */
  .js .cat .item { opacity: 0; transform: translateY(10px); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); transition-delay: calc(min(var(--i, 0), 6) * 35ms); }
  .js .cat.is-in .item { opacity: 1; transform: none; }
}

/* Reducir movimiento: sin desplazamientos; se quedan fundidos y cambios de color */
@keyframes count-flash { 30% { background: var(--rojo); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .count.is-pop, .cartbar__n.is-pop { animation: count-flash 420ms var(--ease-out); }
  .bar__cart.is-pop { animation: none; }
  .linea.is-new { animation: fade-in 200ms var(--ease-out); }
  .ficha[open] { animation: fade-in 200ms var(--ease-out); }
  .ficha.is-closing { animation: fade-out 160ms linear forwards; }
  .btn:active, .enviar:active, .cartel__acc a:active { transform: none; }
  .cartbar, .wa-float { transition-property: opacity, visibility; }
  .cartbar.is-out { transform: none; }
  .panel { transform: none; opacity: 0; transition: opacity 200ms var(--ease-out), visibility 0s linear 200ms; }
  .panel.is-open { opacity: 1; transition: opacity 200ms var(--ease-out), visibility 0s; }
}
.enviar[aria-disabled="true"] .enviar__flecha { display: none; }


/* ==========================================================================
   Buen Sazón · catálogo por SECCIONES
   Cada sección: cinta roja con el nombre → frase corta → fotos que rotan → lista completa.
   ========================================================================== */
.hero__lema { font-family: var(--display); color: var(--amarillo); font-size: 1.25rem; letter-spacing: 0.06em; text-transform: uppercase; }
.cat__intro { color: var(--ink); max-width: 52ch; margin-bottom: 18px; font-size: var(--step-body); }

/* Galería de la sección: deslizable con el dedo; rota sola cada 3.5 s */
.galeria { position: relative; margin: 0 calc(var(--gutter) * -1) 18px; }
.galeria__pista {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 var(--gutter); scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain;
}
.galeria__pista::-webkit-scrollbar { display: none; }
.galeria__foto { flex: 0 0 min(86%, 420px); scroll-snap-align: start; aspect-ratio: 1 / 1; border-radius: var(--r); overflow: clip; background: var(--carbon-2); }
.galeria[data-n="1"] .galeria__foto { flex-basis: 100%; aspect-ratio: 4 / 3; }
.galeria__foto img { width: 100%; height: 100%; object-fit: cover; }
/* Puntos: el punto se ve pequeño, pero cada uno se toca en 44 × 44 px */
.galeria__puntos { display: flex; justify-content: center; gap: 0; margin-top: 2px; }
.galeria__puntos button { width: 44px; height: 44px; display: grid; place-items: center; }
.galeria__puntos button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--carbon-3); transition: width 240ms var(--ease-out), background-color 240ms var(--ease-out); }
.galeria__puntos button[aria-current="true"]::before { width: 24px; border-radius: 5px; background: var(--acento); }
.galeria--caben .galeria__puntos { display: none; }
@media (min-width: 600px) {
  .galeria { margin-inline: 0; }
  .galeria__pista { padding: 0; scroll-padding-inline: 0; }
  .galeria__foto { flex-basis: calc((100% - 16px) / 3); aspect-ratio: 1 / 1; }
  .galeria[data-n="1"] .galeria__foto { flex-basis: 100%; aspect-ratio: 21 / 8; }
  .galeria[data-n="2"] .galeria__foto { flex-basis: calc((100% - 8px) / 2); aspect-ratio: 4 / 3; }
}
.carta.buscando .galeria, .carta__body.buscando .galeria, .carta__body.buscando .cat__intro { display: none; }

/* Lista de la sección: cada plato es una tabla de madera (un tono más claro que el fondo, separadas por
   el fondo, sin líneas). Nombre y detalle a la izquierda; precio en etiqueta naranja y + a la derecha.
   Toda la fila es el botón (≥ 72 px de alto). */
.cat__list { display: grid; gap: 6px; }
/* Desde tablet, 2 columnas: el precio queda cerca del nombre (a 768 px en una columna quedaban a 600 px de distancia) */
@media (min-width: 600px) { .cat__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } }
.item__btn {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 40px; gap: 4px 12px; align-items: center;
  width: 100%; height: 100%; min-height: 72px; padding: 14px 12px 14px 16px; border-radius: var(--r); background: var(--carbon-2); text-align: left;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.item__btn:active { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) { .item__btn:hover { background: var(--carbon-3); } .item__btn:hover .item__plus { background: var(--acento); } .item__btn:hover .item__plus svg { stroke: var(--carbon); } }
.item--foto .item__btn { grid-template-columns: 64px minmax(0, 1fr) auto 40px; }
.item__foto { width: 64px; }
.item__body { display: grid; gap: 3px; min-width: 0; }
.item__name { font-family: var(--text); font-weight: 800; font-size: 1.125rem; line-height: 1.25; text-transform: none; color: var(--ink); }
.item__desc { font-size: var(--step-small); line-height: 1.35; color: var(--soft); }
.item__opc { font-size: var(--step-small); line-height: 1.35; color: var(--dorado); font-weight: 700; }
/* Precio: etiqueta naranja con punta a la izquierda, en las letras del logo */
.item__price {
  justify-self: end; padding: 7px 10px 5px 16px; background: var(--acento); color: var(--carbon);
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 8px 100%, 0 50%);
  border-radius: 0 6px 6px 0;
  font-family: var(--display); font-weight: 400; font-size: 1.3125rem; line-height: 1; white-space: nowrap;
}
.item__price small { font-family: var(--text); font-weight: 800; font-size: 0.8125rem; }
.item__plus { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--rojo); box-shadow: inset 0 0 0 2px var(--dorado); transition: background-color 160ms var(--ease-out); } /* taste-skill-ignore: filete dorado */
.item__plus svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.item__agotado { margin-top: 4px; }
.item--agotado .item__price { background: var(--carbon-3); color: var(--soft); text-decoration: line-through; }
.item--agotado .item__plus { background: var(--carbon-3); box-shadow: none; opacity: 0.5; }
@media (max-width: 379px) {
  .item__btn { grid-template-columns: minmax(0, 1fr) auto 40px; column-gap: 8px; padding-left: 14px; }
  .item__price { font-size: 1.1875rem; padding-left: 14px; }
}

/* Ficha: cremas gratis en botones de 2 columnas */
.cremas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.crema { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 50px; padding: 8px 12px; border-radius: var(--r); background: var(--carbon-3); cursor: pointer; font-weight: 600; line-height: 1.2; }
.crema input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.crema { transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out); }
.crema:has(input:checked) { background: var(--acento); color: var(--carbon); }
.crema:has(input:checked) .extra__box { background: var(--carbon); }
.crema:has(input:checked) .extra__box svg { stroke: var(--acento); }
.crema:has(input:checked) .extra__box svg { stroke-dashoffset: 0; }
.crema:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }
.crema:has(input:focus-visible) { outline: 3px solid var(--acento); outline-offset: 2px; }
.ficha h3 { color: var(--amarillo); }
.ficha__foto--vacia { background: var(--rojo); }
.ficha__foto--vacia img { width: 70%; height: auto; }
.ficha__foto:has(img[src*="logo"]) { aspect-ratio: 16 / 7; }

/* Local: redes y pagos */
.redes { display: flex; flex-wrap: wrap; gap: 8px; }
.redes a, .redes span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--r); background: var(--carbon); color: var(--ink); text-decoration: none; font-weight: 700; font-size: var(--step-small); }
.redes svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.pago-yape { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.pago-yape i { font-style: normal; display: inline-grid; place-items: center; padding: 3px 10px; border-radius: 6px; background: #742284; color: #fff; font-weight: 800; }

/* Botones en naranja con texto oscuro (contraste 8:1) */
.btn, .bar__cart, .cartbar { color: var(--carbon); }
.enviar { color: var(--carbon); }
