/* Tienda pública CúcutaCome · "La bandeja"
   Una sola tienda para todos los restaurantes: la marca es CúcutaCome,
   el restaurante pone nombre, logo, fotos y carta. */

:root {
  --rojo: #ea090b;
  --rojo-2: #c50608;
  --rojo-3: #9e0405;
  --crema: #fef1df;
  --crema-2: #f6e2c4;
  --papel: #fffcf5;
  --tinta: #151410;
  --gris: #675e57;
  --linea: #eadfcb;
  --oro: #f5a623;
  --queso: #ffd23f;
  --verde: #17803d;
  --ambar: #a35c00;
  --display: "Baloo 2", system-ui, sans-serif;
  --ui: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 24px;
  --sombra: 0 10px 28px rgba(21, 20, 16, .14);
  --suave: cubic-bezier(.16, 1, .3, 1);
  --alto-bandeja: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font: 400 15px/1.45 var(--ui);
  font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent;
}
body.drawer-open { overflow: hidden; }
::selection { background: var(--queso); color: var(--tinta); }
:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; border-radius: 6px; }
.bandeja :focus-visible, .marca-franja :focus-visible { outline-color: #fff; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[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; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- franja de marca ---------- */
.marca-franja {
  background: var(--rojo);
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 16px;
}
.marca-logo { color: #fff; font: 800 17px/1 var(--display); text-decoration: none; }
.marca-sub { font-size: 13px; font-weight: 500; }

/* ---------- carga ---------- */
.inicio-estado { max-width: 720px; margin: 0 auto; padding: 32px 16px; display: grid; gap: 12px; color: var(--gris); }
.inicio-estado button { justify-self: start; }
@keyframes brillo { 50% { opacity: .55; } }

/* ---------- cabecera del restaurante ---------- */
.tienda-cabecera { padding: 16px 16px 0; max-width: 720px; display: grid; gap: 14px; }
.tienda-portada-foto { width: calc(100% + 32px); margin: -16px -16px 0; height: 132px; object-fit: cover; }
.tienda-identidad { display: flex; gap: 14px; align-items: center; }
/* Con portada solo el logo se monta sobre la foto; el nombre queda debajo, legible. */
.tienda-portada-foto:not([hidden]) + .tienda-identidad { align-items: flex-start; }
.tienda-portada-foto:not([hidden]) + .tienda-identidad .tienda-logo-fondo { margin-top: -40px; width: 76px; height: 76px; box-shadow: 0 0 0 4px var(--papel); }
.tienda-logo-fondo {
  width: 64px; height: 64px; border-radius: 50%; flex: none; overflow: hidden;
  background: var(--tinta); color: var(--queso); display: grid; place-items: center;
  font: 800 22px/1 var(--display);
}
.tienda-logo { width: 100%; height: 100%; object-fit: cover; }
.tienda-cabecera h1 { font-size: 30px; }
.tienda-estado { display: flex; align-items: center; gap: 7px; margin-top: 4px; font-size: 14px; color: var(--gris); }
.tienda-estado::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--verde); flex: none; }
.tienda-estado--pronto::before { background: var(--oro); }
.tienda-estado--pronto { color: var(--ambar); font-weight: 500; }
.tienda-estado--cerrada::before, .tienda-estado--pausada::before { background: var(--rojo); }
.tienda-direccion { font-size: 13px; color: var(--gris); margin-top: 2px; }
.tienda-datos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; }
.tienda-datos li { display: flex; gap: 6px; align-items: baseline; }
.tienda-datos span { color: var(--gris); }
.tienda-tiempo-chip { display: none; }
.tienda-mensaje { background: var(--crema); border-radius: var(--r-m); padding: 12px 14px; font-size: 14px; }

/* Interruptor Domicilio / Recoger (también método de pago) */
.modo-switch { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--crema); border-radius: var(--r-m); padding: 4px; max-width: 440px; }
.modo-btn {
  min-height: 48px; border: 0; border-radius: var(--r-s); background: transparent; color: var(--gris);
  font-weight: 700; display: grid; place-items: center; gap: 0; padding: 6px 10px; line-height: 1.2;
  transition: background .2s var(--suave), color .2s var(--suave);
}
.modo-btn small { font-weight: 500; font-size: 12px; }
.modo-btn[aria-pressed="true"] { background: var(--tinta); color: #fff; }
.modo-btn:not([aria-pressed="true"]):hover { color: var(--tinta); }
.modo-switch--form { max-width: none; }

/* ---------- controles de la carta ---------- */
.carta-controles { position: sticky; top: 0; z-index: 6; background: var(--papel); padding: 14px 16px 0; max-width: 720px; border-bottom: 1px solid var(--linea); }
.buscador { position: relative; display: block; }
.buscador-icono { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--gris); pointer-events: none; }
.buscador input {
  width: 100%; height: 46px; border: 1.5px solid var(--linea); border-radius: 999px; background: #fff;
  padding: 0 44px 0 42px; outline: none;
}
.buscador input:focus { border-color: var(--tinta); box-shadow: 0 0 0 3px rgba(21, 20, 16, .12); }
.buscador input::placeholder { color: var(--gris); }
.buscador input::-webkit-search-cancel-button { display: none; }
.buscador-limpiar { position: absolute; right: 2px; top: 1px; width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; color: var(--gris); }
.categorias { display: flex; overflow-x: auto; scrollbar-width: none; margin: 8px -8px 0; padding: 0 8px; }
.categorias::-webkit-scrollbar { display: none; }
.categoria-tab {
  flex: none; display: flex; align-items: center; min-height: 48px; padding: 0 10px; white-space: nowrap;
  color: var(--gris); font-weight: 700; text-decoration: none; box-shadow: inset 0 -3px transparent;
  transition: color .2s, box-shadow .2s;
}
.categoria-tab:hover { color: var(--tinta); }
.categoria-tab.is-active { color: var(--rojo-2); box-shadow: inset 0 -3px var(--rojo); }

