/* Huarango Burger · demo de catálogo con pedidos por WhatsApp (Creciéndote)
   Dirección "La brasa del huarango": un solo motivo, el arco (copa del huarango = tapa del pan).
   El arco aparece en 4 tamaños: gigante (portada), grande (combos, marca del pie),
   mediano (banda, ficha) y chico (viñetas de la carta, botones, logo). */

:root {
  --carbon: #1A1614;
  --carbon-2: #26201C;
  --kraft: #EFE3CF;
  --kraft-2: #E4D3B6;
  --kraft-3: #D9C4A2;
  --mostaza: #E1A719;
  --mostaza-2: #F0CB6E;
  --mostaza-3: #C48F0C;
  --ketchup: #BB2623;
  --ketchup-2: #A11F1D;
  --verde: #5A5F2A;
  --verde-2: #474B20;
  --ink-light: #F6EEDF;
  --soft-light: #CDBFAC;
  --soft-dark: #574A40;
  --wa-green: #25D366;

  --font: "Schibsted Grotesk", system-ui, sans-serif;
  --step-small: 0.9375rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.2vw, 4rem);
  --step-sub: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
  --step-hero: clamp(3rem, 1.5rem + 5.6vw, 6rem);

  --m: 16px;
  --gutter: max(var(--m), (100% - 1344px) / 2);
  --bar-h: 60px;
  --arch: 999px 999px 0 0;
  --bun: 50% 50% 8px 8px / 44px 44px 8px 8px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  color-scheme: dark;
}
@media (min-width: 600px) { :root { --m: 28px; } }
@media (min-width: 1100px) { :root { --m: 48px; --bar-h: 68px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 56px); scrollbar-color: var(--mostaza) var(--carbon); }
body {
  margin: 0;
  background: var(--carbon);
  color: var(--ink-light);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.4;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.04em; line-height: 0.92; text-wrap: balance; }
::selection { background: var(--mostaza); color: var(--carbon); }
:focus-visible { outline: 3px solid var(--mostaza); outline-offset: 3px; }
.carta :focus-visible, .ficha :focus-visible, .cupon :focus-visible { outline-color: var(--carbon); }
[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; }
.opc { font-weight: 400; }

.skip { position: absolute; left: var(--m); top: -60px; z-index: 50; background: var(--mostaza); color: var(--carbon); padding: 12px 16px; font-weight: 600; border-radius: 8px; }
.skip:focus { top: 8px; }

.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.link:hover { text-decoration-color: var(--mostaza); }
.link--quiet { font-size: var(--step-small); padding: 12px 0; min-height: 44px; }

/* ---------- Botón con forma de arco (tapa del pan) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px 34px 8px;
  font-weight: 800; font-size: var(--step-body); letter-spacing: -0.02em; text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 200ms var(--ease-out);
}
.btn--arch { background: var(--mostaza); color: var(--carbon); border-radius: var(--bun); }
.btn--arch:hover { background: var(--mostaza-2); }
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 48px; padding: 10px 26px 6px; font-size: var(--step-small); }
.btn--wide { flex: 1; }

/* ---------- Aviso de demo y barra ---------- */
.demo-strip { background: var(--carbon-2); color: var(--soft-light); font-size: var(--step-small); text-align: center; padding: 8px var(--m); }

.bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  height: var(--bar-h); padding-inline: var(--gutter);
  background: var(--carbon);
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; margin-right: auto; min-height: 44px; }
.brand__arch { width: 20px; height: 24px; fill: var(--mostaza); flex: none; }
.brand__name { font-weight: 800; font-size: var(--step-body); letter-spacing: -0.04em; white-space: nowrap; }
.brand__name span { font-weight: 600; color: var(--soft-light); }
.bar__nav { display: none; }
.estado { display: inline-flex; align-items: center; gap: 7px; font-size: var(--step-small); font-weight: 600; white-space: nowrap; }
.estado__dot { width: 10px; height: 12px; border-radius: var(--arch); background: var(--soft-light); flex: none; transition: background-color 600ms var(--ease-out); }
[data-estado="abierto"] .estado__dot { background: var(--mostaza); }
[data-estado="cerrado"] .estado__dot { background: #8C8279; }
.bar__cart {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 6px 8px 6px 14px;
  background: var(--mostaza); color: var(--carbon); text-decoration: none;
  font-weight: 800; font-size: var(--step-small); border-radius: 22px 22px 8px 8px;
  transition: background-color 200ms var(--ease-out);
}
.bar__cart:hover { background: var(--mostaza-2); }
.count {
  display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 7px;
  background: var(--carbon); color: var(--ink-light); border-radius: 14px;
  font-size: var(--step-small); font-variant-numeric: tabular-nums;
}
@media (max-width: 380px) { .bar__cart > span:first-child { display: none; } .bar__cart { padding-left: 8px; } }
@media (min-width: 1000px) {
  .bar__nav { display: flex; gap: 6px; margin-right: 12px; }
  .bar__nav a { padding: 10px 12px; font-weight: 600; font-size: var(--step-small); text-decoration: none; color: var(--soft-light); border-radius: 8px; }
  .bar__nav a:hover { color: var(--ink-light); }
  .estado { margin-right: 8px; }
}

/* ---------- Portada ---------- */
.hero { display: grid; padding: 28px var(--gutter) 0; gap: 28px; overflow: hidden; }
.hero__text { display: flex; flex-direction: column; align-items: flex-start; }
.hero h1 { font-size: var(--step-hero); max-width: 11ch; }
.hero__lead { margin-top: 20px; max-width: 36ch; font-size: var(--step-body); color: var(--ink-light); }
.hero__estado { margin-top: 22px; font-weight: 600; font-size: var(--step-body); color: var(--mostaza); transition: color 600ms var(--ease-out); }
[data-estado="cerrado"] .hero__estado { color: var(--soft-light); }
.hero__aviso { margin-top: 8px; display: flex; gap: 10px; align-items: baseline; font-size: var(--step-body); font-weight: 600; }
.hero__aviso::before { content: ""; flex: none; width: 11px; height: 13px; background: var(--ketchup); border-radius: var(--arch); transform: translateY(1px); }
.hero .btn { margin-top: 26px; }

.hero__arch {
  position: relative; width: 100%; max-width: 560px; justify-self: center;
  aspect-ratio: 1 / 1.08; border-radius: var(--arch); overflow: hidden;
  background: var(--mostaza);
}
/* La brasa: borde del arco. Encendida = mostaza; apagada = ceniza. La foto nunca se apaga. */
.hero__arch::after { content: ""; position: absolute; inset: 0; z-index: 1; border: 10px solid var(--mostaza); border-bottom: 0; border-radius: inherit; pointer-events: none; transition: border-color 900ms var(--ease-out); }
[data-estado="cerrado"] .hero__arch::after { border-color: #6F665E; }
.hero__tag { position: absolute; z-index: 2; left: 50%; bottom: 18px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 40px); padding: 10px 16px 8px; background: var(--carbon); color: var(--ink-light); font-weight: 600; font-size: var(--step-small); text-align: center; border-radius: 22px 22px 8px 8px; }
.hero__tag b { display: block; color: var(--mostaza); font-weight: 800; }
@media (min-width: 900px) { .hero__arch::after { border-width: 14px; } .hero__tag { bottom: 32px; font-size: var(--step-body); padding: 12px 22px 10px; } }
.hero__arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; opacity: 0; transition: opacity 1600ms var(--ease-in-out); }
.hero__arch img.is-on { opacity: 1; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 48px; min-height: calc(100svh - var(--bar-h) - 34px); padding-top: 0; }
  .hero__text { justify-content: center; padding-block: 56px; }
  .hero__arch { align-self: end; max-width: none; width: 100%; aspect-ratio: auto; height: min(92%, 860px); min-height: 520px; }
  .hero__lead { margin-top: 32px; }
}

