/* Ruta Smash · Catálogo con pedidos por WhatsApp
   Dirección: A · La ruta (Taste Skill, page-is-the-object). La página es la pista del logo:
   asfalto + línea amarilla discontinua. Tokens en :root; el resto del CSS usa solo tokens. */

:root {
  --asfalto: #111111;
  --asfalto-2: #1C1C1C;
  --asfalto-3: #2A2A2A;
  --amarillo: #F5B700;
  --amarillo-2: #FFC933;
  --rojo: #A51417;
  --rojo-2: #7A0E11;
  --rojo-3: #8F1114;
  --naranja: #F7931E;
  --ink: #F2F1EE;
  --soft: #BDB6AA;
  --wa-green: #25D366;

  --display: "Big Shoulders", "Arial Narrow", "Roboto Condensed", sans-serif;
  --text: "Public 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.75rem);
  --step-head: clamp(3rem, 1.9rem + 5vw, 6.5rem);
  --step-hero: clamp(2.875rem, 1.6rem + 5.4vw, 6rem);

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

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

  /* Línea discontinua de la pista (rectángulos llenos, no un borde fino) */
  --dash-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='8'%3E%3Crect width='40' height='8' fill='%23F5B700'/%3E%3C/svg%3E");
  --dash-y: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='44'%3E%3Crect width='8' height='24' fill='%23F5B700'/%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(--asfalto); 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: 800; text-transform: uppercase;
  line-height: 0.88; letter-spacing: -0.005em; text-wrap: balance;
}
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; }
::selection { background: var(--amarillo); color: var(--asfalto); }
[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(--amarillo); color: var(--asfalto); 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(--amarillo); font-weight: 600; transition: color 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link:hover { color: var(--amarillo); } }
.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(--amarillo); color: var(--asfalto); text-decoration: none;
  font-family: var(--display); font-weight: 800; 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(--amarillo-2); } }
.btn--wide { flex: 1; min-width: 0; white-space: nowrap; font-size: 1.375rem; padding-inline: 14px; }

/* ---------- 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(--asfalto);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; margin-right: auto; }
.brand img { width: 40px; height: 40px; }
.brand span { white-space: nowrap; font-family: var(--display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; line-height: 1; color: var(--amarillo); }
.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(--amarillo); } }
.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(--amarillo); color: var(--asfalto); 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(--asfalto); 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(132px, 34vw, 208px); height: auto; }
/* "SMASH AL MOMENTO," mide 8.45 em en Big Shoulders: 11.4cqi lo deja en 2 líneas a cualquier ancho */
.hero h1 { font-size: min(11.4cqi, 6rem); color: var(--ink); }
.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(--asfalto-3); text-decoration: none;
  transition: background-color 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .salida a:hover { background: #343434; } }
.salida b { font-family: var(--display); font-weight: 800; 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(--amarillo); 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(--asfalto-2); }
.hero__foto img { width: 100%; height: 100%; object-fit: cover; }
.hero__foto figcaption {
  position: absolute; left: var(--m); bottom: var(--m);
  padding: 8px 12px 6px; border-radius: var(--r); background: var(--asfalto); color: var(--amarillo);
  font-family: var(--display); font-weight: 800; 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); }
  /* Pista vertical al borde de la foto: la ruta que entra a la carta */
  .hero__foto::before {
    content: ""; position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; width: 44px;
    background: var(--asfalto) var(--dash-y) center top / 8px 44px repeat-y;
  }
}

/* ---------- La ruta: separador de pista ---------- */
.ruta { height: 56px; background: var(--asfalto-3); overflow: clip; display: grid; align-items: center; }
.ruta__linea { display: block; height: 8px; width: calc(100% + 144px); margin-left: -72px; background: var(--dash-x) left center / 72px 8px 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(--asfalto-3); color: var(--ink); }
.search input::placeholder { color: var(--soft); }

.cats {
  position: sticky; top: var(--bar-h); z-index: 20;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin: 24px calc(var(--gutter) * -1) 0; padding: 10px var(--gutter);
  background: var(--asfalto);
}
.cats::-webkit-scrollbar { display: none; }
@media (max-width: 599px) { .cats { flex-wrap: wrap; overflow: visible; padding-block: 8px; } .cats a { padding-inline: 12px; } }
.cats a {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px 4px;
  border-radius: var(--r); background: var(--asfalto-3); text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: 1.375rem; 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: 600; color: var(--soft); }
.cats a.is-on { background: var(--amarillo); color: var(--asfalto); }
.cats a.is-on span { color: var(--asfalto); }

