/* Quesudos · página de pedidos (v2)
   Estructura de app de pedidos (como KFC, McDonald's y WM Fusión): contenedor centrado,
   banner de promos, categorías en cuadritos, tarjetas de producto y el carrito siempre a la vista en PC.
   Colores de la marca: amarillo del logo y tinta negra. */

:root {
  --amarillo: #FFC800;
  --amarillo-2: #FFE07A;
  --amarillo-3: #FFF4CC;
  --tinta: #141414;
  --tinta-2: #2A2A2A;
  --papel: #F7F6F3;
  --blanco: #FFFFFF;
  --papel-2: #EFEEEA;
  --borde: #E4E2DC;
  --gris: #5C5852;
  --verde: #128C3E;
  --rojo: #C4291C;

  --f: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 16px;
  --r-chico: 12px;
  --sombra: 0 1px 2px rgba(20, 20, 20, .06), 0 4px 14px rgba(20, 20, 20, .06);
  --sombra-flota: 0 12px 34px rgba(0, 0, 0, .22);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --rebote: cubic-bezier(.34, 1.56, .64, 1);
  --cab: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--cab) + 56px); }
body {
  margin: 0; background: var(--papel); color: var(--tinta); font-family: var(--f); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.015em; font-weight: 800; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--amarillo); color: var(--tinta); }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.saltar { position: absolute; left: -999px; top: 8px; background: var(--tinta); color: #fff; padding: 10px 16px; z-index: 99; }
.saltar:focus { left: 8px; }
[hidden] { display: none !important; }
.contenedor { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border: 0; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform .15s var(--ease), background-color .15s, color .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .55; transform: none; cursor: not-allowed; }
.btn-tinta { background: var(--tinta); color: #fff; }
.btn-tinta:hover { background: var(--tinta-2); }
.btn-amarillo { background: var(--amarillo); color: #141414; }
.btn-amarillo:hover { background: #FFD233; }
.btn-whatsapp { background: var(--verde); color: #fff; width: 100%; min-height: 52px; font-size: 16px; }
.btn-whatsapp:hover { background: #0F7A35; }
.btn-chico { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-borde { background: var(--blanco); color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--borde); }
.btn-borde:hover { box-shadow: inset 0 0 0 1.5px var(--tinta); }
.btn-texto { font-weight: 700; text-underline-offset: 4px; }

/* ---------- Franja superior ---------- */
.franja { background: var(--tinta); color: #fff; font-size: 13px; }
.franja-in { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; }
.franja-in > span:first-child { color: var(--amarillo); font-weight: 700; }
.franja-tel { display: none; }
.franja a { color: #fff; }
@media (min-width: 760px) { .franja-tel { display: inline; } }

/* ---------- Cabecera ---------- */
.cabecera { position: sticky; top: 0; z-index: 30; background: var(--blanco); box-shadow: 0 1px 0 var(--borde); }
.cabecera-in { display: flex; align-items: center; gap: 20px; height: var(--cab); }
.marca {
  font-weight: 900; font-size: 22px; letter-spacing: -.03em; text-decoration: none; line-height: 1; white-space: nowrap;
  font-variation-settings: "wdth" 120; display: inline-flex; align-items: center;
}
.marca .dos {
  display: inline-grid; place-items: center; width: 1.1em; height: 1.1em; margin: 0 .05em; background: var(--amarillo);
  color: #141414; border-radius: 50%; font-size: .78em; box-shadow: inset 0 0 0 2px #141414;
}
.cabecera-links { display: none; gap: 22px; font-weight: 600; font-size: 15px; }
.cabecera-links a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .15s; }
.cabecera-links a:hover { border-color: var(--amarillo); }
.buscador {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 999px;
  background: var(--papel-2); color: var(--gris); max-width: 340px; margin-left: auto;
}
.buscador svg { width: 18px; height: 18px; flex: none; }
.buscador input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 15px; color: var(--tinta); }
.buscador:focus-within { box-shadow: inset 0 0 0 2px var(--tinta); background: var(--blanco); }
.btn-carrito {
  position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--amarillo);
  display: grid; place-items: center; transition: transform .15s var(--ease);
}
.btn-carrito svg { width: 22px; height: 22px; }
.btn-carrito:active { transform: scale(.92); }
.contador {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--tinta); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; font-variant-numeric: tabular-nums;
}
.salta { animation: salto .45s var(--rebote); }
@keyframes salto { 40% { transform: scale(1.25); } }
@media (min-width: 1000px) {
  .cabecera-links { display: flex; }
  .buscador { margin-left: auto; }
}

/* ---------- Banner (carrusel de promos) ---------- */
.banner { position: relative; margin-top: 16px; border-radius: var(--r); overflow: hidden; }
.banner-pista { display: flex; transition: transform .6s var(--ease); }
.slide {
  flex: 0 0 100%; display: grid; grid-template-columns: 1fr 38%; align-items: center; gap: 12px; min-height: 210px;
  padding: 20px 0 20px 20px; position: relative; overflow: hidden;
}
.slide-amarillo { background: var(--amarillo); }
.slide-negro { background: var(--tinta); color: #fff; }
.slide-crema { background: var(--amarillo-3); }
.slide-texto { display: grid; gap: 8px; justify-items: start; position: relative; z-index: 1; }
.slide h1, .slide h2 { font-size: clamp(21px, 3vw, 34px); line-height: 1.1; max-width: 18ch; font-weight: 900; }
.slide p { font-size: 14px; max-width: 40ch; }
.slide .btn { margin-top: 6px; }
.slide-chip { font-size: 12px !important; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--tinta); color: var(--amarillo); }
.slide-negro .slide-chip { background: var(--amarillo); color: var(--tinta); }
.slide-foto { align-self: stretch; position: relative; }
.slide-foto img {
  position: absolute; right: -18%; top: 50%; width: 125%; max-width: none; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  transform: translateY(-50%) scale(.96); transition: transform 6s ease-out;
}
.slide.activa .slide-foto img { transform: translateY(-50%) scale(1.04); }
.banner-puntos { position: absolute; left: 20px; bottom: 12px; display: flex; gap: 6px; }
.banner-puntos button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(20, 20, 20, .3); transition: width .3s, background-color .3s; }
.banner-puntos button[aria-current="true"] { width: 22px; background: var(--tinta); }
.banner.oscuro .banner-puntos button { background: rgba(255, 255, 255, .4); }
.banner.oscuro .banner-puntos button[aria-current="true"] { background: var(--amarillo); }
@media (min-width: 760px) {
  .slide { min-height: 280px; padding: 32px 0 32px 44px; grid-template-columns: 1fr 44%; }
  .slide p { font-size: 16px; }
  .slide-foto img { right: -6%; width: 96%; }
  .banner-puntos { left: 44px; bottom: 16px; }
}

/* ---------- Datos rápidos ---------- */
.datos-rapidos { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.datos-rapidos li { display: flex; align-items: center; gap: 10px; background: var(--blanco); border-radius: var(--r-chico); padding: 10px 12px; box-shadow: var(--sombra); min-width: 0; }
.datos-rapidos svg { width: 22px; height: 22px; flex: none; }
.datos-rapidos b { display: block; font-size: 14px; }
.datos-rapidos small { display: block; font-size: 12.5px; color: var(--gris); line-height: 1.3; }
.punto { width: 12px; height: 12px; margin: 0 5px; border-radius: 50%; background: var(--gris); flex: none; }
#estado.abierto .punto { background: var(--verde); animation: latido 1.8s ease-in-out infinite; }
#estado.cerrado .punto { background: var(--rojo); }
@keyframes latido { 50% { box-shadow: 0 0 0 5px rgba(18, 140, 62, .2); } }
@media (min-width: 900px) { .datos-rapidos { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Bloques ---------- */
.bloque { margin-top: 36px; }
.bloque-cab { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 14px; }
.bloque-cab h2 { font-size: clamp(21px, 2.2vw, 27px); font-weight: 900; }
.bloque-cab p { color: var(--gris); font-size: 14px; }

/* Categorías en cuadritos */
.cuadros { display: grid; grid-auto-flow: column; grid-auto-columns: 94px; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 8px; }
.cuadros::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .cuadros { grid-auto-flow: row; grid-template-columns: repeat(9, 1fr); grid-auto-columns: auto; overflow: visible; } }
.cuadro {
  display: grid; justify-items: center; gap: 6px; padding: 10px 6px 10px; border-radius: var(--r); background: var(--blanco);
  box-shadow: var(--sombra); text-decoration: none; font-weight: 700; font-size: 13px; text-align: center; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.cuadro:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(20, 20, 20, .12); }
.cuadro .foto-circ { width: 56px; height: 56px; transition: transform .3s var(--rebote); }
.cuadro:hover .foto-circ { transform: rotate(-6deg) scale(1.06); }

/* ---------- Foto o ícono ---------- */
.foto-circ { position: relative; border-radius: 50%; overflow: hidden; background: var(--amarillo); color: #141414; display: grid; place-items: center; flex: none; }
.foto-circ img { width: 100%; height: 100%; object-fit: cover; }
.foto-circ .icono { width: 62%; height: 62%; }
.foto-caja { position: relative; overflow: hidden; background: var(--amarillo); color: #141414; display: grid; place-items: center; }
.foto-caja img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.foto-caja .icono { width: 46%; height: 46%; max-width: 88px; }

/* ---------- Tarjeta de producto ---------- */
.prod {
  position: relative; display: grid; grid-template-columns: 1fr 108px; grid-template-areas: "info foto" "pie foto"; gap: 6px 14px;
  background: var(--blanco); border-radius: var(--r); padding: 12px; box-shadow: var(--sombra); transition: box-shadow .2s, transform .2s var(--ease);
}
.prod:hover { box-shadow: 0 8px 24px rgba(20, 20, 20, .12); }
.prod-foto { grid-area: foto; width: 108px; height: 108px; border: 0; padding: 0; border-radius: var(--r-chico); cursor: pointer; }
.prod:hover .prod-foto img { transform: scale(1.06); }
.prod-info { grid-area: info; min-width: 0; cursor: pointer; }
.prod h3, .prod h4 { font-size: 15.5px; line-height: 1.25; font-weight: 800; }
.prod-desc { font-size: 13.5px; color: var(--gris); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-nota { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--amarillo-3); }
.prod-pie { grid-area: pie; display: flex; align-items: center; justify-content: space-between; gap: 8px; align-self: end; }
.prod-precio { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prod-precio s { color: var(--gris); font-weight: 500; font-size: 13px; margin-right: 4px; }
.prod-etiqueta {
  position: absolute; top: 6px; left: 6px; max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; z-index: 1; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px;
  background: var(--tinta); color: var(--amarillo); pointer-events: none;
}
.prod.agotado .prod-foto img, .prod.agotado .prod-foto .icono { filter: grayscale(1); }
.prod.agotado .prod-foto::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .5); }
.prod.agotado h3, .prod.agotado .prod-desc { color: var(--gris); }
.mas {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--amarillo); color: #141414;
  display: grid; place-items: center; font-size: 22px; font-weight: 700; line-height: 1; flex: none;
  transition: transform .2s var(--rebote), background-color .15s;
}
.mas:hover { transform: scale(1.12); background: #FFD233; }
.mas:active { transform: scale(.9); }
.mas[disabled] { background: var(--papel-2); color: var(--gris); cursor: not-allowed; transform: none; font-size: 15px; }
.paso { display: inline-flex; align-items: center; gap: 2px; background: var(--amarillo); border-radius: 999px; padding: 3px; }
.paso button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--blanco); font-size: 18px; font-weight: 800; line-height: 1; transition: transform .15s; }
.paso button:active { transform: scale(.88); }
.paso button[disabled] { opacity: .4; }
.paso output { min-width: 22px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Tarjeta vertical (fila de más pedidos y menú en pantallas anchas) */
.prod-v { grid-template-columns: 1fr; grid-template-areas: "foto" "info" "pie"; padding: 0 0 12px; overflow: hidden; }
.prod-v .prod-foto { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
.prod-v .prod-info, .prod-v .prod-pie { padding: 0 12px; }

/* Fila deslizable de más pedidos */
.fila-tarjetas { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; scrollbar-width: thin; }
.fila-tarjetas > * { scroll-snap-align: start; }
.rango { position: absolute; top: 6px; right: 6px; z-index: 1; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--blanco); }
@media (min-width: 1000px) { .fila-tarjetas { grid-auto-columns: calc((100% - 48px) / 5); overflow: visible; } }

/* ---------- Menú + carrito lateral ---------- */
.menu-y-carrito { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.menu { min-width: 0; }
.filtros { display: grid; gap: 12px; margin-bottom: 4px; }
.hambres { display: flex; flex-wrap: wrap; gap: 8px; }
.hambre-btn {
  border: 0; border-radius: 999px; padding: 8px 14px; background: var(--blanco); box-shadow: inset 0 0 0 1.5px var(--borde);
  font-weight: 700; font-size: 14px; transition: background-color .15s, box-shadow .15s, color .15s;
}
.hambre-btn:hover { box-shadow: inset 0 0 0 1.5px var(--tinta); }
.hambre-btn[aria-selected="true"] { background: var(--tinta); color: #fff; box-shadow: none; }
.presupuesto { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 16px; background: var(--amarillo-3); border-radius: var(--r); padding: 12px 16px; }
.presupuesto label { font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.presupuesto output { font-weight: 900; font-variant-numeric: tabular-nums; }
.sugerido { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.sugerido p { flex-basis: 100%; }
.chip-plato { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; background: var(--blanco); border-radius: 999px; font-weight: 600; font-size: 13px; animation: entra .35s var(--rebote) both; }
.chip-plato .foto-circ { width: 26px; height: 26px; }
@keyframes entra { from { opacity: 0; transform: scale(.85); } }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--tinta); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--amarillo); border: 3px solid var(--tinta); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--amarillo); border: 3px solid var(--tinta); }

.cats {
  position: sticky; top: var(--cab); z-index: 20; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin: 12px 0 0; padding: 10px 0; background: var(--papel);
}
.cats::-webkit-scrollbar { display: none; }
.cats a { flex: none; padding: 7px 11px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px; color: var(--gris); transition: background-color .15s, color .15s; }
.cats a:hover { color: var(--tinta); }
.cats a.activo { background: var(--tinta); color: #fff; }
.categoria { padding-top: 18px; }
.cat-cab { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.cat-cab h3 { font-size: 19px; font-weight: 900; }
.cat-cab span { font-size: 13px; color: var(--gris); }
.platos { display: grid; gap: 10px; }
.sin-resultados, .cargando { padding: 32px 0; color: var(--gris); }

.carrito-lateral { display: none; }
@media (min-width: 700px) { .platos { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) {
  .menu-y-carrito { grid-template-columns: minmax(0, 1fr) 320px; }
  .carrito-lateral { display: block; position: sticky; top: calc(var(--cab) + 16px); }
  .platos { grid-template-columns: repeat(3, 1fr); }
  .platos .prod { grid-template-columns: 1fr; grid-template-areas: "foto" "info" "pie"; padding: 0 0 12px; overflow: hidden; }
  .platos .prod-foto { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
  .platos .prod-info, .platos .prod-pie { padding: 0 12px; }
}
.lateral-caja { background: var(--blanco); border-radius: var(--r); box-shadow: var(--sombra); padding: 16px; display: grid; gap: 10px; max-height: calc(100vh - var(--cab) - 32px); overflow-y: auto; }
.lateral-caja h2 { font-size: 19px; font-weight: 900; }
.lateral-vacio { color: var(--gris); font-size: 14px; display: grid; gap: 10px; justify-items: center; text-align: center; padding: 12px 0; }
.lateral-vacio .foto-circ { width: 64px; height: 64px; }

/* ---------- Club ---------- */
.club {
  margin-top: 40px; background: var(--tinta); color: #fff; border-radius: var(--r); padding: 24px 20px;
  display: grid; gap: 24px;
}
.club h2 { color: var(--amarillo); font-size: clamp(22px, 2.4vw, 28px); font-weight: 900; }
.club-texto { display: grid; gap: 12px; align-content: start; }
.club-sub { font-size: 15.5px; max-width: 46ch; }
.club-pasos { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; color: #E6E3DC; max-width: 50ch; }
.club-pasos li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.club-pasos li::before { content: ""; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--amarillo); }
.club-lado { display: grid; gap: 16px; align-content: start; }
.tarjeta { background: var(--amarillo); color: #141414; border-radius: var(--r); padding: 16px; display: grid; gap: 12px; max-width: 420px; }
.tarjeta-cab { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; }
.marca-chica { font-size: 17px; }
.sellos { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.sello { aspect-ratio: 1; border-radius: 50%; background: var(--amarillo-2); display: grid; place-items: center; color: #141414; }
.sello.premio .icono { opacity: 1; }
.sello .icono { width: 62%; height: 62%; opacity: .3; }
.sello.lleno { background: #141414; color: var(--amarillo); }
.sello.lleno .icono { opacity: 1; }
.sello.nuevo { animation: estampa .6s var(--rebote) both; }
.sello.premio { background: var(--blanco); }
@keyframes estampa { 0% { transform: scale(2) rotate(-25deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.tarjeta-premio { font-weight: 700; font-size: 14px; }
.club-cuenta { display: grid; gap: 12px; font-size: 14.5px; }
.club-cuenta .formulario { background: #2A2A2A; border-radius: var(--r); padding: 16px; gap: 12px; }
.club-cuenta .campo label { color: #fff; }
.club-cuenta .campo input { background: #fff; color: #141414; }
.club-cuenta .ayuda { color: #D9D3C4; }
.club-cuenta .error { color: #FFB4A9; }
.club-cuenta .check { color: #fff; font-size: 14px; }
.pestanas { display: flex; gap: 6px; }
.pestanas button { border: 0; background: none; color: #fff; font-weight: 700; padding: 6px 14px; border-radius: 999px; font-size: 14px; }
.pestanas button[aria-selected="true"] { background: var(--amarillo); color: #141414; }
.wallet-botones { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-wallet { background: #000; color: #fff; box-shadow: inset 0 0 0 1.5px #555; }
.link-claro { color: var(--amarillo); font-weight: 700; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
@media (min-width: 900px) { .club { grid-template-columns: 1fr 1fr; padding: 32px; gap: 40px; } }

/* ---------- Sedes ---------- */
.sedes-lista { display: grid; gap: 10px; }
.sede { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; background: var(--blanco); border-radius: var(--r); padding: 14px; box-shadow: var(--sombra); }
.sede .foto-circ { width: 52px; height: 52px; font-weight: 900; font-size: 18px; }
.sede h3 { font-size: 17px; }
.sede p { color: var(--gris); font-size: 14px; }
.sede-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.horario { font-weight: 600; }
@media (min-width: 760px) { .sedes-lista { grid-template-columns: 1fr 1fr; } }

/* ---------- Pie ---------- */
.pie { margin-top: 48px; background: var(--tinta); color: #D9D6CF; font-size: 14px; padding: 32px 0 calc(24px + 70px); }
.pie-in { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pie-marca { grid-column: 1 / -1; display: grid; gap: 8px; }
.pie-marca .marca { color: #fff; }
.pie h3 { color: #fff; font-size: 15px; margin-bottom: 8px; }
.pie-in > div { display: grid; gap: 6px; align-content: start; }
.pie a { text-decoration: none; }
.pie a:hover { color: var(--amarillo); }
.pie p a { text-decoration: underline; }
.pie-final { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 24px; padding-top: 16px; border-top: 1px solid #333; font-size: 13px; }
.pie-final a { color: var(--amarillo); }
@media (min-width: 900px) { .pie { padding-bottom: 32px; } .pie-in { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; } .pie-marca { grid-column: auto; } }

/* ---------- Barra fija del carrito (celular) y seguimiento ---------- */
.barra-carrito {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 0 20px;
  background: var(--tinta); color: #fff; border: 0; border-radius: 999px; font-weight: 700; font-size: 15px;
  box-shadow: var(--sombra-flota); animation: subir .35s var(--rebote);
}
.barra-carrito strong { color: var(--amarillo); font-variant-numeric: tabular-nums; }
@keyframes subir { from { transform: translateY(140%); } }
@media (min-width: 1100px) { .barra-carrito { display: none !important; } }
.seguimiento {
  position: fixed; left: 12px; bottom: max(76px, calc(env(safe-area-inset-bottom) + 76px)); z-index: 39; max-width: calc(100% - 24px);
  display: flex; align-items: center; gap: 8px; padding: 9px 16px 9px 10px; border: 0; border-radius: 999px;
  background: var(--amarillo); color: #141414; font-weight: 700; font-size: 13.5px; text-align: left; box-shadow: var(--sombra-flota);
}
.seguimiento .punto { background: #141414; margin: 0; }
@media (min-width: 1100px) { .seguimiento { bottom: 20px; left: 20px; } }

/* ---------- Hojas (carrito y checkout) y diálogos ---------- */
.capa { position: fixed; inset: 0; z-index: 50; background: rgba(20, 20, 20, .45); animation: aparece .2s ease; }
@keyframes aparece { from { opacity: 0; } }
.hoja {
  position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; max-height: 92svh; display: flex; flex-direction: column;
  background: var(--blanco); border-radius: 20px 20px 0 0; box-shadow: var(--sombra-flota); animation: hoja-sube .32s var(--ease);
}
@keyframes hoja-sube { from { transform: translateY(100%); } }
@media (min-width: 760px) {
  .hoja { left: auto; top: 0; width: 440px; max-height: none; border-radius: 20px 0 0 20px; animation-name: hoja-entra; }
  .hoja-ancha { width: 520px; }
  @keyframes hoja-entra { from { transform: translateX(100%); } }
}
.hoja-cab { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 10px; }
.hoja-cab h2 { font-size: 21px; font-weight: 900; }
.cerrar { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--papel-2); font-size: 22px; line-height: 1; transition: transform .2s; flex: none; }
.cerrar:hover { transform: rotate(90deg); }
.hoja-cuerpo { flex: 1; overflow-y: auto; padding: 4px 18px 18px; overscroll-behavior: contain; }
.hoja-pie { padding: 14px 18px max(16px, env(safe-area-inset-bottom)); display: grid; gap: 10px; border-top: 1px solid var(--borde); }
.linea { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--papel-2); }
.linea .foto-circ { width: 44px; height: 44px; }
.linea-nombre { font-weight: 700; line-height: 1.25; font-size: 14.5px; }
.linea-sub { font-size: 13px; color: var(--gris); }
.linea-nota { width: 100%; margin-top: 6px; border: 0; background: var(--papel-2); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.total-fila { display: flex; justify-content: space-between; font-weight: 800; font-size: 17px; }
.total-fila span:last-child { font-variant-numeric: tabular-nums; }
.vacio { padding: 32px 0; display: grid; gap: 14px; justify-items: start; color: var(--gris); }

.dialogo { position: fixed; inset: 0; z-index: 70; display: grid; align-items: end; justify-items: center; background: rgba(20, 20, 20, .45); animation: aparece .2s ease; }
.dialogo-caja {
  width: 100%; max-height: 92svh; overflow-y: auto; background: var(--blanco); border-radius: 20px 20px 0 0; padding: 20px 18px max(20px, env(safe-area-inset-bottom));
  display: grid; gap: 14px; animation: hoja-sube .32s var(--ease); box-shadow: var(--sombra-flota);
}
@media (min-width: 700px) {
  .dialogo { align-items: center; }
  .dialogo-caja { width: min(520px, 92vw); border-radius: 20px; animation: pop .3s var(--rebote); }
  .dialogo-chico .dialogo-caja { width: min(420px, 92vw); }
  @keyframes pop { from { transform: scale(.94); opacity: 0; } }
}
.detalle-foto { width: 100%; aspect-ratio: 16 / 10; border-radius: var(--r-chico); }
.detalle-foto .icono { width: 34%; height: 34%; }
.dialogo h2 { font-size: 22px; font-weight: 900; }
.detalle-precio { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.detalle-fila { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.upsell-oferta { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; background: var(--amarillo-3); border-radius: var(--r); padding: 10px 12px; }
.upsell-oferta .foto-circ { width: 64px; height: 64px; }
.upsell-oferta strong { display: block; font-size: 15.5px; line-height: 1.3; }
.upsell-oferta s { color: var(--gris); }
.upsell-acciones { display: grid; gap: 10px; }
.upsell-agregar { margin-top: 6px; }

/* ---------- Formularios ---------- */
.formulario { display: grid; gap: 14px; align-content: start; }
.campo { display: grid; gap: 5px; position: relative; }
.campo label, .grupo legend { font-weight: 700; font-size: 14px; }
.campo input, .campo select {
  width: 100%; min-height: 46px; padding: 0 14px; border: 1.5px solid var(--borde); border-radius: var(--r-chico); background: var(--blanco);
  transition: border-color .15s; font-size: 16px;
}
.campo input:focus, .campo select:focus { outline: none; border-color: var(--tinta); }
.campo input[aria-invalid="true"] { border-color: var(--rojo); }
.campo-dir { gap: 8px; }
.dir-fila { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.btn-ubicacion { border: 0; border-radius: var(--r-chico); background: var(--amarillo); font-weight: 700; padding: 0 12px; font-size: 13px; }
.sugerencias { list-style: none; margin: 0; padding: 4px; background: var(--blanco); border-radius: var(--r-chico); box-shadow: var(--sombra-flota); position: absolute; left: 0; right: 0; top: 78px; z-index: 5; }
.sugerencias li { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.sugerencias li:hover { background: var(--amarillo-3); }
.grupo { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.opciones { display: grid; gap: 8px; }
.dos-col { grid-template-columns: 1fr 1fr; }
.opcion { position: relative; }
.opcion input { position: absolute; opacity: 0; inset: 0; }
.opcion span {
  display: flex; flex-direction: column; justify-content: center; min-height: 50px; padding: 6px 14px; border-radius: var(--r-chico);
  border: 1.5px solid var(--borde); font-weight: 700; font-size: 14.5px; transition: border-color .15s, background-color .15s; cursor: pointer;
}
.opcion small { font-weight: 400; font-size: 12.5px; color: var(--gris); }
.opcion input:checked + span { border-color: var(--tinta); background: var(--amarillo-3); box-shadow: inset 0 0 0 1px var(--tinta); }
.opcion input:focus-visible + span { outline: 3px solid var(--tinta); outline-offset: 2px; }
.opcion input:disabled + span { opacity: .45; cursor: not-allowed; }
.ayuda { font-size: 13px; color: var(--gris); }
.error { color: var(--rojo); font-weight: 700; font-size: 14px; }
.error:empty { display: none; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 14.5px; }
.check input { width: 20px; height: 20px; accent-color: var(--tinta); flex: none; }
.resumen { background: var(--papel); border-radius: var(--r-chico); padding: 14px; display: grid; gap: 4px; font-size: 14px; }
.resumen div { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.resumen .total-fila { margin-top: 6px; }
.cerrado-aviso { background: var(--tinta); color: var(--amarillo); border-radius: var(--r-chico); padding: 12px 14px; font-weight: 600; font-size: 14px; }
.copiar { border: 0; background: var(--amarillo); border-radius: 999px; padding: 1px 10px; font-weight: 700; font-size: 12px; margin-left: 4px; }

/* ---------- Avisos cortos ---------- */
.toast {
  position: fixed; left: 50%; top: calc(var(--cab) + 12px); z-index: 90; transform: translate(-50%, -20px); opacity: 0; visibility: hidden;
  background: var(--tinta); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: transform .3s var(--rebote), opacity .2s, visibility .2s; max-width: calc(100% - 32px); text-align: center; box-shadow: var(--sombra-flota);
}
.toast.ver { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

.vuela { position: fixed; left: 0; top: 0; z-index: 95; width: 28px; height: 28px; border-radius: 50%; background: var(--amarillo); pointer-events: none; box-shadow: 0 0 0 3px var(--tinta); }

/* ---------- Movimiento de entrada ---------- */
.revela { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.revela.visto { opacity: 1; transform: none; }
.prod.entra { animation: entra-plato .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
@keyframes entra-plato { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .revela { opacity: 1; transform: none; }
}