/* ---------- Banda de arcos ---------- */
.band { display: flex; gap: 4px; height: 56px; overflow: hidden; padding-top: 0; background: var(--carbon); align-items: flex-end; }
.band span { flex: none; width: 52px; height: 100%; border-radius: var(--arch); }
.band span:nth-child(4n+1) { background: var(--mostaza); }
.band span:nth-child(4n+2) { background: var(--ketchup); }
.band span:nth-child(4n+3) { background: var(--kraft); }
.band span:nth-child(4n) { background: var(--verde); }
@media (min-width: 900px) { .band { height: 84px; } .band span { width: 76px; } }

/* ---------- Combos ---------- */
.combos { background: var(--verde); color: var(--kraft); display: grid; gap: 28px; padding: 40px var(--gutter) 56px; }
.combos__foto { display: grid; place-items: center; }
.arch { position: relative; overflow: hidden; border-radius: var(--arch); background: var(--c, var(--mostaza)); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--lg { width: 100%; max-width: 520px; aspect-ratio: 1 / 1.1; }
.arch--lg img { position: absolute; inset: 0; object-position: 50% 60%; transition: opacity 260ms var(--ease-out); }
.combos__info { display: flex; flex-direction: column; }
.combos h2 { font-size: var(--step-head); max-width: 12ch; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 22px; }
.tab { position: relative; min-height: 44px; padding: 8px 0 12px; font-size: var(--step-body); font-weight: 400; color: var(--kraft); }
.tab[aria-selected="true"] { font-weight: 800; }
.tab::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 12px; height: 9px; margin-left: -6px; border-radius: var(--arch); background: var(--mostaza); transform: scale(0.4); opacity: 0; transform-origin: 50% 100%; transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out); }
.tab[aria-selected="true"]::after { transform: scale(1); opacity: 1; }
.combos__mid { margin-top: 26px; }
.combos__name { font-size: var(--step-sub); }
.combos__price { margin-top: 10px; font-weight: 800; font-size: var(--step-sub); letter-spacing: -0.04em; color: var(--mostaza); line-height: 1; }
.combos__desc { margin-top: 16px; max-width: 34ch; }
.cells { display: grid; gap: 8px; margin-top: 30px; }
.cell { display: flex; align-items: center; justify-content: center; min-height: 60px; padding: 14px 20px 8px; font-weight: 800; font-size: var(--step-body); text-decoration: none; text-align: center; border-radius: var(--bun); transition: background-color 200ms var(--ease-out), transform 160ms var(--ease-out); }
.cell:active { transform: scale(0.97); }
.cell--ink { background: var(--mostaza); color: var(--carbon); }
.cell--ink:hover { background: var(--mostaza-2); }
.cell--tone { background: var(--verde-2); color: var(--kraft); }
.cell--tone:hover { background: #3C401B; }
@media (min-width: 900px) {
  .combos { grid-template-columns: 1fr 1fr; gap: 64px; min-height: 88svh; align-items: center; padding-block: 80px; }
  .combos__info { min-height: min(560px, 70svh); justify-content: space-between; }
  .cells { grid-template-columns: 1fr 1fr; }
  .cell { min-height: 72px; }
}

/* ---------- Carta ---------- */
.carta { background: var(--kraft); color: var(--carbon); padding: 56px var(--gutter) 72px; }
.carta__head { display: grid; gap: 14px; }
.carta h2 { font-size: var(--step-head); }
.carta__intro { max-width: 42ch; }
.search { position: relative; margin-top: 8px; max-width: 520px; }
.search svg { position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px; fill: none; stroke: var(--carbon); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.search input { width: 100%; min-height: 54px; padding: 12px 16px 12px 48px; background: var(--kraft-2); border: 0; border-radius: 12px; font-size: var(--step-body); color: var(--carbon); }
.search input::placeholder { color: var(--soft-dark); }
.search input::-webkit-search-cancel-button { cursor: pointer; }
@media (min-width: 900px) {
  .carta__head { grid-template-columns: 1fr auto; align-items: end; column-gap: 48px; }
  .carta__head h2 { grid-column: 1; }
  .carta__intro { grid-column: 1; }
  .search { grid-column: 2; grid-row: 1 / 3; width: 420px; margin: 0; }
}

.cats {
  position: sticky; top: var(--bar-h); z-index: 20;
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
  margin: 24px calc(var(--gutter) * -1) 0; padding: 6px var(--gutter);
  background: var(--kraft);
}
.cats::-webkit-scrollbar { display: none; }
.cats a { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 10px; font-weight: 600; font-size: var(--step-small); text-decoration: none; border-radius: 10px; color: var(--carbon); transition: background-color 200ms var(--ease-out); }
.cats a span { color: var(--soft-dark); font-weight: 400; }
@media (max-width: 599px) { .cats a span { display: none; } }
.cats a:hover { background: var(--kraft-2); }
.cats a.is-on { background: var(--carbon); color: var(--kraft); }
.cats a.is-on span { color: var(--soft-light); }

.cat { padding-top: 44px; }
.cat__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.cat__head h3 { font-size: var(--step-sub); }
.cat__head p { font-size: var(--step-small); color: var(--soft-dark); white-space: nowrap; }
.cat__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
@media (min-width: 900px) {
  .cat { padding-top: 88px; }
  .cat__head { margin-bottom: 36px; }
  .cat__list { grid-template-columns: 1fr 1fr; column-gap: 64px; row-gap: 14px; }
}

.item__btn {
  width: 100%; display: grid; grid-template-columns: 56px minmax(0, 1fr) 40px; gap: 16px; align-items: start;
  padding: 12px 8px;
  text-align: left; border-radius: 14px; transition: background-color 200ms var(--ease-out);
}
.item__btn:hover { background: var(--kraft-2); }
.item__btn:active .item__plus { transform: scale(0.92); }
.item__foto { width: 56px; height: 64px; border-radius: var(--arch); overflow: hidden; background: var(--c, var(--mostaza)); }
.item__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; transform: scale(1.18); }
.item__body { display: grid; gap: 4px; min-width: 0; }
.item__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; align-items: baseline; }
.item__name { min-width: 0; overflow-wrap: anywhere; font-weight: 800; font-size: var(--step-body); letter-spacing: -0.02em; line-height: 1.2; }
.item__price { font-weight: 600; font-size: var(--step-body); white-space: nowrap; }
.item__desc { overflow-wrap: anywhere; font-size: var(--step-small); color: var(--soft-dark); max-width: 38ch; }
.item__meta { overflow-wrap: anywhere; font-size: var(--step-small); color: var(--carbon); font-weight: 600; }
.item__agotado { font-size: var(--step-small); font-weight: 800; color: var(--ketchup); }
.item__plus { width: 40px; height: 46px; display: grid; place-items: center; padding-top: 6px; background: var(--carbon); border-radius: var(--arch); transition: transform 160ms var(--ease-out); }
.item__plus svg { width: 20px; height: 20px; fill: none; stroke: var(--kraft); stroke-width: 2.6; stroke-linecap: round; }
.item--agotado .item__btn { cursor: not-allowed; }
.item--agotado .item__btn:hover { background: none; }
.item--agotado .item__foto { filter: grayscale(1); opacity: 0.6; }
.item--agotado .item__name, .item--agotado .item__price { color: var(--soft-dark); }
.item--agotado .item__plus { visibility: hidden; }
.item--agotado .item__plus svg { stroke: var(--soft-dark); }
@media (max-width: 400px) { .item__btn { grid-template-columns: 52px 1fr 36px; gap: 12px; } .item__foto { width: 52px; height: 60px; } .item__plus { width: 36px; height: 42px; } }