.carta__body { display: grid; gap: 64px; margin-top: 32px; }
.cat__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.cat__head h3 { font-size: var(--step-sub); color: var(--amarillo); }
.cat__head p { font-size: var(--step-small); color: var(--soft); white-space: nowrap; }
.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(--asfalto-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(--asfalto); color: var(--amarillo); font-family: var(--display); font-weight: 800; 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(--asfalto-2);
  transition: background-color 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .item__btn:hover { background: var(--asfalto-3); } }
.item__foto { position: relative; width: 112px; aspect-ratio: 4 / 3; border-radius: 4px; overflow: clip; background: var(--asfalto-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(--amarillo); }
.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: 800; 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(--asfalto); color: var(--amarillo); font-family: var(--display); font-weight: 800; 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(--amarillo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' 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 = la pista: asfalto con la línea discontinua */
.panel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 16px; background: var(--asfalto) var(--dash-y) center top / 4px 22px repeat-y; }
.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.75rem; 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(--asfalto); } }
.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(--asfalto); } }
.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: 800; 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: #F6DADA; }
/* 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(--dash-x) left center / 36px 4px repeat-x; 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(--amarillo); } /* 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(--amarillo); 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='%23111' 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(--asfalto); 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(--amarillo); }
.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(--asfalto); } }
.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(--asfalto); color: var(--ink);
}
.campo input::placeholder { color: var(--soft); }
.campo input[aria-invalid="true"] { box-shadow: inset 0 0 0 3px var(--amarillo); } /* 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(--amarillo); color: var(--asfalto); }
.opcion:has(input:focus-visible) { outline: 3px solid var(--amarillo); outline-offset: 2px; }
.opcion:has(input[aria-invalid="true"]) { box-shadow: inset 0 0 0 3px var(--amarillo); } /* taste-skill-ignore: borde de error */
@media (hover: hover) and (pointer: fine) { .opcion:hover { background: var(--asfalto); } .opcion:has(input:checked):hover { background: var(--amarillo-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(--asfalto); }
.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(--asfalto); color: var(--amarillo); }
.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(--amarillo); color: var(--asfalto); 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(--amarillo-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: 40px; }
@media (min-width: 800px) { .sedes__lista { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.cartel { display: grid; gap: 18px; align-content: start; padding: 28px 22px 24px; border-radius: var(--r); background: var(--amarillo); color: var(--asfalto); }
.cartel h3 { font-size: clamp(2.5rem, 1.8rem + 3vw, 4rem); }
.cartel__estado { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 4px; background: var(--asfalto); 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(--asfalto); 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(--asfalto-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(--asfalto); }
.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; }
.pie__nombre { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 0.8; font-size: 20cqi; color: var(--ink); white-space: nowrap; letter-spacing: -0.01em; } /* "RUTA SMASH" mide 4.88 em: 20cqi llena el ancho sin salirse */
.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(--amarillo); color: var(--asfalto); 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(--asfalto); color: var(--ink); border-radius: 4px; font-size: var(--step-small); }
.cartbar__total { margin-left: auto; font-family: var(--display); font-weight: 800; font-size: 1.375rem; line-height: 1; }
@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(--asfalto-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(--asfalto-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(--amarillo); }
.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(--asfalto); transition: background-color 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .ficha__close:hover { background: var(--asfalto-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(--amarillo); 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(--asfalto-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(--amarillo); color: var(--asfalto); }
.chip:has(input:focus-visible), .extra:has(input:focus-visible) { outline: 3px solid var(--amarillo); 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(--asfalto-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(--asfalto); display: grid; place-items: center; transition: background-color 160ms var(--ease-out); }
.extra__box svg { width: 16px; height: 16px; fill: none; stroke: var(--asfalto); 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(--amarillo); }
.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(--asfalto-3); color: var(--ink); resize: vertical; }
.grupo textarea::placeholder { color: var(--soft); }
.grupo textarea:required { box-shadow: inset 0 0 0 3px var(--amarillo); } /* 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(--asfalto-2);
}
.stepper { display: inline-flex; align-items: center; background: var(--asfalto-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(--asfalto); } }
.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); } 30% { transform: scale(1.45); background: var(--rojo); } 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); }
.vuelo { position: fixed; z-index: 60; width: 52px; height: 40px; border-radius: 4px; overflow: hidden; pointer-events: none; background: var(--amarillo); }
.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(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; } }
@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(-72px); } to { transform: translateX(72px); } }
    .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); } }
    .hero__foto::before { animation: baja linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    @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; } }
    @keyframes baja { from { background-position-y: 0; } to { background-position-y: 220px; } }
  }

  /* 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; }

  /* Carta: los productos entran escalonados una vez */
  .js .cat .item { opacity: 0; transform: translateY(16px); 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; }
}

/* 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; }
