/* The Burger Factory · maqueta de pedidos
   Paleta y tipografías según MANUAL DE MARCA TBF. Mobile-first. */

:root {
  --naranja: #F89A1C;
  --rojo: #FF0013;
  --bordo: #8B3030;
  --amarillo: #FFD613;
  --blanco: #FFFFFF;
  --tinta: #3a1414;              /* bordó profundo para texto corrido */
  --tinta-suave: #7a4a4a;
  --linea: rgba(139, 48, 48, .18);
  --fondo: #FFFFFF;
  --papel: #fff7ef;               /* papel de bandeja */

  --anton: 'Anton', 'Impact', sans-serif;
  --archivo: 'Archivo', 'Arial Black', sans-serif;
  --inter: 'Inter', system-ui, sans-serif;
  --mano: 'Gochi Hand', 'Comic Sans MS', cursive;

  --radio: 14px;
  --radio-chico: 10px;
  --gutter: 16px;
  --ancho-max: 1120px;
  --barra-alto: 60px;
  --sombra-flotante: 0 10px 28px rgba(58, 20, 20, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: var(--inter);
  font-size: 15px;
  line-height: 1.45;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- Tipografía base ---------- */
.titulo-seccion {
  font-family: var(--anton);
  font-weight: 400;
  font-size: 34px;
  line-height: .95;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--bordo);
  margin: 0 0 14px;
}
.titulo-seccion--centro { text-align: center; }
.texto-centro { text-align: center; margin: 0 0 18px; color: var(--tinta-suave); }
.nota-mano {
  font-family: var(--mano);
  font-size: 22px;
  line-height: 1;
  margin: 0 0 4px;
  color: var(--naranja);
}
.nota-mano--rojo { color: var(--rojo); }

.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--chico { width: 16px; height: 16px; }
.ico--rojo { color: var(--rojo); }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--archivo); font-style: italic; font-weight: 700; font-size: 17px;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; background: var(--rojo); color: var(--blanco);
  transition: transform .12s ease, background-color .12s ease;
}
.boton:active { transform: scale(.97); }
.boton--amarillo { background: var(--amarillo); color: var(--bordo); }
.boton--amarillo:hover { background: #ffdf3f; }
.boton--grande { font-size: 20px; padding: 16px 30px; }
.boton--ancho { width: 100%; }
.boton--borde { background: transparent; border-color: var(--bordo); color: var(--bordo); }
.boton--whatsapp { background: #25D366; color: #073b1c; }
.boton:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Barra superior ---------- */
.barra {
  position: sticky; top: 0; z-index: 30;
  height: var(--barra-alto);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 var(--gutter);
  background: var(--blanco);
  border-bottom: 1px solid var(--linea);
}
.barra__logo img { height: 34px; width: auto; }
.barra__sucursal {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blanco); border: 2px solid var(--rojo); color: var(--rojo);
  border-radius: 999px; padding: 7px 10px 7px 8px;
  font-family: var(--archivo); font-style: italic; font-weight: 700; font-size: 14px;
  max-width: 55%; white-space: nowrap; overflow: hidden;
}
.barra__sucursal span { overflow: hidden; text-overflow: ellipsis; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(139,48,48,.72) 0%, rgba(139,48,48,.72) 46%, rgba(139,48,48,0) 62%),
    url('../assets/sesamo-blanco-suave.svg') repeat 0 0 / 260px,
    var(--bordo);
  color: var(--blanco);
  padding: 28px var(--gutter) 0;
  overflow: hidden;
}
.hero__texto { text-shadow: 0 1px 0 rgba(58,20,20,.5); }
.hero__titulo {
  font-family: var(--anton); font-weight: 400;
  font-size: clamp(74px, 22vw, 120px); line-height: .92; letter-spacing: .005em;
  text-transform: uppercase; color: var(--amarillo);
  margin: 0 0 12px; padding-top: .06em;
  text-shadow: 0 3px 0 rgba(58,20,20,.35);
}
.hero__bajada { font-size: 16px; line-height: 1.4; max-width: 34ch; margin: 0 0 18px; color: #fff; font-weight: 500; }
.hero__estado {
  display: inline-block; margin: 16px 0 0;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  background: rgba(58,20,20,.45); border: 1px solid rgba(255,255,255,.18);
  font-size: 13px; line-height: 1.35; color: #ffe9e9; text-shadow: none;
}
.hero__estado::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--amarillo); margin-right: 8px; vertical-align: -1px; box-shadow: 0 0 0 3px rgba(255,214,19,.25); }
.hero__estado.esta-abierto::before { background: #5ee07c; box-shadow: 0 0 0 3px rgba(94,224,124,.25); }
.hero__estado strong { color: var(--amarillo); font-weight: 600; }

.hero__foto { position: relative; margin: 18px 0 0; aspect-ratio: 4 / 3; }
.hero__foto img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(0,0,0,.4)); }