.carta__msg { padding: 40px 0 0; font-size: var(--step-body); color: var(--soft-dark); }

/* ---------- Tu pedido: el cupón ---------- */
.pedido { padding: 64px var(--gutter) 80px; background: var(--carbon); }
.pedido__head { display: grid; gap: 14px; margin-bottom: 32px; }
.pedido h2 { font-size: var(--step-head); }
.pedido__head p { max-width: 44ch; }

.cupon { position: relative; display: grid; background: var(--mostaza); color: var(--carbon); border-radius: 14px; }
.cupon__a, .cupon__b { padding: 28px 20px; min-width: 0; }
.cupon__b { position: relative; display: grid; gap: 16px; align-content: start; border-top: 5px dotted var(--carbon); }
.cupon__b::before, .cupon__b::after { content: ""; position: absolute; top: -17px; width: 28px; height: 28px; border-radius: 50%; background: var(--carbon); }
.cupon__b::before { left: -14px; }
.cupon__b::after { right: -14px; }
.cupon h3 { font-size: var(--step-sub); text-transform: none; }
@media (min-width: 900px) {
  .cupon { grid-template-columns: 1.1fr 1fr; }
  .cupon__a, .cupon__b { padding: 44px 48px; }
  .cupon__b { border-top: 0; border-left: 5px dotted var(--carbon); }
  .cupon__b::before { top: -14px; left: -17px; }
  .cupon__b::after { top: auto; bottom: -14px; right: auto; left: -17px; }
}