/* ---------- carta ---------- */
.carta-productos { max-width: 720px; padding: 0 16px calc(var(--alto-bandeja) + 24px); }
.categoria-seccion { padding-top: 22px; scroll-margin-top: 140px; }
.seccion-cabecera { display: flex; align-items: baseline; gap: 8px; }
.seccion-cabecera h2 { font-size: 24px; }
.seccion-conteo { color: var(--gris); font-size: 14px; }
.productos-lista { list-style: none; margin: 6px 0 0; padding: 0; }
.producto {
  display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--linea); position: relative;
}
.producto-media {
  width: 92px; height: 92px; border-radius: var(--r-m); background: var(--crema); overflow: hidden;
  position: relative; display: grid; place-items: center; border: 0; padding: 0;
}
.producto-media .ilustracion { width: 56px; height: 56px; }
.producto-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.producto-foto[data-cargada="true"], .producto-foto[data-instantanea="true"] { opacity: 1; }
.producto-texto { min-width: 0; }
.producto-nombre { font: 700 16px/1.25 var(--ui); margin: 0; }
.producto-abrir { all: unset; cursor: pointer; }
.producto-abrir:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; border-radius: 4px; }
.producto-desc { color: var(--gris); font-size: 14px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.producto-precio { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; font: 800 18px/1 var(--display); }
.precio-desde { font: 500 12px var(--ui); color: var(--gris); }
.etiqueta { white-space: nowrap; font: 700 12px/1 var(--ui); background: var(--queso); color: var(--tinta); padding: 5px 8px; border-radius: 999px; }
.etiqueta--agotado { background: var(--linea); color: var(--gris); }
.producto.is-agotado .producto-media { filter: grayscale(1); opacity: .55; }
.producto.is-agotado .producto-nombre, .producto.is-agotado .producto-precio { color: var(--gris); }
.producto-acciones { display: grid; justify-items: end; gap: 6px; }
.favorito-btn { width: 36px; height: 36px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; color: #bfb2a5; }
.favorito-btn svg { width: 20px; height: 20px; }
.favorito-btn:hover { color: var(--gris); }
.favorito-btn.is-favorito { color: var(--rojo); }
.btn-mas {
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--rojo); background: #fff; color: var(--rojo);
  display: grid; place-items: center; transition: background .15s, color .15s, transform .15s var(--suave);
}
.btn-mas .i { width: 24px; height: 24px; }
.btn-mas:hover:not(:disabled) { background: var(--rojo); color: #fff; }
.btn-mas:active:not(:disabled) { transform: scale(.92); }
.btn-mas:disabled { border-color: var(--linea); color: var(--linea); background: transparent; }
.btn-mas .cuenta { font: 800 15px/1 var(--display); }
.btn-mas.has-qty { background: var(--rojo); color: #fff; width: auto; min-width: 46px; padding: 0 12px; border-radius: 999px; gap: 2px; grid-auto-flow: column; }
.stepper { display: flex; align-items: center; background: var(--rojo); color: #fff; border-radius: 999px; height: 46px; }
.stepper button { width: 44px; height: 46px; border: 0; background: none; color: #fff; display: grid; place-items: center; border-radius: 50%; }
.stepper button:hover { background: var(--rojo-2); }
.stepper span { min-width: 18px; text-align: center; font: 800 18px/1 var(--display); }
.vacio { text-align: center; padding: 48px 16px; display: grid; justify-items: center; gap: 8px; color: var(--gris); }
.vacio svg { width: 96px; height: 96px; }
.vacio strong { color: var(--tinta); font: 800 20px var(--display); }

/* ---------- la bandeja ---------- */
.bandeja {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--rojo); color: #fff;
  border-radius: var(--r-l) var(--r-l) 0 0;
  padding: 4px 16px calc(14px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(21, 20, 16, .2);
}
.bandeja-asa { display: block; width: 64px; height: 20px; margin: 0 auto; border: 0; background: none; padding: 0; position: relative; }
.bandeja-asa::after { content: ""; position: absolute; left: 8px; right: 8px; top: 7px; height: 5px; border-radius: 3px; background: var(--rojo-3); }
.bandeja-cabecera { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bandeja-cabecera h2 { font-size: 22px; }
.bandeja-sub { font-size: 13px; font-weight: 500; }
.bandeja-editar { min-height: 44px; padding: 0 14px; border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 999px; background: transparent; color: #fff; font-weight: 700; font-size: 14px; }
.bandeja-editar:hover { background: var(--rojo-2); }
.bandeja-cuerpo { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .35s var(--suave); }
.bandeja-cuerpo > div { overflow: hidden; min-height: 0; }
.bandeja.is-plegada .bandeja-cuerpo { grid-template-rows: 0fr; }
.bandeja-pozo { background: var(--rojo-2); border-radius: var(--r-m); padding: 8px; margin-top: 8px; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .2); }
.bandeja-fichas { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 6px 6px 4px; min-height: 70px; align-items: center; }
.bandeja-fichas::-webkit-scrollbar { display: none; }
.ficha {
  position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--crema);
  display: grid; place-items: center; box-shadow: 0 3px 0 var(--rojo-3); border: 0; padding: 0; color: inherit;
}
.ficha .ilustracion { width: 36px; height: 36px; }
.ficha img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ficha em {
  position: absolute; right: -6px; top: -6px; min-width: 26px; height: 22px; padding: 0 5px; border-radius: 11px;
  background: var(--queso); color: var(--tinta); font: 800 13px/22px var(--ui); font-style: normal; text-align: center;
}
.ficha.cae { animation: caer .55s var(--suave) both; }
@keyframes caer { 0% { transform: translateY(-72px) scale(.6); opacity: 0; } 60% { transform: translateY(4px) scale(1.05); opacity: 1; } 100% { transform: none; } }
.bandeja.rebote .bandeja-total { animation: rebote .4s var(--suave); }
@keyframes rebote { 40% { transform: scale(1.08); } }
.bandeja-vacia { display: flex; align-items: center; gap: 12px; padding: 2px 6px; font-size: 14px; }
.bandeja-vacia svg { width: 54px; height: 54px; flex: none; }
.bandeja-lineas { display: none; list-style: none; margin: 10px 0 0; padding: 0; font-size: 14px; }
.bandeja-lineas li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .22); }
.bandeja-minimo { margin-top: 10px; font-size: 13px; font-weight: 500; }
.bandeja-minimo .pista { height: 6px; background: var(--rojo-3); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.bandeja-minimo .pista span { display: block; height: 100%; background: var(--queso); border-radius: 3px; transition: width .4s var(--suave); }
.bandeja-cuentas { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; margin: 10px 0 0; font-size: 13px; }
.bandeja-cuentas dt { font-weight: 400; }
.bandeja-cuentas dd { margin: 0; text-align: right; font-weight: 700; }
.bandeja-pie { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 12px; }
.bandeja-pie small { display: block; font-size: 13px; font-weight: 500; }
.bandeja-total { display: inline-block; font: 800 30px/1 var(--display); }
.bandeja-ir {
  min-height: 52px; padding: 0 22px; border: 0; border-radius: var(--r-m); background: var(--crema); color: var(--rojo-3);
  font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; transition: background .15s;
}
.bandeja-ir:hover:not(:disabled) { background: #fff; }
.bandeja-ir:disabled { background: var(--rojo-2); color: #ffd9d4; }
.bandeja-nota { display: block; font-size: 12px; font-weight: 500; margin-top: 4px; }
/* En celular la bandeja es compacta: fichas, total y continuar. El desglose va en "Editar" y en el pedido. */
@media (max-width: 1023px) {
  .bandeja-cuentas { display: none; }
  .bandeja-pozo { margin-top: 6px; padding: 4px 8px; }
  .bandeja-fichas { min-height: 62px; }
  .bandeja-pie { margin-top: 10px; }
}
/* Vacía en celular: solo una franja corta para no tapar la carta */
.bandeja.is-vacia .bandeja-pie { display: none; }
.bandeja.is-vacia .bandeja-pozo { background: transparent; box-shadow: none; padding: 0; margin-top: 4px; }
.bandeja.is-vacia .bandeja-fichas { min-height: 0; padding: 0; }

/* ---------- pie ---------- */
.pedir-pie { max-width: 720px; padding: 8px 16px calc(var(--alto-bandeja) + 24px); display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--gris); }
.pedir-pie a { color: inherit; text-underline-offset: 3px; }
.carta-productos { padding-bottom: 24px; }

/* ---------- hojas (detalle y editar bandeja) ---------- */
.pedir-overlay { position: fixed; inset: 0; z-index: 30; background: rgba(21, 20, 16, .5); animation: aparecer .25s ease-out; }
@keyframes aparecer { from { opacity: 0; } }
.pedir-hoja {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; max-height: 92vh; display: flex; flex-direction: column;
  background: var(--papel); border-radius: var(--r-l) var(--r-l) 0 0; box-shadow: var(--sombra);
  animation: subir .35s var(--suave); max-width: 560px; margin: 0 auto;
}
@keyframes subir { from { transform: translateY(48px); opacity: 0; } }
.hoja-tirador { width: 48px; height: 5px; border-radius: 3px; background: var(--linea); margin: 8px auto 0; flex: none; }
.hoja-cabecera { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 20px 6px; }
.hoja-cabecera h2 { font-size: 24px; }
.cabecera-acciones { display: flex; align-items: center; gap: 6px; }
.hoja-scroll { overflow-y: auto; padding: 0 20px 12px; }
.hoja-acciones { display: flex; gap: 10px; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linea); }
.hoja-acciones .btn { flex: 1; }
.btn-icono { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--crema); display: grid; place-items: center; }
.btn-icono:hover { background: var(--crema-2); }
.btn-texto-peligro { min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--rojo-2); font-weight: 700; }
.btn {
  min-height: 52px; padding: 0 18px; border-radius: var(--r-m); border: 0; font-weight: 700; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: background .15s;
}
.btn--rojo { background: var(--rojo); color: #fff; }
.btn--rojo:hover:not(:disabled) { background: var(--rojo-2); }
.btn--rojo:disabled { background: var(--crema-2); color: var(--gris); }
.btn--suave { background: var(--crema); color: var(--tinta); }
.btn--suave:hover { background: var(--crema-2); }
.btn--borde { background: transparent; color: var(--tinta); border: 1.5px solid var(--tinta); }
.btn--sm { min-height: 44px; font-size: 15px; }
.btn.is-loading { opacity: .75; }

/* detalle de producto */
.detalle-scroll { overflow-y: auto; }
.detalle-media { position: relative; height: 220px; background: var(--crema); display: grid; place-items: center; border-radius: var(--r-l) var(--r-l) 0 0; overflow: hidden; }
.detalle-media .ilustracion { width: 120px; height: 120px; }
.detalle-botones { position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; }
.detalle-botones .btn-icono { background: rgba(255, 252, 245, .94); }
.detalle-botones .favorito-btn { width: 44px; height: 44px; background: rgba(255, 252, 245, .94); color: var(--gris); }
.detalle-botones .favorito-btn.is-favorito { color: var(--rojo); }
.detalle-cuerpo { padding: 16px 20px 8px; }
.detalle-cuerpo h2 { font-size: 26px; }
.detalle-precio { display: block; margin-top: 4px; font: 800 20px var(--display); }
.detalle-descripcion { color: var(--gris); margin-top: 6px; }
.detalle-grupo { border: 0; padding: 0; margin: 18px 0 0; }
.detalle-grupo legend { font-weight: 700; padding: 0; margin-bottom: 8px; }
.detalle-grupo legend small { font-weight: 400; color: var(--gris); }
.opcion {
  width: 100%; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; margin-top: 8px;
  border: 1.5px solid var(--linea); border-radius: var(--r-m); background: #fff; text-align: left;
}
.opcion .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--gris); flex: none; display: grid; place-items: center; }
.opcion[aria-pressed="true"] { border-color: var(--tinta); box-shadow: inset 0 0 0 1px var(--tinta); }
.opcion[aria-pressed="true"] .radio { border-color: var(--rojo); }
.opcion[aria-pressed="true"] .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--rojo); }
.opcion span:nth-child(2) { flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--linea); background: #fff; font-size: 14px; font-weight: 500; }
.chip.is-activa { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.detalle-nota-input { margin-top: 10px; }
.detalle-barra { display: flex; gap: 12px; align-items: center; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linea); }
.cantidad { display: flex; align-items: center; border: 1.5px solid var(--linea); border-radius: 999px; height: 52px; flex: none; }
.cantidad button { width: 48px; height: 48px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; }
.cantidad span { min-width: 24px; text-align: center; font: 800 18px var(--display); }
.detalle-barra .btn { flex: 1; }
.aviso-alcohol { font-size: 13px; color: var(--gris); margin-top: 12px; }