/* Anotaciones a mano (moodboard): texto + flecha curva hasta el ingrediente */
.anotaciones { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; color: var(--blanco); }
.anotaciones path { fill: none; stroke: currentColor; stroke-width: .6; stroke-linecap: round; stroke-linejoin: round; } /* en unidades del viewBox: escala con la foto */
.anotacion {
  position: absolute; z-index: 2;
  font-family: var(--mano); font-size: 18px; line-height: 1; white-space: nowrap;
  color: var(--blanco); transform: translate(0, -50%);
  pointer-events: none;
}
.anotacion--end { transform: translate(-100%, -50%); }
.ficha__foto .anotaciones, .ficha__foto .anotacion { color: var(--bordo); }
.ficha__foto .anotacion { font-size: 16px; }

/* ---------- Chips de categorías ---------- */
.categorias {
  position: sticky; top: var(--barra-alto); z-index: 25;
  background: var(--blanco); border-bottom: 1px solid var(--linea);
  transition: box-shadow .25s ease;
}
.categorias--pegada { box-shadow: 0 8px 18px -12px rgba(58,20,20,.45); }
.categorias__lista {
  list-style: none; margin: 0; padding: 10px var(--gutter);
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.categorias__lista::-webkit-scrollbar { display: none; }
.categorias__lista a {
  display: block; white-space: nowrap; text-decoration: none; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  font-family: var(--archivo); font-style: italic; font-weight: 700; font-size: 14px;
  padding: 7px 13px; border-radius: 999px; border: 2px solid var(--linea); color: var(--bordo);
}
.categorias__lista a.activa { background: var(--rojo); border-color: var(--rojo); color: var(--blanco); }

/* ---------- Menú ---------- */
.menu { padding: 8px 0 24px; }
.categoria { padding: 26px var(--gutter) 6px; scroll-margin-top: calc(var(--barra-alto) + 56px); }
.categoria__cabeza { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: 10px; }
.categoria__cabeza .titulo-seccion { margin: 0; }
.categoria__nota { font-family: var(--mano); color: var(--naranja); font-size: 19px; }
.subcategoria {
  font-family: var(--archivo); font-style: italic; font-weight: 700; font-size: 15px;
  color: var(--tinta-suave); margin: 14px 0 4px;
}

.productos { list-style: none; margin: 0; padding: 0; }
.producto {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--linea);
  cursor: pointer;
}
.producto:last-child { border-bottom: 0; }
.producto__foto {
  width: 92px; height: 92px; border-radius: var(--radio-chico); overflow: hidden;
  background: var(--papel); border: 1px solid var(--linea);
}
.producto__foto img { width: 100%; height: 100%; object-fit: cover; }
.producto__nombre { font-family: var(--archivo); font-style: italic; font-weight: 700; font-size: 17px; line-height: 1.15; margin: 0 0 3px; color: var(--bordo); }
.producto__desc {
  margin: 0 0 6px; font-size: 13px; line-height: 1.35; color: var(--tinta-suave);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.producto__precio { font-family: var(--anton); font-size: 19px; color: var(--rojo); letter-spacing: .01em; }
.producto__precio small { font-family: var(--inter); font-size: 11px; font-weight: 500; color: var(--tinta-suave); margin-right: 4px; letter-spacing: 0; }
.producto__variantes { display: block; font-size: 12px; color: var(--tinta-suave); margin-top: 2px; }
.producto__mas {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--rojo); background: var(--blanco); color: var(--rojo);
  font-family: var(--archivo); font-weight: 700; font-size: 22px; line-height: 1; display: grid; place-items: center;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.producto:active .producto__mas { transform: scale(.9); }
.producto:hover .producto__mas { background: var(--rojo); color: var(--blanco); }

/* Promociones: banda naranja con sésamo */
.categoria--promociones {
  background: var(--naranja) url('../assets/sesamo-amarillo.svg') repeat; background-size: 260px;
  padding: 24px var(--gutter) 22px; margin-top: 12px;
}
.categoria--promociones .titulo-seccion { color: var(--bordo); }
.categoria--promociones .categoria__nota { color: var(--bordo); }
.categoria--promociones .productos {
  display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.categoria--promociones .productos::-webkit-scrollbar { display: none; }
.categoria--promociones .producto {
  grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 0; align-content: start;
  flex: 0 0 min(78vw, 270px); scroll-snap-align: start;
  background: var(--blanco); border: 0; border-radius: var(--radio); padding: 0; overflow: hidden;
}
.categoria--promociones .producto__foto { width: 100%; height: auto; aspect-ratio: 4/3; border-radius: 0; border: 0; }
.categoria--promociones .producto__cuerpo { padding: 12px 14px 14px; }
.categoria--promociones .producto__mas { display: none; }

/* ---------- Locales ---------- */
.locales { padding: 30px var(--gutter) 10px; border-top: 6px solid var(--rojo); margin-top: 20px; }
.locales__lista { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.local {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
  padding: 14px; border: 2px solid var(--linea); border-radius: var(--radio);
}
.local.activo { border-color: var(--rojo); }
.local__nombre { font-family: var(--archivo); font-style: italic; font-weight: 700; font-size: 18px; margin: 0; color: var(--bordo); }
.local__dir { margin: 2px 0 8px; color: var(--tinta-suave); }
.local__acciones { display: flex; flex-wrap: wrap; gap: 8px; }
.local__acciones a, .local__acciones button {
  font-family: var(--archivo); font-style: italic; font-weight: 700; font-size: 13px;
  padding: 6px 12px; border-radius: 999px; border: 2px solid var(--rojo); color: var(--rojo); background: var(--blanco); text-decoration: none;
}
.locales__datos { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--tinta-suave); font-size: 14px; }
.locales__datos li { display: flex; align-items: center; gap: 10px; }

.pie { display: flex; align-items: center; gap: 14px; padding: 22px var(--gutter) calc(90px + env(safe-area-inset-bottom)); color: var(--tinta-suave); font-size: 13px; border-top: 1px solid var(--linea); }
.pie p { margin: 0; }

/* ---------- Carrito flotante ---------- */
.carrito-flotante {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; gap: 12px;
  background: var(--amarillo); color: var(--bordo); border: 0; border-radius: 999px;
  padding: 12px 18px 12px 12px; box-shadow: var(--sombra-flotante);
  font-family: var(--archivo); font-style: italic; font-weight: 700; font-size: 17px;
  animation: aparece .25s ease-out;
}
@keyframes aparece { from { transform: translateY(20px); opacity: 0; } }
.carrito-flotante__cant { width: 32px; height: 32px; border-radius: 50%; background: var(--rojo); color: var(--blanco); display: grid; place-items: center; font-size: 15px; }
.carrito-flotante__texto { flex: 1; text-align: left; }
.carrito-flotante__total { font-family: var(--anton); font-style: normal; font-size: 19px; }

/* ---------- Diálogos ---------- */
.dialogo {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none;
  width: 100%; height: 100dvh; background: var(--blanco); color: var(--tinta);
  inset: 0; position: fixed;
}
.dialogo::backdrop { background: rgba(58, 20, 20, 0); transition: background-color .25s ease, display .25s allow-discrete, overlay .25s allow-discrete; }
.dialogo[open]::backdrop { background: rgba(58, 20, 20, .55); }
.dialogo { opacity: 0; transform: translateY(48px); transition: opacity .22s ease, transform .32s cubic-bezier(.2, .8, .2, 1), display .32s allow-discrete, overlay .32s allow-discrete; }
.dialogo[open] { display: flex; flex-direction: column; opacity: 1; transform: none; }
@starting-style {
  .dialogo[open] { opacity: 0; transform: translateY(48px); }
  .dialogo[open]::backdrop { background: rgba(58, 20, 20, 0); }
}
.dialogo__cuerpo { padding: 22px var(--gutter); overflow-y: auto; flex: 1; }
.dialogo__logo { margin: 8px auto 14px; }
.dialogo__cerrar {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--bordo);
  display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.dialogo__cerrar--fijo { position: static; box-shadow: none; }

/* Sucursales en el diálogo */
.sucursales { display: grid; gap: 12px; }
.sucursal {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 16px; border: 2px solid var(--linea); border-radius: var(--radio); background: var(--blanco); text-align: left;
}
.sucursal:hover, .sucursal:focus-visible { border-color: var(--rojo); }
.sucursal strong { font-family: var(--archivo); font-style: italic; font-weight: 700; font-size: 18px; color: var(--bordo); display: block; }
.sucursal span { color: var(--tinta-suave); font-size: 14px; }
.sucursal .ico { color: var(--rojo); width: 28px; height: 28px; }

/* Ficha de producto */
.ficha { display: flex; flex-direction: column; height: 100%; margin: 0; }
.ficha__foto {
  position: relative; margin: 0; background: var(--papel) url('../assets/sesamo-naranja.svg') repeat; background-size: 260px;
  aspect-ratio: 4 / 3; max-height: 46dvh; flex: none;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
/* lienzo 4:3 = sistema de coordenadas de las anotaciones; se centra si la figura es más alta */
.ficha__lienzo { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 100%; }
.ficha__lienzo img { width: 100%; height: 100%; object-fit: contain; }
.ficha__foto--blanca { background: var(--blanco); }
.ficha__foto--blanca .ficha__lienzo img { object-fit: cover; }
.ficha__contenido { padding: 18px var(--gutter) 10px; overflow-y: auto; flex: 1; }
.ficha__nombre { font-family: var(--anton); font-weight: 400; font-size: 32px; line-height: .95; text-transform: uppercase; color: var(--bordo); margin: 0 0 8px; }
.ficha__desc { margin: 0 0 16px; color: var(--tinta-suave); }
.ficha__pie {
  display: flex; gap: 12px; align-items: center; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--linea); background: var(--blanco); flex: none;
}
.cantidad { display: inline-flex; align-items: center; border: 2px solid var(--bordo); border-radius: 999px; flex: none; }
.cantidad__btn { width: 40px; height: 44px; border: 0; background: transparent; color: var(--bordo); font-size: 22px; font-weight: 600; }
.cantidad__num { min-width: 28px; text-align: center; font-family: var(--anton); font-size: 18px; }

.grupo { border: 0; padding: 0; margin: 0 0 18px; }
.grupo__titulo { font-family: var(--archivo); font-style: italic; font-weight: 700; font-size: 16px; color: var(--bordo); padding: 0; margin: 0 0 8px; display: flex; gap: 8px; align-items: baseline; }
.grupo__titulo small { font-family: var(--inter); font-style: normal; font-weight: 400; font-size: 12px; color: var(--tinta-suave); }
.grupo__ayuda { margin: -4px 0 10px; font-size: 13px; color: var(--tinta-suave); }

.segmentos { display: flex; gap: 8px; flex-wrap: wrap; }
.segmentos--vertical { flex-direction: column; }
.segmento { position: relative; flex: 1 1 auto; }
.segmento input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.segmento span {
  display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  padding: 10px 12px; border: 2px solid var(--linea); border-radius: var(--radio-chico);
  font-family: var(--archivo); font-style: italic; font-weight: 700; font-size: 15px; color: var(--bordo);
  min-height: 46px;
}
.segmento span small { display: block; font-family: var(--inter); font-style: normal; font-weight: 400; font-size: 12px; color: var(--tinta-suave); }
.segmento span b { font-family: var(--anton); font-weight: 400; color: var(--rojo); margin-left: 6px; }
.segmento input:checked + span { border-color: var(--rojo); background: #fff1f2; }
.segmento input:focus-visible + span { outline: 3px solid var(--amarillo); outline-offset: 2px; }
.segmentos--vertical .segmento span { justify-content: flex-start; text-align: left; flex-wrap: wrap; }

.opcion { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--linea); cursor: pointer; }
.opcion:last-child { border-bottom: 0; }
.opcion input { width: 20px; height: 20px; accent-color: var(--rojo); margin: 0; flex: none; }
.opcion__nombre { flex: 1; }
.opcion__precio { font-family: var(--anton); color: var(--rojo); font-size: 15px; }

.campo { display: block; margin: 0 0 12px; }
.campo__nombre { display: block; font-size: 13px; font-weight: 600; color: var(--tinta-suave); margin-bottom: 4px; }
.campo__input {
  width: 100%; padding: 11px 12px; border: 2px solid var(--linea); border-radius: var(--radio-chico);
  background: var(--blanco); font-size: 16px;
}
.campo__input:focus { border-color: var(--rojo); outline: none; }
textarea.campo__input { resize: vertical; }
.campo__input.invalido { border-color: var(--rojo); background: #fff1f2; }

/* Sugerencias */
.sugerencias { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.sugerencia { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--linea); }
.sugerencia img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radio-chico); border: 1px solid var(--linea); }
.sugerencia strong { font-family: var(--archivo); font-style: italic; font-weight: 700; display: block; color: var(--bordo); }
.sugerencia span { font-family: var(--anton); color: var(--rojo); font-size: 15px; }
.sugerencia button {
  font-family: var(--archivo); font-style: italic; font-weight: 700; font-size: 14px;
  padding: 8px 14px; border-radius: 999px; border: 2px solid var(--rojo); background: var(--blanco); color: var(--rojo);
}
.sugerencia button:hover { background: var(--rojo); color: var(--blanco); }
.sugerencia.agregada button { background: var(--rojo); color: var(--blanco); }

/* Pedido / checkout */
.pedido { display: flex; flex-direction: column; height: 100%; overflow-y: auto; }
.pedido__cabecera { display: flex; align-items: center; justify-content: space-between; padding: 16px var(--gutter) 6px; position: sticky; top: 0; background: var(--blanco); z-index: 2; }
.pedido__cabecera .titulo-seccion { margin: 0; }
.pedido__paso { padding: 8px var(--gutter) calc(24px + env(safe-area-inset-bottom)); margin: 0; }
.volver { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--tinta-suave); padding: 0; margin: 0 0 14px; font-size: 14px; }