.lineas { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin-top: 20px; }
.linea { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 12px 0; }
.linea__nombre { overflow-wrap: anywhere; font-weight: 800; font-size: var(--step-body); line-height: 1.25; }
.linea__precio { font-weight: 800; font-size: var(--step-body); white-space: nowrap; }
.linea__extra { grid-column: 1 / -1; font-size: var(--step-small); display: grid; gap: 2px; }
.linea__extra p { display: flex; justify-content: space-between; gap: 12px; }
.linea__nota { font-weight: 600; }
.linea__ctrl { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.mini { display: inline-flex; align-items: center; background: var(--mostaza-2); border-radius: 12px; }
.mini button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; }
.mini button:hover { background: var(--kraft); }
.mini svg, .stepper svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.mini output { min-width: 26px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.quitar { min-height: 44px; padding: 0 4px; font-size: var(--step-small); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.vacio { margin-top: 18px; display: grid; gap: 4px; justify-items: start; font-size: var(--step-body); }
.vacio .link { min-height: 44px; display: inline-flex; align-items: center; }

.totales { margin-top: 18px; display: grid; gap: 6px; padding-top: 16px; }
.totales div { display: flex; justify-content: space-between; gap: 16px; }
.previa { margin-top: 18px; border-radius: 12px; background: var(--carbon); color: var(--ink-light); }
.previa summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 16px; font-weight: 800; font-size: var(--step-body); cursor: pointer; list-style: none; }
.previa summary::-webkit-details-marker { display: none; }
.previa summary::after { content: "Ver"; margin-left: auto; font-weight: 600; font-size: var(--step-small); color: var(--mostaza); }
.previa[open] summary::after { content: "Ocultar"; }
.previa svg { width: 22px; height: 22px; fill: var(--wa-green); flex: none; }
.previa .wa { max-width: none; border-radius: 0 0 12px 12px; }
.previa .wa__chat { min-height: 0; padding-top: 12px; }
@media (min-width: 900px) { .previa { display: none; } }
.totales dt { font-weight: 600; }
.totales dd { font-weight: 600; }
.totales__total { margin-top: 6px; font-size: var(--step-sub); font-weight: 800; letter-spacing: -0.03em; }
.totales__total dt, .totales__total dd { font-weight: 800; }
.minimo { margin-top: 14px; font-weight: 600; font-size: var(--step-small); }
.minimo:empty { display: none; }

.campo { display: grid; gap: 7px; }
.campo label, .campo legend { font-weight: 600; font-size: var(--step-small); padding: 0; }
.campo legend { margin-bottom: 7px; }
.campo input {
  width: 100%; min-height: 52px; padding: 12px 14px;
  background: var(--mostaza-2); border: 0; border-radius: 10px; color: var(--carbon); font-size: var(--step-body);
}
.campo input::placeholder { color: #5B4A1E; }
.campo input[aria-invalid="true"] { box-shadow: inset 0 0 0 3px var(--ketchup); } /* taste-skill-ignore: borde de error o capa flotante */
.opciones { display: grid; gap: 6px; }
.opciones--3 { grid-template-columns: repeat(3, 1fr); }
.opcion { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; background: var(--mostaza-2); border-radius: 10px; cursor: pointer; transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out); }
.campo .opcion { padding: 10px 14px; }
.opcion input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opcion small { display: block; font-size: var(--step-small); font-weight: 400; }
.opcion b { white-space: nowrap; }
.opciones--3 .opcion { justify-content: center; font-weight: 600; }
.opcion:has(input:checked) { background: var(--carbon); color: var(--ink-light); }
.opcion:has(input:focus-visible) { outline: 3px solid var(--carbon); outline-offset: 2px; }
.aviso-cerrado { font-size: var(--step-small); font-weight: 600; }
.error { font-weight: 800; color: var(--carbon); font-size: var(--step-small); }
.error:empty { display: none; }
.error::before { content: ""; display: inline-block; width: 11px; height: 13px; margin-right: 8px; background: var(--ketchup); border-radius: var(--arch); }
.enviar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 10px 16px; margin-top: 4px;
  background: var(--carbon); color: var(--ink-light); border-radius: 12px;
  font-weight: 800; font-size: var(--step-body); text-align: center;
  transition: transform 160ms var(--ease-out), background-color 200ms var(--ease-out);
}
.enviar svg { width: 22px; height: 22px; fill: var(--wa-green); flex: none; }
.enviar:hover { background: #000; }
.enviar:active { transform: scale(0.98); }
.enviar[aria-disabled="true"] { background: #6B5420; color: var(--ink-light); }
.enviar[aria-disabled="true"] svg { fill: var(--ink-light); }

/* Vista previa: fragmento real de WhatsApp (data-ui) */
.preview { display: grid; gap: 24px; margin-top: 48px; }
.preview h3 { font-size: var(--step-sub); }
.preview__txt p { margin-top: 14px; max-width: 40ch; }
.wa { background: #0B141A; border-radius: 16px; overflow: hidden; width: 100%; max-width: 460px; }
.wa__top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #1F2C34; color: #E9EDEF; font-weight: 600; font-size: var(--step-small); }
.wa__avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--mostaza); position: relative; overflow: hidden; }
.wa__avatar::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 22px; border-radius: var(--arch); background: var(--carbon); }
.wa__chat { padding: 18px 14px 22px; display: flex; justify-content: flex-end; min-height: 160px; }
.wa__bubble { background: #005C4B; color: #E9EDEF; padding: 10px 12px; border-radius: 10px 2px 10px 10px; font-size: var(--step-small); line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; letter-spacing: 0; }
@media (min-width: 900px) {
  .preview { grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 72px; align-items: start; }
  .wa { justify-self: end; }
}


/* ---------- Pie: la marca construida con arcos ---------- */
.pie { padding: 96px var(--gutter) 120px; background: var(--carbon); }
.marca { display: flex; gap: 4px; align-items: flex-end; height: 22svh; min-height: 150px; }
.marca span {
  flex: 1; display: flex; align-items: flex-end; justify-content: center;
  border-radius: var(--arch); color: var(--carbon);
  font-weight: 800; font-size: min(9vw, 8.5rem); line-height: 0.8; padding-bottom: 0.12em;
  letter-spacing: 0;
}
.marca span:nth-child(4n+1) { background: var(--mostaza); }
.marca span:nth-child(4n+2) { background: var(--ketchup); color: var(--kraft); }
.marca span:nth-child(4n+3) { background: var(--kraft); }
.marca span:nth-child(4n) { background: var(--verde); color: var(--kraft); }
@media (min-width: 900px) { .marca { height: 34svh; min-height: 260px; } }

.pie__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; margin-top: 48px; }
.pie__grid h2 { grid-column: 1 / -1; font-size: var(--step-head); }
.pie__col h3 { font-size: var(--step-body); letter-spacing: -0.02em; line-height: 1.2; color: var(--mostaza); }
.pie__col p { margin-top: 8px; font-size: var(--step-small); color: var(--ink-light); line-height: 1.6; }
.pie__col .link, .pie__last .link { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 900px) { .pie__grid { grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 56px; } }
.pie__last { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; font-size: var(--step-small); color: var(--soft-light); }