/* editar bandeja */
.carrito-linea { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--linea); }
.carrito-linea .ficha { box-shadow: none; }
.carrito-linea strong { display: block; font-size: 15px; }
.carrito-linea small { color: var(--gris); font-size: 13px; }
.carrito-linea .stepper { height: 44px; }
.carrito-linea .stepper button { height: 44px; }
.nota-linea { grid-column: 2 / -1; display: block; }
.nota-linea input { height: 40px; min-height: 0; font-size: 14px; }
.carrito-progreso { margin-top: 4px; font-size: 14px; }
.carrito-progreso .pista { height: 6px; background: var(--crema); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.carrito-progreso .pista span { display: block; height: 100%; background: var(--rojo); border-radius: 3px; }
.carrito-upsell { margin-top: 18px; }
.carrito-upsell h3 { font-size: 18px; }
.upsell-fila { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 8px 0 4px; }
.upsell-fila::-webkit-scrollbar { display: none; }
.upsell-card { flex: none; width: 150px; border: 1.5px solid var(--linea); border-radius: var(--r-m); padding: 10px; display: grid; gap: 4px; background: #fff; }
.upsell-card strong { font-size: 14px; line-height: 1.25; }
.upsell-card span { font: 800 16px var(--display); }
.upsell-card button { min-height: 40px; border-radius: var(--r-s); border: 1.5px solid var(--rojo); background: #fff; color: var(--rojo-2); font-weight: 700; font-size: 14px; }
.aviso-minimo { margin-top: 12px; background: var(--crema); border-radius: var(--r-m); padding: 10px 12px; font-size: 14px; }

/* resumen (bandeja y checkout) */
.resumen-compra, .resumen { margin-top: 16px; background: var(--crema); border-radius: var(--r-m); padding: 14px 16px; }
.resumen-lineas { list-style: none; margin: 0 0 8px; padding: 0 0 8px; border-bottom: 1px solid var(--crema-2); font-size: 14px; }
.resumen-lineas li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.resumen-lineas small { display: block; color: var(--gris); }
.resumen-fila { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 4px 0; font-size: 15px; }
.resumen-fila small { display: block; font-size: 12px; color: var(--gris); max-width: 32ch; }
.resumen-total { font: 800 22px var(--display); border-top: 1px solid var(--crema-2); margin-top: 6px; padding-top: 10px; }
.texto-gratis { color: var(--verde); }

/* ---------- checkout ---------- */
.checkout { position: fixed; inset: 0; z-index: 40; background: var(--papel); overflow-y: auto; animation: subir .3s var(--suave); }
.checkout-caja { max-width: 1080px; margin: 0 auto; padding: 8px 16px 32px; }
.checkout-cabecera { position: sticky; top: 0; z-index: 2; background: var(--papel); padding: 6px 0; }
.btn-volver { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; border: 0; background: none; font-weight: 700; padding: 0 6px 0 0; }
.btn-volver .i { transform: rotate(180deg); }
.checkout-datos h2 { font-size: 32px; }
.checkout-intro { color: var(--gris); margin-top: 4px; }
.grupo { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--linea); display: grid; gap: 14px; }
.grupo h3 { font-size: 21px; display: flex; align-items: center; gap: 10px; }
.grupo-num { width: 28px; height: 28px; border-radius: 50%; background: var(--tinta); color: #fff; font: 800 15px/28px var(--display); text-align: center; flex: none; }
.campo { display: grid; gap: 6px; }
.campo label, .campo-titulo { font-weight: 700; font-size: 14px; }
.opcional { font-weight: 400; color: var(--gris); }
.label-fila { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.campo input, .campo textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--linea); border-radius: var(--r-m); background: #fff; outline: none;
}
.campo textarea { resize: vertical; min-height: 76px; }
.campo input:focus, .campo textarea:focus { border-color: var(--tinta); box-shadow: 0 0 0 3px rgba(21, 20, 16, .12); }
.campo input::placeholder, .campo textarea::placeholder { color: #8a8079; }
.campo-ayuda { font-size: 13px; color: var(--gris); }
.campos-dobles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-ubicacion { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--linea); background: #fff; font-size: 13px; font-weight: 700; }
.btn-ubicacion.is-loading { opacity: .6; }
.zonas { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.zona {
  min-height: 52px; padding: 8px 12px; border-radius: var(--r-m); border: 1.5px solid var(--linea); background: #fff;
  display: flex; justify-content: space-between; align-items: center; gap: 8px; text-align: left;
}
.zona strong { font: 800 15px var(--display); }
.zona[aria-pressed="true"] { border-color: var(--tinta); box-shadow: inset 0 0 0 1px var(--tinta); }
.billetes { display: flex; flex-wrap: wrap; gap: 8px; }
.billete { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--linea); background: #fff; font-weight: 700; font-size: 14px; }
.billete.is-activo { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.devuelta { font-size: 14px; font-weight: 700; color: var(--verde); }
.check { display: flex; align-items: center; gap: 10px; margin-top: 18px; min-height: 44px; font-weight: 500; }
.check input { width: 22px; height: 22px; accent-color: var(--rojo); }
.field-error { border-color: var(--rojo) !important; }
.zonas.field-error, .modo-switch.field-error { box-shadow: 0 0 0 2px var(--rojo); border-radius: var(--r-m); }
.is-shake { animation: temblar .4s; }
@keyframes temblar { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.checkout-resumen { margin-top: 24px; }
.checkout-resumen .resumen { margin-top: 0; }
.pedido-errores { margin-top: 12px; background: #ffe9e6; color: var(--rojo-3); border-radius: var(--r-m); padding: 10px 12px; font-size: 14px; font-weight: 500; display: grid; gap: 4px; }
.btn--enviar { width: 100%; min-height: 56px; font-size: 17px; margin-top: 14px; }
.enviar-meta { font-size: 13px; color: var(--gris); text-align: center; margin-top: 8px; }
.aviso-privacidad { font-size: 12px; color: var(--gris); margin-top: 12px; text-align: center; }
.aviso-privacidad a { color: inherit; }

/* ---------- confirmación ---------- */
.confirmado { max-width: 560px; margin: 0 auto; padding: 12px 0 32px; text-align: center; }
.confirmado .mascota { width: 128px; height: 128px; margin: 0 auto; }
.confirmado h2 { font-size: 32px; margin-top: 10px; }
.confirmado-sub { color: var(--gris); margin-top: 6px; }
.confirmado-codigo { display: inline-block; margin-top: 12px; background: var(--crema); border-radius: 999px; padding: 7px 16px; font-weight: 700; }
.pasos { list-style: none; padding: 0; margin: 26px 0 0; text-align: left; }
.paso { display: grid; grid-template-columns: 32px 1fr; gap: 12px; position: relative; padding-bottom: 20px; }
.paso::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--linea); }
.paso:last-child::before { display: none; }
.paso-punto { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--linea); background: var(--papel); display: grid; place-items: center; }
.paso.is-hecho .paso-punto { background: var(--verde); border-color: var(--verde); color: #fff; }
.paso.is-hecho .paso-punto .i { width: 18px; height: 18px; }
.paso strong { display: block; font-size: 16px; padding-top: 4px; }
.paso span { font-size: 14px; color: var(--gris); }
.confirmado-whatsapp { margin-top: 18px; background: var(--crema); border-radius: var(--r-m); padding: 14px 16px; text-align: left; font-size: 14px; }
.confirmado-whatsapp strong { display: block; font-size: 15px; }
.confirmado-whatsapp .btn { margin-top: 10px; }
.confirmado-acciones { display: grid; gap: 8px; margin-top: 18px; }
.confirmado-acciones .btn-texto { min-height: 44px; border: 0; background: none; color: var(--gris); text-decoration: underline; text-underline-offset: 3px; }
.confirmado-aviso { margin-top: 12px; font-size: 14px; color: var(--rojo-3); }
.confirmado.is-cancelado h2 { color: var(--gris); }

/* ---------- aviso flotante ---------- */
.pedir-toast {
  position: fixed; left: 50%; top: 14px; z-index: 60; transform: translate(-50%, -80px);
  background: var(--tinta); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500;
  transition: transform .35s var(--suave); max-width: calc(100vw - 32px);
}
.pedir-toast.is-visible { transform: translate(-50%, 0); }

/* ---------- celular pequeño ---------- */
@media (max-width: 380px) {
  .producto { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; }
  .producto-media { width: 72px; height: 72px; }
  .tienda-cabecera h1 { font-size: 26px; }
  .campos-dobles { grid-template-columns: 1fr; }
  .bandeja-total { font-size: 26px; }
}

/* ---------- PC: carta y bandeja de pie a la derecha ---------- */
@media (min-width: 1024px) {
  :root { --alto-bandeja: 0px; }
  .marca-franja { padding: 10px 32px; }
  .tienda-layout {
    display: grid; grid-template-columns: 220px minmax(0, 1fr) 360px; column-gap: 40px;
    grid-template-areas: "rail cabecera bandeja" "rail carta bandeja" "rail pie bandeja";
    grid-template-rows: auto 1fr auto;
    max-width: 1400px; margin: 0 auto; padding: 0 32px; align-items: start;
  }
  .tienda-cabecera { grid-area: cabecera; padding: 28px 0 0; max-width: none; }
  .tienda-portada-foto { width: 100%; margin: 0; height: 180px; border-radius: var(--r-l); }
  .tienda-portada-foto:not([hidden]) + .tienda-identidad { margin-left: 20px; }
  .carta { display: contents; }
  .carta-controles {
    grid-area: rail; position: sticky; top: 24px; max-width: none; padding: 28px 0 0; border: 0; background: none;
    max-height: calc(100vh - 48px); overflow-y: auto;
  }
  .categorias { display: grid; margin: 14px 0 0; padding: 0; gap: 2px; overflow: visible; }
  .categoria-tab { min-height: 44px; border-radius: var(--r-s); padding: 0 12px; box-shadow: none; white-space: normal; line-height: 1.25; }
  .categoria-tab.is-active { background: var(--crema); color: var(--tinta); box-shadow: none; }
  .carta-productos { grid-area: carta; max-width: none; padding: 0 0 24px; }
  .productos-lista { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .pedir-pie { grid-area: pie; max-width: none; padding: 12px 0 40px; }
  .bandeja {
    grid-area: bandeja; position: sticky; top: 24px; margin-top: 28px; border-radius: var(--r-l);
    padding: 18px 20px 20px; box-shadow: var(--sombra); max-height: calc(100vh - 48px); overflow-y: auto;
  }
  .bandeja-asa { display: none; }
  .bandeja.is-plegada .bandeja-cuerpo { grid-template-rows: 1fr; }
  .bandeja-fichas { flex-wrap: wrap; overflow: visible; }
  .bandeja-lineas { display: block; }
  .bandeja.is-vacia .bandeja-pozo { background: var(--rojo-2); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .2); padding: 8px; margin-top: 8px; }
  .bandeja.is-vacia .bandeja-fichas { min-height: 70px; padding: 6px; }
  .bandeja.is-vacia .bandeja-pie { display: flex; }
  .bandeja-pie { flex-direction: column; align-items: stretch; }
  .bandeja-ir { justify-content: center; }
  .pedir-hoja { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: 560px; border-radius: var(--r-l); animation: aparecer .25s ease-out; max-height: 88vh; }
  .hoja-tirador { display: none; }
  .checkout-caja { padding: 16px 32px 48px; }
  .checkout-columnas { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
  .checkout-datos { max-width: 640px; }
  .checkout-resumen { position: sticky; top: 72px; margin-top: 64px; background: var(--crema); border-radius: var(--r-l); padding: 20px; }
  .checkout-resumen .resumen { padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Accessibility adjustments preserve the source layout and visual language. */
.favorito-btn { width: 44px; height: 44px; }
.ficha-foto { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.ficha-foto .producto-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.producto-abrir { display: inline-flex; align-items: center; min-height: 44px; }
.marca-logo, .pie-marca { display: inline-flex; align-items: center; min-height: 44px; }
button, .btn-ubicacion, .chip { min-height: 44px; }
.btn-ubicacion { color: var(--rojo-2); }

/* =====================================================================
   f20c · Rediseño tienda pública estilo DoorDash / Uber Eats
   Tarjetas limpias con jerarquía visual clara, íconos propios CúcutaCome,
   categorías en píldora y bandeja flotante que no estorba cuando está vacía.
   ===================================================================== */
:root {
  --papel: #f7f6f2;
  --papel-claro: #ffffff;
  --crema: #fef1df;
  --crema-2: #f3e2c7;
  --tinta: #151410;
  --gris: #57534e;
  --linea: #e4e2dd;
  --linea-suave: #efece6;
  --verde: #16a34a;
  --verde-osc: #166534;
  --ambar: #b45309;
  --oscuro-2: #292722;
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 18px;
  --sombra: 0 4px 16px rgba(21, 20, 16, .06);
  --texto-ui: "Outfit", var(--ui);
}
body { background: var(--papel); color: var(--tinta); }
::selection { background: var(--tinta); color: var(--crema); }
.puntos { display: none !important; }

/* Barra superior de marca */
.marca-franja {
  background: var(--papel-claro);
  color: var(--tinta);
  border-bottom: 1px solid var(--linea);
  padding: 10px 16px;
}
.marca-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--tinta); font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 19px; letter-spacing: 0.005em; }
.marca-logo::before {
  content: "";
  width: 26px;
  height: 26px;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='15' fill='%23151410'/%3E%3Crect x='2' y='2' width='60' height='60' rx='13' fill='none' stroke='%23FEF1DF' stroke-opacity='.22' stroke-width='2'/%3E%3Cpath d='M27.6 22.8A11.2 11.2 0 1 0 27.6 41.2' fill='none' stroke='%23FEF1DF' stroke-width='6.8' stroke-linecap='round'/%3E%3Cpath d='M51.2 22.8A11.2 11.2 0 1 0 51.2 41.2' fill='none' stroke='%23FEF1DF' stroke-width='6.8' stroke-linecap='round'/%3E%3Ccircle cx='54' cy='52' r='5.6' fill='%23EA090B'/%3E%3C/svg%3E") center / contain no-repeat;
}
.marca-logo .marca-come { display: inline-block; color: #ea090b; transform-origin: 50% 80%; }
.marca-logo:hover .marca-come, .marca-logo:focus-visible .marca-come { animation: cc-logo-saltico .62s ease both; }
@keyframes cc-logo-saltico { 0%, 100% { transform: translateY(0) rotate(0); } 35% { transform: translateY(-3px) rotate(-4deg); } 70% { transform: translateY(1px) rotate(2deg); } }
.marca-franja :focus-visible { outline-color: var(--tinta); }

/* Cabecera del restaurante tipo tarjeta hero */
.tienda-cabecera {
  background: var(--papel-claro);
  border: 1px solid var(--linea);
  border-radius: var(--r-l);
  margin: 14px 16px 0;
  padding: 18px;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(21, 20, 16, .04);
}
.tienda-portada-foto {
  width: calc(100% + 36px);
  margin: -18px -18px 4px;
  height: 148px;
  border-radius: calc(var(--r-l) - 1px) calc(var(--r-l) - 1px) 0 0;
}
.tienda-portada-foto:not([hidden]) + .tienda-identidad .tienda-logo-fondo {
  margin-top: -36px;
  width: 72px;
  height: 72px;
  box-shadow: 0 4px 12px rgba(21, 20, 16, .12), 0 0 0 4px var(--papel-claro);
}
.tienda-logo-fondo {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--tinta);
  color: var(--crema);
  border: 1px solid var(--linea);
}
.tienda-cabecera h1 {
  font-family: var(--texto-ui);
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.tienda-estado {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #dcfce7;
  color: var(--verde-osc);
  border: 1px solid #bbf7d0;
  font: 700 12px/1.2 var(--ui);
  letter-spacing: 0;
  text-transform: none;
  transform: none;
}
.tienda-estado::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.tienda-estado--pronto { background: #fef3c7; color: var(--ambar); border-color: #fde68a; }
.tienda-estado--cerrada, .tienda-estado--pausada { background: #fee2e2; color: var(--rojo-3); border-color: #fecaca; }
.tienda-direccion { font-size: 13px; color: var(--gris); margin-top: 4px; }
.tienda-datos { gap: 8px; font-size: 13px; margin-top: 2px; }
.tienda-datos li {
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: 999px;
  padding: 5px 12px;
  gap: 5px;
}
.tienda-datos strong { font-weight: 700; color: var(--tinta); }
.tienda-mensaje {
  background: var(--crema);
  color: var(--tinta);
  border: 1px solid var(--crema-2);
  border-radius: var(--r-s);
  padding: 10px 14px;
  font-size: 13.5px;
}

/* Buscador y píldoras de categorías */
.carta-controles {
  background: rgba(247, 246, 242, .94);
  backdrop-filter: blur(8px);
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--linea);
}
.buscador input {
  height: 44px;
  border: 1px solid var(--linea);
  border-radius: 999px;
  background: var(--papel-claro);
  padding: 0 42px 0 40px;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(21, 20, 16, .03);
}
.buscador input:focus { border-color: var(--tinta); box-shadow: 0 0 0 3px rgba(21, 20, 16, .08); }
.buscador-icono { left: 14px; color: var(--gris); }
.buscador-limpiar { border-radius: 50%; }
.categorias { gap: 8px; margin: 10px -16px 0; padding: 0 16px 2px; }
.categoria-tab {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--papel-claro);
  border: 1px solid var(--linea);
  color: var(--gris);
  font: 700 13px/1 var(--ui);
  letter-spacing: 0;
  text-transform: none;
  gap: 6px;
  box-shadow: none;
}
.categoria-tab .i { width: 15px; height: 15px; color: var(--rojo); }
.categoria-tab:hover { border-color: #c7c3ba; color: var(--tinta); }
.categoria-tab.is-active {
  background: var(--tinta);
  border-color: var(--tinta);
  color: #fff;
  box-shadow: none;
}
.categoria-tab.is-active .i { color: #fff; }

/* Grilla de tarjetas de producto (DoorDash / Uber Eats) */
.categoria-seccion { padding-top: 22px; }
.seccion-cabecera { margin-bottom: 10px; }
.seccion-cabecera h2 {
  font-family: var(--texto-ui);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.seccion-conteo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--linea-suave);
  color: var(--gris);
  font-size: 12px;
  font-weight: 700;
}
.productos-lista {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 8px;
}
.producto {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "texto derecha";
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  background: var(--papel-claro);
  border: 1px solid var(--linea);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(21, 20, 16, .03);
  transition: border-color .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.producto:hover:not(.is-agotado) {
  border-color: #cbc7be;
  box-shadow: 0 6px 16px rgba(21, 20, 16, .06);
}
.producto.sin-foto {
  grid-template-columns: minmax(0, 1fr) auto;
}
.producto-texto {
  grid-area: texto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.producto-linea { display: contents; }
.producto-nombre {
  order: 1;
  font: 700 15.5px/1.3 var(--texto-ui);
  color: var(--tinta);
}
.producto-abrir {
  text-align: left;
  min-height: 0;
  position: relative;
}
.producto-abrir::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 44px;
  transform: translateY(-50%);
}
.producto-desc {
  order: 2;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--gris);
}
.producto-etiquetas { order: 3; margin-top: 6px; }
.etiqueta { border-radius: 6px; font-size: 11px; padding: 4px 8px; }
.producto-precio {
  order: 4;
  margin-top: 10px;
  font: 800 16px/1.1 var(--ui);
  color: var(--tinta);
}
.producto-media {
  grid-area: derecha;
  width: 92px;
  height: 92px;
  border-radius: 12px;
  background: var(--crema);
  border: 1px solid var(--linea-suave);
  align-self: center;
}
.producto-acciones {
  grid-area: derecha;
  align-self: end;
  justify-self: end;
  z-index: 2;
  margin: 0 -4px -4px 0;
}
.producto.sin-foto .producto-acciones {
  align-self: center;
  margin: 0;
}
.btn-mas {
  width: 40px;
  height: 40px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(21, 20, 16, .12);
  background: var(--papel-claro);
  color: var(--rojo);
  box-shadow: 0 3px 10px rgba(21, 20, 16, .14);
}
.btn-mas .i { width: 18px; height: 18px; }
.btn-mas:hover:not(:disabled) { background: var(--rojo); color: #fff; border-color: var(--rojo); }
.btn-mas:disabled { background: var(--linea-suave); color: var(--gris); box-shadow: none; }
.btn-mas.has-qty {
  border-radius: 999px;
  background: var(--rojo);
  border-color: var(--rojo);
  color: #fff;
  padding: 0 11px;
  min-width: 40px;
}
.stepper {
  background: var(--tinta);
  color: #fff;
  border-radius: 999px;
  height: 40px;
  box-shadow: 0 3px 10px rgba(21, 20, 16, .18);
}
.stepper button {
  width: 36px;
  height: 40px;
  min-height: 40px;
  border-radius: 999px;
  color: #fff;
}
.stepper button:hover { background: var(--oscuro-2); }
.stepper span { font: 800 14px/1 var(--ui); min-width: 18px; }

/* Bandeja inferior en celular: oculta cuando está vacía (0 px), barra flotante cuando tiene ítems */
.bandeja {
  background: var(--tinta);
  color: #fff;
  border-radius: 18px 18px 0 0;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 28px rgba(21, 20, 16, .2);
}
.bandeja :focus-visible { outline-color: #fff; }
.bandeja-asa { display: none; }
.bandeja-cabecera h2 { font: 800 15px/1.2 var(--texto-ui); letter-spacing: 0; text-transform: none; }
.bandeja-sub { color: #d6d3cd; font-size: 12.5px; }
.bandeja-editar {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
}
.bandeja-editar:hover { background: rgba(255, 255, 255, .16); }
.bandeja:not(.is-vacia) .bandeja-pozo { display: none; }
.bandeja-pie { margin-top: 8px; align-items: center; }
.bandeja-pie small { color: #d6d3cd; font-size: 12px; }
.bandeja-total { font: 800 24px/1.1 var(--ui); }
.bandeja-ir {
  min-height: 46px;
  border-radius: 12px;
  background: var(--rojo);
  color: #fff;
  font-size: 15px;
  padding: 0 18px;
}
.bandeja-ir:hover:not(:disabled) { background: var(--rojo-2); }
.bandeja-ir:disabled { background: var(--oscuro-2); color: #a8a29e; }
.bandeja-minimo .pista { background: var(--oscuro-2); }
.bandeja-minimo .pista span { background: var(--rojo); }
.bandeja-lineas li { border-top: 1px solid var(--linea-suave); }

@media (max-width: 1023px) {
  .bandeja.is-vacia { display: none !important; }
}

/* Hojas modales (detalle y carrito) */
.pedir-overlay { background: rgba(21, 20, 16, .5); backdrop-filter: blur(2px); }
.pedir-hoja {
  background: var(--papel-claro);
  border: 1px solid var(--linea);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 36px rgba(21, 20, 16, .18);
}
.hoja-tirador { background: #d6d3cd; }
.hoja-cabecera {
  border-bottom: 1px solid var(--linea);
  padding: 12px 20px;
}
.hoja-cabecera h2 { font: 800 22px/1.2 var(--texto-ui); white-space: nowrap; }
.hoja-acciones { border-top: 1px solid var(--linea); background: var(--papel-claro); }
.hoja-acciones .btn { white-space: nowrap; }
.hoja-acciones .btn--suave { flex: 0 1 auto; }
.btn-icono { border-radius: 999px; background: var(--papel); border: 1px solid var(--linea); }
.btn-icono:hover { background: var(--linea-suave); }
.btn-texto-peligro { color: var(--rojo-2); font-size: 14px; }
.carrito-linea { display: block; padding: 14px 0; border-bottom: 1px solid var(--linea-suave); }
.carrito-linea-fila { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.carrito-linea-fila strong { font: 700 15px/1.3 var(--texto-ui); }
.carrito-linea-precio { flex: none; font: 800 15px/1 var(--ui); }
.carrito-linea small { display: block; margin-top: 2px; }
.carrito-linea-acciones { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.carrito-linea-acciones .stepper { margin-left: auto; }
.btn-nota { min-height: 38px; padding: 0; border: 0; background: none; color: var(--rojo-2); font: 700 13px/1 var(--ui); }
.nota-linea { margin-top: 8px; }
.upsell-card { border: 1px solid var(--linea); background: var(--papel); border-radius: 12px; }
.upsell-card button { min-height: 40px; border-radius: 8px; }
.aviso-minimo { border: 1px solid var(--crema-2); background: var(--crema); }
.btn { border-radius: 12px; }
.btn--suave { background: var(--papel); color: var(--tinta); border: 1px solid var(--linea); }
.btn--suave:hover { background: var(--linea-suave); }
.btn--borde { border: 1.5px solid var(--linea); background: var(--papel-claro); }
.chip { border-radius: 999px; border: 1px solid var(--linea); background: var(--papel); }
.detalle-media { border-radius: 20px 20px 0 0; background: var(--crema); }
.detalle-media.sin-foto { height: 56px; background: var(--papel); border-bottom: 1px solid var(--linea); }
.detalle-botones .btn-icono, .detalle-botones .favorito-btn { border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
.opcion { border-radius: 12px; border: 1px solid var(--linea); background: var(--papel-claro); }
.cantidad { border-radius: 999px; border: 1px solid var(--linea); }
.cantidad button { border-radius: 999px; }

/* Resumen y Checkout limpios */
.resumen-compra, .resumen {
  background: var(--papel-claro);
  border: 1px solid var(--linea);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(21, 20, 16, .03);
}
.resumen-lineas { border-bottom: 1px solid var(--linea-suave); }
.resumen-total { border-top: 1px solid var(--linea); font: 800 22px/1.2 var(--ui); }
.checkout { background: var(--papel); }
.checkout-cabecera {
  background: rgba(247, 246, 242, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linea);
  margin: 0 -16px;
  padding: 6px 16px;
}
.checkout-datos h2 { font: 800 28px/1.15 var(--texto-ui); margin-top: 14px; }
.grupo {
  margin-top: 18px;
  padding: 18px;
  background: var(--papel-claro);
  border: 1px solid var(--linea);
  border-radius: 16px;
}
.grupo h3 { font: 800 15px/1.2 var(--texto-ui); letter-spacing: 0; text-transform: none; }
.grupo-num {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--tinta);
  color: #fff;
  font: 800 13px/26px var(--ui);
}
.modo-switch {
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}
.modo-btn { min-height: 46px; border-radius: 9px; color: var(--gris); font-family: var(--ui); font-size: 14px; }
.modo-btn[aria-pressed="true"] { background: var(--tinta); color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.campo input, .campo textarea {
  border: 1px solid var(--linea);
  border-radius: 12px;
  background: var(--papel-claro);
  font-size: 15px;
}
.campo input:focus, .campo textarea:focus { border-color: var(--tinta); box-shadow: 0 0 0 3px rgba(21, 20, 16, .08); }
.campo label, .campo-titulo { font-family: var(--ui); font-weight: 700; font-size: 13.5px; }
.zona { border: 1px solid var(--linea); border-radius: 12px; background: var(--papel-claro); }
.zona[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: #fff; box-shadow: none; }
.billete { border: 1px solid var(--linea); border-radius: 999px; background: var(--papel-claro); }
.billete.is-activo { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.devuelta, .texto-gratis { color: var(--verde-osc); }
.pedido-errores { border: 1px solid #fecaca; background: #fef2f2; color: #991b1b; border-radius: 12px; }

/* Confirmación del pedido */
.confirmado-codigo { border-radius: 999px; border: 1px solid var(--linea); background: var(--papel-claro); font-family: var(--ui); }
.confirmado-whatsapp { background: var(--papel-claro); border: 1px solid var(--linea); border-radius: 16px; }
.confirmado-resumen {
  width: 100%;
  max-width: 420px;
  margin: 12px auto 0;
  padding: 14px 16px;
  border: 1px solid var(--linea);
  border-radius: 16px;
  background: var(--papel-claro);
  text-align: left;
}
.confirmado-resumen ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.confirmado-resumen li { display: flex; justify-content: space-between; gap: 12px; }
.confirmado-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--linea);
  font: 800 17px/1.2 var(--ui);
}
.confirmado-destino { margin: 6px 0 0; color: var(--gris); font-size: 13.5px; }
.confirmado-acciones .btn-texto { color: var(--rojo-2); font-weight: 700; }
.pasos { max-width: 420px; margin-inline: auto; }
.paso.is-hecho .paso-punto { background: var(--verde); border-color: var(--verde); }
.tienda-no-disponible {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 24px;
  border: 1px solid var(--linea);
  border-radius: 16px;
  background: var(--papel-claro);
  color: var(--tinta);
}
.tienda-no-disponible h1 { font: 800 clamp(24px, 6vw, 32px)/1.1 var(--texto-ui); }
.tienda-no-disponible p { color: var(--gris); }
.pedir-pie a.pie-marca { display: inline-block; line-height: 44px; }
input[type=checkbox], input[type=radio] { accent-color: var(--rojo); }
img.mascota { display: block; width: auto; object-fit: contain; }
.vacio img.mascota { height: 104px; margin: 0 auto; }
.bandeja-vacia img.mascota { height: 54px; flex: none; }
.confirmado img.mascota { height: 124px; margin: 0 auto; }

@media (min-width: 700px) {
  .productos-lista {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (min-width: 1024px) {
  .marca-franja { padding: 12px 32px; }
  .tienda-layout {
    grid-template-columns: 240px minmax(0, 1fr) 340px;
    column-gap: 28px;
    max-width: 1360px;
  }
  .tienda-cabecera { margin: 24px 0 0; padding: 22px; }
  .tienda-portada-foto { width: calc(100% + 44px); margin: -22px -22px 8px; height: 176px; }
  .carta-controles { background: none; backdrop-filter: none; border: 0; padding: 24px 0 0; }
  .categorias { display: grid; margin: 12px 0 0; padding: 0; gap: 6px; }
  .categoria-tab {
    justify-content: flex-start;
    border-radius: 12px;
    min-height: 42px;
    padding: 0 14px;
  }
  .buscador input { padding-right: 36px; }
  .bandeja {
    background: var(--papel-claro);
    color: var(--tinta);
    border: 1px solid var(--linea);
    border-radius: 18px;
    box-shadow: var(--sombra);
    margin-top: 24px;
  }
  .bandeja :focus-visible { outline-color: var(--tinta); }
  .bandeja-sub, .bandeja-pie small { color: var(--gris); }
  .bandeja-editar {
    color: var(--tinta);
    border-color: var(--linea);
    background: var(--papel);
  }
  .bandeja-editar:hover { background: var(--linea-suave); color: var(--tinta); }
  .bandeja.is-vacia .bandeja-pozo { background: var(--papel); border: 1px dashed var(--linea); box-shadow: none; border-radius: 12px; }
  .bandeja-vacia { color: var(--gris); font-size: 13px; }
  .bandeja-lineas li { border-top-color: var(--linea-suave); }
  .bandeja-cuentas { border-top: 1px solid var(--linea); padding-top: 10px; }
  .bandeja-ir { width: 100%; }
  .bandeja-ir:disabled { background: var(--linea-suave); color: var(--gris); }
  .bandeja-minimo .pista { background: var(--linea-suave); }
  .bandeja-minimo .pista span { background: var(--rojo); }
  .pedir-hoja { border-radius: 20px; border: 1px solid var(--linea); }
  .checkout-cabecera { margin: 0 -32px; padding: 6px 32px; }
  .checkout-resumen { background: transparent; padding: 0; }
  .checkout-resumen .resumen { padding: 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ───── Celulares (revisión responsive 2026-11-15) ───── */
/* iPhone: Safari hace zoom al tocar un campo con letra menor de 16 px. */
@media (max-width: 899px) { input, select, textarea, .nota-linea input { font-size: 16px; } }
/* Táctil mínimo 44 px (CLAUDE.md) en lo que el cliente toca con el dedo. */
.categoria-tab, .chip, .btn-ubicacion, .upsell-card button, .btn-nota, .bandeja-editar { min-height: 44px; }
.btn-mas { width: 44px; height: 44px; }
.favorito-btn { width: 44px; height: 44px; }
.stepper { height: 44px; }
.stepper button { min-width: 44px; min-height: 44px; }
.etiqueta { font-size: 12px; }

/* ───── f49 · Tienda pública sin columna lateral, comanda compacta y fotos visibles ───── */
/* Fotos: en celular la foto crece; desde 700 px, la tarjeta con foto la pone arriba a todo el ancho. */
.producto:not(.sin-foto) .producto-media { width: 108px; height: 108px; }
@media (min-width: 700px) {
  .producto:not(.sin-foto) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "foto" "texto"; gap: 0; padding: 0; overflow: hidden; }
  .producto:not(.sin-foto) .producto-media { grid-area: foto; width: 100%; height: auto; aspect-ratio: 16 / 10; border: 0; border-radius: 0; align-self: stretch; }
  /* Cada tarjeta conserva su alto: las que no tienen foto no se estiran a la altura de las que sí. */
  .productos-lista { align-items: start; }
  .producto:not(.sin-foto) .producto-texto { padding: 12px 14px 14px; }
  .producto:not(.sin-foto) .producto-acciones { grid-area: foto; align-self: end; justify-self: end; margin: 0 10px 10px 0; }
}
/* PC: sin columna izquierda. Buscador y categorías en una barra horizontal pegada arriba de la carta;
   la carta gana el ancho (tres columnas) y la comanda sigue fija a la derecha. */
@media (min-width: 1024px) {
  .tienda-layout { grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "cabecera bandeja" "controles bandeja" "carta bandeja" "pie bandeja"; grid-template-rows: auto auto 1fr auto; }
  .carta-controles { grid-area: controles; position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 12px;
    max-height: none; overflow: visible; margin-top: 16px; padding: 12px 0; background: var(--pt-crema, #f7f0e8); border-bottom: 1px solid var(--linea); }
  .carta-controles .buscador { flex: 0 0 280px; margin: 0; }
  .categorias { display: flex; flex: 1 1 auto; min-width: 0; margin: 0; padding: 2px; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .categoria-tab { flex: none; white-space: nowrap; justify-content: center; }
  .productos-lista { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .categoria-seccion { scroll-margin-top: 90px; }
}
/* Celular: la comanda es una barra compacta (cantidad y total a la izquierda, «Continuar» a la derecha);
   el detalle se abre con «Ver». El aviso de pedido mínimo sigue a la vista cuando aplica. */
@media (max-width: 1023px) {
  .bandeja { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "cab boton" "tot boton" "min min"; align-items: center; column-gap: 12px; row-gap: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .bandeja-asa, .bandeja-pozo, .bandeja-lineas, .bandeja-cuentas, #bandeja-total-etiqueta, .bandeja-nota { display: none !important; }
  .bandeja-cabecera { grid-area: cab; justify-content: flex-start; gap: 8px; }
  .bandeja-cabecera h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bandeja-sub { font-size: 13px; }
  .bandeja-editar { min-height: 36px; padding: 0 12px; font-size: 13px; }
  .bandeja-cuerpo { grid-area: min; display: block; }
  .bandeja-minimo { margin-top: 6px; }
  .bandeja-pie { display: contents; }
  .bandeja-pie > div { grid-area: tot; }
  .bandeja-total { font-size: 22px; }
  .bandeja-ir { grid-area: boton; }
}
/* f49b · El + y el selector de cantidad ya no van sobre la foto (decisión de Deyvid, 2026-11-19).
   Celular: debajo de la foto. Desde 700 px: en la franja de texto, a la derecha del precio. */
.producto:not(.sin-foto) { grid-template-areas: "texto derecha" "texto acciones"; grid-template-rows: auto 1fr; row-gap: 8px; }
.producto:not(.sin-foto) .producto-media { grid-area: derecha; align-self: start; }
.producto:not(.sin-foto) .producto-acciones { grid-area: acciones; align-self: end; justify-self: center; margin: 0; }
@media (min-width: 700px) {
  .producto:not(.sin-foto) { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "foto foto" "texto acciones"; grid-template-rows: auto 1fr; row-gap: 0; }
  .producto:not(.sin-foto) .producto-media { grid-area: foto; }
  .producto:not(.sin-foto) .producto-acciones { grid-area: acciones; align-self: end; justify-self: end; margin: 0 12px 14px 0; }
}