.carrito { list-style: none; margin: 0; padding: 0; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--linea); }
.item__nombre { font-family: var(--archivo); font-style: italic; font-weight: 700; color: var(--bordo); margin: 0; }
.item__detalle { margin: 0; font-size: 13px; color: var(--tinta-suave); }
.item__precio { font-family: var(--anton); color: var(--rojo); font-size: 17px; text-align: right; }
.item__controles { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.item__controles .cantidad__btn { height: 34px; width: 34px; font-size: 18px; }
.item__controles .cantidad { border-width: 1.5px; }
.item__quitar { border: 0; background: none; color: var(--tinta-suave); font-size: 13px; text-decoration: underline; padding: 0; margin-left: auto; }
.carrito__vacio { text-align: center; padding: 30px 0; color: var(--tinta-suave); }
.carrito__sugerencias { margin: 14px 0 0; }
.carrito__sugerencias .nota-mano { margin-bottom: 0; }

/* Ticket sobre papel cuadriculado rojo (bandejas del moodboard) */
.ticket {
  margin: 16px 0; padding: 14px 16px; border: 2px solid var(--rojo); border-radius: 6px;
  background-color: var(--blanco);
  background-image: linear-gradient(rgba(255,0,19,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(255,0,19,.13) 1px, transparent 1px);
  background-size: 18px 18px;
}
.ticket__fila { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ticket__fila--total { font-family: var(--archivo); font-style: italic; font-weight: 700; font-size: 18px; color: var(--bordo); }
.ticket__fila--total strong { font-family: var(--anton); font-style: normal; font-weight: 400; font-size: 26px; color: var(--rojo); }
.ticket__nota { margin: 6px 0 0; font-size: 12px; color: var(--tinta-suave); }

.aviso-retiro { margin: 4px 0 0; font-size: 14px; color: var(--tinta-suave); }
.error { color: var(--rojo); font-weight: 600; margin: 0 0 10px; }

.confirmado { text-align: center; padding-top: 10px; }
.confirmado__numero { font-family: var(--anton); font-size: 72px; line-height: 1; color: var(--rojo); margin: 0 0 8px; }
.confirmado__texto { max-width: 34ch; margin: 0 auto 18px; color: var(--tinta-suave); }
.confirmado__mensaje {
  text-align: left; white-space: pre-wrap; font-family: var(--inter); font-size: 13px; line-height: 1.45;
  margin: 18px 0; padding: 14px; border: 1px dashed var(--bordo); border-radius: var(--radio-chico); background: var(--papel); color: var(--tinta);
}

.toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 50;
  background: var(--bordo); color: var(--blanco); padding: 10px 16px; border-radius: 999px;
  font-family: var(--archivo); font-style: italic; font-weight: 700; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Tablet y escritorio ---------- */
@media (min-width: 760px) {
  :root { --gutter: 28px; }
  .barra { padding: 0 max(var(--gutter), calc((100% - var(--ancho-max)) / 2)); }
  .barra__logo img { height: 40px; }

  .hero {
    display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px;
    padding: 40px max(var(--gutter), calc((100% - var(--ancho-max)) / 2)) 40px;
    min-height: 520px;
  }
  .hero__titulo { font-size: clamp(110px, 13vw, 170px); }
  .hero {
    background:
      linear-gradient(90deg, rgba(139,48,48,.78) 0%, rgba(139,48,48,.55) 42%, rgba(139,48,48,0) 60%),
      url('../assets/sesamo-blanco-suave.svg') repeat 0 0 / 260px,
      var(--bordo);
  }
  .hero__bajada { font-size: 18px; }
  .hero__foto { margin: 0; aspect-ratio: 4 / 3; }
  .anotacion { font-size: 24px; }

  .categorias__lista, .categoria, .locales, .pie { padding-left: max(var(--gutter), calc((100% - var(--ancho-max)) / 2)); padding-right: max(var(--gutter), calc((100% - var(--ancho-max)) / 2)); }
  .categoria--promociones { padding-top: 30px; padding-bottom: 30px; }
  .categoria__cabeza { flex-direction: row; align-items: baseline; gap: 14px; }
  .titulo-seccion { font-size: 42px; }

  .productos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
  .producto { grid-template-columns: 110px 1fr auto; }
  .producto__foto { width: 110px; height: 110px; }
  .categoria--promociones .productos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; overflow: visible; }
  .categoria--promociones .producto { flex: none; }

  .locales__lista { grid-template-columns: 1fr 1fr; }
  .locales__datos { grid-template-columns: repeat(3, auto); justify-content: start; gap: 28px; }
  .pie { padding-bottom: 40px; }

  .carrito-flotante { left: auto; right: var(--gutter); min-width: 320px; }

  .dialogo { width: min(560px, calc(100% - 32px)); height: auto; max-height: min(92dvh, 900px); inset: 0; margin: auto; border-radius: 18px; overflow: hidden; transform: translateY(12px) scale(.97); }
  .dialogo[open] { transform: none; }
  @starting-style { .dialogo[open] { transform: translateY(12px) scale(.97); } }
  .dialogo--ficha { width: min(900px, calc(100% - 32px)); }
  .ficha { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; max-height: min(92dvh, 900px); }
  .ficha__foto { grid-row: 1 / 3; aspect-ratio: auto; max-height: none; min-height: 420px; }
  .ficha__foto .anotacion { font-size: 18px; }
  .ficha__contenido { padding: 28px 28px 10px; }
  .ficha__pie { grid-column: 2; }
  .ficha__nombre { font-size: 40px; }
}
@media (min-width: 1100px) {
  .productos { grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
  .hero__titulo { font-size: 180px; }
}

/* ---------- Animaciones ----------
   Un solo momento orquestado (la entrada del hero) y movimiento que responde a acciones.
   prefers-reduced-motion las apaga todas (regla global arriba). */
@keyframes subir { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
@keyframes caer { from { opacity: 0; transform: translateY(-28px) scale(.86) rotate(-5deg); } 60% { transform: translateY(6px) scale(1.02) rotate(1deg); } to { opacity: 1; transform: none; } }
@keyframes trazar { to { stroke-dashoffset: 0; } }
@keyframes sacudir { 0% { transform: scale(1); } 35% { transform: scale(1.05); } 70% { transform: scale(.985); } 100% { transform: scale(1); } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); opacity: 1; } to { transform: scale(1); } }
@keyframes pop-chico { 50% { transform: scale(1.3); } }

.hero__titulo { animation: subir .6s cubic-bezier(.2, .8, .2, 1) both; }
.hero__bajada { animation: subir .6s cubic-bezier(.2, .8, .2, 1) .1s both; }
.hero__texto .boton { animation: subir .6s cubic-bezier(.2, .8, .2, 1) .18s both; }
.hero__estado { animation: subir .6s cubic-bezier(.2, .8, .2, 1) .26s both; }
.hero__foto img { animation: caer .8s cubic-bezier(.2, .8, .2, 1) .3s both; }

/* las flechas se dibujan (pathLength="1" en el JS) y los textos aparecen detrás, en orden */
.anotaciones path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trazar .45s ease-out forwards; }
.anotacion { animation: aparecer .3s ease-out both; }
.anotaciones path:nth-of-type(1), .anotaciones path:nth-of-type(2) { animation-delay: var(--t0, .9s); }
.anotaciones path:nth-of-type(3), .anotaciones path:nth-of-type(4) { animation-delay: calc(var(--t0, .9s) + .22s); }
.anotaciones path:nth-of-type(5), .anotaciones path:nth-of-type(6) { animation-delay: calc(var(--t0, .9s) + .44s); }
.anotaciones path:nth-of-type(7), .anotaciones path:nth-of-type(8) { animation-delay: calc(var(--t0, .9s) + .66s); }
.anotaciones path:nth-of-type(even) { animation-duration: .18s; animation-delay: calc(var(--t0, .9s) + .4s); }
.anotaciones path:nth-of-type(4) { animation-delay: calc(var(--t0, .9s) + .62s); }
.anotaciones path:nth-of-type(6) { animation-delay: calc(var(--t0, .9s) + .84s); }
.anotaciones path:nth-of-type(8) { animation-delay: calc(var(--t0, .9s) + 1.06s); }
.anotacion:nth-of-type(1) { animation-delay: calc(var(--t0, .9s) + .1s); }
.anotacion:nth-of-type(2) { animation-delay: calc(var(--t0, .9s) + .32s); }
.anotacion:nth-of-type(3) { animation-delay: calc(var(--t0, .9s) + .54s); }
.anotacion:nth-of-type(4) { animation-delay: calc(var(--t0, .9s) + .76s); }
.ficha__foto { --t0: .25s; }
.ficha__lienzo img { animation: aparecer .3s ease-out both; }

.carrito-flotante.sacude { animation: sacudir .45s cubic-bezier(.2, .8, .2, 1); }
.carrito-flotante__cant.pop { animation: pop-chico .3s ease-out; }
.cantidad__num.pop { display: inline-block; animation: pop-chico .25s ease-out; }
.sugerencia { animation: subir .4s cubic-bezier(.2, .8, .2, 1) both; }
.sugerencia:nth-child(2) { animation-delay: .07s; }
.sugerencia:nth-child(3) { animation-delay: .14s; }
.item { animation: subir .3s ease-out both; }
.confirmado .nota-mano { animation: aparecer .3s ease-out .35s both; }
.confirmado__numero { animation: pop .55s cubic-bezier(.2, .8, .2, 1) .1s both; }
.confirmado__texto, .confirmado .boton--whatsapp, .confirmado__mensaje, .confirmado .boton--borde { animation: subir .45s cubic-bezier(.2, .8, .2, 1) .45s both; }
.confirmado .boton--whatsapp { animation-delay: .55s; }
.confirmado__mensaje { animation-delay: .65s; }
.confirmado .boton--borde { animation-delay: .72s; }
.boton { transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease; }
.boton--amarillo:hover { box-shadow: 0 6px 18px -8px rgba(58,20,20,.5); }

/* Impresión: no tiene sentido, pero que no rompa */
@media print { .carrito-flotante, .categorias { display: none; } }