/* ---------- 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: 58px; height: 66px; display: grid; place-items: center; padding-top: 6px;
  background: var(--wa-green); border-radius: 999px 999px 12px 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); /* taste-skill-ignore: borde de error o capa flotante */
  transition: transform 260ms var(--ease-out), opacity 200ms var(--ease-out);
}
.wa-float svg { width: 30px; height: 30px; fill: #0B141A; }
@media (hover: hover) and (pointer: fine) { .wa-float:hover { transform: translateY(-2px); } }
@media (max-width: 899px) { .has-cartbar .wa-float { transform: translateY(-74px); } .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 18px;
  background: var(--mostaza); color: var(--carbon); text-decoration: none; font-weight: 800; font-size: var(--step-body);
  border-radius: 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); /* taste-skill-ignore: borde de error o capa flotante */
  transform: translateY(0); 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-light); border-radius: 14px; font-size: var(--step-small); }
.cartbar__total { margin-left: auto; }
@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: 22px 22px 0 0; background: var(--kraft); color: var(--carbon);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35); overflow: auto; overscroll-behavior: contain; /* taste-skill-ignore: borde de error o capa flotante */
}
.ficha::backdrop { background: rgba(14, 11, 10, 0.72); }
.ficha__in { display: grid; gap: 22px; padding: 22px var(--m) 0; position: relative; }
.ficha__close { position: absolute; top: 10px; right: 8px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; }
.ficha__close:hover { background: var(--kraft-2); }
.ficha__close svg { width: 22px; height: 22px; fill: none; stroke: var(--carbon); stroke-width: 2.6; stroke-linecap: round; }
.ficha__top { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: end; padding-right: 44px; }
.arch--md { width: 96px; height: 108px; }
.arch--md img { object-position: 50% 58%; transform: scale(1.15); }
.ficha h3 { font-size: var(--step-sub); line-height: 0.95; }
.ficha__desc { margin-top: 8px; font-size: var(--step-small); color: var(--soft-dark); }
.grupo { display: grid; gap: 10px; }
.grupo legend, .grupo > label { font-weight: 800; font-size: var(--step-body); padding: 0; margin-bottom: 10px; letter-spacing: -0.01em; }
.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: 60px; padding: 10px 14px; background: var(--kraft-2); border-radius: 12px; cursor: pointer; transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out); }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip b { font-size: var(--step-body); overflow-wrap: anywhere; }
.chip span { font-size: var(--step-small); }
.chip:has(input:checked) { background: var(--carbon); color: var(--kraft); }
.chip:has(input:focus-visible), .extra:has(input:focus-visible) { outline: 3px solid var(--carbon); 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: 50px; padding: 6px 12px; background: var(--kraft-2); border-radius: 12px; cursor: pointer; transition: background-color 180ms var(--ease-out); }
.extra input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.extra__box { width: 26px; height: 26px; border-radius: 7px; background: var(--kraft); display: grid; place-items: center; transition: background-color 160ms var(--ease-out); }
.extra__box svg { width: 16px; height: 16px; fill: none; stroke: var(--mostaza); 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) { background: var(--kraft-3); }
.extra:has(input:checked) .extra__box { background: var(--carbon); }
.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: 600; }
.grupo textarea { width: 100%; min-height: 64px; padding: 12px 14px; background: var(--kraft-2); border: 0; border-radius: 12px; resize: vertical; color: var(--carbon); font-size: var(--step-body); }
.grupo textarea::placeholder { color: var(--soft-dark); }
.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(--kraft); }
.stepper { display: inline-flex; align-items: center; background: var(--kraft-2); border-radius: 14px; }
.stepper button { width: 48px; height: 52px; display: grid; place-items: center; border-radius: 14px; }
.stepper button:hover { background: var(--kraft-3); }
.stepper output { min-width: 28px; text-align: center; font-weight: 800; font-size: var(--step-body); font-variant-numeric: tabular-nums; }
.ficha .btn--arch { background: var(--carbon); color: var(--kraft); white-space: nowrap; padding-inline: 14px; font-size: var(--step-body); }
.ficha .btn--arch:hover { background: #000; }
@media (min-width: 700px) {
  .ficha { width: 560px; margin: auto; border-radius: 22px; max-height: 88svh; }
  .ficha__in { padding: 28px 32px 0; }
  .ficha__foot { margin-inline: -32px; padding-inline: 32px; }
}

/* ---------- Movimiento ---------- */
/* El contador del carrito "salta" al agregar: se nota en video. */
@keyframes count-pop {
  0% { transform: scale(1); }
  30% { transform: scale(1.45); background: var(--ketchup); }
  100% { transform: scale(1); }
}
.count.is-pop, .cartbar__n.is-pop { animation: count-pop 420ms 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); }

/* Arco que vuela a "Pedido" */
.vuelo { position: fixed; z-index: 60; width: 44px; height: 50px; border-radius: var(--arch); overflow: hidden; pointer-events: none; background: var(--mostaza); }
.vuelo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); }

/* Ficha: sube desde abajo en celular, aparece en PC */
.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(16px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } } }
@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; } }

/* Líneas del pedido que entran */
@keyframes linea-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.linea.is-new { animation: linea-in 280ms var(--ease-out); }

/* Carta: los productos entran escalonados una vez (máx. 6 pasos de 50 ms) */
.js .cat .item { opacity: 0; transform: translateY(14px); transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); transition-delay: calc(min(var(--i, 0), 6) * 50ms); }
.js .cat.is-in .item { opacity: 1; transform: none; }

/* Banda y marca: los arcos suben una vez al entrar en pantalla */
.js .band span, .js .marca span { transform-origin: 50% 100%; }
.js .band.is-in span, .js .marca.is-in span { animation: rise 640ms var(--ease-out) both; animation-delay: calc(var(--i) * 40ms); }
@keyframes rise { from { transform: scaleY(0.2); } to { transform: none; } }


/* Reducir movimiento: sin desplazamientos ni saltos; se quedan los fundidos y cambios de color. */
@keyframes count-flash { 30% { background: var(--ketchup); } }
@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, .js .band.is-in span, .js .marca.is-in span { animation: none; }
  .linea.is-new { animation: fade-in 200ms var(--ease-out); }
  .js .cat .item { transform: none; }
  .ficha[open] { animation: fade-in 200ms var(--ease-out); }
  .btn:active, .cell:active, .enviar:active, .item__btn:active .item__plus { transform: none; }
  .cartbar, .wa-float { transition-property: opacity, visibility; }
  .cartbar.is-out { transform: none; }
}

.emo::before { content: attr(data-e); }

/* Precios que no se parten ("S/" + monto) y notas largas que sí */
.num { white-space: nowrap; }
.linea__nota, .linea__extra span:first-child { overflow-wrap: anywhere; min-width: 0; }
.ficha h3, .chip, .extra { min-width: 0; overflow-wrap: anywhere; }
