/* =====================================================================
   Fud Lab Pickup — estilos "Fresh & Light" (rediseño 2026-08)
   Sistema: claro ultra-limpio, fotos protagonistas, sin bordes duros.
   Paleta: fondo #FAFAF7 · tinta #1A1A1A · amarillo #FFC800 (solo acción)
   Tipografía: Manrope (todo). Acentos racing sutiles (bandera, 🏁).
   Para retocar la marca: edita el bloque :root.
   ===================================================================== */
:root {
  --yellow: #FFC800;
  --yellow-soft: #FFF3CC;
  --orange: #F15628;          /* legado; usado en avisos puntuales */
  --ink: #1A1A1A;
  --white: #ffffff;
  --paper: #FAFAF7;
  --card: #ffffff;
  --muted: #7A7A72;
  --line: #EDEBE4;            /* líneas suaves, ya no bordes negros */
  --ok: #23A55A;
  --danger: #E5484D;
  --radius: 22px;
  --shadow: 0 8px 28px rgba(20, 20, 10, 0.07);
  --shadow-lift: 0 14px 34px rgba(20, 20, 10, 0.13);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}
button { font-family: inherit; cursor: pointer; }
.hidden { display: none !important; }
h1, h2, h3, .display { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; }

/* ---------- Layout móvil ---------- */
.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--paper);
  position: relative;
  /* El espacio para la tabbar lo pone cada .tab-screen; si también lo pone
     .app se suman y queda un hueco enorme al final de la página. */
  padding-bottom: 0;
}

/* ---------- Header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 250, 247, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: var(--ink);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark-row { display: flex; align-items: center; gap: 10px; }
.fudlab-badge {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  background: var(--ink);
  border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 0.84;
}
.fudlab-badge span {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.5px;
  color: var(--yellow);
}
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark .name { font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.wordmark .tag { font-size: 10px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.topbar .loc { font-size: 11.5px; font-weight: 700; color: var(--muted); }
/* Pin dibujado en vez de emoji: el emoji se ve infantil y además cambia de
   forma según el sistema. Este es SVG en línea, del color del texto. */
.topbar .loc::before {
  content: ""; display: inline-block; width: 11px; height: 13px;
  margin-right: 4px; vertical-align: -1px;
  background-color: currentColor;
  -webkit-mask: var(--pin-mask) center / contain no-repeat;
  mask: var(--pin-mask) center / contain no-repeat;
}

.header-cart {
  position: relative;
  background: var(--card);
  border: 0;
  border-radius: 999px;
  width: 46px; height: 46px;
  font-size: 19px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.header-cart .hc-count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  font-size: 12px;
  border-radius: 999px;
  min-width: 21px; height: 21px;
  display: inline-grid;
  place-items: center;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  padding: 0 6px;
}
.header-cart.bump { animation: cartBump 0.3s ease; }
@keyframes cartBump { 0%,100% { transform: scale(1); } 40% { transform: scale(1.18); } }

/* Tira de eslóganes: micro-texto con guiño racing, ya no bloque negro */
.tagline-strip {
  padding: 2px 20px 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
}
.tagline-strip::before {
  content: "";
  width: 26px; height: 8px;
  background:
    conic-gradient(var(--ink) 90deg, #fff 90deg 180deg, var(--ink) 180deg 270deg, #fff 270deg);
  background-size: 8px 8px;
  border-radius: 2px;
  opacity: 0.85;
}

.closed-banner {
  margin: 8px 20px 2px;
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: var(--shadow);
}
.closed-banner b { color: var(--yellow); }

/* ---------- Navegación de categorías ---------- */
.cat-nav {
  position: sticky;
  top: 74px;
  z-index: 15;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 20px 14px;
  background: rgba(250, 250, 247, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: 0 0 auto;
  background: var(--card);
  border: 0;
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: background 0.15s ease, transform 0.1s ease;
}
.cat-chip:active { transform: scale(0.96); }
.cat-chip.active { background: var(--yellow); }

/* ---------- Menú ---------- */
.menu { padding: 2px 20px 20px; }
.cat-title {
  font-size: 19px;
  margin: 18px 0 2px;
}
.cat-note { color: var(--muted); font-size: 12.5px; font-weight: 600; margin: 2px 0 4px; }
.empty { text-align: center; color: var(--muted); font-weight: 600; padding: 48px 0; }

/* Grid de tarjetas: 2 columnas; la primera con foto de cada categoría es ancha */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 12px 0 6px;
}
.item {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.item:active { transform: scale(0.985); }
.item.wide { grid-column: 1 / -1; }
.item .emoji {
  width: 100%;
  /* Mismo motivo que en .d-photo: hija de un flex en columna, y sin esto una
     foto vertical estira la tarjeta y la de al lado con ella. */
  aspect-ratio: 16 / 11;
  min-height: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 52px;
  background: #F4F2EA;
}
.item.wide .emoji { aspect-ratio: 16 / 8; }
.item .emoji.photo { background: #EEECE4; }
.item .emoji.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item .info { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.item h3 { font-size: 14.5px; margin: 0; }
.item p {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  margin: 4px 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item .row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.item .price { font-weight: 800; font-size: 15px; }
.item .price small { color: var(--muted); font-size: 10px; font-weight: 700; }
.item.unavailable { opacity: 0.45; filter: grayscale(0.6); }
.add-btn {
  background: var(--yellow);
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 800;
  font-size: 13px;
  transition: transform 0.1s ease;
}
.add-btn:active { transform: scale(0.94); }

/* ---------- Barra de carrito ---------- */
.cart-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(440px, calc(100% - 40px));
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
  box-shadow: var(--shadow-lift);
  z-index: 30;
}
/* Un círculo con el número en el centro. Antes era una pastilla con padding,
   y la versión chica le fijaba ancho y alto: entre el padding y el tamaño
   fijo, el número quedaba corrido hacia abajo y a la derecha. */
.cart-bar .count {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 999px;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cart-bar .label { flex: 1; text-align: left; }
.cart-bar .total { color: var(--yellow); }

/* ---------- Pantallas (checkout / estado) ---------- */
.screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--paper);
  overflow-y: auto;
}
.screen .inner { max-width: 480px; margin: 0 auto; padding: 18px 20px 60px; }
.screen .back {
  background: var(--card);
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.screen h2 { font-size: 24px; margin: 6px 0 14px; }

.summary {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px 16px;
  margin-bottom: 18px;
}
.summary .line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.summary .line:last-child { border-bottom: 0; }
.summary .line .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.summary .line .meta b { font-size: 14px; }
.summary .line .meta small { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.summary .line .li-price { font-weight: 800; font-size: 14px; }
.summary .line .li-remove {
  align-self: flex-start;
  background: none;
  border: 0;
  color: var(--danger);
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 0 0;
}
.summary .line.total { font-weight: 800; font-size: 16px; justify-content: space-between; }

.qty-ctrl { display: flex; align-items: center; gap: 4px; }
.qty-ctrl button {
  width: 30px; height: 30px;
  border: 0;
  border-radius: 999px;
  background: #F1EFE8;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}
.qty-ctrl .n { min-width: 22px; text-align: center; font-weight: 800; font-size: 14px; }

.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field .hint { display: inline; color: var(--muted); font-weight: 600; font-size: 11.5px; }
.field input, .field textarea {
  width: 100%;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-soft); }

.btn-primary {
  width: 100%;
  background: var(--yellow);
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 16px;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 10px 26px rgba(255, 200, 0, 0.35);
  margin-top: 6px;
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.6; }

.btn-ghost {
  width: 100%;
  background: var(--card);
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 14px;
  font-weight: 800;
  font-size: 14.5px;
  box-shadow: var(--shadow);
}
.btn-cancel {
  width: 100%;
  background: none;
  color: var(--danger);
  border: 0;
  padding: 14px;
  font-weight: 700;
  font-size: 13.5px;
  margin-top: 4px;
}

/* ---------- Pago ---------- */
.pay-title { font-weight: 800; font-size: 14px; margin: 4px 0 8px; }
/* Baja de línea si no caben: con Yappy la caja tiene cuatro botones y en
   una tableta angosta el último ("Canje") quedaba cortado fuera de la vista. */
.pay-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pay-opt {
  flex: 1 1 88px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  font-weight: 700;
  font-size: 13.5px;
}
.pay-opt.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.pay-note { color: var(--muted); font-size: 13px; font-weight: 600; }
.yappy-box {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  margin-bottom: 12px;
  font-size: 13.5px;
}
.yappy-box p { margin: 0 0 8px; }
.yappy-dest { font-weight: 800; font-size: 17px; }

/* ---------- Estado del pedido ---------- */
.status-hero { display: flex; justify-content: center; margin: 4px 0 16px; }
.code-badge {
  background: var(--ink);
  color: #fff;
  border-radius: 20px;
  padding: 14px 26px;
  text-align: center;
  box-shadow: var(--shadow-lift);
}
.code-badge small { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 2px; }
.code-badge b { font-size: 34px; font-weight: 800; letter-spacing: 0.12em; color: var(--yellow); }

.ring-wrap { display: flex; justify-content: center; margin: 8px 0 16px; }
.ring { position: relative; width: 200px; height: 200px; }
.ring svg { transform: rotate(-90deg); }
.ring .bg { fill: none; stroke: #EEECE4; stroke-width: 12; }
.ring .fg { fill: none; stroke: var(--yellow); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset 0.6s ease; }
.ring .center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ring .center .big { font-size: 52px; font-weight: 800; letter-spacing: -0.03em; }
.ring .center .unit { color: var(--muted); font-size: 12.5px; font-weight: 700; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 800;
  font-size: 13.5px;
  box-shadow: var(--shadow);
}
.status-pill .dot { width: 9px; height: 9px; border-radius: 999px; background: var(--muted); }
.s-preparando .dot { background: var(--yellow); animation: pulse 1.4s infinite; }
.s-listo { background: var(--ok); color: #fff; }
.s-listo .dot { background: #fff; }
.s-entregado { background: var(--ink); color: #fff; }
.s-entregado .dot { background: var(--yellow); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.ready-banner {
  background: var(--ok);
  color: #fff;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-lift);
  margin-bottom: 16px;
}
.ready-banner h3 { margin: 0 0 4px; font-size: 22px; }
.ready-banner p { margin: 0; font-weight: 600; font-size: 14px; }

.car-note {
  background: var(--yellow-soft);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.car-note b { font-weight: 800; }

.arrive-row { display: flex; gap: 8px; margin-bottom: 14px; }
.arrive-row button {
  flex: 1;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 12px;
  font-weight: 700;
  font-size: 13px;
}
.arrive-row button.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.urgent {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  margin-bottom: 14px;
}
.urg-label { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.urg-row { display: flex; gap: 8px; flex-wrap: wrap; }
.urg-btn {
  flex: 1;
  min-width: 130px;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 14px;
  font-weight: 800;
  font-size: 13px;
}
.urg-btn.wa { background: #22C15E; color: #fff; }
.urg-btn.call { background: var(--ink); color: #fff; }

/* ---------- Tarjeta de puntos del pedido (antes, el Food Lovers Club) ---------- */
.club-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-lift);
}
.club-title { font-weight: 800; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--yellow); }
.club-headline { margin: 8px 0 10px; font-size: 14px; font-weight: 600; line-height: 1.45; }
.club-headline b { color: var(--yellow); }
.club-dots { display: flex; gap: 8px; margin-bottom: 8px; }
.club-dot {
  width: 32px; height: 32px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  font-weight: 800;
  font-size: 13px;
}
.club-dot.on { background: var(--yellow); color: var(--ink); }
.club-foot { margin: 0; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.75); }

/* ---------- Mensajes ---------- */
.msgs {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}
.msgs h4 { margin: 0 0 10px; font-size: 14px; }
.msg {
  border-radius: 14px;
  padding: 10px 13px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 8px;
  max-width: 88%;
}
.msg small { display: block; font-size: 10.5px; font-weight: 700; opacity: 0.6; margin-top: 3px; }
.msg.cliente { background: var(--yellow-soft); margin-left: auto; }
.msg.cocina { background: #F1EFE8; }
.msg-form { display: flex; gap: 8px; margin-top: 10px; }
.msg-form input {
  flex: 1;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  outline: none;
}
.msg-form input:focus { border-color: var(--yellow); }
.msg-form button {
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 800;
  font-size: 13.5px;
}

/* ---------- Bottom sheet de variantes ---------- */
.sheet-backdrop {
  position: fixed; inset: 0;
  background: rgba(20, 20, 15, 0.45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet {
  width: min(480px, 100%);
  background: var(--paper);
  border-radius: 26px 26px 0 0;
  padding: 22px 20px 26px;
  max-height: 82vh;
  overflow-y: auto;
  animation: sheetUp 0.22s ease;
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0.6; } to { transform: none; opacity: 1; } }
.sheet h3 { margin: 0 0 4px; font-size: 20px; }
.sheet .sheet-desc { color: var(--muted); font-size: 13px; font-weight: 600; margin: 0 0 14px; }
.sheet-vars { margin-top: 6px; }
.variant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 13px 16px;
  margin-bottom: 10px;
}
.variant-row .v-name { font-weight: 700; font-size: 14.5px; }
.variant-row .v-right { display: flex; align-items: center; gap: 12px; }
.variant-row .v-price { font-weight: 800; font-size: 15px; }
.variant-row .v-add {
  width: 36px; height: 36px;
  background: var(--yellow);
  border: 0;
  border-radius: 999px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}
.sheet-close {
  width: 100%;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 14px;
  font-weight: 800;
  font-size: 15px;
  margin-top: 8px;
}

/* Modificadores (salsa, cover…) */
.opt-group { margin-bottom: 12px; }
.opt-name { font-weight: 800; font-size: 13.5px; margin-bottom: 8px; }
.opt-name .req { color: var(--danger); }
.opt-choices { display: flex; gap: 8px; flex-wrap: wrap; }
.opt-chip {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 700;
}
.opt-chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.opt-warn { color: var(--danger); font-size: 12.5px; font-weight: 700; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%) translateY(16px);
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 13.5px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 80;
  max-width: calc(100% - 40px);
  box-shadow: var(--shadow-lift);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =====================================================================
   COCINA — consola de colaboradores (misma paleta, prioriza legibilidad)
   ===================================================================== */

/* Banner del club en cocina */

/* ---------- 🧠 Vista de clientes (cocina) ---------- */

/* ---------- "¿Lo de siempre?" — repetir último pedido ---------- */
.usual-banner { padding: 4px 20px 2px; }
.usual-inner {
  display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff;
  border-radius: 18px; padding: 13px 16px;
  box-shadow: var(--shadow-lift);
}
.usual-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.usual-txt b { font-size: 14.5px; }
.usual-txt span {
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.75);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.usual-txt small { font-size: 11px; font-weight: 700; color: var(--yellow); }
#usualBtn {
  flex: 0 0 auto;
  background: var(--yellow); color: var(--ink);
  border: 0; border-radius: 999px;
  padding: 11px 16px; font-weight: 800; font-size: 13px;
}
#usualBtn:active { transform: scale(0.95); }

/* ---------- 🎛️ Control en vivo (cocina) ---------- */
.ctl { display: flex; flex-direction: column; gap: 14px; }
.ctl-status {
  background: #E4F5EA; color: var(--ok);
  border-radius: 14px; padding: 12px 16px; font-size: 14.5px; font-weight: 600;
}
.ctl-status.paused { background: #FDEBEC; color: var(--danger); }
.ctl-block { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 16px 18px; }
.ctl-block h3 { margin: 0 0 4px; font-size: 16px; }
.ctl-block > p { margin: 0 0 12px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.ctl-block textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 10px 12px; font-family: inherit; font-size: 13.5px; font-weight: 600;
  outline: none; resize: vertical; margin-bottom: 10px;
}
.ctl-block textarea:focus { border-color: var(--yellow); }
.ctl-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ctl-btns button {
  border: 0; border-radius: 999px; padding: 11px 18px;
  font-weight: 800; font-size: 13.5px; background: #F1EFE8; color: var(--ink);
}
.ctl-btns button.resume { background: var(--ok); color: #fff; }
.ctl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.ctl-cat h4 {
  margin: 0 0 6px; font-size: 11.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.ctl-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px 8px 12px; border-radius: 12px; background: var(--paper); margin-bottom: 6px;
  font-size: 13.5px; font-weight: 700;
}
.ctl-name { flex: 1; min-width: 0; }
/* Botón explícito en vez de una casilla invertida: en medio de un servicio,
   "Agotar" se equivoca menos que desmarcar "disponible". */
.ctl-btn {
  flex: 0 0 auto; border: 0; border-radius: 999px;
  padding: 8px 14px; font-weight: 800; font-size: 12px;
  background: var(--ink); color: #fff;
}
.ctl-btn.undo { background: var(--ok); color: #fff; }
.ctl-btn:active { transform: scale(0.94); }
.ctl-item.off { background: #FDEBEC; }
.ctl-item.off .ctl-name { text-decoration: line-through; opacity: 0.6; }

/* ---------- Cerrado / en pausa: nada invita a pedir ---------- */
.add-btn:disabled { opacity: .38; filter: grayscale(1); cursor: not-allowed; }
.cart-bar.closed {
  background: var(--ink); color: var(--yellow);
  justify-content: center; font-size: 14px; cursor: default;
}
.cart-bar.closed .label { text-align: center; flex: 0 1 auto; }

/* Opción requerida sin elegir: el aviso arriba y el grupo resaltado */
.opt-warn {
  background: #FDEBEC; border-radius: 12px; padding: 10px 13px;
  margin: 0 0 12px; font-size: 13px;
}
.opt-group.missing {
  background: #FDEBEC; border-radius: 14px;
  padding: 10px 12px; margin: 0 -12px 12px;
}
.opt-group.missing .opt-name { color: var(--danger); }

/* Estado "listo": el código manda; el resto se abre si hace falta */
.extras {
  background: var(--card); border-radius: 16px;
  box-shadow: var(--shadow); padding: 4px 16px; margin-bottom: 14px;
}
.extras summary {
  cursor: pointer; padding: 13px 0; font-weight: 800; font-size: 13.5px;
  list-style: none; color: var(--muted);
}
.extras summary::-webkit-details-marker { display: none; }
.extras summary::after { content: " ▾"; }
.extras[open] summary::after { content: " ▴"; }
.extras > *:not(summary) { margin-bottom: 12px; }

/* Reseña al entregar */
.review-card {
  background: var(--yellow-soft); border-radius: var(--radius);
  padding: 18px; text-align: center; margin-bottom: 14px;
}
.review-card b { font-size: 17px; }
.review-card p { margin: 4px 0 12px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.review-btn {
  display: inline-block; background: var(--ink); color: #fff;
  text-decoration: none; border-radius: 999px; padding: 12px 22px;
  font-weight: 800; font-size: 14px;
}

/* El aviso flotante no puede tapar la casilla de promos del checkout */
#checkout:not(.hidden) ~ .toast,
#status:not(.hidden) ~ .toast { bottom: auto; top: 16px; }

/* ---------- Verificación de pago (prepago obligatorio) ---------- */
.pv {
  background: #FDEBEC; border-radius: 14px;
  padding: 12px 14px; margin: 10px 0;
}
.pv-top { font-weight: 800; font-size: 13.5px; color: var(--danger); margin-bottom: 6px; }
.pv-ref { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.pv-ref b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 17px; letter-spacing: 0.04em; }
.pv-sinref { color: var(--muted); font-size: 13px; font-weight: 700; }
.pv-monto { font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.pv-btn {
  width: 100%; background: var(--ok); color: #fff; border: 0;
  border-radius: 999px; padding: 12px; font-weight: 800; font-size: 14px;
}
.pv-btn:active { transform: scale(0.98); }

/* Body congelado mientras hay una pantalla completa encima (ver openSheet). */
body.locked { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
.screen { overscroll-behavior: contain; }

/* ---------- Prepago: el cliente espera la confirmación del pago ---------- */
.pago-wait {
  background: #FFF8E1; border: 1px solid #F2DFA0; border-radius: 18px;
  padding: 22px 18px; text-align: center; margin-bottom: 14px;
}
.pago-wait h3 { margin: 10px 0 6px; font-size: 19px; }
.pago-wait p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.pago-ref { margin-top: 12px; font-size: 13px; color: var(--muted); }
.pago-ref b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); letter-spacing: 0.04em; }
.pago-spin {
  width: 34px; height: 34px; margin: 0 auto; border-radius: 50%;
  border: 3px solid #EBD9A6; border-top-color: var(--yellow);
  animation: pago-gira 0.9s linear infinite;
}
@keyframes pago-gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pago-spin { animation: none; } }
.status-pill.s-pago { background: #FFF3D0; color: #8A6A12; }

/* ---------- Botón de Pago Yappy (web component oficial) ---------- */
.yappy-btn-wrap { margin: 12px 0 6px; display: flex; justify-content: center; }
.yappy-btn-wrap btn-yappy { width: 100%; max-width: 340px; }
.yappy-boton p { text-align: center; }

/* ---------- Pago con tarjeta (MetroBank) ----------
   Comparte caja con Yappy: es la misma pregunta. Sale plegado y en gris para
   que Yappy siga siendo lo primero que ve el ojo. */
.tj-sep {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.tj-sep::before, .tj-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.tj-abrir {
  width: 100%;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 14px;
  font-family: inherit;
  font-weight: 800;
  font-size: 14.5px;
  color: var(--ink);
  cursor: pointer;
}
.tj-abrir.abierto { border-color: var(--ink); }
.tj-form { margin-top: 14px; text-align: left; }
/* Vence y CVV van juntos: son cortos y en el celular ocupar dos renglones
   enteros por cuatro dígitos empuja el botón de pagar fuera de la vista. */
.tj-fila { display: flex; gap: 10px; }
.tj-fila .field { flex: 1; }
.tj-error {
  background: #fdecec;
  color: #a4242d;
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
}
.tj-nota { text-align: center; margin: 10px 0 0; }

/* =====================================================================
   REDISEÑO — App de 5 secciones (Inicio · Ordenar · Rewards · Menú · Ofertas)
   Tarjetas con FOTO a sangre y texto encima (patrón de Dunkin), muy juntas
   entre sí. Iconos SVG en color de marca, no emojis.
   ===================================================================== */

/* Ritmo del layout: márgenes laterales y separación entre tarjetas.
   Ajusta estos dos y se re-espacia toda la app. */
:root { --gutter: 10px; --gap: 6px; }

/* --- Barra de tabs ---------------------------------------------------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--white); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -6px 24px rgba(20, 20, 10, .06);
}
.tabbar button {
  appearance: none; border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 9px 2px 8px; color: var(--muted);
  font-family: var(--font); font-weight: 700; font-size: 10.5px;
  transition: color .15s ease;
}
.tabbar .ti { display: grid; place-items: center; width: 24px; height: 24px; }
.tabbar .ti svg { width: 23px; height: 23px; }
.tabbar button.on { color: var(--ink); }
.tabbar button.on .ti { color: var(--ink); }

/* Rewards es el centro: círculo amarillo elevado. */
.tabbar button.t-mid .ti {
  width: 42px; height: 42px; border-radius: 999px;
  background: var(--yellow); color: var(--ink);
  margin-top: -14px; box-shadow: 0 4px 12px rgba(255, 200, 0, .45);
  border: 3px solid var(--white);
}
.tabbar button.t-mid .ti svg { width: 21px; height: 21px; }
.tabbar button.t-mid.on .ti { box-shadow: 0 4px 16px rgba(255, 200, 0, .7); }

.tab-screen { display: none; padding-bottom: 92px; }
.tab-screen.on { display: block; }

/* --- Saludo ----------------------------------------------------------- */
.greet { padding: 16px var(--gutter) 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.greet h1 { margin: 0; font-size: 25px; line-height: 1.1; font-family: var(--display); font-weight: 800; }
.greet .sub { margin: 3px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); cursor: pointer; font-size: 17px;
  display: grid; place-items: center; box-shadow: var(--shadow); flex: 0 0 auto;
}

/* --- TARJETA DE MIEMBRO ----------------------------------------------
   Amarillo de marca, con el QR dentro (como la tarjeta de Dunkin Rewards).
   Es la pieza principal de la pantalla: tiene que verse premium. */
.member-card {
  position: relative; overflow: hidden;
  margin: 0 var(--gutter); width: calc(100% - var(--gutter) * 2);
  border: 0; border-radius: 24px; padding: 16px 16px 14px;
  background: var(--yellow); color: var(--ink);
  box-shadow: 0 10px 26px rgba(255, 200, 0, .34);
  font-family: var(--font); text-align: left; cursor: pointer; display: block;
}
/* Aros decorativos, como el fondo de las tarjetas de Dunkin. */
.member-card::before, .member-card::after {
  content: ''; position: absolute; border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, .07); pointer-events: none;
}
.member-card::before { width: 230px; height: 230px; right: -96px; top: -104px; }
.member-card::after  { width: 160px; height: 160px; right: -54px; top: -52px; }

.mc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 1; }
.mc-brand { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .12em; }
.mc-tier { background: var(--ink); color: var(--yellow); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 800; white-space: nowrap; }

/* Fila del medio: QR a la izquierda, puntos a la derecha. */
.mc-mid { display: flex; align-items: center; gap: 14px; margin-top: 14px; position: relative; z-index: 1; }
.mc-qr { width: 92px; height: 92px; flex: 0 0 auto; background: var(--white); border-radius: 14px; padding: 7px; box-shadow: 0 3px 10px rgba(0,0,0,.14); }
.mc-qr svg { display: block; width: 100%; height: 100%; }
.mc-nums { min-width: 0; }
.mc-pts { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: .95; }
.mc-pts small { font-size: 14px; font-weight: 800; margin-left: 4px; opacity: .65; }
.mc-sub { font-size: 12px; font-weight: 700; opacity: .68; margin-top: 3px; }
.mc-id { font-size: 11px; font-weight: 700; opacity: .55; margin-top: 8px; letter-spacing: .06em; }

.mc-prog { margin-top: 13px; position: relative; z-index: 1; }
.mc-bar { height: 8px; border-radius: 999px; background: rgba(0, 0, 0, .13); overflow: hidden; }
.mc-bar > i { display: block; height: 100%; border-radius: 999px; background: var(--ink); transition: width .5s ease; }
.mc-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 7px; font-size: 11.5px; font-weight: 800; opacity: .72; }

/* --- Secciones y tarjetas -------------------------------------------- */
.section-h { padding: 14px var(--gutter) 7px; font-size: 16px; font-weight: 800; font-family: var(--display); }

/* Texto a la izquierda, foto pegada al borde derecho (tarjeta "PICKUP"). */
.split-card {
  display: flex; align-items: stretch; width: calc(100% - var(--gutter) * 2); margin: 0 var(--gutter);
  padding: 0; overflow: hidden; cursor: pointer; text-align: left; min-height: 98px;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); font-family: var(--font);
  transition: transform .12s ease;
}
.split-card:active { transform: scale(.985); }
.split-card .sc-txt { flex: 1 1 auto; min-width: 0; padding: 14px 12px 14px 16px; display: flex; flex-direction: column; justify-content: center; }
.split-card .sc-t { display: block; font-size: 16.5px; font-weight: 800; color: var(--ink); letter-spacing: -.2px; }
.split-card .sc-d { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.split-card .sc-photo { flex: 0 0 38%; background-size: cover; background-position: center; background-color: var(--yellow-soft); }

/* --- Tarjeta de producto (estilo Dunkin) ------------------------------
   La foto llena la tarjeta y el texto va encima, sobre un degradado.
   Como las fotos de Fud Lab son recortes sobre blanco, el degradado sube más
   alto y arranca más opaco que el de Dunkin: sin eso, el texto blanco se
   pierde contra las zonas claras de la foto. */
.photo-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; cursor: pointer; border-radius: 18px; border: 0; padding: 0;
  text-align: left; font-family: var(--font); background: var(--ink);
  box-shadow: 0 2px 8px rgba(20,20,10,.10);
  transition: transform .12s ease;
}
.photo-card:active { transform: scale(.985); }
.photo-card .pc-photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-color: var(--yellow-soft);
}
.photo-card .pc-body {
  position: relative; z-index: 1; display: block; padding: 52px 13px 13px; color: #fff;
  background: linear-gradient(to top,
    rgba(0,0,0,.92) 0%, rgba(0,0,0,.80) 28%, rgba(0,0,0,.45) 62%, rgba(0,0,0,0) 100%);
}
.photo-card .pc-t { display: block; font-size: 15px; font-weight: 800; line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.photo-card .pc-d { display: block; font-size: 11.5px; font-weight: 600; opacity: .92;
  margin-top: 2px; line-height: 1.3; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.photo-card .pc-tag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--yellow); color: var(--ink); border-radius: 999px;
  padding: 5px 11px; font-size: 11.5px; font-weight: 800;
  box-shadow: 0 2px 8px rgba(0,0,0,.28);
}

/* --- Carrusel y rejilla (pegados, como Dunkin) ------------------------ */
.carousel {
  display: flex; gap: var(--gap); overflow-x: auto; padding: 0 var(--gutter) 4px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  /* Sin esto, scroll-snap alinea la primera tarjeta al borde del área de
     scroll ignorando el padding: el navegador se desplaza justo esos 10px y
     el carrusel queda pegado a la izquierda, desalineado con las demás
     secciones. scroll-padding hace que el snap respete el margen. */
  scroll-padding-left: var(--gutter);
  scroll-padding-right: var(--gutter);
}
.carousel::-webkit-scrollbar { display: none; }
/* El ancho define cuánto asoma la siguiente tarjeta. Al 70% se cortaba casi
   por la mitad y parecía un error de maquetación; al 88% asoma una franja
   limpia que se lee como "hay más, desliza". */
.carousel .photo-card { flex: 0 0 88%; scroll-snap-align: start; min-height: 186px; }
.dots { display: flex; gap: 5px; justify-content: center; padding: 9px 0 0; }
.dots i { width: 6px; height: 6px; border-radius: 999px; background: var(--line); transition: background .2s, width .2s; }
.dots i.on { background: var(--yellow); width: 18px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding: 0 var(--gutter); }
.grid2 .photo-card { min-height: 152px; }

/* La barra del carrito flota SOBRE la tabbar, no debajo. */
.cart-bar { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }

/* Los <span> que estructuran la tarjeta de miembro deben apilarse. */
.member-card .mc-head, .member-card .mc-mid, .member-card .mc-prog,
.member-card .mc-bar, .member-card .mc-foot { display: flex; }
.member-card .mc-prog, .member-card .mc-bar { display: block; }
.member-card .mc-pts, .member-card .mc-sub, .member-card .mc-id { display: block; }
.member-card .mc-qr { display: block; }
.member-card .mc-bar > i { display: block; }

/* --- Barra de progreso por etapas -------------------------------------
   En vez de una barra lisa, muestra los 4 tiers como paradas del recorrido
   (metáfora de carreras: vas avanzando de pit stop en pit stop). */
.mc-track { position: relative; margin-top: 4px; height: 26px; }
.mc-rail { position: absolute; left: 0; right: 0; top: 7px; height: 7px; border-radius: 999px; background: rgba(0,0,0,.14); overflow: hidden; }
.mc-rail > i { display: block; height: 100%; border-radius: 999px; background: var(--ink); transition: width .6s cubic-bezier(.3,.9,.3,1); }
.mc-stops { position: absolute; inset: 0; display: flex; justify-content: space-between; }
.mc-stop { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.mc-dot {
  width: 15px; height: 15px; border-radius: 999px; margin-top: 3px;
  background: var(--yellow); border: 3px solid rgba(0,0,0,.18);
  display: grid; place-items: center; font-size: 8px; transition: all .3s ease;
}
/* Tier ya alcanzado: relleno negro. El actual además crece y late. */
.mc-stop.done .mc-dot { background: var(--ink); border-color: var(--ink); }
.mc-stop.now .mc-dot { transform: scale(1.34); box-shadow: 0 0 0 3px rgba(0,0,0,.14); }
.mc-stop .mc-name { font-size: 8.5px; font-weight: 800; opacity: .5; letter-spacing: .02em; }
.mc-stop.done .mc-name { opacity: .85; }

/* --- Badge de tier ----------------------------------------------------
   Más vivo: el emoji va en su propia burbuja amarilla dentro de la pastilla. */
.mc-tier {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ink); color: var(--white);
  border-radius: 999px; padding: 5px 13px 5px 5px;
  font-size: 12.5px; font-weight: 800; white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0,0,0,.22);
}
.mc-tier .tb-ico {
  width: 24px; height: 24px; border-radius: 999px; background: var(--yellow);
  display: grid; place-items: center; font-size: 13px; flex: 0 0 auto;
}
.mc-tier .tb-name { color: var(--yellow); letter-spacing: .01em; }

/* Estructura de la tarjeta de miembro (spans dentro de un <button>). */
.member-card .mc-track, .member-card .mc-rail, .member-card .mc-stop,
.member-card .mc-dot, .member-card .mc-name { display: block; }
.member-card .mc-track { display: block; }
.member-card .mc-stops { display: flex; }
.member-card .mc-stop { display: flex; }

/* Las paradas pendientes eran amarillo sobre amarillo (invisibles). Blancas. */
.mc-dot { background: var(--white); border-color: rgba(0,0,0,.22); }

/* =====================================================================
   REWARDS
   ===================================================================== */

.pill-btn {
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  border-radius: 999px; padding: 9px 15px; font-family: var(--font);
  font-weight: 800; font-size: 12.5px; cursor: pointer; box-shadow: var(--shadow);
  flex: 0 0 auto; white-space: nowrap;
}

.wide-btn {
  display: block; width: calc(100% - var(--gutter) * 2); margin: 10px var(--gutter) 0;
  padding: 14px; border-radius: 14px; border: 2px solid var(--ink); background: none;
  color: var(--ink); font-family: var(--font); font-weight: 800; font-size: 13.5px;
  cursor: pointer; transition: transform .12s ease;
}
.wide-btn:active { transform: scale(.985); }
.wide-btn.dark { background: var(--ink); color: var(--yellow); border-color: var(--ink); }

/* El canje que aún no alcanzas se ve A COLOR: en gris no antoja, y la idea es
   justamente que lo quieras. Lo único distinto es la pastilla del precio, que
   avisa que falta. El bloqueo real ocurre dentro del popup. */
.photo-card.short .pc-tag { background: var(--ink); color: var(--yellow); }

/* --- Escalera de niveles --------------------------------------------- */
.tier-list { padding: 0 var(--gutter); display: grid; gap: var(--gap); }
.tier-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 1px 3px rgba(20,20,10,.05);
}
/* Los tiers no alcanzados se ven apagados: hay que querer llegar. */
.tier-row:not(.reached) { opacity: .5; }
.tier-row.current { border-color: var(--ink); border-width: 2px; background: var(--yellow-soft); }
.tier-row .tr-ico {
  width: 40px; height: 40px; border-radius: 999px; background: var(--yellow-soft);
  display: grid; place-items: center; font-size: 19px; flex: 0 0 auto;
}
.tier-row.current .tr-ico { background: var(--yellow); }
.tier-row .tr-txt { flex: 1 1 auto; min-width: 0; }
.tier-row .tr-name { display: block; font-size: 14px; font-weight: 800; }
.tier-row .tr-name b { color: var(--muted); font-weight: 700; font-size: 12px; }
.tier-row .tr-perk { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-top: 2px; line-height: 1.3; }
.tier-row .tr-min { font-size: 11.5px; font-weight: 800; color: var(--muted); flex: 0 0 auto; }

/* --- Referidos -------------------------------------------------------- */
.refer-card {
  margin: 0 var(--gutter); padding: 18px; border-radius: 20px;
  background: var(--ink); color: var(--white); box-shadow: var(--shadow-lift);
}
.refer-card .rc-t { font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.15; }
.refer-card .rc-d { font-size: 12.5px; font-weight: 600; opacity: .74; margin-top: 6px; line-height: 1.4; }
.refer-card .rc-code {
  margin-top: 14px; padding: 13px; border-radius: 12px; text-align: center;
  background: rgba(255,255,255,.09); border: 1px dashed rgba(255,255,255,.3);
  color: var(--yellow); font-weight: 800; font-size: 16px; letter-spacing: .1em;
}
.refer-card .wide-btn { width: 100%; margin: 12px 0 0; background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

/* --- QR a pantalla completa ------------------------------------------ */
.qr-modal {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(15,15,12,.72); padding: 24px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.qm-box {
  background: var(--white); border-radius: 24px; padding: 22px; width: min(360px, 100%);
  text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.qm-t { font-weight: 800; font-size: 15px; }
.qm-qr { width: min(250px, 68vw); height: min(250px, 68vw); margin: 16px auto 0; }
.qm-qr svg { display: block; width: 100%; height: 100%; }
.qm-id { margin-top: 12px; font-weight: 800; font-size: 14px; letter-spacing: .1em; }
.qm-note { margin-top: 4px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.qm-box .wide-btn { width: 100%; margin: 16px 0 0; }

/* El flex del contenedor estiraba los puntos: se fijan cuadrados. */
.mc-dot { flex: 0 0 auto; min-width: 15px; min-height: 15px; box-sizing: border-box; }

/* =====================================================================
   REFERIDOS — la recompensa primero, los pasos después.
   ===================================================================== */
.refer-card {
  position: relative; overflow: hidden;
  margin: 0 var(--gutter); padding: 18px; border-radius: 22px;
  background: var(--ink); color: var(--white); box-shadow: var(--shadow-lift);
}
.refer-card .rc-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: .30; filter: grayscale(.2);
}
.refer-card .rc-in { position: relative; z-index: 1; }
.rc-big { font-family: var(--display); font-weight: 800; font-size: 46px; line-height: .9; color: var(--yellow); }
.rc-big small { font-size: 17px; margin-left: 3px; }
.rc-sub { font-size: 14px; font-weight: 800; margin-top: 5px; }
.rc-note { font-size: 12px; font-weight: 600; opacity: .68; margin-top: 3px; }

/* Los 3 pasos: círculos numerados unidos por una línea, no cajas sueltas.
   Como cajas, el texto rompía en distinto número de líneas y quedaban
   desparejas; el número tampoco se leía como parte de una secuencia. */
.rc-steps { position: relative; display: flex; margin-top: 18px; }
/* La línea que une los círculos pasa por detrás, a la altura de su centro. */
.rc-steps::before {
  content: ''; position: absolute; top: 15px; left: 16%; right: 16%; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.34) 0 5px, transparent 5px 10px);
}
.rc-step { position: relative; z-index: 1; flex: 1; text-align: center; }
.rc-step .rs-n {
  display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto;
  border-radius: 99px; background: var(--yellow); color: var(--ink);
  font-size: 13px; font-weight: 800; box-shadow: 0 0 0 4px var(--ink);
}
.rc-step .rs-l {
  display: block; font-size: 10.5px; font-weight: 700; color: var(--white);
  opacity: .82; margin-top: 8px; line-height: 1.25; padding: 0 2px;
}

.rc-codebox { display: flex; gap: 6px; margin-top: 14px; }
.rc-code {
  flex: 1; min-width: 0; padding: 13px 12px; border-radius: 12px; text-align: center;
  background: rgba(255,255,255,.09); border: 1px dashed rgba(255,255,255,.32);
  color: var(--yellow); font-weight: 800; font-size: 14.5px; letter-spacing: .09em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rc-copy {
  flex: 0 0 auto; padding: 0 17px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--yellow); color: var(--ink); font-family: var(--font);
  font-weight: 800; font-size: 13px;
}

/* Cuántos amigos llevas, con premio a la vista. */
.rc-track { margin-top: 14px; }
.rc-dots { display: flex; gap: 5px; }
.rc-dots i { flex: 1; height: 6px; border-radius: 999px; background: rgba(255,255,255,.18); }
.rc-dots i.on { background: var(--yellow); }
.rc-trackfoot { font-size: 11px; font-weight: 700; opacity: .7; margin-top: 7px; }

/* La foto de fondo aclaraba el negro y lo dejaba gris sucio. Baja opacidad
   y una capa oscura encima para que el amarillo siga resaltando. */
.refer-card .rc-bg { opacity: .22; }
.refer-card .rc-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(10,10,9,.55), rgba(10,10,9,.85));
}

/* =====================================================================
   NIVELES — recorrido con la foto del premio.
   La clave: el SIGUIENTE nivel es lo que más resalta de la pantalla. Los
   niveles lejanos van apagados, pero el que sigue va en amarillo, a color y
   con la barra de cuánto falta. Apagar todo lo bloqueado los hacía menos
   deseables, que es lo contrario de lo que queremos.
   ===================================================================== */
/* =====================================================================
   REFERIDOS — la recompensa primero, los pasos después.
   ===================================================================== */
.refer-card {
  position: relative; overflow: hidden;
  margin: 0 var(--gutter); padding: 18px; border-radius: 22px;
  background: var(--ink); color: var(--white); box-shadow: var(--shadow-lift);
}
.refer-card .rc-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: .30; filter: grayscale(.2);
}
.refer-card .rc-in { position: relative; z-index: 1; }
.rc-big { font-family: var(--display); font-weight: 800; font-size: 46px; line-height: .9; color: var(--yellow); }
.rc-big small { font-size: 17px; margin-left: 3px; }
.rc-sub { font-size: 14px; font-weight: 800; margin-top: 5px; }
.rc-note { font-size: 12px; font-weight: 600; opacity: .68; margin-top: 3px; }

/* Los 3 pasos: deja claro cómo se gana sin leer un párrafo. */

.rc-codebox { display: flex; gap: 6px; margin-top: 14px; }
.rc-code {
  flex: 1; min-width: 0; padding: 13px 12px; border-radius: 12px; text-align: center;
  background: rgba(255,255,255,.09); border: 1px dashed rgba(255,255,255,.32);
  color: var(--yellow); font-weight: 800; font-size: 14.5px; letter-spacing: .09em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rc-copy {
  flex: 0 0 auto; padding: 0 17px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--yellow); color: var(--ink); font-family: var(--font);
  font-weight: 800; font-size: 13px;
}

/* Cuántos amigos llevas, con premio a la vista. */
.rc-track { margin-top: 14px; }
.rc-dots { display: flex; gap: 5px; }
.rc-dots i { flex: 1; height: 6px; border-radius: 999px; background: rgba(255,255,255,.18); }
.rc-dots i.on { background: var(--yellow); }
.rc-trackfoot { font-size: 11px; font-weight: 700; opacity: .7; margin-top: 7px; }

/* La foto de fondo aclaraba el negro y lo dejaba gris sucio. Baja opacidad
   y una capa oscura encima para que el amarillo siga resaltando. */
.refer-card .rc-bg { opacity: .22; }
.refer-card .rc-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(10,10,9,.55), rgba(10,10,9,.85));
}

/* =====================================================================
   NIVELES — escalera. Los 4 niveles caben en pantalla y se ven como
   peldaños que suben: el progreso se entiende de un vistazo, sin deslizar.
   ===================================================================== */
.stairs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  align-items: end; padding: 6px var(--gutter) 0;
}
.step {
  appearance: none; border: 0; background: none; padding: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: stretch; font-family: var(--font);
}
/* El peldaño. La altura sube con el nivel — de ahí la escalera. */
.st-bar {
  position: relative; border-radius: 14px 14px 10px 10px;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 9px; box-shadow: 0 3px 10px rgba(20,20,10,.13);
  transition: transform .18s ease, box-shadow .18s ease;
}
.step[data-tier="rookie"]  .st-bar { height: 78px;  background: linear-gradient(160deg, #FDFCF8, #E4E0D3); }
.step[data-tier="piloto"]  .st-bar { height: 106px; background: linear-gradient(160deg, #FFDC57, #FFBE00); }
.step[data-tier="campeon"] .st-bar { height: 138px; background: linear-gradient(160deg, #FFB62E, #EE7C00); }
.step[data-tier="leyenda"] .st-bar { height: 172px; background: linear-gradient(160deg, #3A3A38, #131312); }

.st-ico {
  width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center;
  font-size: 17px; background: rgba(255,255,255,.6); border: 2px solid rgba(255,255,255,.8);
}
.step[data-tier="leyenda"] .st-ico { background: rgba(255,200,0,.18); border-color: rgba(255,200,0,.5); }

/* Bloqueado: apagado. Se ve el peldaño, pero se siente lejos. */
.step.locked .st-bar { filter: saturate(.3) brightness(.97); }
.step.locked .st-ico { opacity: .6; }

/* Donde estás: el peldaño se levanta y lleva un banderín. */
.step.now .st-bar { transform: translateY(-7px); box-shadow: 0 8px 20px rgba(20,20,10,.26); }
.step.now .st-bar::before {
  content: '📍'; position: absolute; top: -21px; left: 50%; transform: translateX(-50%); font-size: 15px;
}
/* El que está seleccionado (para leer su beneficio abajo). */
.step.sel .st-bar { outline: 3px solid var(--ink); outline-offset: -3px; }

.st-name { font-size: 11px; font-weight: 800; margin-top: 7px; color: var(--ink); }
.step.locked .st-name { opacity: .5; }
.st-pts { font-size: 9.5px; font-weight: 700; color: var(--muted); margin-top: 1px; }

/* Panel del beneficio: cambia al tocar un peldaño. */
.step-detail {
  margin: 12px var(--gutter) 0; padding: 14px 15px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(20,20,10,.05);
  display: flex; align-items: center; gap: 12px;
}
.sd-ico { width: 42px; height: 42px; border-radius: 999px; background: var(--yellow-soft);
  display: grid; place-items: center; font-size: 20px; flex: 0 0 auto; }
.sd-txt { flex: 1 1 auto; min-width: 0; }
.sd-name { font-size: 14px; font-weight: 800; }
.sd-perk { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.sd-state { font-size: 11px; font-weight: 800; margin-top: 4px; }
.sd-state.ok { color: #1F8A46; }
.sd-state.no { color: var(--muted); }

/* El QR de la tarjeta es el botón: se toca y se amplía para escanear. */
button.mc-qr { border: 0; cursor: pointer; padding: 7px; }

/* Los <span> del panel de beneficio deben apilarse, no correr en línea. */
.sd-name, .sd-perk, .sd-state { display: block; }
.sd-txt { display: block; }
/* Rookie es casi blanco sobre fondo hueso: un borde lo despega. */
.step[data-tier="rookie"] .st-bar { border: 1px solid var(--line); }

/* =====================================================================
   HOJA INFERIOR (bottom sheet) — detalle de canjes y de niveles.
   ===================================================================== */
.sheet-back {
  position: fixed; inset: 0; z-index: 220; display: flex; align-items: flex-end;
  background: rgba(15,15,12,0); transition: background .22s ease;
  -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px);
}
.sheet-back.in { background: rgba(15,15,12,.62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }

/* Acotada a .sheet-back: sin esto pisaba la hoja del menú, que también usa la
   clase .sheet, y su translateY(100%) la mandaba fuera de pantalla. */
.sheet-back .sheet {
  width: 100%; background: var(--card); border-radius: 26px 26px 0 0; overflow: hidden;
  transform: translateY(100%); transition: transform .26s cubic-bezier(.22,.9,.3,1);
  box-shadow: 0 -12px 40px rgba(0,0,0,.3); padding-bottom: env(safe-area-inset-bottom, 0px);
  max-height: 92vh; overflow-y: auto;
}
.sheet-back.in .sheet { transform: translateY(0); }

/* Barrita de agarre: le dice al pulgar que esto se arrastra. */
.sheet-back .sh-grab { width: 40px; height: 4px; border-radius: 99px; background: var(--line); margin: 9px auto 0; }

.sheet-back .sh-hero { position: relative; height: 188px; background-size: cover; background-position: center;
  background-color: var(--yellow-soft); margin-top: 9px; }
.sh-hero.dim { filter: grayscale(1); }
.sheet-back .sh-tag { position: absolute; left: 14px; bottom: 12px; background: var(--yellow); color: var(--ink);
  border-radius: 99px; padding: 7px 14px; font-size: 13px; font-weight: 800;
  box-shadow: 0 3px 10px rgba(0,0,0,.22); }
.sheet-back .sh-x { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border-radius: 99px;
  border: 0; cursor: pointer; background: rgba(255,255,255,.92); color: var(--ink);
  font-size: 14px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.2); }

.sheet-back .sh-body { padding: 16px 18px 20px; }
.sheet-back .sh-title { font-family: var(--display); font-size: 22px; font-weight: 800; line-height: 1.15; }
.sheet-back .sh-sub { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 5px; line-height: 1.4; }

.sheet-back .sh-rows { margin-top: 14px; border-top: 1px solid var(--line); }
.sheet-back .sh-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0;
  border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.sheet-back .sh-row b { color: var(--ink); font-weight: 800; }

.sheet-back .sh-cta { display: block; width: 100%; margin-top: 16px; padding: 15px; border-radius: 14px; border: 0;
  background: var(--ink); color: var(--yellow); font-family: var(--font); font-weight: 800;
  font-size: 14.5px; cursor: pointer; transition: transform .12s ease; }
.sh-cta:active { transform: scale(.985); }
.sh-cta[disabled] { background: var(--line); color: var(--muted); cursor: default; }

/* Al volverse <button>, los niveles heredaban el azul de botón por defecto de
   Safari en iOS (en Chrome salía negro y no se notaba). */
button.nv, button.nv * { color: var(--ink); }
button.nv .nv-n, button.nv .nv-perk { color: var(--muted); }

.refer-card { padding: 22px 20px; border-radius: 24px; }
.rc-big { font-size: 54px; }
.rc-big small { font-size: 19px; }
.rc-sub { font-size: 15.5px; margin-top: 7px; }
.rc-note { font-size: 12.5px; margin-top: 5px; }
.rc-steps { margin-top: 22px; }
.rc-steps::before { top: 17px; }
.rc-step .rs-n { width: 34px; height: 34px; font-size: 14px; }
.rc-step .rs-l { font-size: 11.5px; margin-top: 10px; }
.rc-codebox { margin-top: 18px; }
.rc-code { padding: 15px 12px; font-size: 15.5px; }
.rc-copy { padding: 0 19px; font-size: 13.5px; }
.rc-track { margin-top: 18px; }
.rc-dots i { height: 7px; }
.rc-trackfoot { font-size: 11.5px; margin-top: 9px; }

/* --- Tarjeta "Recoger en el carro" ------------------------------------
   Copia de la referencia de Ralph: ilustración en CÍRCULO a la izquierda,
   título y descripción, luego "Sin bajarte" en pastilla y el tiempo en
   negrita separados por una barra, y flecha en cuadrado redondeado. */
.pickup-card {
  display: flex; align-items: center; gap: 14px;
  width: calc(100% - var(--gutter) * 2); margin: 0 var(--gutter);
  padding: 16px 16px 16px 14px; cursor: pointer; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 2px 10px rgba(20,20,10,.08); font-family: var(--font);
  transition: transform .12s ease;
}
.pickup-card:active { transform: scale(.985); }

/* --- Tarjeta de sellos ---------------------------------------------------
   Ocupa el mismo sitio que la tarjeta de ordenar, solo que para miembros. El
   círculo apagado es EL MISMO logo en gris, no otro archivo: dos imágenes
   distintas se desincronizan el día que cambie el logo. */
/* --- INICIO: una sola línea ------------------------------------------------
   Inicio es para decidir qué pedir. Las dos tarjetas enteras aquí empujaban
   las promos fuera de la pantalla y lo convertían en la pantalla de los
   sellos. Aquí van solo los contadores; los círculos están a un toque. */
.sellos-linea {
  /* Envuelve a propósito: en un teléfono angosto el aviso de "tienes un
     premio" no cabe en la misma línea y se cortaba a media palabra. Pasa
     abajo y la fila crece — solo cuando hay premio, que es justo el momento
     que merece más sitio. */
  display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap;
  width: calc(100% - var(--gutter) * 2); margin: 0 var(--gutter);
  padding: 13px 14px; cursor: pointer; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 2px 10px rgba(20,20,10,.08); font-family: var(--font);
  transition: transform .12s ease;
}
.sellos-linea:active { transform: scale(.985); }
.sellos-linea.lista { border-color: var(--yellow); background: #fffdf3; }
.sln-t { font-family: var(--display); font-size: 15px; font-weight: 800; flex: none; }
.sln-nums { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.sln-p {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 999px; padding: 5px 10px; background: rgba(0,0,0,.05);
  font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums;
}
/* La que está completa se enciende: es lo único que pide una acción. */
.sln-p.lista { background: var(--yellow); }
.sln-emo { font-size: 13px; line-height: 1; }
.sln-badge {
  /* Nunca se parte ni se recorta: es el único texto de la fila que pide una
     acción. Si no cabe al lado, se lleva la fila entera. */
  flex: 0 0 auto; white-space: nowrap;
  border-radius: 999px; padding: 5px 10px; background: var(--yellow);
  font-size: 11px; font-weight: 800; letter-spacing: .02em;
}
.sln-go { flex: none; color: var(--muted); font-size: 19px; font-weight: 800; line-height: 1; }

/* --- REWARDS: las dos enteras ---------------------------------------------
   Esta pantalla SÍ es para mirar lo que tienes, y es donde la gente va a
   buscarlas. Sin botón: no hay nada que abrir, ya se ve todo.
   El círculo apagado es EL MISMO logo en gris, no otro archivo: dos imágenes
   distintas se desincronizan el día que cambie el logo. */
.sellos-bloque {
  width: calc(100% - var(--gutter) * 2); margin: 0 var(--gutter);
  padding: 4px 16px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 2px 10px rgba(20,20,10,.08);
}
.sl-pie {
  margin: 10px 0 0; padding-top: 11px; border-top: 1px solid var(--line);
  font-size: 11.5px; font-weight: 700; color: var(--muted); line-height: 1.45;
}

.sl-rows { display: flex; flex-direction: column; }
.sl-row { display: flex; flex-direction: column; gap: 7px; padding: 12px 0; }
.sl-row + .sl-row { border-top: 1px solid var(--line); }
.sl-row-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sl-row-t { font-size: 14px; font-weight: 800; }
.sl-n { font-size: 13px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }

.sl-fila { display: flex; gap: 7px; }
.sl-c {
  flex: 1 1 0; aspect-ratio: 1 / 1; max-width: 46px;
  display: grid; place-items: center;
  border-radius: 50%; background: rgba(0,0,0,.05);
  border: 2px solid transparent;
}
.sl-c img {
  width: 68%; height: 68%; object-fit: contain;
  filter: grayscale(1) opacity(.3);
  transition: filter .25s ease;
}
.sl-c.on { background: var(--yellow); border-color: rgba(0,0,0,.08); }
.sl-c.on img { filter: none; }

.sl-d { font-size: 12.5px; font-weight: 700; color: var(--muted); line-height: 1.35; }
.sl-row.lista .sl-d { color: #1F7A46; }

/* El mismo dibujo dentro del popup. */
.sellos-modal .sl-rows.grande { margin: 2px 0 14px; text-align: left; }
.sellos-modal .sl-rows.grande .sl-row { padding: 13px 0; }
.sellos-modal .sl-c { max-width: 48px; }
.sellos-modal .sl-row-t { font-size: 15px; }
.sl-modal-ayuda { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); line-height: 1.5; }
/* La letra chica de verdad: que un sello es por pedido y no por unidad. Va
   aquí y no escondida, porque es justo lo que alguien podría entender al
   revés y sentirse estafado en la caja. */
.sl-modal-letra { margin: 0 0 14px; font-size: 11.5px; font-weight: 700; color: var(--muted); line-height: 1.45; opacity: .85; }
.sl-modal-ayuda {
  margin: 0 0 18px; font-size: 13.5px; font-weight: 600;
  line-height: 1.5; color: var(--muted);
}

/* Círculo, no cuadrado. La ilustración ya trae el círculo amarillo dentro. */
.pk-art { flex: 0 0 auto; width: 88px; height: 88px; }
.pk-art svg { width: 100%; height: 100%; display: block; }

.pk-txt { flex: 1 1 auto; min-width: 0; }
.pk-t { display: block; font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -.3px; line-height: 1.15; }
.pk-d { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 5px; line-height: 1.35; }

.pk-chips { display: flex; align-items: center; gap: 9px; margin-top: 11px; }
.pk-chip {
  display: inline-block; padding: 5px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 800; color: #8A6A00; background: #FFF1C4;
}
.pk-div { width: 1px; height: 15px; background: var(--line); flex: 0 0 auto; }
/* El tiempo va en su burbuja, como antes iba el chip que estaba al lado: sin
   ella quedaba como texto suelto en una tarjeta que es toda cajas. */
.pk-time {
  display: inline-block; padding: 5px 11px; border-radius: 999px;
  background: #FFF1C4; color: #8A6A00;
  font-size: 12px; font-weight: 800; white-space: nowrap;
}

.pk-go {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 15px;
  background: var(--yellow); color: var(--ink); display: grid; place-items: center;
  box-shadow: 0 3px 10px rgba(255,200,0,.5);
}
.pk-go svg { width: 22px; height: 22px; }

/* La columna de texto quedaba corta y "Sin bajarte" partía en dos líneas. */
.pk-art { width: 80px; height: 80px; }
.pickup-card { gap: 12px; }
.pk-chip { white-space: nowrap; font-size: 10.5px; padding: 5px 10px; }
.pk-time { font-size: 11px; padding: 5px 10px; }
.pk-d { font-size: 12px; }
.pk-go { width: 44px; height: 44px; }
.pk-chips { gap: 8px; }

/* La ilustración de pickup ya trae su círculo amarillo: se muestra tal cual. */
.pk-art img { width: 100%; height: 100%; display: block; object-fit: contain; }

/* Tarjeta de pickup un poco más grande, como en la referencia. */
.pk-art { width: 96px; height: 96px; }
.pickup-card { padding: 18px 18px 18px 14px; border-radius: 26px; }
.pk-t { font-size: 19px; }
.pk-d { font-size: 12.5px; }
.pk-go { width: 48px; height: 48px; border-radius: 16px; }
.pk-go svg { width: 23px; height: 23px; }

/* Marca de la tarjeta de miembro: logo + "Member". */
.mc-brand { display: flex; align-items: center; gap: 9px; }
.mc-member { font-family: var(--display); font-weight: 800; font-size: 13px;
  letter-spacing: .16em; text-transform: uppercase; opacity: .78; }

/* El badge de marca dentro de la tarjeta de miembro va más chico que en la
   cabecera. Negro sobre el amarillo de la tarjeta: contrasta bien. */
.mc-brand .fudlab-badge { width: 34px; height: 34px; border-radius: 10px; }
.mc-brand .fudlab-badge span { font-size: 12px; }

/* Con la ilustración a 96px el título rompía en dos líneas. Se reparte el
   ancho para que "Recoger en el carro" quepa en una sola, como la referencia. */
.pk-art { width: 90px; height: 90px; }
.pickup-card { gap: 11px; padding: 17px 15px 17px 13px; }
.pk-t { font-size: 16.5px; white-space: nowrap; }
.pk-go { width: 46px; height: 46px; }

}

/* Logo real de Fud Lab en la tarjeta de miembro. El logo trae fondo amarillo
   igual que la tarjeta, así que un aro oscuro lo separa del fondo. */
.mc-logo {
  width: 38px; height: 38px; border-radius: 11px; display: block; flex: 0 0 auto;
  box-shadow: 0 0 0 2px rgba(0,0,0,.16), 0 2px 6px rgba(0,0,0,.14);
}

/* Tarjeta de pickup más grande, como la referencia. Con el título en una
   línea aún caben 104px de ilustración: 104+11+147+11+46 = 319 de 342. */
.pk-art { width: 104px; height: 104px; }
.pickup-card { padding: 20px 16px 20px 14px; border-radius: 28px; gap: 11px; }
.pk-d { margin-top: 6px; }
.pk-chips { margin-top: 12px; }

/* Ajustes finales pedidos por Ralph: logo más chico y la tarjeta de pickup
   de vuelta al tamaño anterior (104px se veía demasiado grande). */
.mc-logo { width: 28px; height: 28px; border-radius: 8px; }
.mc-brand { gap: 8px; }
.mc-member { font-size: 12px; }

.pk-art { width: 90px; height: 90px; }
.pickup-card { padding: 17px 15px 17px 13px; border-radius: 26px; gap: 11px; }
.pk-d { margin-top: 5px; }
.pk-chips { margin-top: 11px; }

/* --- Pantallas angostas (iPhone SE y similares) -----------------------
   IMPORTANTE: este bloque va al FINAL del archivo. Una media query no suma
   especificidad, así que cualquier regla .pk-* escrita después la anularía
   y el título volvería a cortarse. Si agregas más estilos de pickup, ponlos
   ARRIBA de aquí. */
@media (max-width: 380px) {
  .pk-art { width: 78px; height: 78px; }
  .pk-t { font-size: 14.5px; }
  .pk-d { font-size: 11.5px; margin-top: 4px; }
  .pk-go { width: 40px; height: 40px; }
  .pk-go svg { width: 20px; height: 20px; }
  .pickup-card { gap: 9px; padding: 15px 12px 15px 11px; border-radius: 24px; }
  .pk-chip { font-size: 10px; padding: 4px 9px; }
  .pk-time { font-size: 11px; }
  .pk-chips { margin-top: 9px; }
}

/* =====================================================================
   OFERTAS — copia del diseño de Ralph
   ===================================================================== */
.of-head { display: flex; align-items: center; gap: 11px; padding: 14px var(--gutter) 12px; }
.of-logo { width: 46px; height: 46px; border-radius: 13px; flex: 0 0 auto; }
.of-ttl { flex: 1 1 auto; min-width: 0; }
.of-ttl h1 { margin: 0; font-family: var(--display); font-size: 25px; font-weight: 800; line-height: 1.05; }
.of-ttl p { margin: 3px 0 0; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.of-cart {
  position: relative; flex: 0 0 auto; width: 40px; height: 40px; border: 0;
  background: none; cursor: pointer; color: var(--ink); display: grid; place-items: center;
}
.of-cart svg { width: 26px; height: 26px; }
.of-badge {
  position: absolute; top: -2px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--yellow); color: var(--ink);
  font-size: 11px; font-weight: 800; display: grid; place-items: center;
}

/* Campo de código + botón Aplicar */
.code-box { display: flex; gap: 10px; padding: 0 var(--gutter); }
.code-field {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 9px;
  padding: 0 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line);
}
.code-ico { flex: 0 0 auto; color: var(--muted); display: grid; place-items: center; }
.code-ico svg { width: 19px; height: 19px; }
.code-field input {
  flex: 1 1 auto; min-width: 0; border: 0; background: none; outline: none;
  padding: 15px 0; font-family: var(--font); font-weight: 700; font-size: 13.5px; color: var(--ink);
}
.code-field input::placeholder { color: var(--muted); font-weight: 600; }
.code-field:focus-within { border-color: var(--yellow); }
.code-go {
  flex: 0 0 auto; padding: 0 22px; border-radius: 16px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--white);
  font-family: var(--font); font-weight: 800; font-size: 14px;
}

/* Banner amarillo */
.save-banner {
  position: relative; display: flex; align-items: center; overflow: hidden;
  margin: 14px var(--gutter) 0; padding: 20px 16px; min-height: 132px;
  border-radius: 20px; background: #FBD65E;
}
.sb-txt { flex: 1 1 auto; min-width: 0; position: relative; z-index: 1; max-width: 58%; }
.save-banner h2 { margin: 0; font-family: var(--display); font-size: 23px; font-weight: 800; line-height: 1.1; }
.save-banner p { margin: 8px 0 0; font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.sb-art { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 40%; }
.sb-art svg { width: 100%; height: auto; display: block; }

/* Rejilla de ofertas */
.grid2.offers { gap: 11px; padding: 14px var(--gutter) 0; }
.grid2.offers .is-extra { display: none; }
.grid2.offers.show-all .is-extra { display: flex; }
.offer-card {
  position: relative; display: flex; flex-direction: column; cursor: pointer;
  padding: 12px 12px 11px; border-radius: 18px; text-align: left;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(20,20,10,.07); font-family: var(--font);
  transition: transform .12s ease;
}
.offer-card:active { transform: scale(.985); }
.oc-tag {
  align-self: flex-start; background: var(--yellow); color: var(--ink);
  border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 800;
  position: relative; z-index: 2;
}
.oc-photo {
  display: block; height: 104px; margin: 2px -4px 0;
  background-size: contain; background-position: center; background-repeat: no-repeat;
}
.oc-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.oc-t { flex: 1 1 auto; min-width: 0; font-size: 13px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.oc-go { flex: 0 0 auto; color: var(--ink); display: grid; place-items: center; }
.oc-go svg { width: 19px; height: 19px; }

/* Botón para ver el resto */
.see-all {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: calc(100% - var(--gutter) * 2); margin: 14px var(--gutter) 0;
  padding: 17px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--white);
  font-family: var(--font); font-weight: 800; font-size: 14.5px;
}
.see-all svg { width: 19px; height: 19px; }
.see-all:active { transform: scale(.99); }

/* =====================================================================
   NIVELES — recorrido con la foto del premio.
   La clave: el SIGUIENTE nivel es lo que más resalta de la pantalla. Los
   niveles lejanos van apagados, pero el que sigue va en amarillo, a color y
   con la barra de cuánto falta. Apagar todo lo bloqueado los hacía menos
   deseables, que es lo contrario de lo que queremos.
   ===================================================================== */
/* =====================================================================
   REFERIDOS — la recompensa primero, los pasos después.
   ===================================================================== */
.refer-card {
  position: relative; overflow: hidden;
  margin: 0 var(--gutter); padding: 18px; border-radius: 22px;
  background: var(--ink); color: var(--white); box-shadow: var(--shadow-lift);
}
.refer-card .rc-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: .30; filter: grayscale(.2);
}
.refer-card .rc-in { position: relative; z-index: 1; }
.rc-big { font-family: var(--display); font-weight: 800; font-size: 46px; line-height: .9; color: var(--yellow); }
.rc-big small { font-size: 17px; margin-left: 3px; }
.rc-sub { font-size: 14px; font-weight: 800; margin-top: 5px; }
.rc-note { font-size: 12px; font-weight: 600; opacity: .68; margin-top: 3px; }

/* Los 3 pasos: deja claro cómo se gana sin leer un párrafo. */

.rc-codebox { display: flex; gap: 6px; margin-top: 14px; }
.rc-code {
  flex: 1; min-width: 0; padding: 13px 12px; border-radius: 12px; text-align: center;
  background: rgba(255,255,255,.09); border: 1px dashed rgba(255,255,255,.32);
  color: var(--yellow); font-weight: 800; font-size: 14.5px; letter-spacing: .09em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rc-copy {
  flex: 0 0 auto; padding: 0 17px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--yellow); color: var(--ink); font-family: var(--font);
  font-weight: 800; font-size: 13px;
}

/* Cuántos amigos llevas, con premio a la vista. */
.rc-track { margin-top: 14px; }
.rc-dots { display: flex; gap: 5px; }
.rc-dots i { flex: 1; height: 6px; border-radius: 999px; background: rgba(255,255,255,.18); }
.rc-dots i.on { background: var(--yellow); }
.rc-trackfoot { font-size: 11px; font-weight: 700; opacity: .7; margin-top: 7px; }

/* La foto de fondo aclaraba el negro y lo dejaba gris sucio. Baja opacidad
   y una capa oscura encima para que el amarillo siga resaltando. */
.refer-card .rc-bg { opacity: .22; }
.refer-card .rc-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(10,10,9,.55), rgba(10,10,9,.85));
}

/* =====================================================================
   NIVELES — escalera. Los 4 niveles caben en pantalla y se ven como
   peldaños que suben: el progreso se entiende de un vistazo, sin deslizar.
   ===================================================================== */
.stairs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  align-items: end; padding: 6px var(--gutter) 0;
}
.step {
  appearance: none; border: 0; background: none; padding: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: stretch; font-family: var(--font);
}
/* El peldaño. La altura sube con el nivel — de ahí la escalera. */
.st-bar {
  position: relative; border-radius: 14px 14px 10px 10px;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 9px; box-shadow: 0 3px 10px rgba(20,20,10,.13);
  transition: transform .18s ease, box-shadow .18s ease;
}
.step[data-tier="rookie"]  .st-bar { height: 78px;  background: linear-gradient(160deg, #FDFCF8, #E4E0D3); }
.step[data-tier="piloto"]  .st-bar { height: 106px; background: linear-gradient(160deg, #FFDC57, #FFBE00); }
.step[data-tier="campeon"] .st-bar { height: 138px; background: linear-gradient(160deg, #FFB62E, #EE7C00); }
.step[data-tier="leyenda"] .st-bar { height: 172px; background: linear-gradient(160deg, #3A3A38, #131312); }

.st-ico {
  width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center;
  font-size: 17px; background: rgba(255,255,255,.6); border: 2px solid rgba(255,255,255,.8);
}
.step[data-tier="leyenda"] .st-ico { background: rgba(255,200,0,.18); border-color: rgba(255,200,0,.5); }

/* Bloqueado: apagado. Se ve el peldaño, pero se siente lejos. */
.step.locked .st-bar { filter: saturate(.3) brightness(.97); }
.step.locked .st-ico { opacity: .6; }

/* Donde estás: el peldaño se levanta y lleva un banderín. */
.step.now .st-bar { transform: translateY(-7px); box-shadow: 0 8px 20px rgba(20,20,10,.26); }
.step.now .st-bar::before {
  content: '📍'; position: absolute; top: -21px; left: 50%; transform: translateX(-50%); font-size: 15px;
}
/* El que está seleccionado (para leer su beneficio abajo). */
.step.sel .st-bar { outline: 3px solid var(--ink); outline-offset: -3px; }

.st-name { font-size: 11px; font-weight: 800; margin-top: 7px; color: var(--ink); }
.step.locked .st-name { opacity: .5; }
.st-pts { font-size: 9.5px; font-weight: 700; color: var(--muted); margin-top: 1px; }

/* Panel del beneficio: cambia al tocar un peldaño. */
.step-detail {
  margin: 12px var(--gutter) 0; padding: 14px 15px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(20,20,10,.05);
  display: flex; align-items: center; gap: 12px;
}
.sd-ico { width: 42px; height: 42px; border-radius: 999px; background: var(--yellow-soft);
  display: grid; place-items: center; font-size: 20px; flex: 0 0 auto; }
.sd-txt { flex: 1 1 auto; min-width: 0; }
.sd-name { font-size: 14px; font-weight: 800; }
.sd-perk { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.sd-state { font-size: 11px; font-weight: 800; margin-top: 4px; }
.sd-state.ok { color: #1F8A46; }
.sd-state.no { color: var(--muted); }

/* El QR de la tarjeta es el botón: se toca y se amplía para escanear. */
button.mc-qr { border: 0; cursor: pointer; padding: 7px; }

/* Los <span> del panel de beneficio deben apilarse, no correr en línea. */
.sd-name, .sd-perk, .sd-state { display: block; }
.sd-txt { display: block; }
/* Rookie es casi blanco sobre fondo hueso: un borde lo despega. */
.step[data-tier="rookie"] .st-bar { border: 1px solid var(--line); }

/* =====================================================================
   HOJA INFERIOR (bottom sheet) — detalle de canjes y de niveles.
   ===================================================================== */
.sheet-back {
  position: fixed; inset: 0; z-index: 220; display: flex; align-items: flex-end;
  background: rgba(15,15,12,0); transition: background .22s ease;
  -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px);
}
.sheet-back.in { background: rgba(15,15,12,.62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }

/* Acotada a .sheet-back: sin esto pisaba la hoja del menú, que también usa la
   clase .sheet, y su translateY(100%) la mandaba fuera de pantalla. */
.sheet-back .sheet {
  width: 100%; background: var(--card); border-radius: 26px 26px 0 0; overflow: hidden;
  transform: translateY(100%); transition: transform .26s cubic-bezier(.22,.9,.3,1);
  box-shadow: 0 -12px 40px rgba(0,0,0,.3); padding-bottom: env(safe-area-inset-bottom, 0px);
  max-height: 92vh; overflow-y: auto;
}
.sheet-back.in .sheet { transform: translateY(0); }

/* Barrita de agarre: le dice al pulgar que esto se arrastra. */
.sheet-back .sh-grab { width: 40px; height: 4px; border-radius: 99px; background: var(--line); margin: 9px auto 0; }

.sheet-back .sh-hero { position: relative; height: 188px; background-size: cover; background-position: center;
  background-color: var(--yellow-soft); margin-top: 9px; }
.sh-hero.dim { filter: grayscale(1); }
.sheet-back .sh-tag { position: absolute; left: 14px; bottom: 12px; background: var(--yellow); color: var(--ink);
  border-radius: 99px; padding: 7px 14px; font-size: 13px; font-weight: 800;
  box-shadow: 0 3px 10px rgba(0,0,0,.22); }
.sheet-back .sh-x { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border-radius: 99px;
  border: 0; cursor: pointer; background: rgba(255,255,255,.92); color: var(--ink);
  font-size: 14px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.2); }

.sheet-back .sh-body { padding: 16px 18px 20px; }
.sheet-back .sh-title { font-family: var(--display); font-size: 22px; font-weight: 800; line-height: 1.15; }
.sheet-back .sh-sub { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 5px; line-height: 1.4; }

.sheet-back .sh-rows { margin-top: 14px; border-top: 1px solid var(--line); }
.sheet-back .sh-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0;
  border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.sheet-back .sh-row b { color: var(--ink); font-weight: 800; }

.sheet-back .sh-cta { display: block; width: 100%; margin-top: 16px; padding: 15px; border-radius: 14px; border: 0;
  background: var(--ink); color: var(--yellow); font-family: var(--font); font-weight: 800;
  font-size: 14.5px; cursor: pointer; transition: transform .12s ease; }
.sh-cta:active { transform: scale(.985); }
.sh-cta[disabled] { background: var(--line); color: var(--muted); cursor: default; }

.refer-card { padding: 22px 20px; border-radius: 24px; }
.rc-big { font-size: 54px; }
.rc-big small { font-size: 19px; }
.rc-sub { font-size: 15.5px; margin-top: 7px; }
.rc-note { font-size: 12.5px; margin-top: 5px; }
.rc-steps { margin-top: 22px; }
.rc-steps::before { top: 17px; }
.rc-step .rs-n { width: 34px; height: 34px; font-size: 14px; }
.rc-step .rs-l { font-size: 11.5px; margin-top: 10px; }
.rc-codebox { margin-top: 18px; }
.rc-code { padding: 15px 12px; font-size: 15.5px; }
.rc-copy { padding: 0 19px; font-size: 13.5px; }
.rc-track { margin-top: 18px; }
.rc-dots i { height: 7px; }
.rc-trackfoot { font-size: 11.5px; margin-top: 9px; }

/* --- Tarjeta "Recoger en el carro" ------------------------------------
   Copia de la referencia de Ralph: ilustración en CÍRCULO a la izquierda,
   título y descripción, luego "Sin bajarte" en pastilla y el tiempo en
   negrita separados por una barra, y flecha en cuadrado redondeado. */
.pickup-card {
  display: flex; align-items: center; gap: 14px;
  width: calc(100% - var(--gutter) * 2); margin: 0 var(--gutter);
  padding: 16px 16px 16px 14px; cursor: pointer; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 2px 10px rgba(20,20,10,.08); font-family: var(--font);
  transition: transform .12s ease;
}
.pickup-card:active { transform: scale(.985); }

/* Círculo, no cuadrado. La ilustración ya trae el círculo amarillo dentro. */
.pk-art { flex: 0 0 auto; width: 88px; height: 88px; }
.pk-art svg { width: 100%; height: 100%; display: block; }

.pk-txt { flex: 1 1 auto; min-width: 0; }
.pk-t { display: block; font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -.3px; line-height: 1.15; }
.pk-d { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 5px; line-height: 1.35; }

.pk-chips { display: flex; align-items: center; gap: 9px; margin-top: 11px; }
.pk-chip {
  display: inline-block; padding: 5px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 800; color: #8A6A00; background: #FFF1C4;
}
.pk-div { width: 1px; height: 15px; background: var(--line); flex: 0 0 auto; }
/* El tiempo va en su burbuja, como antes iba el chip que estaba al lado: sin
   ella quedaba como texto suelto en una tarjeta que es toda cajas. */
.pk-time {
  display: inline-block; padding: 5px 11px; border-radius: 999px;
  background: #FFF1C4; color: #8A6A00;
  font-size: 12px; font-weight: 800; white-space: nowrap;
}

.pk-go {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 15px;
  background: var(--yellow); color: var(--ink); display: grid; place-items: center;
  box-shadow: 0 3px 10px rgba(255,200,0,.5);
}
.pk-go svg { width: 22px; height: 22px; }

/* La columna de texto quedaba corta y "Sin bajarte" partía en dos líneas. */
.pk-art { width: 80px; height: 80px; }
.pickup-card { gap: 12px; }
.pk-chip { white-space: nowrap; font-size: 10.5px; padding: 5px 10px; }
.pk-time { font-size: 11px; padding: 5px 10px; }
.pk-d { font-size: 12px; }
.pk-go { width: 44px; height: 44px; }
.pk-chips { gap: 8px; }

/* La ilustración de pickup ya trae su círculo amarillo: se muestra tal cual. */
.pk-art img { width: 100%; height: 100%; display: block; object-fit: contain; }

/* Tarjeta de pickup un poco más grande, como en la referencia. */
.pk-art { width: 96px; height: 96px; }
.pickup-card { padding: 18px 18px 18px 14px; border-radius: 26px; }
.pk-t { font-size: 19px; }
.pk-d { font-size: 12.5px; }
.pk-go { width: 48px; height: 48px; border-radius: 16px; }
.pk-go svg { width: 23px; height: 23px; }

/* Marca de la tarjeta de miembro: logo + "Member". */
.mc-brand { display: flex; align-items: center; gap: 9px; }
.mc-member { font-family: var(--display); font-weight: 800; font-size: 13px;
  letter-spacing: .16em; text-transform: uppercase; opacity: .78; }

/* El badge de marca dentro de la tarjeta de miembro va más chico que en la
   cabecera. Negro sobre el amarillo de la tarjeta: contrasta bien. */
.mc-brand .fudlab-badge { width: 34px; height: 34px; border-radius: 10px; }
.mc-brand .fudlab-badge span { font-size: 12px; }

/* Con la ilustración a 96px el título rompía en dos líneas. Se reparte el
   ancho para que "Recoger en el carro" quepa en una sola, como la referencia. */
.pk-art { width: 90px; height: 90px; }
.pickup-card { gap: 11px; padding: 17px 15px 17px 13px; }
.pk-t { font-size: 16.5px; white-space: nowrap; }
.pk-go { width: 46px; height: 46px; }

}

/* Logo real de Fud Lab en la tarjeta de miembro. El logo trae fondo amarillo
   igual que la tarjeta, así que un aro oscuro lo separa del fondo. */
.mc-logo {
  width: 38px; height: 38px; border-radius: 11px; display: block; flex: 0 0 auto;
  box-shadow: 0 0 0 2px rgba(0,0,0,.16), 0 2px 6px rgba(0,0,0,.14);
}

/* Tarjeta de pickup más grande, como la referencia. Con el título en una
   línea aún caben 104px de ilustración: 104+11+147+11+46 = 319 de 342. */
.pk-art { width: 104px; height: 104px; }
.pickup-card { padding: 20px 16px 20px 14px; border-radius: 28px; gap: 11px; }
.pk-d { margin-top: 6px; }
.pk-chips { margin-top: 12px; }

/* Ajustes finales pedidos por Ralph: logo más chico y la tarjeta de pickup
   de vuelta al tamaño anterior (104px se veía demasiado grande). */
.mc-logo { width: 28px; height: 28px; border-radius: 8px; }
.mc-brand { gap: 8px; }
.mc-member { font-size: 12px; }

.pk-art { width: 90px; height: 90px; }
.pickup-card { padding: 17px 15px 17px 13px; border-radius: 26px; gap: 11px; }
.pk-d { margin-top: 5px; }
.pk-chips { margin-top: 11px; }

/* --- Pantallas angostas (iPhone SE y similares) -----------------------
   IMPORTANTE: este bloque va al FINAL del archivo. Una media query no suma
   especificidad, así que cualquier regla .pk-* escrita después la anularía
   y el título volvería a cortarse. Si agregas más estilos de pickup, ponlos
   ARRIBA de aquí. */
@media (max-width: 380px) {
  .pk-art { width: 78px; height: 78px; }
  .pk-t { font-size: 14.5px; }
  .pk-d { font-size: 11.5px; margin-top: 4px; }
  .pk-go { width: 40px; height: 40px; }
  .pk-go svg { width: 20px; height: 20px; }
  .pickup-card { gap: 9px; padding: 15px 12px 15px 11px; border-radius: 24px; }
  .pk-chip { font-size: 10px; padding: 4px 9px; }
  .pk-time { font-size: 11px; }
  .pk-chips { margin-top: 9px; }
}

/* =====================================================================
   MENÚ — alineado con el resto de la app.
   Solo estilos: app.js sigue dibujando los platos y manejando el carrito.
   ===================================================================== */

/* Los filtros de categoría usan los mismos márgenes que las demás secciones
   y se pegan bajo la cabecera al hacer scroll. */
#tab-menu .cat-nav { top: 66px; padding: 6px var(--gutter) 12px; gap: 7px; }

#tab-menu .menu { padding-left: var(--gutter); padding-right: var(--gutter); }

/* Tarjetas de plato con el mismo radio y sombra que las demás. */
#tab-menu .item { border-radius: 18px; box-shadow: 0 2px 8px rgba(20,20,10,.08); }
#tab-menu .item .emoji { aspect-ratio: 16 / 10; }
#tab-menu .item .info { padding: 12px 13px 13px; }
#tab-menu .item h3 { font-size: 15px; font-weight: 800; letter-spacing: -.2px; }
#tab-menu .item p { font-size: 11.5px; line-height: 1.35; margin-top: 3px; }
#tab-menu .item .row { margin-top: 10px; }
#tab-menu .item .price { font-size: 15px; font-weight: 800; }
#tab-menu .item .price small { font-size: 10.5px; font-weight: 700; color: var(--muted); }

/* El botón de agregar toma la forma de la marca. */
#tab-menu .item .add-btn {
  border-radius: 999px; padding: 8px 15px; font-weight: 800; font-size: 12.5px;
  background: var(--yellow); color: var(--ink); border: 0; cursor: pointer;
}
#tab-menu .item .add-btn:disabled { background: var(--line); color: var(--muted); cursor: default; }

/* Encabezado de cada categoría, con el mismo ritmo que .section-h. */
#tab-menu .menu h2 { font-size: 16px; font-weight: 800; font-family: var(--display); }

/* =====================================================================
   MENÚ — rediseño (referencia de Ralph)
   Pestañas de texto con subrayado, destacado en tarjeta oscura y mosaico
   de platos con botón redondo de agregar.
   ===================================================================== */

/* --- Pestañas de categoría --- */
#tab-menu .cat-nav {
  top: 66px; gap: 0; padding: 4px 0 0;
  border-bottom: 1px solid var(--line);
}
.cat-tab {
  appearance: none; border: 0; background: none; cursor: pointer; flex: 0 0 auto;
  padding: 11px var(--gutter) 12px; font-family: var(--font);
  font-weight: 700; font-size: 14px; color: var(--muted); white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
  transition: color .15s ease, border-color .15s ease;
}
.cat-tab.active { color: var(--ink); font-weight: 800; border-bottom-color: var(--yellow); }

#tab-menu .menu { padding: 0; }
.cat-title { padding: 18px var(--gutter) 0; font-size: 17px; font-weight: 800; font-family: var(--display); }
.cat-note { padding: 3px var(--gutter) 0; font-size: 11.5px; font-weight: 600; color: var(--muted); line-height: 1.4; }

/* --- Destacado: tarjeta oscura con la foto sangrando a la derecha --- */
.dish-hero {
  position: relative; display: flex; align-items: stretch; overflow: hidden;
  margin: 12px var(--gutter) 0; border-radius: 20px; background: var(--ink);
  min-height: 186px; box-shadow: 0 4px 16px rgba(20,20,10,.18);
}
.dish-hero .dh-photo { position: absolute; right: 0; top: 0; bottom: 0; width: 58%; }
.dish-hero .dh-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Degradado desde la izquierda para que el texto se lea sobre la foto. */
.dish-hero .dh-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, #1A1A1A 0%, rgba(26,26,26,.72) 34%, rgba(26,26,26,0) 78%);
}
.dish-hero .dh-body {
  position: relative; z-index: 1; width: 66%; padding: 15px 14px 15px 16px;
  display: flex; flex-direction: column; color: #fff;
}
.dh-tag { font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--yellow); }
.dish-hero h3 { margin: 7px 0 0; font-family: var(--display); font-size: 21px; font-weight: 800; line-height: 1.1; }
.dish-hero p { margin: 6px 0 0; font-size: 11.5px; font-weight: 600; opacity: .74; line-height: 1.35; }
.dh-row { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 10px; }
.dh-price { font-family: var(--display); font-size: 20px; font-weight: 800; }
.dh-add {
  margin-left: auto; border: 0; cursor: pointer; border-radius: 999px;
  padding: 10px 16px; background: var(--yellow); color: var(--ink);
  font-family: var(--font); font-weight: 800; font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px;
}
.dh-add:disabled { background: #4A4A46; color: #9A968C; cursor: default; }
.dh-fallback { display: grid; place-items: center; height: 100%; font-size: 54px; background: #2A2A28; }

/* --- Encabezado "Más pedidos" + Ver todo --- */
.grid-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 20px var(--gutter) 9px;
}
.grid-head > span { font-size: 15.5px; font-weight: 800; font-family: var(--display); }
.grid-more {
  border: 0; background: none; cursor: pointer; font-family: var(--font);
  font-weight: 700; font-size: 12.5px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 4px;
}
.grid-more span { font-size: 16px; }

/* --- Mosaico de platos --- */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding: 0 var(--gutter); }
.cat-grid .is-extra { display: none; }
.cat-grid.show-all .is-extra { display: block; }

.dish {
  background: var(--card); border-radius: 16px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(20,20,10,.07); display: flex; flex-direction: column;
}
.dish.unavailable { opacity: .45; }
/* `min-height: 0` NO es adorno: sin él, una foto VERTICAL rompe la rejilla.
   La caja es hija de un flex en columna (.dish), y los hijos flex traen
   `min-height: auto` — o sea, no bajan de la altura mínima de su contenido.
   Con una foto apaisada eso es poco y el `aspect-ratio` manda; con una
   vertical, la altura mínima de la imagen le gana al ratio y la caja crece.
   Pasó con el Manjar Cake: su foto venía 1000×1334 y su caja medía 241 px en
   vez de 127, estirando también la tarjeta de al lado —en una rejilla, las
   dos de una fila miden lo que la más alta—.
   Con esto el ratio siempre manda y `object-fit: cover` recorta, que es lo
   que hace que todas las fotos se vean del mismo tamaño venga como venga. */
.d-photo {
  position: relative; aspect-ratio: 1 / 1; min-height: 0; overflow: hidden;
  background: var(--white);
}
.d-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.d-emoji { display: grid; place-items: center; height: 100%; font-size: 46px; }
/* Etiqueta del plato (JR, FRESCO…) sobre la foto. */
.d-badge {
  position: absolute; top: 8px; left: 8px; background: var(--ink); color: var(--white);
  border-radius: 999px; padding: 4px 9px; font-size: 9.5px; font-weight: 800; letter-spacing: .04em;
}
.d-info { padding: 10px 11px 11px; display: flex; flex-direction: column; flex: 1 1 auto; }
.dish h3 { margin: 0; font-size: 13.5px; font-weight: 800; line-height: 1.25; letter-spacing: -.1px; }
.d-row { margin-top: auto; padding-top: 9px; display: flex; align-items: center; gap: 8px; }
.d-price { font-size: 14.5px; font-weight: 800; }
.d-price small { font-size: 9.5px; font-weight: 700; color: var(--muted); margin-left: 3px; }
.d-add {
  margin-left: auto; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer;
  font-size: 17px; font-weight: 800; line-height: 1; display: grid; place-items: center;
  transition: background .12s ease, transform .12s ease;
}
.d-add:active { transform: scale(.9); }
.d-add:disabled { color: var(--muted); background: #F4F2EA; cursor: default; }

/* =====================================================================
   MENÚ — ajustes de tamaño (referencia de Ralph)
   ===================================================================== */
.cat-sec { padding-top: 14px; }
.cat-sec:first-child { padding-top: 10px; }

/* --- Destacado más grande --- */
.dish-hero { min-height: 244px; border-radius: 22px; margin-top: 0; }
.dish-hero .dh-body { width: 62%; padding: 18px 14px 18px 18px; }
.dish-hero .dh-photo { width: 62%; }
/* Las fotos de Fud Lab vienen sobre fondo BLANCO, no negro como el mockup.
   Se acerca la imagen para que la comida llene el marco y quede poco blanco,
   y el degradado se lleva el resto hacia el negro de la tarjeta. */
.dish-hero .dh-photo img { transform: scale(1.34); transform-origin: 62% 50%; }
.dish-hero .dh-photo::after {
  background:
    linear-gradient(to right, #1A1A1A 0%, rgba(26,26,26,.9) 26%, rgba(26,26,26,.18) 62%, rgba(26,26,26,0) 100%),
    linear-gradient(to bottom, rgba(26,26,26,.55) 0%, rgba(26,26,26,0) 22%, rgba(26,26,26,0) 78%, rgba(26,26,26,.55) 100%);
}
.dh-tag { font-size: 11px; }
.dish-hero h3 { font-size: 25px; margin-top: 9px; }
.dish-hero p {
  font-size: 12.5px; margin-top: 8px; opacity: .78;
  /* Tres líneas como máximo: más que eso aplasta la foto y el precio. */
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.dh-row { padding-top: 14px; }
.dh-price { font-size: 24px; }
.dh-add { padding: 12px 19px; font-size: 14px; }

/* --- Mosaico más grande --- */
.grid-head { padding: 22px var(--gutter) 10px; }
.grid-head > span { font-size: 17px; }
.grid-more { font-size: 13px; }
.cat-grid { gap: 10px; }
.dish { border-radius: 18px; }
.d-photo { aspect-ratio: 1 / 1.02; }
.d-info { padding: 12px 12px 13px; }
.dish h3 { font-size: 14.5px; }
.d-row { padding-top: 11px; }
.d-price { font-size: 16px; }
.d-add { width: 36px; height: 36px; font-size: 19px; }
.d-badge { font-size: 10px; padding: 5px 10px; top: 9px; left: 9px; }

/* Al acercar la foto (scale) la imagen se desbordaba del panel y aparecía
   fuera del degradado como una franja blanca. El panel debe recortarla. */
.dish-hero .dh-photo { overflow: hidden; }

/* =====================================================================
   MENÚ v3 — un solo "Más pedidos", destacado sin zoom, tarjetas más chicas
   ===================================================================== */

/* --- Destacado: la foto ya viene sin fondo, así que se ve COMPLETA sobre el
   negro. Nada de acercarla ni recortarla. --- */
.dish-hero { min-height: 232px; margin-top: 12px; }
.dish-hero .dh-body { width: 60%; padding: 17px 10px 17px 17px; }
.dish-hero .dh-photo { width: 52%; right: -2%; display: grid; place-items: center; }
.dish-hero .dh-photo img {
  transform: none; width: 100%; height: auto; max-height: 100%; object-fit: contain;
}
/* Sin fondo blanco que tapar, el degradado solo suaviza el encuentro con el
   texto: mucho más corto que antes. */
.dish-hero .dh-photo::after {
  background: linear-gradient(to right, #1A1A1A 0%, rgba(26,26,26,.55) 22%, rgba(26,26,26,0) 55%);
}
.dish-hero h3 { font-size: 23px; }
.dish-hero p { font-size: 12px; -webkit-line-clamp: 3; opacity: .72; }
.dh-row { padding-top: 13px; align-items: center; }
.dh-price { font-size: 22px; }
.dh-add { padding: 11px 17px; font-size: 13.5px; }

/* --- Mosaico: tarjetas más chicas que en v2 --- */
.cat-grid { gap: 9px; }
.d-photo { aspect-ratio: 1 / 0.86; }
.d-info { padding: 10px 11px 11px; }
.dish h3 { font-size: 13px; line-height: 1.3; }
.d-row { padding-top: 9px; }
.d-price { font-size: 14.5px; }
.d-add { width: 31px; height: 31px; font-size: 17px; }
.d-badge { font-size: 9.5px; padding: 4px 9px; top: 8px; left: 8px; }

/* Más aire entre secciones ahora que hay una lista por categoría. */
.cat-sec { padding-top: 6px; }
.grid-head { padding: 22px var(--gutter) 10px; }
.grid-head > span { font-size: 16.5px; }

/* --- Destacado: foto más grande y botón al extremo derecho --------------
   En la referencia el "Elegir" va abajo a la DERECHA de la tarjeta, no
   pegado al precio, así que sale del flujo del texto y se ancla a la
   tarjeta. La foto crece y se desborda del panel; la tarjeta la recorta. */
.dish-hero { min-height: 244px; }
.dish-hero .dh-photo { width: 66%; right: -5%; }
.dish-hero .dh-photo img { width: 116%; max-width: none; }
.dish-hero .dh-photo::after {
  background: linear-gradient(to right, #1A1A1A 0%, rgba(26,26,26,.62) 20%, rgba(26,26,26,0) 52%);
}

.dish-hero .dh-body { width: 58%; padding: 18px 12px 18px 18px; }
/* Aire entre líneas: antes se veía apretado. */
.dish-hero h3 { font-size: 23px; line-height: 1.16; margin-top: 10px; }
.dish-hero p { font-size: 12px; line-height: 1.5; margin-top: 9px; }
.dh-tag { letter-spacing: .12em; }

.dh-row { padding-top: 15px; }
.dh-add {
  position: absolute; right: 14px; bottom: 16px; margin-left: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}

/* --- Mosaico: tarjetas más chicas, con descripción corta ----------------
   Sin descripción varios platos no se entendían ("Zero Drama", "Reboot").
   Va en dos líneas como máximo para que la tarjeta no crezca. */
.d-photo { aspect-ratio: 1 / 0.7; }
.d-info { padding: 9px 10px 10px; }
.dish h3 { font-size: 12.5px; line-height: 1.25; }
.d-desc {
  margin: 3px 0 0; font-size: 10.5px; font-weight: 600; color: var(--muted);
  line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.d-row { padding-top: 8px; }
.d-price { font-size: 13.5px; }
.d-price small { font-size: 9px; }

/* El + toma el amarillo de la marca, igual en todos los platos. */
.d-add {
  width: 29px; height: 29px; font-size: 17px;
  background: var(--yellow); color: var(--ink); border: 0;
  box-shadow: 0 2px 6px rgba(255,200,0,.5);
}
.d-add:disabled { background: var(--line); color: var(--muted); box-shadow: none; }

/* El botón del destacado se ancla a la TARJETA (no al panel de texto) y va
   más delgado. */
.dish-hero .dh-add {
  position: absolute; right: 13px; bottom: 14px; z-index: 2; margin: 0;
  padding: 9px 16px; font-size: 13px;
}
.dh-row { padding-top: 15px; }

/* Máscara del pin de ubicación (SVG en línea, sin archivo aparte). */
:root {
  --pin-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5Z' fill='black'/%3E%3C/svg%3E");
}

/* =====================================================================
   HOJA DE PRODUCTO — la misma para todos los platos.
   ===================================================================== */
.item-sheet { padding: 0 !important; overflow: hidden; position: relative; }
.is-grab { width: 40px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.7);
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%); z-index: 3; }
.is-photo { height: 190px; background: var(--white); }
.is-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.is-x {
  position: absolute; top: 10px; right: 12px; z-index: 3; width: 32px; height: 32px;
  border-radius: 99px; border: 0; cursor: pointer; background: rgba(255,255,255,.94);
  color: var(--ink); font-size: 14px; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.is-body { padding: 16px 18px 18px; }
.is-body h3 { margin: 0; font-family: var(--display); font-size: 21px; font-weight: 800; line-height: 1.15; }
.is-body .sheet-desc { margin: 6px 0 0; font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1.45; }

.is-note { display: block; margin-top: 16px; }
.is-note > span { display: block; font-size: 12.5px; font-weight: 800; margin-bottom: 6px; }
.is-note > span small { font-weight: 700; color: var(--muted); }
.is-note textarea {
  width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--paper); font-family: var(--font); font-size: 13px; font-weight: 600;
  color: var(--ink); resize: none;
}
.is-note textarea:focus { outline: none; border-color: var(--yellow); }

/* Cantidad + botón de agregar, anclados abajo. */
.is-foot { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.qty { display: flex; align-items: center; gap: 4px; flex: 0 0 auto;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.qty button {
  width: 34px; height: 34px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--paper); color: var(--ink); font-size: 18px; font-weight: 800;
  display: grid; place-items: center;
}
.qty button:active { background: var(--line); }
.qty span { min-width: 26px; text-align: center; font-weight: 800; font-size: 15px; }
.is-add {
  flex: 1 1 auto; padding: 15px; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--yellow);
  font-family: var(--font); font-weight: 800; font-size: 14.5px;
}
.is-add:active { transform: scale(.99); }

/* Presentación elegida dentro de la hoja. */
.var-chip.active { background: var(--ink); color: var(--yellow); border-color: var(--ink); }

/* Nota del plato en la comanda de cocina. */
.item-note { display: block; color: #B45309; font-weight: 700; margin-top: 2px; }

/* --- "¿Algo más?" al final del carrito -------------------------------- */
.upsell { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.up-h { font-family: var(--display); font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.up-row {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.up-row::-webkit-scrollbar { display: none; }
.up-card {
  flex: 0 0 116px; scroll-snap-align: start; cursor: pointer; text-align: left;
  border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  padding: 0 0 9px; overflow: hidden; font-family: var(--font);
  box-shadow: 0 1px 3px rgba(20,20,10,.06);
}
.up-card:active { transform: scale(.97); }
.up-photo { display: block; height: 84px; background-size: cover; background-position: center; background-color: var(--white); }
.up-name { display: block; padding: 8px 9px 0; font-size: 12px; font-weight: 800; line-height: 1.25; }
.up-price { display: block; padding: 2px 9px 0; font-size: 12px; font-weight: 800; color: var(--muted); }

/* Nota del plato dentro del resumen del carrito. */
.li-note { display: block; color: #B45309; font-weight: 700; font-size: 11.5px; margin-top: 2px; }

/* La hoja de producto debe quedar SOBRE la barra de tabs (ambas estaban en
   z-index 60 y el botón de agregar quedaba tapado). */
.sheet-backdrop { z-index: 120; }
.item-sheet .is-photo { height: 152px; }
.item-sheet .is-body { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }

/* =====================================================================
   INICIO — encabezado con acción y tarjetas horizontales de "Más"
   ===================================================================== */

/* Encabezado de sección con enlace a la derecha ("Ver todas"). */
.section-h.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sh-more {
  border: 0; background: none; cursor: pointer; font-family: var(--font);
  font-weight: 700; font-size: 12.5px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 4px;
}
.sh-more span { font-size: 16px; }

/* Tarjeta horizontal: foto a la izquierda pegada al borde, texto, y flecha. */
.link-card {
  display: flex; align-items: stretch; gap: 0; overflow: hidden; cursor: pointer;
  padding: 0; text-align: left; min-height: 78px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 2px 8px rgba(20,20,10,.07); font-family: var(--font);
  transition: transform .12s ease;
}
.link-card:active { transform: scale(.98); }
.lk-photo {
  flex: 0 0 38%; background-size: cover; background-position: center;
  background-color: var(--white);
}
.lk-txt {
  flex: 1 1 auto; min-width: 0; padding: 10px 4px 10px 10px;
  display: flex; flex-direction: column; justify-content: center;
}
.lk-t { display: block; font-size: 13.5px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.lk-d { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 3px; line-height: 1.3; }
.lk-go {
  flex: 0 0 auto; align-self: center; margin-right: 9px;
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--yellow-soft); color: var(--ink);
  display: grid; place-items: center; font-size: 17px; font-weight: 800; line-height: 1;
}

/* En "Más" las tarjetas son horizontales, no fotos con texto encima. */
.grid2.links { gap: 10px; }

/* La foto se comía el ancho y el título rompía en dos líneas. En la
   referencia la foto ocupa ~un cuarto de la tarjeta y el texto manda. */
.link-card { min-height: 84px; }
.lk-photo { flex: 0 0 27%; }
.lk-txt { padding: 10px 2px 10px 11px; }
.lk-t { font-size: 13px; }
.lk-d {
  font-size: 10.5px; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lk-go { width: 26px; height: 26px; margin-right: 8px; font-size: 16px; }

/* Ancho de la promo tomado de la referencia: la primera ocupa ~57% y la
   segunda asoma casi la mitad. (Antes estaba en 88%, con un asomo mínimo.) */
.carousel .photo-card { flex: 0 0 57%; }

/* =====================================================================
   INICIO COMPACTO — todo entra en una pantalla, sin scroll.
   Las medidas de abajo están calculadas para que la suma de secciones
   quepa por encima de la barra de tabs en un teléfono de 844px de alto.
   ===================================================================== */

/* Saludo */
.greet { padding: 12px var(--gutter) 8px; }
.greet h1 { font-size: 21px; }
.greet .sub { font-size: 11.5px; margin-top: 2px; }
.icon-btn { width: 34px; height: 34px; font-size: 15px; }

/* Tarjeta de miembro */
.member-card { padding: 12px 13px 11px; border-radius: 20px; }
.mc-logo { width: 24px; height: 24px; border-radius: 7px; }
.mc-member { font-size: 10.5px; }
.mc-tier { padding: 4px 10px 4px 4px; font-size: 11px; }
.mc-tier .tb-ico { width: 20px; height: 20px; font-size: 11px; }
.mc-mid { gap: 11px; margin-top: 10px; }
.mc-qr { width: 74px; height: 74px; border-radius: 11px; padding: 5px; }
.mc-pts { font-size: 30px; }
.mc-pts small { font-size: 11px; }
.mc-sub { font-size: 10.5px; }
.mc-id { font-size: 9.5px; margin-top: 5px; }
.mc-prog { margin-top: 9px; }
.mc-track { height: 21px; }
.mc-dot { width: 12px; min-width: 12px; height: 12px; min-height: 12px; border-width: 2px; }
.mc-stop .mc-name { font-size: 7.5px; }
.mc-foot { font-size: 10px; margin-top: 5px; }

/* Pide ahora */
.section-h { padding: 11px var(--gutter) 6px; font-size: 14px; }
.pickup-card { min-height: 0; padding: 11px 12px 11px 10px; border-radius: 18px; gap: 9px; }
.pk-art { width: 62px; height: 62px; }
.pk-t { font-size: 14.5px; }
.pk-d { font-size: 11px; margin-top: 2px; }
.pk-chips { margin-top: 7px; gap: 7px; }
.pk-chip { font-size: 9.5px; padding: 3px 8px; }
.pk-time { font-size: 10.5px; }
.pk-go { width: 34px; height: 34px; border-radius: 12px; }
.pk-go svg { width: 17px; height: 17px; }

/* Promos */
.carousel .photo-card { min-height: 128px; border-radius: 16px; }
.photo-card .pc-body { padding: 26px 11px 10px; }
.photo-card .pc-t { font-size: 13px; }
.photo-card .pc-d { font-size: 10.5px; }
.photo-card .pc-tag { font-size: 10px; padding: 4px 9px; top: 8px; left: 8px; }
.dots { padding: 7px 0 0; }

/* Más: tarjetas bajas, así la foto queda casi cuadrada y no se ve recortada */
.link-card { min-height: 62px; border-radius: 14px; }
.lk-photo { flex: 0 0 31%; }
.lk-txt { padding: 7px 2px 7px 9px; }
.lk-t { font-size: 12px; }
.lk-d { font-size: 9.5px; margin-top: 1px; -webkit-line-clamp: 1; }
.lk-go { width: 22px; height: 22px; margin-right: 7px; font-size: 14px; }
.grid2.links { gap: 8px; }
.tab-screen { padding-bottom: 76px; }

/* La descripción cabía en dos líneas y se estaba cortando con "…". */
.link-card { min-height: 70px; }
.lk-d { -webkit-line-clamp: 2; line-height: 1.3; }
.lk-txt { padding: 8px 2px 8px 9px; }

/* La sección "Más" usa fotos ya cuadradas, con la comida centrada y llenando
   el lienzo. Se muestran completas: nada de recortar. */
.lk-photo { flex: 0 0 30%; background-size: cover; background-position: center; }

/* Sin el encabezado "Pide ahora", la tarjeta de recoger necesita su propio
   aire arriba, y crece un poco. */
.pickup-card { margin-top: 12px; padding: 13px 13px 13px 11px; min-height: 84px; }
.pk-art { width: 72px; height: 72px; }
.pk-t { font-size: 15.5px; }
.pk-d { font-size: 11.5px; margin-top: 3px; }
.pk-chips { margin-top: 8px; }
.pk-chip { font-size: 10px; padding: 4px 9px; }
.pk-time { font-size: 11px; }
.pk-go { width: 38px; height: 38px; border-radius: 13px; }
.pk-go svg { width: 19px; height: 19px; }

/* La foto de "Más" ocupa un cuadrado del alto completo de la tarjeta. Con un
   hueco más alto que ancho, la imagen cuadrada se recortaba arriba y abajo:
   por eso seguía viéndose cortada aunque la foto ya fuera cuadrada. */
.link-card { min-height: 78px; }
.lk-photo { flex: 0 0 78px; }
.lk-txt { padding: 8px 2px 8px 10px; }
.lk-t { font-size: 12.5px; line-height: 1.2; }
.lk-d { font-size: 10px; -webkit-line-clamp: 2; margin-top: 2px; }
.lk-go { width: 22px; height: 22px; margin-right: 6px; }

/* Punto de equilibrio: la foto sigue siendo bastante más grande que antes
   (54 -> 66px) y al recortar flecha y márgenes el título vuelve a caber en
   una sola línea. En 390px de ancho no entran las dos cosas al máximo. */
.link-card { min-height: 66px; }
.lk-photo { flex: 0 0 66px; }
.lk-txt { padding: 7px 2px 7px 9px; }
.lk-t { font-size: 11.5px; }
.lk-d { font-size: 9.5px; -webkit-line-clamp: 2; }
.lk-go { width: 18px; height: 18px; margin-right: 5px; font-size: 12px; }

/* --- "Más" según la referencia -----------------------------------------
   La foto es un rectángulo HORIZONTAL que ocupa casi la mitad de la tarjeta,
   no un cuadrado: así es como estas fotos 2:1 se ven grandes y completas.
   Tarjetas más bajas y más juntas entre sí. */
.grid2.links { gap: 7px; }
.link-card { min-height: 58px; border-radius: 16px; }
.lk-photo { flex: 0 0 47%; background-size: cover; background-position: center; }
.lk-txt { padding: 6px 2px 6px 8px; }
.lk-t { font-size: 11px; line-height: 1.18; }
.lk-d { font-size: 9px; line-height: 1.25; margin-top: 1px; -webkit-line-clamp: 2; }
.lk-go { width: 21px; height: 21px; margin-right: 5px; font-size: 13px; }

/* Título en una sola línea, como la referencia. Si no cabe se vería peor
   partido que un punto más chico. */
.lk-t { font-size: 10px; white-space: nowrap; }
.lk-photo { flex: 0 0 45%; }
.lk-d { font-size: 9px; }

/* A "Invita amigos" le faltaban 3px para caber en una línea. */
.lk-photo { flex: 0 0 43%; }
.lk-txt { padding: 6px 2px 6px 7px; }

/* Tarjetas y fotos claramente más grandes, como la referencia. A este tamaño
   el título ya no cabe siempre en una línea; se permite que use dos, que es
   preferible a dejar la foto chica. */
.link-card { min-height: 80px; border-radius: 18px; }
.lk-photo { flex: 0 0 46%; }
.lk-txt { padding: 8px 2px 8px 9px; }
.lk-t { font-size: 12px; white-space: normal; line-height: 1.15; }
.lk-d { font-size: 10px; line-height: 1.3; margin-top: 2px; }
.lk-go { width: 24px; height: 24px; margin-right: 6px; font-size: 14px; }
.grid2.links { gap: 8px; }

/* =====================================================================
   ORDENAR — tarjetas grandes de modo de entrega (referencia de Ralph)
   ===================================================================== */
.way {
  position: relative; display: flex; align-items: flex-start; gap: 8px;
  width: calc(100% - var(--gutter) * 2); margin: 0 var(--gutter) 12px;
  padding: 18px 16px 18px 17px; min-height: 168px; overflow: hidden;
  border-radius: 20px; cursor: pointer; text-align: left;
  font-family: var(--font); transition: transform .12s ease;
  background: var(--card); border: 1px solid var(--line);
}
.way:active { transform: scale(.99); }
/* La opción disponible va en amarillo suave; la que no, en gris. */
.way.pick { background: #FDF1C8; border-color: #F7DE8E; }
.way.soon { opacity: 1; cursor: default; background: #F5F3EC; }
.way.soon .way-t, .way.soon .way-d { opacity: .55; }

.way-txt { flex: 1 1 auto; min-width: 0; position: relative; z-index: 2; }
.way-t { display: block; font-family: var(--display); font-size: 21px; font-weight: 800; line-height: 1.12; color: var(--ink); }
.way-d { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.way-tag {
  display: inline-block; margin-top: 12px; padding: 7px 13px; border-radius: 999px;
  font-size: 12px; font-weight: 800; background: #E7E4DA; color: var(--muted);
}
.way-tag.on { background: var(--yellow); color: var(--ink); }

/* La ilustración vive a la derecha y puede sobresalir; la tarjeta la recorta. */
.way-art { position: absolute; right: 6px; top: 50%; transform: translateY(-56%); width: 47%; z-index: 1; }
.way-art img { width: 100%; height: auto; display: block; }
.way-art.vacio { display: none; }

.way-go {
  position: absolute; right: 14px; bottom: 14px; z-index: 3;
  width: 44px; height: 44px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--yellow-soft); color: var(--ink);
}
.way-go.dark { background: var(--ink); color: var(--white); box-shadow: 0 4px 12px rgba(0,0,0,.28); }
.way-go svg { width: 20px; height: 20px; }

/* Accesos chicos debajo */
.grid2.extras { gap: 10px; margin-top: 2px; }
.extra {
  display: flex; align-items: center; gap: 8px; padding: 14px 11px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 1px 3px rgba(20,20,10,.05); cursor: pointer;
  font-family: var(--font); font-weight: 800; font-size: 12.5px; color: var(--ink);
}
.extra .ex-ico { width: 21px; height: 21px; flex: 0 0 auto; }
.extra > span:not(.ex-go) { flex: 1 1 auto; min-width: 0; text-align: left; line-height: 1.2; }
.extra .ex-go { flex: 0 0 auto; color: var(--muted); font-size: 16px; font-weight: 700; }

.back-link {
  margin: 0 var(--gutter); padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); cursor: pointer;
  font-family: var(--font); font-weight: 800; font-size: 12.5px; color: var(--ink);
}

/* Mapa */
.map-wrap {
  position: relative; margin: 0 var(--gutter); height: 210px;
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  background: var(--yellow-soft);
}
.map { position: absolute; inset: 0; }
.map-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; padding: 16px;
}
/* Pin de marca: círculo amarillo con punto negro y punta hacia abajo. */
.pin-fud span {
  display: block; width: 26px; height: 26px; border-radius: 999px 999px 999px 2px;
  transform: rotate(-45deg); background: var(--yellow); border: 3px solid var(--ink);
  box-shadow: 0 3px 8px rgba(0,0,0,.35);
}

/* Lista de sucursales */
.branch-list { display: grid; gap: 8px; padding: 12px var(--gutter) 0; }
.branch {
  display: flex; align-items: center; gap: 10px; padding: 13px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 1px 3px rgba(20,20,10,.05); cursor: pointer; text-align: left;
  font-family: var(--font);
}
.branch.off { opacity: .5; cursor: default; }
.br-txt { flex: 1 1 auto; min-width: 0; }
.br-n { display: block; font-size: 14.5px; font-weight: 800; color: var(--ink); }
.br-state {
  display: inline-block; margin-left: 7px; padding: 3px 8px; border-radius: 999px;
  font-size: 9.5px; font-weight: 800; background: #F0EDE4; color: var(--muted);
  vertical-align: 2px;
}
.br-state.open { background: #DCF5E3; color: #1F8A46; }
.br-a { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-top: 3px; }
.br-h { display: block; font-size: 10.5px; font-weight: 600; color: var(--muted); margin-top: 2px; opacity: .8; }
.br-go { flex: 0 0 auto; color: var(--muted); font-size: 19px; }

/* --- Ordenar: tarjetas al tamaño de la referencia --------------------- */
.way { min-height: 196px; padding: 20px 16px 20px 18px; border-radius: 22px; margin-bottom: 13px; }
.way-t { font-size: 23px; }
.way-d { font-size: 13px; margin-top: 9px; }
.way-tag { margin-top: 14px; padding: 8px 14px; font-size: 12.5px; }
/* La ilustración manda en la mitad derecha y puede rebasar la tarjeta. */
.way-art { width: 58%; right: -2%; transform: translateY(-52%); }
.way-go { width: 48px; height: 48px; right: 16px; bottom: 16px; }
.way-go svg { width: 21px; height: 21px; }

/* Accesos chicos, iguales a la referencia: ícono, etiqueta y flecha. */
.grid2.extras { gap: 11px; margin-top: 4px; }
.extra { padding: 16px 12px; border-radius: 16px; gap: 9px; font-size: 13px; }
.extra .ex-ico { width: 24px; height: 24px; }
.extra .ex-go { font-size: 17px; }

/* La ilustración invadía la columna de texto. Se corre a la derecha y el
   texto se limita para que nunca se crucen. */
.way-art { width: 53%; right: -4%; }
.way-txt { max-width: 52%; }
.way-t { font-size: 21.5px; }
.way-d { font-size: 12.5px; }

/* "Pedidos Grupales" rompía en dos líneas. */
.extra { font-size: 12px; gap: 8px; padding: 15px 11px; }
.extra .ex-ico { width: 22px; height: 22px; }

/* Sin el texto de abajo sobraba espacio: las tarjetas crecen y se acercan más
   a la proporción de la referencia, sin llegar a necesitar scroll. */
.way { min-height: 218px; margin-bottom: 14px; }
.way-t { font-size: 23px; }
.way-d { font-size: 13px; margin-top: 10px; }
.way-tag { margin-top: 15px; }
.way-art { width: 56%; }

/* En Safari la barra de direcciones Y la barra inferior se comen alto: el
   espacio real ronda los 610px, no 686. Se recorta para caber con holgura. */
.way { min-height: 182px; padding: 16px 14px 16px 16px; margin-bottom: 11px; }
.way-t { font-size: 20.5px; }
.way-d { font-size: 12px; margin-top: 7px; }
.way-tag { margin-top: 11px; padding: 7px 12px; font-size: 12px; }
/* Ilustraciones un poco más chicas, como pidió Ralph. */
.way-art { width: 51%; right: -3%; }
.way-go { width: 42px; height: 42px; right: 13px; bottom: 13px; }
.way-go svg { width: 19px; height: 19px; }
.extra { padding: 13px 11px; }

/* Interlineado en píxeles enteros: con 1.2 quedaba en 24.6px y el redondeo
   reportaba 2px de desborde. */
.way-t { line-height: 25px; }

/* Sobraba un bloque gris al final de Ordenar. En vez de un margen fijo —que
   en pantallas cortas devolvería el scroll— la pantalla se estira al alto
   disponible y los accesos chicos se empujan al fondo. Así el aire queda
   entre Delivery y ellos, y en pantallas cortas simplemente no sobra nada.
   dvh sigue a las barras de Safari cuando aparecen y desaparecen. */
#tab-order.on { display: flex; flex-direction: column; }
#tab-order #orderStep { display: flex; flex-direction: column; flex: 1 1 auto; }
#tab-order { min-height: calc(100vh - 64px - var(--topbar-h, 74px) - env(safe-area-inset-bottom, 0px)); }
@supports (height: 100dvh) {
  #tab-order { min-height: calc(100dvh - 64px - var(--topbar-h, 74px) - env(safe-area-inset-bottom, 0px)); }
}
/* El empujón: todo lo que sobra se va aquí arriba. */
#tab-order .grid2.extras { margin-top: auto; margin-bottom: 4px; }
/* En el paso del mapa la lista es la que se estira, no un hueco. */
#tab-order .branch-list { margin-bottom: auto; }

/* El relleno inferior de .tab-screen se sumaba al min-height y devolvía el
   scroll. En Ordenar el espacio de la tabbar ya está descontado arriba. */
#tab-order { padding-bottom: 0; }

/* Las fotos de oferta llenan más la tarjeta, como en la referencia. El margen
   negativo las deja sangrar hasta casi el borde. */
.oc-photo { height: 122px; margin: 4px -6px 0; }
.offer-card { padding: 12px 12px 12px; }
.oc-t { font-size: 13.5px; }

/* Ajustes pedidos: tarjetas más chicas y más juntas, y el regalo más pequeño. */
.grid2.offers { gap: 8px; padding-top: 12px; }
.offer-card { padding: 10px 10px 10px; border-radius: 16px; }
.oc-photo { height: 96px; margin: 3px -4px 0; }
.oc-tag { padding: 5px 10px; font-size: 11px; }
.oc-t { font-size: 12.5px; }
.oc-go svg { width: 17px; height: 17px; }

.sb-art { width: 31%; right: 14px; }
.save-banner { min-height: 116px; padding: 18px 16px; }
.save-banner h2 { font-size: 21px; }
.save-banner p { font-size: 12px; margin-top: 7px; }
.sb-txt { max-width: 62%; }

/* =====================================================================
   CABECERA COMPARTIDA — logo, título de la página y carrito.
   La usan Menú, Ordenar y Ofertas; el título lo pone shell.js.
   ===================================================================== */
.topbar { display: flex; align-items: center; gap: 11px; padding: 13px var(--gutter) 11px; }
/* Vista previa de una sucursal sin publicar. Abajo y fija: arriba la tapa el
   scroll y entonces alguien revisa media hora creyendo que está en vivo. */
.vista-previa {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: #1A1A1A; color: #FFC800;
  font-size: 12.5px; line-height: 1.35; text-align: center;
}
.vista-previa b { letter-spacing: .04em; text-transform: uppercase; }
body.con-vista-previa { padding-bottom: 64px; }

/* De cuál sucursal, en el checkout. */
.suc-pick { display: flex; flex-direction: column; gap: 9px; }
.sp {
  display: flex; align-items: flex-start; gap: 11px; cursor: pointer;
  padding: 13px 14px; border-radius: 15px;
  border: 2px solid var(--line); background: var(--card);
}
/* La elegida se ve distinta sin depender solo del puntito del radio: es de
   dónde sale la comida, y leerlo mal manda a alguien al otro lado de la
   ciudad. */
.sp.on { border-color: var(--yellow); background: var(--yellow-soft); }
.sp input { margin-top: 3px; width: 19px; height: 19px; accent-color: var(--ink); flex: none; }
.sp-txt { min-width: 0; }
.sp-txt b { display: block; font-size: 15px; }
.sp-txt small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.sp-cerrado { color: var(--danger) !important; font-weight: 700; }

.tb-logo { width: 46px; height: 46px; border-radius: 13px; flex: 0 0 auto; }
/* El de K-Lab es un wordmark (1000×329): en el cuadrado de 46px no se lee.
   Se le deja el ancho que pida y se le quita el redondeo, que en un logo
   rectangular le corta las esquinas a las letras. */
.tb-logo.wordmark { width: auto; height: 34px; max-width: 142px; border-radius: 0; }
/* Lo mismo donde quiera que salga el logo: un wordmark no cabe en un
   cuadrado. Los huecos son distintos, el problema es el mismo. */
.mc-logo.wordmark, .pc-marca-img.wordmark { width: auto; max-width: 110px; border-radius: 0; object-fit: contain; }
.tb-ttl { flex: 1 1 auto; min-width: 0; }
.tb-ttl h1 { margin: 0; font-family: var(--display); font-size: 25px; font-weight: 800; line-height: 1.05; }
.tb-ttl p { margin: 3px 0 0; font-size: 12.5px; font-weight: 600; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-order {
  flex: 0 0 auto; background: var(--ink); border: 0; color: var(--yellow);
  font-family: var(--font); font-weight: 800; border-radius: 999px;
  padding: 7px 13px; font-size: 12px; cursor: pointer;
}

/* --- Destacado con foto de ambiente ------------------------------------
   Cuando la foto ya viene oscura y con contexto (no un recorte sobre blanco),
   llena la tarjeta entera y el texto va encima, que es como se ve mejor. */
.dish-hero.dark-photo .dh-photo { position: absolute; inset: 0; width: 100%; right: 0; display: block; }
.dish-hero.dark-photo .dh-photo img { width: 100%; height: 100%; object-fit: cover; transform: none; max-width: none; }
.dish-hero.dark-photo .dh-photo::after {
  background: linear-gradient(to right, rgba(10,9,7,.94) 0%, rgba(10,9,7,.78) 38%, rgba(10,9,7,.30) 68%, rgba(10,9,7,.10) 100%);
}
.dish-hero.dark-photo .dh-body { width: 62%; }

/* El degradado apagaba la foto de ambiente. Se acorta y se aclara del lado
   derecho para que la comida se vea viva; el texto sigue sobre la zona oscura. */
.dish-hero.dark-photo .dh-photo::after {
  background: linear-gradient(to right, rgba(8,7,5,.92) 0%, rgba(8,7,5,.70) 34%, rgba(8,7,5,.14) 62%, rgba(8,7,5,0) 88%);
}

/* Aviso de local cerrado dentro del checkout. */
.closed-notice {
  margin: 0 0 16px; padding: 14px 15px; border-radius: 14px;
  background: var(--yellow-soft); border: 1px solid var(--yellow);
}
.closed-notice b { display: block; font-size: 14px; font-weight: 800; color: var(--ink); }
.closed-notice span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 4px; line-height: 1.45; }
#placeOrderBtn:disabled { background: var(--line); color: var(--muted); cursor: default; }

/* =====================================================================
   HOJA DE PRODUCTO — rediseño según la referencia de Ralph
   ===================================================================== */
.item-sheet .is-photo { height: 226px; background: var(--ink); }
.item-sheet .is-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-sheet .is-x {
  top: 14px; right: 14px; width: 38px; height: 38px;
  background: rgba(30,28,24,.62); color: #fff; font-size: 15px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.item-sheet .is-grab { background: rgba(255,255,255,.75); z-index: 4; }
/* El cuerpo monta sobre la foto con esquinas redondeadas. */
.item-sheet .is-body {
  position: relative; z-index: 2; margin-top: -22px;
  background: var(--paper); border-radius: 24px 24px 0 0; padding: 20px 16px 14px;
}

.is-top { display: flex; align-items: center; gap: 10px; }
.is-top h3 { flex: 1 1 auto; min-width: 0; margin: 0; font-family: var(--display);
  font-size: 24px; font-weight: 800; line-height: 1.1; }
.is-best {
  flex: 0 0 auto; background: var(--yellow-soft); color: #A97900;
  border-radius: 999px; padding: 7px 12px; font-size: 11px; font-weight: 800; letter-spacing: .04em;
}
.item-sheet .sheet-desc { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.45; }

/* Bloques de opciones */
.ps-block { margin-top: 20px; }
.ps-h { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.ps-req { background: var(--yellow-soft); color: #A97900; border-radius: 999px;
  padding: 4px 10px; font-size: 10.5px; font-weight: 800; }
.ps-req.opt { background: #EFEDE5; color: var(--muted); }

/* Presentaciones en 2 columnas */
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ps-card {
  position: relative; display: block; text-align: left; cursor: pointer;
  padding: 13px 12px; border-radius: 16px; background: var(--card);
  border: 1px solid var(--line); font-family: var(--font);
  transition: transform .12s ease, border-color .12s ease;
}
.ps-card:active { transform: scale(.98); }
.ps-ico {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px;
  background: var(--ink); color: var(--yellow);
}
.ps-ico svg { width: 22px; height: 22px; }
.ps-ico.sm { width: 26px; height: 26px; background: none; color: var(--ink); }
.ps-ico.sm svg { width: 18px; height: 18px; }
.ps-card .ps-txt { display: block; margin-top: 9px; }
.ps-n { display: block; font-size: 14.5px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.ps-s { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 2px; line-height: 1.3; }
.ps-p { display: block; margin-top: 9px; font-size: 17px; font-weight: 800; color: var(--ink); }
.ps-check {
  position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 999px;
  background: var(--yellow); color: var(--ink); display: none; place-items: center;
}
.ps-check svg { width: 12px; height: 12px; }
/* Seleccionado: tarjeta negra con borde amarillo. */
.ps-card.on { background: #17160F; border-color: var(--yellow); border-width: 2px; padding: 12px 11px; }
.ps-card.on .ps-n { color: #fff; }
.ps-card.on .ps-s { color: rgba(255,255,255,.6); }
.ps-card.on .ps-p { color: var(--yellow); }
.ps-card.on .ps-ico { background: rgba(255,255,255,.1); }
.ps-card.on .ps-check { display: grid; }

/* Opciones tipo pastilla (salsas) */
.ps-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-chip {
  position: relative; display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 10px 14px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); font-family: var(--font);
  font-size: 13px; font-weight: 800; color: var(--ink);
}
.ps-chip .ps-check { top: -5px; right: -3px; width: 19px; height: 19px; }
.ps-chip .ps-check svg { width: 10px; height: 10px; }
.ps-delta { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.ps-chip.on { background: #17160F; border-color: var(--yellow); border-width: 2px; padding: 9px 13px; color: var(--yellow); }
.ps-chip.on .ps-ico.sm { color: var(--yellow); }
.ps-chip.on .ps-check { display: grid; }

/* Nota para la cocina, plegada */
.ps-note {
  display: flex; align-items: center; gap: 9px; width: 100%; margin-top: 18px;
  padding: 14px 13px; border-radius: 16px; background: var(--card);
  border: 1px solid var(--line); cursor: pointer; font-family: var(--font);
}
.ps-note-l { flex: 1 1 auto; text-align: left; font-size: 13.5px; font-weight: 800; color: var(--ink); }
.ps-note-r { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--muted); }
.ps-note-r b { font-size: 16px; margin-left: 4px; }
.ps-note-box {
  width: 100%; margin-top: 8px; padding: 12px 13px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card); resize: none;
  font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--ink);
}
.ps-note-box:focus { outline: none; border-color: var(--yellow); }

/* Barra inferior fija dentro de la hoja */
.is-bar {
  position: sticky; bottom: 0; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--card); border-top: 1px solid var(--line);
}
.is-bar .qty { flex: 0 0 auto; background: var(--ink); border: 0; border-radius: 999px; padding: 5px; gap: 2px; }
.is-bar .qty button { background: none; color: var(--yellow); width: 34px; height: 34px; font-size: 20px; }
.is-bar .qty button:active { background: rgba(255,255,255,.12); }
.is-bar .qty span { color: #fff; min-width: 28px; }
.is-bar .is-add {
  flex: 1 1 auto; padding: 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--yellow); color: var(--ink);
  font-family: var(--font); font-weight: 800; font-size: 15.5px;
}
.item-sheet { max-height: 92vh; display: flex; flex-direction: column; }
.item-sheet .is-body { flex: 1 1 auto; overflow-y: auto; }

/* La hoja entera se desplaza, no solo el cuerpo: así la foto sube con el
   contenido en vez de quedarse fija mientras el texto pasa por debajo. */
.item-sheet { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.item-sheet .is-body { overflow: visible; flex: 0 0 auto; }
/* Absoluto: acompaña a la foto al desplazarse. Fijo se salía de la hoja. */
.item-sheet .is-x { position: absolute; }

/* --- Hoja de producto compacta: todo a la vista, sin desplazar -------- */
.item-sheet { overflow: hidden; }
.item-sheet .is-photo { height: 148px; background: var(--white); }
.item-sheet .is-body { padding: 16px 15px 10px; margin-top: -20px; }
.is-top h3 { font-size: 20px; }
.is-best { padding: 5px 10px; font-size: 10px; }
.item-sheet .sheet-desc {
  margin-top: 6px; font-size: 12px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.ps-block { margin-top: 14px; }
.ps-h { font-size: 13.5px; margin-bottom: 8px; gap: 7px; }
.ps-req { padding: 3px 9px; font-size: 10px; }

.ps-grid { gap: 8px; }
.ps-card { padding: 10px 10px; border-radius: 14px; }
.ps-card.on { padding: 9px 9px; }
.ps-ico { width: 32px; height: 32px; }
.ps-ico svg { width: 17px; height: 17px; }
.ps-card .ps-txt { margin-top: 7px; }
.ps-n { font-size: 13px; }
.ps-s { font-size: 10px; }
.ps-p { margin-top: 6px; font-size: 15px; }
.ps-check { width: 19px; height: 19px; top: 8px; right: 8px; }

.ps-chips { gap: 7px; }
.ps-chip { padding: 8px 12px; font-size: 12px; gap: 6px; border-radius: 999px; }
.ps-chip.on { padding: 7px 11px; }
.ps-ico.sm { width: 20px; height: 20px; }
.ps-ico.sm svg { width: 15px; height: 15px; }

.ps-note { margin-top: 12px; padding: 11px 12px; border-radius: 14px; }
.ps-note-l { font-size: 12.5px; }
.ps-note-r { font-size: 11.5px; }

.is-bar { padding: 10px 15px calc(12px + env(safe-area-inset-bottom, 0px)); }
.is-bar .qty button { width: 30px; height: 30px; font-size: 18px; }
.is-bar .is-add { padding: 14px; font-size: 14.5px; }

/* Con 3 presentaciones, dos columnas dejan una fila casi vacía y la hoja se
   pasa de alto. Tres columnas las acomoda en una sola fila. */
.ps-grid[data-n="3"] { grid-template-columns: repeat(3, 1fr); }
.ps-grid[data-n="3"] .ps-card { padding: 9px 8px; }
.ps-grid[data-n="3"] .ps-n { font-size: 12px; }
.ps-grid[data-n="3"] .ps-p { font-size: 14px; }
.ps-grid[data-n="3"] .ps-ico { width: 28px; height: 28px; }
.ps-grid[data-n="3"] .ps-ico svg { width: 15px; height: 15px; }

/* Las salsas y demás opciones caben en una sola fila. Sin el ícono y con la
   fila desplazable, entran las cuatro sin partirse en dos líneas. */
.ps-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ps-chips::-webkit-scrollbar { display: none; }
.ps-chip { flex: 0 0 auto; white-space: nowrap; padding: 9px 13px; }
.ps-chip.on { padding: 8px 12px; }
.ps-chip .ps-ico.sm { display: none; }

/* Con el combo elegido aparecen dos grupos más (side y bebida) y la hoja se
   pasaba de alto. Se aprieta el ritmo vertical de los bloques. */
.item-sheet .is-photo { height: 124px; }
.ps-block { margin-top: 11px; }
.ps-h { font-size: 13px; margin-bottom: 6px; }
.ps-chip { padding: 7px 12px; font-size: 11.5px; }
.ps-chip.on { padding: 6px 11px; }
.ps-card { padding: 9px; }
.ps-card.on { padding: 8px; }
.ps-ico { width: 28px; height: 28px; }
.ps-ico svg { width: 15px; height: 15px; }
.ps-card .ps-txt { margin-top: 6px; }
.ps-n { font-size: 12.5px; }
.ps-p { margin-top: 5px; font-size: 14px; }
.ps-note { margin-top: 10px; padding: 10px 12px; }
.item-sheet .is-body { padding: 14px 15px 8px; }
.item-sheet .sheet-desc { margin-top: 5px; }

/* Faltaban 14px en el peor caso (Strips en combo: 4 presentaciones + 3 grupos). */
.item-sheet .is-photo { height: 112px; }
.ps-block { margin-top: 10px; }

/* --- Estructura de la hoja: la barra de agregar NUNCA se pierde ---------
   Antes la hoja entera tenía overflow:hidden. En cuanto el contenido no cabía
   —por ejemplo al elegir combo, que suma dos grupos— el botón de agregar
   quedaba fuera de la pantalla y sin forma de llegar a él. Ahora la foto y las
   opciones se desplazan y la barra queda fija abajo. */
.item-sheet { display: flex; flex-direction: column; overflow: hidden; max-height: 92vh; }
@supports (height: 100dvh) { .item-sheet { max-height: 92dvh; } }
.is-scroll { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; min-height: 0; }
.item-sheet .is-body { flex: 0 0 auto; overflow: visible; }
.is-bar { position: static; flex: 0 0 auto; }

/* --- Opciones como tarjeta: foto arriba, nombre debajo -----------------
   Las salsas todavía no tienen foto: llevan un marcador dibujado en vez de
   una imagen rota o un cuadro vacío. */
.ps-opt {
  position: relative; flex: 0 0 auto; width: 88px; cursor: pointer;
  padding: 8px 6px 9px; border-radius: 14px; background: var(--card);
  border: 1px solid var(--line); font-family: var(--font);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  transition: transform .12s ease;
}
.ps-opt:active { transform: scale(.97); }
.po-art {
  width: 100%; height: 52px; border-radius: 10px; overflow: hidden;
  display: grid; place-items: center; background: var(--white);
}
.po-art img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Marcador: fondo suave con el ícono de salsera y una trama sutil, para que se
   note que falta la foto y no parezca un error. */
.po-art.ph {
  background: var(--yellow-soft); color: #B78A00;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.55) 0 5px, transparent 5px 10px);
}
.po-art.ph svg { width: 24px; height: 24px; }
.po-n { font-size: 10.5px; font-weight: 800; color: var(--ink); text-align: center; line-height: 1.2; }
.po-d { font-size: 10px; font-weight: 700; color: var(--muted); }
.ps-opt .ps-check { top: 5px; right: 5px; width: 18px; height: 18px; }
.ps-opt .ps-check svg { width: 10px; height: 10px; }
.ps-opt.on { background: #17160F; border-color: var(--yellow); border-width: 2px; padding: 7px 5px 8px; }
.ps-opt.on .po-n { color: #fff; }
.ps-opt.on .po-d { color: rgba(255,255,255,.6); }
.ps-opt.on .ps-check { display: grid; }

/* La foto del popup se veía recortada en todos los platos: con `cover` el
   marco cuadrado cortaba los lados de fotos que son 2:1. Con `contain` se ve
   el plato completo sobre el blanco de la foto. */
.item-sheet .is-photo img { object-fit: contain; }

/* Aviso del precio de las opciones adicionales, junto al título del grupo. */
.ps-hint { font-size: 10.5px; font-weight: 700; color: var(--muted); margin-left: auto; }
/* Las salsas que se cobran llevan su precio en amarillo sobre la tarjeta. */
.po-d.cobra {
  position: absolute; top: 5px; left: 5px; background: var(--yellow); color: var(--ink);
  border-radius: 999px; padding: 3px 7px; font-size: 9.5px; font-weight: 800;
}

/* =====================================================================
   HOJA DE SUGERENCIAS — se abre tras agregar algo al carrito
   ===================================================================== */
.upsell-sheet { padding: 0 0 calc(12px + env(safe-area-inset-bottom, 0px)); border-radius: 26px 26px 0 0; }
.up-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 4px; }
.up-ok {
  width: 34px; height: 34px; border-radius: 999px; flex: 0 0 auto;
  background: #DCF5E3; color: #1F8A46; display: grid; place-items: center;
  font-size: 16px; font-weight: 800;
}
.up-t { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.up-s { font-family: var(--display); font-size: 19px; font-weight: 800; color: var(--ink); margin-top: 1px; }

.up-row {
  display: flex; gap: 10px; overflow-x: auto; padding: 14px 18px 4px;
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.up-row::-webkit-scrollbar { display: none; }
.up-card {
  flex: 0 0 128px; scroll-snap-align: start; padding: 9px;
  border-radius: 16px; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(20,20,10,.06); transition: border-color .15s ease;
}
.up-card.added { border-color: var(--yellow); border-width: 2px; padding: 8px; }
.up-photo { height: 78px; border-radius: 11px; overflow: hidden; background: var(--white); }
.up-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.up-n {
  font-size: 12px; font-weight: 800; color: var(--ink); margin-top: 8px; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 29px;
}
.up-foot { display: flex; align-items: center; gap: 6px; margin-top: 7px; }
.up-p { flex: 1 1 auto; font-size: 13px; font-weight: 800; color: var(--ink); }
.up-add {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--yellow); color: var(--ink); font-size: 16px; font-weight: 800;
  display: grid; place-items: center; line-height: 1;
}

.up-bar { display: flex; gap: 10px; padding: 14px 18px 0; }
.up-skip, .up-go {
  flex: 1 1 auto; padding: 14px; border-radius: 999px; cursor: pointer;
  font-family: var(--font); font-weight: 800; font-size: 13.5px;
}
.up-skip { background: none; border: 1px solid var(--line); color: var(--ink); }
.up-go { background: var(--ink); border: 0; color: var(--yellow); }

/* El espacio sobrante se repartía todo entre Delivery y los accesos chicos, y
   dejaba un hueco grande. Ahora lo absorben las dos tarjetas grandes, que
   crecen en pantallas altas; los accesos quedan justo debajo. */
#tab-order .grid2.extras { margin-top: 0; }
#tab-order .way { flex: 1 1 auto; }
#tab-order .way-txt { justify-content: center; }

/* Con las tarjetas más altas el texto quedaba pegado arriba. */
#tab-order .way { align-items: center; }

/* La tarjeta de delivery ya no está apagada. */
#tab-order .way.delivery { background: #F5F3EC; }
#tab-order .way.delivery .way-t, #tab-order .way.delivery .way-d { opacity: 1; }
#tab-order .way.delivery .way-tag.on { background: var(--ink); color: var(--yellow); }
#tab-order .way.delivery .way-go { background: var(--ink); color: var(--white); }

/* Aviso informativo del checkout (delivery), en el mismo estilo que el de cerrado. */
.closed-notice.info { background: var(--white); border-color: var(--line); }
.closed-notice.info b { color: var(--ink); }

/* --- Selector de entrega dentro del carrito ---------------------------- */
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 16px; }
.ms-opt {
  padding: 13px 12px; border-radius: 16px; cursor: pointer; text-align: left;
  background: var(--card); border: 1px solid var(--line); font-family: var(--font);
  transition: border-color .12s ease, background .12s ease;
}
.ms-t { display: block; font-size: 13.5px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.ms-d { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 3px; line-height: 1.3; }
.ms-opt.on { background: var(--ink); border-color: var(--ink); }
.ms-opt.on .ms-t { color: var(--white); }
.ms-opt.on .ms-d { color: rgba(255,255,255,.65); }

/* La imagen se dimensionaba a 74x74 dentro de un recuadro de 74x52 y se
   recortaba: con `place-items: center` el height:100% no la limitaba. Se
   acota por máximos, que sí respetan la proporción y nunca desbordan. */
.po-art { height: 58px; }
.po-art img {
  width: auto; height: auto; max-width: 100%; max-height: 100%;
  object-fit: contain; margin: 0 auto;
}

/* El max-height en porcentaje no se resolvía dentro del contenedor de rejilla.
   Con una altura fija la imagen siempre entra completa. */
.po-art { display: flex; align-items: center; justify-content: center; padding: 3px; }
.po-art img { height: 52px; width: auto; max-width: 100%; object-fit: contain; }

/* --- Barra flotante del carrito, compacta -----------------------------
   Ocupaba todo el ancho y tapaba los platos de la última fila. Ahora se
   ajusta a su contenido y el listado reserva su alto, así nada queda
   permanentemente escondido detrás. */
.cart-bar {
  width: auto; max-width: calc(100% - 32px);
  padding: 11px 16px; font-size: 13.5px; gap: 8px;
  bottom: calc(74px + env(safe-area-inset-bottom, 0px));
}
.cart-bar .count { width: 22px; height: 22px; font-size: 12px; }
.cart-bar .label { flex: 0 0 auto; }
.cart-bar .total { font-size: 14px; }

/* Sitio para la barra al final del contenido desplazable. */
body.con-carrito #tab-menu { padding-bottom: 132px; }
body.con-carrito #tab-offers,
body.con-carrito #tab-home,
body.con-carrito #tab-rewards { padding-bottom: 120px; }

/* =====================================================================
   CARRITO — rediseño según la referencia de Ralph
   ===================================================================== */
#checkout { display: flex; flex-direction: column; }
.co-head {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px;
  padding: 14px var(--gutter) 12px; background: var(--paper);
}
.co-head h2 { flex: 1 1 auto; margin: 0; text-align: center; font-family: var(--display); font-size: 19px; font-weight: 800; }
.co-back {
  flex: 0 0 auto; border: 0; background: none; cursor: pointer; padding: 0;
  font-family: var(--font); font-weight: 700; font-size: 13px; color: var(--ink);
  display: inline-flex; align-items: center; gap: 5px;
}
.co-cart { position: relative; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 999px;
  background: var(--white); box-shadow: var(--shadow); display: grid; place-items: center; font-size: 17px; }
.cc-n { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--yellow); color: var(--ink);
  font-size: 11px; font-weight: 800; display: grid; place-items: center; }

#checkout .inner { flex: 1 1 auto; overflow-y: auto; padding: 0 var(--gutter) 16px; }
.co-sec { font-family: var(--display); font-size: 16px; font-weight: 800; margin: 18px 0 10px; }
.co-block { margin-top: 4px; }

/* --- Línea del pedido --- */
.co-line {
  display: flex; gap: 12px; padding: 12px; margin-bottom: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 1px 3px rgba(20,20,10,.05);
}
.cl-photo { flex: 0 0 84px; height: 84px; border-radius: 14px; overflow: hidden;
  background: var(--white); display: grid; place-items: center; }
.cl-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cl-emoji { font-size: 32px; }
.cl-body { flex: 1 1 auto; min-width: 0; }
.cl-top { display: flex; align-items: flex-start; gap: 10px; }
.cl-name { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 800; line-height: 1.2; }
.cl-price { flex: 0 0 auto; font-size: 15px; font-weight: 800; }
.cl-sub { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.cl-note { font-size: 11.5px; font-weight: 700; color: #B45309; margin-top: 3px; }
.cl-foot { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.cl-qty { display: flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.cl-qty button { width: 28px; height: 28px; border-radius: 999px; border: 0; cursor: pointer;
  background: none; color: var(--ink); font-size: 16px; font-weight: 800; display: grid; place-items: center; }
.cl-qty button:active { background: var(--paper); }
.cl-qty span { min-width: 24px; text-align: center; font-weight: 800; font-size: 14px; }
.cl-del { margin-left: auto; border: 0; background: none; cursor: pointer;
  font-family: var(--font); font-weight: 700; font-size: 12.5px; color: var(--muted); }

/* --- Añade algo más --- */
.add-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.add-card { position: relative; padding: 10px 9px 11px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(20,20,10,.05); }
.add-plus { position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 26px; height: 26px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer;
  background: var(--white); color: var(--ink); font-size: 15px; font-weight: 800;
  display: grid; place-items: center; line-height: 1; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.add-photo { height: 68px; display: grid; place-items: center; }
.add-photo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.add-n { font-size: 11.5px; font-weight: 800; margin-top: 8px; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.add-p { font-size: 12.5px; font-weight: 800; color: var(--muted); margin-top: 3px; }

/* --- ¿Cómo quieres tu pedido? --- */
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ms-card {
  position: relative; display: block; text-align: left; cursor: pointer; overflow: hidden;
  padding: 14px 12px 12px; min-height: 196px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line); font-family: var(--font);
  transition: border-color .12s ease, background .12s ease;
}
.ms-card.on { background: #FDF1C8; border-color: var(--yellow); border-width: 2px; padding: 13px 11px 11px; }
.ms-check { position: absolute; top: 11px; right: 11px; width: 22px; height: 22px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--white); }
.ms-card.on .ms-check { background: var(--ink); border-color: var(--ink); }
.ms-card.on .ms-check::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--white); font-size: 12px; font-weight: 800; }
.ms-t { display: block; font-family: var(--display); font-size: 16px; font-weight: 800;
  line-height: 1.15; padding-right: 26px; }
.ms-d { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 6px; line-height: 1.35; }
.ms-art { display: block; margin-top: 6px; }
.ms-art img { width: 100%; height: auto; display: block; }
.ms-tag { display: inline-block; margin-top: 8px; padding: 6px 11px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; background: var(--yellow); color: var(--ink); }
.ms-card:not(.on) .ms-tag { background: var(--ink); color: var(--yellow); }

/* --- Barra fija con el total --- */
.co-bar {
  flex: 0 0 auto; display: flex; align-items: center; gap: 12px;
  padding: 12px var(--gutter) calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--card); border-top: 1px solid var(--line);
}
.co-total { flex: 0 0 auto; }
.co-total span { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.co-total b { display: block; font-family: var(--display); font-size: 21px; font-weight: 800; }
.co-go {
  flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--yellow); color: var(--ink);
  font-family: var(--font); font-weight: 800; font-size: 14.5px;
}
.co-go:disabled { background: var(--line); color: var(--muted); cursor: default; }
.co-go[hidden] { display: none; }  /* #coIrPagar: el display:flex de arriba le ganaba al hidden */
.co-arrow { font-size: 16px; }

/* La barra del total quedaba detrás de la barra de tabs. */
#checkout { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
.cl-del { display: inline-flex; align-items: center; gap: 5px; }
.cl-del svg { width: 15px; height: 15px; }

/* --- Carrito compacto: todo entra en una vista ------------------------
   Las medidas salen de la referencia de Ralph: tarjeta de pedido ~115px,
   sugerencias ~120px, tarjetas de modo ~170px y barra de total ~55px. */
.co-head { padding: 10px var(--gutter) 8px; }
.co-head h2 { font-size: 18px; }
#checkout .inner { padding: 0 var(--gutter) 10px; }
.co-sec { font-size: 14.5px; margin: 12px 0 8px; }

.co-line { padding: 10px; margin-bottom: 0; border-radius: 16px; gap: 10px; }
.cl-photo { flex: 0 0 88px; height: 88px; border-radius: 12px; }
.cl-name { font-size: 14.5px; }
.cl-price { font-size: 15px; }
.cl-sub { font-size: 11.5px; }
.cl-foot { margin-top: 8px; }
.cl-qty button { width: 26px; height: 26px; }

.add-card { padding: 8px 8px 9px; border-radius: 14px; }
.add-photo { height: 58px; }
.add-plus { width: 24px; height: 24px; font-size: 14px; top: 7px; right: 7px; }
.add-n { font-size: 11px; margin-top: 6px; }
.add-p { font-size: 12px; margin-top: 2px; }

.ms-card { min-height: 168px; padding: 12px 10px 10px; border-radius: 16px; }
.ms-card.on { padding: 11px 9px 9px; }
.ms-t { font-size: 14.5px; }
.ms-d { font-size: 10.5px; margin-top: 5px; }
.ms-art { margin-top: 4px; }
.ms-tag { margin-top: 6px; padding: 5px 10px; font-size: 10px; }
.ms-check { width: 20px; height: 20px; top: 10px; right: 10px; }

.co-bar { padding: 10px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px)); }
.co-total b { font-size: 19px; }
.co-go { padding: 14px; font-size: 14px; }

/* La foto del pedido llena su cuadro, como en la referencia. Aquí sí conviene
   recortar: es una miniatura de algo que el cliente ya eligió y sabe qué es,
   y con `contain` una foto 2:1 quedaba diminuta dentro del cuadrado. */
.cl-photo img { object-fit: cover; }

/* --- Carrito en pantallas cortas --------------------------------------
   Con las dos barras de Safari visibles quedan ~620px, y ahí los cuatro
   bloques no entran a tamaño completo. Se achica todo en proporción antes
   que dejar que la barra del total se pierda de vista. */
@media (max-height: 780px) {
  .co-head { padding: 8px var(--gutter) 6px; }
  .co-head h2 { font-size: 16.5px; }
  .co-sec { font-size: 13px; margin: 9px 0 6px; }

  .co-line { padding: 8px; border-radius: 14px; gap: 9px; }
  .cl-photo { flex: 0 0 64px; height: 64px; border-radius: 10px; }
  .cl-name, .cl-price { font-size: 13px; }
  .cl-sub { font-size: 10.5px; }
  .cl-foot { margin-top: 6px; }
  .cl-qty button { width: 23px; height: 23px; font-size: 14px; }
  .cl-qty span { font-size: 12.5px; min-width: 20px; }
  .cl-del { font-size: 11px; }

  .add-card { padding: 6px 6px 7px; border-radius: 12px; }
  .add-photo { height: 44px; }
  .add-plus { width: 21px; height: 21px; font-size: 13px; top: 5px; right: 5px; }
  .add-n { font-size: 10px; margin-top: 5px; -webkit-line-clamp: 1; }
  .add-p { font-size: 11px; }

  .ms-card { min-height: 126px; padding: 9px 8px 8px; border-radius: 14px; }
  .ms-card.on { padding: 8px 7px 7px; }
  .ms-t { font-size: 12.5px; }
  .ms-d { font-size: 9.5px; margin-top: 3px; }
  .ms-art { margin-top: 2px; }
  .ms-tag { margin-top: 4px; padding: 4px 8px; font-size: 9px; }
  .ms-check { width: 17px; height: 17px; top: 8px; right: 8px; }

  .co-bar { padding: 8px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); }
  .co-total b { font-size: 17px; }
  .co-go { padding: 12px; font-size: 13px; }
}

/* Por debajo de 660px de alto no entran los cuatro bloques ni achicándolos.
   Se sacrifica "Añade algo más", que es una sugerencia y no parte del pedido;
   lo esencial —qué pediste, cómo lo quieres y el total— se queda. */
@media (max-height: 720px) {
  .co-block:has(.add-row) { display: none; }
}

/* --- Carrito: aire y fotos que no se desbordan -------------------------
   La foto del Dip es cuadrada y se salía de su recuadro, tapando el nombre y
   el precio: con `place-items: center` el max-height en porcentaje no la
   limitaba, el mismo caso que ya pasó con las salsas. Altura fija. */
.add-photo { height: 62px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.add-photo img { height: 58px; width: auto; max-width: 100%; object-fit: contain; }

/* Más aire entre bloques y dentro de las tarjetas. */
.co-sec { margin: 16px 0 10px; }
.add-card { padding: 10px 9px 11px; }
.add-n { margin-top: 9px; line-height: 1.25; }
.add-p { margin-top: 4px; }
.co-line { padding: 12px; }
.cl-body { padding-top: 2px; }
.cl-sub { margin-top: 3px; }
.add-row { gap: 10px; }

@media (max-height: 780px) {
  .add-photo { height: 50px; }
  .add-photo img { height: 46px; }
  .co-sec { margin: 11px 0 7px; }
}

/* Un combo trae hasta cuatro líneas de detalle y la tarjeta del pedido crece.
   El detalle se compacta un poco para que el carrito siga entrando entero;
   sigue legible y no se corta nada. */
.cl-sub { font-size: 11px; line-height: 1.3; margin-top: 1px; }
.cl-photo { flex: 0 0 78px; height: 78px; }
.co-line { padding: 11px; }
.ms-card { min-height: 158px; }
.add-photo { height: 56px; }
.add-photo img { height: 52px; }

/* Últimos 24px para que un pedido con combo también entre completo. */
.ms-card { min-height: 146px; }
.co-sec { margin: 13px 0 8px; }

/* La ilustración se escalaba al ancho de la tarjeta y la estiraba a 238px de
   alto. Se le pone tope: la tarjeta manda, no la imagen. */
.ms-art { display: flex; align-items: center; justify-content: center; }
.ms-art img { width: auto; max-width: 100%; height: 78px; }
@media (max-height: 780px) { .ms-art img { height: 62px; } }

/* Pantallas muy cortas (iPhone SE con las dos barras): faltaban unos pocos
   píxeles para que el pedido con combo entrara completo. */
@media (max-height: 620px) {
  .ms-art img { height: 52px; }
  .ms-card { min-height: 0; }
  .co-sec { margin: 9px 0 6px; }
}

/* El carrusel de sugerencias arrancaba pegado al borde izquierdo: scroll-snap
   alinea la primera tarjeta con el borde del área de scroll ignorando el
   padding, así que el navegador se desplazaba justo esos 18px y lo anulaba.
   Es el mismo caso que el carrusel de promos de Inicio. */
.up-row { scroll-padding-left: 18px; scroll-padding-right: 18px; }

/* =====================================================================
   CABECERA: carrito y cuenta
   ===================================================================== */
.header-cart .hc-ico, .header-user .hu-ico { display: grid; place-items: center; }
.header-cart .hc-ico svg, .header-user .hu-ico svg { width: 21px; height: 21px; }
.header-user {
  position: relative; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow);
}

/* =====================================================================
   HOJA DE CUENTA
   ===================================================================== */
.acc-back {
  position: fixed; inset: 0; z-index: 240; display: flex; align-items: flex-end;
  background: rgba(15,15,12,0); transition: background .22s ease;
}
.acc-back.in { background: rgba(15,15,12,.62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.acc-sheet {
  position: relative; width: 100%; max-height: 95vh; overflow-y: auto;
  background: var(--paper); border-radius: 26px 26px 0 0;
  transform: translateY(100%); transition: transform .26s cubic-bezier(.22,.9,.3,1);
  padding: 0 16px calc(18px + env(safe-area-inset-bottom, 0px));
}
@supports (height: 100dvh) { .acc-sheet { max-height: 95dvh; } }
.acc-back.in .acc-sheet { transform: translateY(0); }
.acc-x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 999px;
  border: 0; cursor: pointer; background: var(--white); color: var(--ink);
  font-size: 14px; font-weight: 800; display: grid; place-items: center; box-shadow: var(--shadow); }

.acc-form { margin-top: 18px; }
.acc-cta { display: block; width: 100%; margin-top: 12px; padding: 16px; border-radius: 999px; border: 0;
  cursor: pointer; background: var(--ink); color: var(--yellow);
  font-family: var(--font); font-weight: 800; font-size: 14.5px; }
.acc-nota { margin: 10px 0 0; font-size: 11.5px; font-weight: 600; color: var(--muted); text-align: center; line-height: 1.4; }
.acc-link { display: block; width: 100%; margin-top: 10px; padding: 12px; border: 0; background: none;
  cursor: pointer; font-family: var(--font); font-weight: 800; font-size: 13px; color: var(--muted); }
.acc-link.danger { color: #C0392B; margin-top: 16px; }
.acc-code { width: 100%; padding: 16px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--card); text-align: center; font-family: var(--font);
  font-size: 26px; font-weight: 800; letter-spacing: .3em; color: var(--ink); }
.acc-code:focus { outline: none; border-color: var(--yellow); }

.acc-perfil { display: flex; align-items: center; gap: 12px; padding: 24px 0 0; }
.acc-avatar { width: 52px; height: 52px; border-radius: 999px; flex: 0 0 auto;
  background: var(--yellow); color: var(--ink); display: grid; place-items: center;
  font-family: var(--display); font-size: 22px; font-weight: 800; }
.acc-datos { flex: 1 1 auto; min-width: 0; }
.acc-n { font-size: 17px; font-weight: 800; }
.acc-p { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 1px; }
.acc-d { font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.acc-tier { flex: 0 0 auto; background: var(--ink); color: var(--yellow); border-radius: 999px;
  padding: 6px 11px; font-size: 11.5px; font-weight: 800; white-space: nowrap; }

.acc-res { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.acc-res > div { padding: 12px 8px; border-radius: 14px; background: var(--card);
  border: 1px solid var(--line); text-align: center; }
.acc-res b { display: block; font-family: var(--display); font-size: 21px; font-weight: 800; }
.acc-res span { display: block; font-size: 10.5px; font-weight: 700; color: var(--muted); margin-top: 2px; }

.acc-sec { font-family: var(--display); font-size: 16px; font-weight: 800; margin: 20px 0 9px; }
.acc-act, .pf-act { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.acc-act li, .pf-act li { display: flex; align-items: center; gap: 11px; padding: 12px 13px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); }
/* Faltaban los iconos de los tipos nuevos: sin ellos la burbuja salía vacía. */
.aa-ico.referido::before { content: '🤝'; }
.aa-ico.oferta::before { content: '🏷️'; }
.aa-ico.beneficio::before { content: '🏆'; }
.aa-ico.devolucion::before { content: '↩️'; }
.aa-ico { width: 30px; height: 30px; border-radius: 999px; flex: 0 0 auto; display: grid; place-items: center;
  background: var(--yellow-soft); font-size: 14px; }
.aa-ico.canje::before { content: '🎁'; }
.aa-ico.pedido::before { content: '🛍️'; }
.aa-ico.nivel::before { content: '⭐'; }
.aa-txt { flex: 1 1 auto; min-width: 0; }
.aa-txt b { display: block; font-size: 13px; font-weight: 800; line-height: 1.25; }
.aa-txt span { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.aa-pts { flex: 0 0 auto; font-size: 13px; font-weight: 800; }
.aa-pts.up { color: #1F8A46; }
.aa-pts.down { color: #C0392B; }

/* =====================================================================
   TARJETA DE INVITADO — "Tu membresía, más sabor" (diseño de Ralph)
   La tarjeta 3D y los destellos son CSS: no hubo que sumar una imagen.
   ===================================================================== */
.join-card {
  position: relative; overflow: hidden; display: block; text-align: left; cursor: pointer;
  margin: 0 var(--gutter); width: calc(100% - var(--gutter) * 2);
  padding: 18px 16px 16px; border-radius: 24px;
  background: radial-gradient(120% 90% at 78% 18%, #232019 0%, #131210 55%, #0C0B0A 100%);
  color: var(--white); font-family: var(--font);
  box-shadow: 0 12px 30px rgba(10,10,8,.38);
}

/* --- Render de la tarjeta de socio ---
   La imagen viene sobre negro. Con `screen` el negro desaparece contra el
   fondo oscuro de la tarjeta y solo quedan el plástico y su resplandor, sin
   el recuadro que dejaría pegarla tal cual. */
.jc-spark { position: absolute; width: 5px; height: 5px; border-radius: 999px; background: #fff;
  box-shadow: 0 0 7px 2px rgba(255,220,110,.85); opacity: .85; }
.jc-spark.s1 { left: 2%;  top: 18%; }
.jc-spark.s2 { left: 16%; top: 5%; width: 4px; height: 4px; opacity: .65; }
.jc-spark.s3 { right: 30%; bottom: 10%; width: 4px; height: 4px; opacity: .7; }

/* --- Texto --- */
.jc-eyebrow { display: flex; align-items: center; gap: 7px; position: relative; z-index: 1;
  font-size: 11.5px; font-weight: 800; letter-spacing: .1em; color: var(--yellow); }
.jc-eyebrow svg { width: 16px; height: 16px; }
.jc-title { display: block; position: relative; z-index: 1; margin-top: 12px;
  font-family: var(--display); font-size: 27px; font-weight: 800; line-height: 1.14; }
.jc-title b { color: var(--yellow); }
.jc-desc { display: block; position: relative; z-index: 1; margin-top: 10px; max-width: 62%;
  font-size: 12.5px; font-weight: 600; line-height: 1.45; color: rgba(255,255,255,.72); }

/* --- Beneficios --- */
.jc-perks { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 20px; position: relative; z-index: 1; }
.jc-perk { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 4px;
  border-right: 1px solid rgba(255,255,255,.12); }
.jc-perk:last-child { border-right: 0; }
.jp-ico { width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center;
  background: rgba(255,200,0,.10); color: var(--yellow); }
.jp-ico svg { width: 21px; height: 21px; }
.jp-t { font-size: 11px; font-weight: 700; text-align: center; line-height: 1.3;
  color: rgba(255,255,255,.88); }

/* --- Pie: botón y prueba social --- */
.jc-foot { display: flex; align-items: center; gap: 12px; margin-top: 20px; position: relative; z-index: 1; }
.jc-cta { flex: 0 0 auto; background: var(--yellow); color: var(--ink); border-radius: 999px;
  padding: 15px 26px; font-size: 15px; font-weight: 800; }
.jc-social { display: flex; align-items: center; gap: 9px; min-width: 0; }
.jc-faces { display: flex; flex: 0 0 auto; }
.jc-faces i { width: 28px; height: 28px; border-radius: 999px; border: 2px solid #16130F;
  margin-left: -9px; display: block; }
.jc-faces i:first-child { margin-left: 0; background: linear-gradient(140deg, #C9A227, #8A6E12); }
.jc-faces i:nth-child(2) { background: linear-gradient(140deg, #6D8FB0, #3E5A75); }
.jc-faces i:nth-child(3) { background: linear-gradient(140deg, #B07C6A, #7A4F41); }
.jc-count { font-size: 11.5px; font-weight: 700; line-height: 1.3; color: rgba(255,255,255,.78); }

/* La tarjeta 3D invadía el texto: se corre a la derecha, sube y se achica. */
.jc-desc { max-width: 58%; font-size: 12px; }
.jc-title { font-size: 25px; }

/* "Sorpresa en tu cumpleaños" rompía en tres líneas y desigualaba la fila. */
.jc-perks { align-items: start; }
.jp-t { font-size: 10.5px; }
.jp-ico { width: 40px; height: 40px; }
.jc-perk { padding: 0 2px; }

/* "¡Qué bueno verte!" no cabía en una línea junto al logo y los dos botones. */
.tb-ttl h1 { font-size: 21px; }

/* Las caritas llevan icono de usuario. */
.jc-faces i { display: grid; place-items: center; color: rgba(255,255,255,.9); }
.jc-faces i svg { width: 15px; height: 15px; }

/* La tarjeta gana presencia, como en la referencia, sin invadir el texto. */

/* --- Color por defecto de los botones ---------------------------------
   Safari en iOS pinta de azul el texto y los iconos de cualquier <button>
   que no fije color. Ya pasó con el icono del carrito y con las filas de
   niveles; esto lo evita de una vez para todos. Los botones que llevan otro
   color lo declaran en su clase y siguen ganando. */
button { color: var(--ink); }
.header-cart { color: var(--ink); }

/* =====================================================================
   HOJA "HAZTE MIEMBRO GRATIS" — diseño de Ralph
   ===================================================================== */
.jm-top { position: relative; height: 148px; margin: 6px -4px 0; }
.jm-logo { position: absolute; left: 8%; top: 24%; width: 116px; height: auto; border-radius: 14px; }
.jm-card { position: absolute; right: 2%; top: 8%; width: 58%; }
.jm-card img { width: 100%; height: auto; display: block;
  filter: drop-shadow(0 6px 20px rgba(255,200,0,.34)); }
.jm-spark { position: absolute; border-radius: 999px; background: var(--yellow);
  box-shadow: 0 0 8px 2px rgba(255,200,0,.7); }
.jm-spark.a { width: 7px; height: 7px; left: 44%; top: 8%; }
.jm-spark.b { width: 5px; height: 5px; left: 38%; top: 26%; opacity: .7; }
.jm-spark.c { width: 6px; height: 6px; right: 3%; bottom: 16%; opacity: .8; }

.jm-title { margin: 14px 0 0; text-align: center; font-family: var(--display);
  font-size: 31px; font-weight: 800; line-height: 1.1; }
.jm-title b { color: var(--yellow); }
.jm-sub { margin: 10px 0 0; text-align: center; font-size: 13.5px; font-weight: 600;
  color: var(--muted); line-height: 1.5; }

.jm-benef { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }
.jm-benef li { display: flex; align-items: center; gap: 12px; padding: 13px 13px;
  border-radius: 18px; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(20,20,10,.05); }
.jb-ico { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 999px;
  display: grid; place-items: center; color: var(--ink);
  background: radial-gradient(circle at 50% 45%, #FFD84D 0%, #FFC800 62%, #F3B700 100%);
  box-shadow: 0 0 0 5px rgba(255,200,0,.18); }
.jb-ico svg { width: 23px; height: 23px; }
.jb-txt { flex: 1 1 auto; min-width: 0; }
.jb-txt b { display: block; font-size: 15px; font-weight: 800; line-height: 1.25; }
.jb-txt span { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 2px; }

.jm-form { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.jm-field { display: block; margin-bottom: 14px; }
.jf-lbl { display: block; font-size: 13.5px; font-weight: 800; margin-bottom: 7px; }
.jf-box { display: flex; align-items: center; gap: 10px; padding: 0 14px;
  border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.jf-box svg { width: 20px; height: 20px; flex: 0 0 auto; }
.jf-box input { flex: 1 1 auto; min-width: 0; border: 0; background: none; outline: none;
  padding: 16px 0; font-family: var(--font); font-size: 15px; font-weight: 600; color: var(--ink); }
.jf-box input::placeholder { color: var(--muted); font-weight: 500; }
.jf-box:focus-within { border-color: var(--yellow); }

.jm-cta { display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin-top: 6px; padding: 17px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--white);
  font-family: var(--font); font-weight: 800; font-size: 16.5px;
  box-shadow: 0 6px 22px rgba(255,200,0,.42); }
.jm-cta b { color: var(--yellow); }
.jm-cta svg { width: 21px; height: 21px; }
.jm-cta svg:first-child { color: var(--yellow); }
.jm-nota { display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 12px 0 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.jm-nota svg { width: 15px; height: 15px; }

/* El logo y la tarjeta se montaban uno sobre otro. */
.jm-top { height: 138px; }
.jm-logo { left: 2%; top: 26%; width: 98px; }
.jm-card { right: -2%; top: 6%; width: 55%; }
.jm-spark.a { left: 40%; top: 4%; }
.jm-spark.b { left: 35%; top: 62%; }

/* La tarjeta del encabezado quedaba encima del botón de cerrar y se lo comía. */
.acc-x { z-index: 3; }
.jm-top { z-index: 1; }

/* --- Encabezado: la tarjeta se acota por ALTURA -----------------------
   Con el ancho al 55% la imagen salía más alta que su franja e invadía el
   título. Fijando la altura, la franja manda y nunca se cruza con el texto. */
.jm-top { height: 132px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.jm-logo { position: static; width: auto; height: 96px; border-radius: 0; }
.jm-card { position: static; width: auto; flex: 0 0 auto; }
.jm-card img { height: 124px; width: auto; }
.jm-spark.a { left: 42%; top: 2%; }
.jm-spark.b { left: 36%; top: 70%; }
.jm-spark.c { right: 6%; bottom: 6%; }

/* --- Todo en una vista: sin desplazar -------------------------------- */
.jm-top { height: 116px; }
.jm-logo { height: 84px; }
.jm-card img { height: 108px; }

.jm-title { font-size: 27px; margin-top: 10px; }
.jm-sub { font-size: 12.5px; margin-top: 7px; line-height: 1.45; }

.jm-benef { margin-top: 14px; gap: 7px; }
.jm-benef li { padding: 9px 11px; border-radius: 15px; gap: 10px; }
.jb-ico { width: 40px; height: 40px; box-shadow: 0 0 0 4px rgba(255,200,0,.18); }
.jb-ico svg { width: 20px; height: 20px; }
.jb-txt b { font-size: 14px; }
.jb-txt span { font-size: 11.5px; }

.jm-form { margin-top: 14px; padding-top: 13px; }
.jm-field { margin-bottom: 10px; }
.jf-lbl { font-size: 12.5px; margin-bottom: 5px; }
.jf-box input { padding: 12px 0; font-size: 14.5px; }
.jm-cta { padding: 14px; font-size: 15.5px; margin-top: 4px; }
.jm-nota { margin-top: 9px; font-size: 11.5px; }
.acc-sheet { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }

/* --- La hoja de miembro en pantallas cortas ---------------------------
   Su contenido tiene alto fijo, así que con las barras de Safari se salía.
   Se compacta por tramos, igual que el carrito. */
@media (max-height: 800px) {
  .jm-top { height: 100px; }
  .jm-logo { height: 72px; }
  .jm-card img { height: 94px; }
  .jm-title { font-size: 24px; margin-top: 8px; }
  .jm-sub { font-size: 12px; margin-top: 6px; }
  .jm-benef { margin-top: 12px; gap: 6px; }
  .jm-benef li { padding: 8px 10px; }
  .jb-ico { width: 36px; height: 36px; }
  .jb-ico svg { width: 18px; height: 18px; }
  .jb-txt b { font-size: 13.5px; }
  .jb-txt span { font-size: 11px; }
  .jm-form { margin-top: 12px; padding-top: 11px; }
  .jm-field { margin-bottom: 9px; }
  .jf-box input { padding: 11px 0; }
  .jm-cta { padding: 13px; font-size: 15px; }
}

@media (max-height: 700px) {
  .jm-top { height: 84px; }
  .jm-logo { height: 60px; }
  .jm-card img { height: 78px; }
  .jm-title { font-size: 21px; }
  .jm-sub { font-size: 11.5px; line-height: 1.4; }
  .jm-benef li { padding: 7px 9px; }
  .jb-ico { width: 32px; height: 32px; box-shadow: 0 0 0 3px rgba(255,200,0,.18); }
  .jb-ico svg { width: 16px; height: 16px; }
  .jb-txt b { font-size: 12.5px; }
  .jb-txt span { font-size: 10.5px; }
    .jf-lbl { font-size: 11.5px; margin-bottom: 4px; }
  .jf-box input { padding: 10px 0; font-size: 14px; }
  .jm-cta { padding: 12px; font-size: 14px; }
  .jm-nota { font-size: 10.5px; margin-top: 7px; }
}

/* Por debajo de 640 el subtítulo sobra: el título y los cuatro beneficios ya
   explican la propuesta, y sin él entra todo lo que hace falta para unirse. */
@media (max-height: 640px) {
  .jm-sub { display: none; }
  .jm-top { height: 72px; }
  .jm-logo { height: 52px; }
  .jm-card img { height: 66px; }
  .jm-benef { margin-top: 10px; gap: 5px; }
}

/* Últimos píxeles para los teléfonos más cortos. */
@media (max-height: 640px) {
  .jm-title { font-size: 19px; margin-top: 6px; }
  .jm-benef li { padding: 6px 9px; }
  .jm-form { margin-top: 10px; padding-top: 9px; }
  .jm-field { margin-bottom: 7px; }
  .jm-nota { margin-top: 6px; }
}

/* iPhone SE con ambas barras: los últimos 19px. */
@media (max-height: 600px) {
  .jm-top { height: 58px; }
  .jm-logo { height: 42px; }
  .jm-card img { height: 52px; }
  .jb-txt span { display: none; }   /* el título del beneficio ya lo dice */
  .jm-cta { padding: 11px; }
  .jm-nota { margin-top: 5px; }
}

/* Sin la flecha, el texto del beneficio gana el ancho que ocupaba. */
.jm-benef li { gap: 12px; padding-right: 14px; }
.jb-txt { padding-right: 2px; }

/* --- Tarjeta de invitado: aire y render acotado por altura -------------
   El render se dimensionaba por ancho y bajaba hasta el texto y los iconos.
   Con la altura fija ocupa solo la franja de arriba y deja libre el resto. */
.join-card { padding: 20px 18px 18px; }

.jc-title { font-size: 26px; margin-top: 14px; }
.jc-desc { max-width: 54%; margin-top: 12px; line-height: 1.5; }

/* Los iconos arrancan bien debajo del render y respiran entre sí. */
.jc-perks { margin-top: 26px; }
.jc-perk { padding: 0 6px; gap: 10px; }
.jp-ico { width: 44px; height: 44px; }
.jp-t { font-size: 11px; line-height: 1.35; }

.jc-foot { margin-top: 22px; }

/* "Sorpresa en tu cumpleaños" rompía en tres líneas y desigualaba la fila. */
.jc-perk { padding: 0 3px; }
.jp-t { font-size: 10.5px; }
.jc-desc { max-width: 56%; font-size: 12.5px; }

/* La descripción venía forzada a dos líneas en el texto, pero el ancho la
   partía en tres. */
.jc-desc { max-width: 63%; }

/* Botón más delgado y render un poco más grande. */
.jc-cta { padding: 12px 24px; font-size: 14.5px; }

/* --- Render de la tarjeta de socio (regla única) -----------------------
   Se había acumulado media docena de reglas .jc-art de ajustes sucesivos, y
   una fijaba la altura del CONTENEDOR, lo que anulaba el tamaño de la imagen.
   Todo el encuadre vive aquí: si hay que moverla o cambiarle el tamaño, es en
   este bloque y en ningún otro. */
.jc-art {
  position: absolute; top: 8px; right: -22px;
  width: auto; height: auto; pointer-events: none;
}
/* La imagen viene sobre negro: con `screen` ese negro desaparece contra el
   fondo oscuro de la tarjeta y solo quedan el plástico y su resplandor. Sin
   esto se ve un rectángulo negro con bordes duros. */
.jc-art img { height: 156px; width: auto; display: block; mix-blend-mode: screen; }

/* =====================================================================
   HOJA DE CUENTA — registro con contraseña e ingreso
   El botón queda pegado abajo mientras se llena el formulario: el contenido
   se desplaza por encima y la barra reserva su alto, así nunca tapa un campo.
   ===================================================================== */
.acc-sheet { display: flex; flex-direction: column; padding-bottom: 0; }
/* El cuerpo mide lo que su contenido y la HOJA es la que se desplaza. Solo
   las pantallas con barra pegada (las que traen .jm-scroll) se encogen al
   alto de la hoja, para que su .jm-scroll sea quien desplace.
   Encogerlo en TODAS dejaba al perfil —que no trae .jm-scroll— desbordando
   su caja, y los enlaces legales de abajo (.priv-caja) quedaban ENCIMA de
   "Editar perfil": tocarlo abría Términos. Un navegador sin :has() cae en
   lo seguro: nada se pisa, y en el registro el botón queda al final en vez
   de pegado. */
.acc-body { display: flex; flex-direction: column; flex: 0 0 auto; }
.acc-body:has(> .jm-scroll) { flex: 1 1 auto; min-height: 0; }
.jm-scroll { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; min-height: 0; padding-bottom: 6px; }
.jm-bar { flex: 0 0 auto; padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--paper); border-top: 1px solid var(--line); }
.jm-bar .jm-cta { margin-top: 0; }

/* Enlace entre registro e ingreso */
.jm-ya { margin: 10px 0 0; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.jm-ya button { border: 0; background: none; cursor: pointer; padding: 0 0 0 3px;
  font-family: var(--font); font-weight: 800; font-size: 12.5px; color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px; }

/* Recordarme */
.jm-check { display: flex; align-items: flex-start; gap: 11px; margin-top: 4px; padding: 12px 13px;
  border-radius: 15px; background: var(--card); border: 1px solid var(--line); cursor: pointer; }
.jm-check input { width: 21px; height: 21px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--yellow); }
.jm-check > span { min-width: 0; }
.jm-check b { display: block; font-size: 13px; font-weight: 800; }
.jm-check span span { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-top: 2px; }

/* La casilla de los términos. Es obligatoria, así que se ve como una frase
   que hay que leer, no como un ajuste opcional más. */
.jm-legal > span { font-size: 13px; font-weight: 700; line-height: 1.45; }
.jm-legal a { color: var(--ink); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
/* `:user-invalid` y no `:invalid`: sin marcar es inválida desde que se pinta,
   y con `:invalid` la casilla salía ROJA antes de que nadie tocara nada —
   como si la persona ya se hubiera equivocado al abrir el formulario. Con
   `:user-invalid` se pone roja solo después de intentar enviarlo. */
.jm-legal:has(input:user-invalid) { border-color: #F5C6C0; background: #FDECEA; }

/* Aviso de error del formulario */
.jm-error { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px;
  background: #FDECEA; border: 1px solid #F5C6C0; color: #A93226;
  font-size: 12.5px; font-weight: 700; text-align: center; }

/* En ingresar solo va el logo, centrado. */
.jm-top.solo { height: 84px; }
.jm-top.solo .jm-logo { height: 74px; }

/* --- Canje reservado, esperando a que lo muestren en caja ----------------- */
/* Va antes del catálogo a propósito: si ya canjeaste algo, lo primero que
   necesitas ver al abrir Rewards es el código, no más premios. */
.pend-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--yellow); color: var(--ink);
  border-radius: 16px; padding: 12px 12px 12px 14px; margin-bottom: 10px;
}
.pd-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 22px; font-weight: 800; letter-spacing: 2px;
  background: var(--white); border-radius: 11px; padding: 8px 11px; flex: 0 0 auto;
}
.pd-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.pd-txt b { font-size: 15px; font-weight: 800; }
.pd-txt small { font-size: 12px; opacity: .72; }
.pd-x {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,.09); color: var(--ink);
  font-size: 14px; line-height: 1; cursor: pointer;
}

/* Perfil sin actividad: mejor una frase que una lista vacía. */
.acc-vacio { margin: 4px 2px 14px; font-size: 13.5px; line-height: 1.5; opacity: .62; }

/* Una oferta que hoy no aplica se ve IGUAL que las demás: apagarla la hacía
   parecer muerta y la comida se veía fea. El motivo aparece en el botón cuando
   se entra a verla, que es cuando importa. */

/* "¿Te invitó un amigo?" — enlace discreto que abre el campo del código.
   Va escondido por defecto para no alargar un formulario que ya está justo. */
.jm-refbtn {
  align-self: flex-start; margin: -4px 0 2px;
  background: none; border: 0; padding: 4px 2px; cursor: pointer;
  font-size: 13px; font-weight: 700; color: var(--ink); opacity: .6;
  text-decoration: underline; text-underline-offset: 3px;
}

/* ===========================================================================
   CRM de la consola: buscador, ficha de cliente y cobro de códigos
   =========================================================================== */

/* --- Ficha ---------------------------------------------------------------- */

/* --- Cobrar código -------------------------------------------------------- */
/* El botón base es de ancho completo (pensado para el móvil) y aquí eso lo
   mandaba a una segunda línea. Al lado del campo se lee como un formulario. */

/* --- Hoja de compartir ---------------------------------------------------- */
/* Existe porque sin https no hay navigator.share ni portapapeles, y el botón
   parecía roto. Aquí el enlace siempre está a la vista. */
.shr-back {
  position: fixed; inset: 0; z-index: 260; background: rgba(0,0,0,.5);
  display: flex; align-items: flex-end; justify-content: center;
}
.shr {
  position: relative; width: 100%; max-width: 520px;
  background: var(--white); border-radius: 22px 22px 0 0;
  padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 10px;
}
.shr h3 { margin: 0 34px 2px 0; font-size: 19px; }
.shr-aviso { margin: 0; font-size: 13px; font-weight: 700; opacity: .6; line-height: 1.5; }
.shr-x {
  position: absolute; top: 16px; right: 16px; width: 30px; height: 30px;
  border: 0; border-radius: 50%; background: rgba(0,0,0,.07); color: var(--ink);
  font-size: 13px; cursor: pointer;
}
.shr-link { display: flex; flex-direction: column; gap: 5px; }
.shr-link span { font-size: 12px; font-weight: 800; opacity: .55; }
.shr-link input {
  width: 100%; border: 2px solid var(--ink); border-radius: 12px; padding: 12px;
  font: inherit; font-size: 14px; font-weight: 700; background: var(--white); color: var(--ink);
}
.shr-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; border: 2px solid var(--ink); border-radius: 999px;
  padding: 14px; background: var(--white); color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; text-decoration: none;
}
.shr-btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.shr-btn.wa { background: #25D366; border-color: #1da851; color: #04331a; }

/* --- Consola: las dos áreas ---------------------------------------------- */
/* Cocina y front desk no hacen el mismo trabajo. Separarlas evita que quien
   cocina vea pedidos sin pagar y que quien atiende busque entre comandas. */

/* --- Rewards: ordenar la tabla ------------------------------------------- */

/* --- Administración ------------------------------------------------------- */

/* --- Reglas de una oferta (solo el dueño) --------------------------------- */

/* ===========================================================================
   Perfil del miembro (diseño de Ralph)
   La cabecera es la MISMA tarjeta amarilla de Inicio y Rewards.
   =========================================================================== */
.pf {
  display: flex; flex-direction: column; gap: 14px; padding-bottom: 6px;
  /* La ✕ de la hoja vive arriba a la derecha, justo donde la tarjeta pone el
     badge del nivel. Este margen baja la tarjeta para que no se pisen. */
  padding-top: 30px;
}
.pf-act li { padding: 11px 12px; }

.pf-yo { display: flex; align-items: center; gap: 12px; padding: 0 2px; }
.pf-avatar {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%;
  background: var(--yellow); color: var(--ink);
  display: grid; place-items: center; font-size: 22px; font-weight: 800;
}
.pf-datos { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pf-datos b { font-size: 18px; }
.pf-datos span { font-size: 13.5px; font-weight: 700; opacity: .65; }
.pf-datos small { font-size: 12px; font-weight: 700; opacity: .5; }

.pf-card { background: var(--white); border-radius: 18px; padding: 14px 14px 6px; }
.pf-card h4 { margin: 0 0 8px 2px; font-size: 15px; }
.pf-head { display: flex; align-items: center; justify-content: space-between; }
.pf-head h4 { margin: 0 0 8px 2px; }
.pf-vertodo {
  border: 0; background: none; cursor: pointer; padding: 0 2px 8px;
  font: inherit; font-size: 13px; font-weight: 800; color: var(--ink); opacity: .55;
}

.pf-act { list-style: none; margin: 0; padding: 0 0 8px; }

.pf-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  border: 0; border-top: 1px solid rgba(0,0,0,.07); background: none;
  padding: 14px 2px; font: inherit; color: var(--ink); cursor: pointer; text-align: left;
}
.pf-card h4 + .pf-row, .pf-head + .pf-row { border-top: 0; }
.pf-ico { flex: 0 0 auto; width: 22px; height: 22px; opacity: .8; }
.pf-ico svg { width: 100%; height: 100%; display: block; }
.pf-t { flex: 1 1 auto; font-size: 15px; font-weight: 700; }
.pf-go { flex: 0 0 auto; width: 17px; height: 17px; opacity: .3; }
.pf-go svg { width: 100%; height: 100%; display: block; }

.pf-salir {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; margin-top: 4px;
  border: 2px solid #e0503a; border-radius: 16px; padding: 15px;
  background: var(--white); color: #d9432c;
  font: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
}
.pf-salir svg { width: 19px; height: 19px; }

/* --- Las pantallas de cada fila ------------------------------------------ */
.pf-atras {
  align-self: flex-start; border: 0; background: none; cursor: pointer;
  padding: 2px; font: inherit; font-size: 15px; font-weight: 800; color: var(--ink); opacity: .65;
}
.pf-titulo { margin: 0 0 4px 2px; font-size: 21px; }

.pf-dirs { list-style: none; margin: 0 0 6px; padding: 0; }
.pf-dirs li {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px;
}
.pf-dirs li span { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf-dirs li b { font-size: 14.5px; }
.pf-dirs li small { font-size: 12.5px; font-weight: 700; opacity: .6; }
.pf-dirs li button {
  flex: 0 0 auto; width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.07); color: var(--ink); font-size: 13px; cursor: pointer;
}

.pf-pedidos { list-style: none; margin: 0; padding: 0; }
.pf-pedidos li {
  background: var(--white); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px;
  display: flex; flex-direction: column; gap: 4px;
}
.pp-cab { display: flex; align-items: baseline; justify-content: space-between; }
.pp-cab b { font-size: 17px; }
.pp-cab small { font-size: 12px; font-weight: 700; opacity: .55; }
.pp-items { font-size: 13px; font-weight: 700; opacity: .7; line-height: 1.45; }

.pf-toggle {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--white); border-radius: 14px; padding: 14px; cursor: pointer;
}
.pf-toggle input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; }
.pf-toggle span { display: flex; flex-direction: column; gap: 3px; }
.pf-toggle b { font-size: 14.5px; }
.pf-toggle small { font-size: 12.5px; font-weight: 700; opacity: .6; line-height: 1.45; }

/* Direcciones guardadas en el checkout de domicilio. */
.dir-guardadas { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.dir-chip {
  border: 2px solid var(--ink); border-radius: 999px; padding: 7px 13px;
  background: var(--white); color: var(--ink);
  font: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
}
.dir-chip.on { background: var(--yellow); }

/* --- Bolsa del pedido en curso (cabecera) --------------------------------- */
/* Solo aparece cuando hay un pedido vivo. La bolita se enciende cuando el
   pedido cambió de estado y el cliente todavía no lo ha visto: un punto que
   nunca se apaga deja de ser un aviso. */
.header-bag {
  position: relative; flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--card); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
}
.header-bag .hb-ico { width: 22px; height: 22px; display: block; }
.header-bag .hb-ico svg { width: 100%; height: 100%; display: block; }
.hb-dot {
  position: absolute; top: 7px; right: 7px; width: 11px; height: 11px;
  border-radius: 50%; background: #e0503a; border: 2px solid var(--bg, #faf9f6);
  animation: hbLate 1.6s ease-in-out infinite;
}
@keyframes hbLate {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}
@media (prefers-reduced-motion: reduce) { .hb-dot { animation: none; } }

/* "Estoy afuera": sale justo cuando el pedido está listo, que es cuando se usa.
   Antes los botones de llegada desaparecían al ponerse listo — al revés. */
.afuera {
  display: block; width: 100%; margin: 4px 0 6px;
  border: 0; border-radius: 16px; padding: 17px;
  background: var(--ink); color: var(--yellow);
  font: inherit; font-size: 16px; font-weight: 800; cursor: pointer;
}
.afuera.listo { background: #1c7a3e; color: #fff; }
.afuera-nota { margin: 0 0 14px; text-align: center; font-size: 13px; font-weight: 700; opacity: .6; }
.status-pill.s-camino { background: #dbeafe; color: #1d4ed8; }

/* La bolita del pedido en curso, sobre el icono de usuario. */
.header-user { position: relative; }
.hu-dot {
  position: absolute; top: 4px; right: 4px; width: 13px; height: 13px;
  border-radius: 50%; background: #e0503a; border: 2px solid var(--bg, #faf9f6);
  animation: huLate 1.5s ease-in-out infinite;
}
/* El halo: es lo que se ve de reojo sin estar mirando el icono. */
.hu-dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid #e0503a; opacity: 0;
  animation: huHalo 1.5s ease-out infinite;
}
/* Con un cambio sin ver late más fuerte: "tienes pedido" y "algo pasó" son
   dos avisos distintos y no pueden verse igual. */
.hu-dot.nuevo { animation-duration: .85s; }
.hu-dot.nuevo::after { animation-duration: .85s; }
@keyframes huLate { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22); } }
@keyframes huHalo {
  0% { transform: scale(.7); opacity: .85; }
  100% { transform: scale(1.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hu-dot, .hu-dot::after { animation: none; }
  .hu-dot::after { opacity: .5; }
}

/* ===========================================================================
   Pedido en curso — pestaña del icono de usuario (diseño de referencia)
   Sin contador a propósito: el estimado se mueve solo y un número que sube y
   baja da más ansiedad que información. Lo que importa es en qué paso va.
   =========================================================================== */
/* Empezaban pegadas al borde de arriba, así que la esquina redondeada de la
   hoja las cortaba y se leían a medias. */
.acc-tabs { display: flex; gap: 8px; padding: 14px 48px 12px 2px; }  /* deja aire para la ✕ */
.acc-tabs button {
  flex: 1 1 0; position: relative; min-width: 0;
  border: 0; border-radius: 13px; padding: 11px 8px;
  background: var(--card); color: var(--ink);
  font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer;
  /* Sin esto "Pedido en curso" se parte en dos líneas en pantallas angostas
     y las dos pestañas quedan de alto distinto. */
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.acc-tabs button.on { background: var(--ink); color: var(--yellow); }
.acc-tabs button i {
  position: absolute; top: 8px; right: 10px; width: 8px; height: 8px;
  border-radius: 50%; background: #e0503a;
}
.acc-tabs button.on i { display: none; }

/* Sin modo de entrega elegido, los datos del pedido esperan: preguntarle el
   carro a quien va a pedir a domicilio (o al revés) es hacerle perder el tiempo. */
.checkout-form.sin-modo .co-block:not(:first-of-type),
form#checkoutForm.sin-modo > .co-block ~ .co-block { opacity: .45; pointer-events: none; }

/* La oferta puesta en el carrito. El monto lo dice el servidor, no la app. */
.promo-linea {
  display: flex; align-items: center; gap: 12px;
  background: #fff6d6; border: 2px solid var(--yellow); border-radius: 16px;
  padding: 13px 14px;
}
.promo-linea.no-aplica { background: var(--card); border-color: rgba(0,0,0,.12); }
.pl-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pl-txt b { font-size: 14.5px; }
.pl-txt small { font-size: 12.5px; font-weight: 700; opacity: .7; line-height: 1.4; }
.pl-monto { flex: 0 0 auto; font-size: 16px; font-weight: 800; color: #1c7a3e; }
.promo-linea.no-aplica .pl-monto { color: var(--muted); }
.pl-x {
  flex: 0 0 auto; width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.09); color: var(--ink); font-size: 13px; cursor: pointer;
}

/* Código promocional: chiquito y discreto, encima de "Añade algo más".
   No compite con la oferta ya puesta —esa tiene su propia línea amarilla—
   porque cuando hay una, esta caja ni se dibuja. */
.cod-promo { display: flex; flex-direction: column; gap: 8px; }
.cod-lbl {
  font-family: var(--display); font-size: 13.5px; font-weight: 800;
  letter-spacing: .01em; color: var(--ink);
}
.cod-fila { display: flex; gap: 8px; align-items: stretch; }
.cod-inp {
  flex: 1 1 auto; min-width: 0;
  border: 2px solid var(--line); border-radius: 12px;
  background: var(--white); color: var(--ink);
  padding: 10px 12px; font: inherit; font-size: 14px; font-weight: 700;
  text-transform: uppercase;
}
.cod-inp::placeholder { text-transform: none; font-weight: 600; color: var(--muted); }
.cod-inp:focus { outline: none; border-color: var(--yellow); }
.cod-btn {
  flex: 0 0 auto; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--ink); color: var(--white);
  padding: 0 16px; font: inherit; font-size: 13.5px; font-weight: 800;
}
.cod-btn:disabled { opacity: .55; cursor: default; }
.cod-msg { font-size: 12.5px; font-weight: 700; line-height: 1.4; color: var(--muted); }
.cod-msg:empty { display: none; }
.cod-msg.mal { color: var(--danger); }

/* La barra ya no lleva monto: sin esto queda un hueco a la derecha. */
.cart-bar .total:empty { display: none; }

/* Cuando la lista de sucursales no carga: decirlo, en vez de un hueco. */
.branch-error {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 20px; border: 2px dashed rgba(0,0,0,.14); border-radius: 18px;
  background: var(--card);
}
.branch-error b { font-size: 15px; }
.branch-error small { font-size: 13px; font-weight: 700; color: var(--muted); }
.br-retry {
  margin-top: 8px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--yellow); color: var(--ink);
  font: inherit; font-weight: 800; font-size: 14px; padding: 10px 20px;
}

/* "¿Cuándo lo quieres?" — solo en recoger. */
#cuandoBox { display: block; }
.cuando-ops { display: flex; gap: 10px; margin-bottom: 12px; }
.cuando-op {
  flex: 1 1 0; position: relative; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px 14px 14px 40px; border-radius: 16px;
  border: 2px solid rgba(0,0,0,.10); background: var(--card);
  font: inherit; color: var(--ink);
}
.cuando-op.on { border-color: var(--yellow); background: #fffaea; }
.cu-check {
  position: absolute; left: 13px; top: 15px; width: 18px; height: 18px;
  border-radius: 50%; border: 2px solid rgba(0,0,0,.22); background: #fff;
}
.cuando-op.on .cu-check { border-color: var(--yellow); background: var(--yellow); }
.cuando-op.on .cu-check::after {
  content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--ink);
}
.cu-t { font-size: 14.5px; font-weight: 800; line-height: 1.2; }
.cu-d { font-size: 12px; font-weight: 700; color: var(--muted); line-height: 1.35; }
.cuando-lista select { width: 100%; }
.cuando-nota { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--muted); }

/* En domicilio, el pago cubre la comida pero no el envío. */
.aviso-envio {
  margin: -4px 0 14px; padding: 12px 14px; border-radius: 14px;
  background: #fff6d6; border: 1px solid var(--yellow);
  font-size: 13px; font-weight: 700; line-height: 1.45; color: var(--ink);
}

/* El envío, en el resumen del carrito. */
.envio-linea {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 2px solid rgba(0,0,0,.10); border-radius: 16px;
  padding: 13px 14px;
}
.el-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.el-txt b { font-size: 14.5px; }
.el-txt small { font-size: 12.5px; font-weight: 700; opacity: .65; line-height: 1.4; }
.el-monto { flex: 0 0 auto; font-size: 16px; font-weight: 800; }

/* =====================================================================
   PEDIDO EN CURSO — la pantalla que ve el cliente mientras cocinan.
   Calcada de la referencia que pasó Ralph.
   ===================================================================== */

/* El contenido arranca por DEBAJO de la X de la hoja.
   El logo ahora vive arriba a la derecha, que es justo donde está la X: sin
   este espacio la X le cae encima y no se lee ni una cosa ni la otra. */
.pc { display: flex; flex-direction: column; padding: 62px 0 6px; }

/* --- Encabezado: título grande a la izquierda, bolsa a la derecha --- */
.pc-hero { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.pc-hero-txt { flex: 1 1 auto; min-width: 0; padding-top: 2px; }
.pc-hero h2 {
  margin: 0 0 6px;
  font-family: var(--display);
  /* Con 27px "Estamos preparando tu pedido" caía en tres renglones y el
     encabezado crecía de alto empujando los pasos fuera de la vista. A 24px
     entra en dos, como en la referencia. */
  font-size: 23px; font-weight: 800; line-height: 1.14; letter-spacing: -.03em;
}
.pc-hero p { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--muted); line-height: 1.4; }
/* El logo con sus rayos. Va más grande que la ilustración que había antes:
   es lo primero que mira el cliente y es lo que le dice de quién es esto. */
.pc-marca {
  position: relative; flex: 0 0 auto;
  width: 118px; height: 118px; display: grid; place-items: center;
  margin: -6px -6px 0 0;
}
.pc-rayos { position: absolute; inset: 0; width: 100%; height: 100%; }
.pc-marca-img { position: relative; width: 74px; height: auto; display: block; }

/* --- Modo de entrega y código --- */
.pc-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.pc-modo { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 800; min-width: 0; }
.pc-modo svg { width: 24px; height: 24px; flex: 0 0 auto; }
.pc-codigo {
  flex: 0 0 auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 16px; font-size: 13.5px; font-weight: 700; color: var(--muted);
}
.pc-codigo b { margin-left: 5px; color: var(--ink); font-size: 15px; letter-spacing: .04em; }

/* --- Los pasos ---------------------------------------------------------
   Cada paso ocupa lo mismo y la línea que los une sale del centro de un
   círculo al centro del siguiente. Por eso la línea se dibuja sobre el
   propio <li> y no como un elemento aparte: así siempre cae en su sitio,
   sean tres pasos o cuatro. */
.pc-pasos {
  list-style: none; display: flex; margin: 0 0 22px; padding: 0;
}
.pc-pasos li {
  position: relative; flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
}
.pc-pasos li + li::before {
  content: ''; position: absolute; z-index: 0;
  left: -50%; right: 50%; top: 27px; height: 3px; border-radius: 3px;
  /* Punteado mientras no se ha llegado: se lee como "esto todavía no pasa". */
  background: repeating-linear-gradient(90deg, #DEDDD6 0 6px, transparent 6px 11px);
}
/* Tramo cumplido: línea llena y amarilla. */
.pc-pasos li.hecho + li::before,
.pc-pasos li.ahora::before { background: var(--yellow); }

.pc-punto {
  position: relative; z-index: 1;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: #F0EFEA; color: #A9A8A1;
  transition: background .2s ease, color .2s ease;
}
.pc-punto svg { width: 25px; height: 25px; }
.pc-pasos li.hecho .pc-punto { background: var(--yellow-soft); color: var(--ink); }
/* El paso actual: amarillo lleno y con halo, que es lo que lo separa del
   resto desde el otro lado de la mesa. */
.pc-pasos li.ahora .pc-punto {
  background: var(--yellow); color: var(--ink);
  box-shadow: 0 0 0 9px #FFF3CC;
}
.pc-paso-t {
  font-size: 13px; font-weight: 800; text-align: center; line-height: 1.25;
  color: var(--muted);
}
.pc-pasos li.ahora .pc-paso-t { color: var(--ink); }
.pc-pasos li small {
  margin-top: -4px; font-size: 12.5px; font-weight: 700; color: var(--muted);
}
/* Cuatro pasos (recoger) en la misma anchura: todo un punto más chico. */
.pc-pasos.p4 .pc-punto { width: 46px; height: 46px; }
.pc-pasos.p4 .pc-punto svg { width: 21px; height: 21px; }
.pc-pasos.p4 li + li::before { top: 23px; }
.pc-pasos.p4 .pc-paso-t { font-size: 11.5px; }
.pc-pasos.p4 li.ahora .pc-punto { box-shadow: 0 0 0 7px #FFF3CC; }
/* Cancelado: sin color, que ya no hay nada en marcha. */
.pc-pasos.muerto .pc-punto { background: #F0EFEA; color: #C4C3BC; box-shadow: none; }
.pc-pasos.muerto li + li::before { background: #E6E5DE; }

/* --- Caja de miembro --------------------------------------------------- */
.pc-socio {
  display: flex; align-items: center; gap: 12px;
  background: var(--yellow-soft); border-radius: 20px;
  padding: 16px 15px; margin-bottom: 14px;
}
.pc-socio-ico {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--yellow); color: var(--ink);
}
.pc-socio-ico svg { width: 24px; height: 24px; }
.pc-socio-txt { flex: 1 1 auto; min-width: 0; }
.pc-socio-txt b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; white-space: nowrap; }
.pc-socio-txt small {
  display: block; margin-top: 3px;
  font-size: 12.5px; font-weight: 600; color: #8a7b52; line-height: 1.32;
}
/* La columna de la derecha se acota: sin tope se comía el ancho y
   "Vuélvete miembro" se partía en dos líneas con la descripción en una
   columna de tres palabras. */
.pc-socio-acc {
  flex: 0 0 auto; width: 124px;
  display: flex; flex-direction: column; align-items: stretch; gap: 8px;
}
/* Los puntos del pedido: es el dato por el que existe esta caja. */
.pc-pts {
  display: flex; align-items: center; justify-content: center; gap: 2px;
  background: var(--card); border-radius: 999px; padding: 8px 10px;
  font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap;
}
.pc-pts b { color: var(--ink); }
.pc-pts svg { width: 15px; height: 15px; opacity: .45; }
.pc-socio.ya .pc-pts { cursor: pointer; }
.pc-hazte {
  border: 0; border-radius: 999px; padding: 11px 12px;
  background: var(--ink); color: var(--yellow);
  font-family: var(--font); font-size: 13.5px; font-weight: 800; white-space: nowrap;
}

/* --- "Estoy afuera" ---------------------------------------------------- */
.pc-afuera {
  width: 100%; border: 0; border-radius: 999px; padding: 16px; margin-bottom: 14px;
  background: var(--yellow); color: var(--ink);
  font-family: var(--font); font-size: 15px; font-weight: 800;
}
.pc-afuera.listo { background: #1c7a3e; color: #fff; }

/* --- Tarjetas blancas: resumen y chat ---------------------------------- */
.pc-resumen, .pc-chat {
  background: var(--card); border-radius: 20px; padding: 18px; margin-bottom: 12px;
}
.pc-resumen > summary, .pc-chat > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 12px;
}
.pc-resumen > summary::-webkit-details-marker,
.pc-chat > summary::-webkit-details-marker { display: none; }

.pc-resumen > summary b { flex: 1 1 auto; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.pc-resumen > summary span {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: var(--muted);
}
.pc-resumen > summary span svg { width: 17px; height: 17px; transition: transform .18s ease; }
.pc-resumen[open] > summary span svg { transform: rotate(180deg); }

.pc-resumen ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.pc-resumen li { display: flex; align-items: center; gap: 13px; }
.pc-foto {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 13px;
  background: var(--paper) center/cover no-repeat;
}
.pc-foto[data-sin] { background: var(--paper); }
.pc-n { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pc-n b { font-size: 15.5px; font-weight: 800; }
.pc-n small { font-size: 13px; font-weight: 600; color: var(--muted); }
.pc-p { flex: 0 0 auto; font-size: 17px; font-weight: 800; }

.pc-oferta, .pc-linea {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--muted);
}
.pc-oferta b { color: #1c7a3e; }
.pc-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
}
.pc-total span { font-size: 19px; font-weight: 800; }
.pc-total b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }

/* --- Chat con la cocina ------------------------------------------------ */
.pc-chat-ico {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); color: var(--ink);
}
.pc-chat-ico svg { width: 25px; height: 25px; }
.pc-chat-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pc-chat-txt b { font-size: 16.5px; font-weight: 800; }
.pc-chat-txt small { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.pc-chat-go { flex: 0 0 auto; color: var(--muted); display: grid; place-items: center; }
.pc-chat-go svg { width: 19px; height: 19px; transition: transform .18s ease; }
.pc-chat[open] .pc-chat-go svg { transform: rotate(90deg); }

.pc-chat-lista { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pc-chat-lista li {
  max-width: 82%; padding: 10px 13px; border-radius: 14px;
  font-size: 14px; font-weight: 600; line-height: 1.4;
}
.pc-chat-lista li.yo { align-self: flex-end; background: var(--yellow-soft); }
.pc-chat-lista li.ellos { align-self: flex-start; background: var(--paper); }
.pc-chat-form { display: flex; gap: 8px; margin-top: 14px; }
.pc-chat-form input {
  flex: 1 1 auto; min-width: 0;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 12px 16px;
  font-family: inherit; font-size: 14.5px; font-weight: 600; background: var(--paper);
}
.pc-chat-form input:focus { outline: none; border-color: var(--yellow); }
.pc-chat-form button {
  flex: 0 0 auto; width: 46px; border: 0; border-radius: 50%;
  background: var(--ink); color: var(--yellow); font-size: 19px; font-weight: 800;
}

/* --- Reseña y cancelar ------------------------------------------------- */
.pc-resena {
  display: block; background: var(--yellow); border-radius: 20px;
  padding: 16px 18px; margin-bottom: 12px; text-decoration: none; color: var(--ink);
}
.pc-resena b { display: block; font-size: 16px; }
.pc-resena small { display: block; margin-top: 3px; font-size: 13px; font-weight: 600; opacity: .72; }
.pc-cancelar {
  width: 100%; border: 0; background: none; padding: 14px; margin-top: 2px;
  font-family: var(--font); font-size: 14px; font-weight: 700; color: var(--muted);
}

/* --- La firma de abajo ------------------------------------------------- */
.pc-firma { display: flex; justify-content: center; padding: 26px 0 10px; }
.pc-firma-art { width: 230px; height: auto; }

/* Pantallas chicas: el título y la bolsa se aprietan antes que nada. */
@media (max-width: 380px) {
  .pc-hero h2 { font-size: 21px; }
  .pc-marca { width: 100px; height: 100px; }
  .pc-marca-img { width: 62px; }
  .pc-socio { padding: 15px 14px; gap: 11px; }
  .pc-socio-ico { width: 46px; height: 46px; }
  .pc-socio-txt b { font-size: 16.5px; }
  .pc-punto { width: 48px; height: 48px; }
  .pc-pasos li + li::before { top: 24px; }
}

/* Aviso al registrarse viniendo del pedido en curso: recuerda que los puntos
   van al NÚMERO, así que registrarse con otro los deja en el número viejo. */
.jm-desde-pedido {
  margin: 0 0 14px; padding: 13px 15px;
  background: var(--yellow-soft); border-radius: 14px;
  font-size: 13.5px; font-weight: 600; color: #6b5f3d; line-height: 1.45;
}
.jm-desde-pedido b { color: var(--ink); font-weight: 800; }

/* Ya siendo miembro no hay botón debajo de la pastilla, así que la columna de
   la derecha no necesita el ancho fijo que necesita la de "Hazte miembro":
   soltándola, el texto deja de partirse en tres renglones. */
.pc-socio.ya .pc-socio-acc { width: auto; }

/* Cuando el número del pedido no tiene Yappy. Va pegado al botón y no en una
   alerta: el cliente está a un toque de pagar, y sacarlo de ahí a un cuadro de
   diálogo es la forma más fácil de perder la venta. */
.yappy-alias { margin-top: 14px; text-align: left; }
.yappy-alias-msg {
  margin: 0 0 12px; padding: 11px 13px; border-radius: 12px;
  background: #fdecec; color: #a4242d;
  font-size: 13px; font-weight: 700; line-height: 1.4;
}

/* =====================================================================
   MODO MOSTRADOR (?pos=1)
   =====================================================================
   La misma app del cliente, pero en la pantalla del counter: monitor o
   terminal, no un teléfono.

   TODO lo de aquí abajo cuelga de `body.pos`, que solo existe cuando la
   página se abre con ?pos=1 desde la consola. El cliente NO ve nada de
   esto: su app sigue siendo la de siempre, para su teléfono.

   Lo que cambia: el menú se abre a lo ancho en varias columnas —en un
   monitor, una sola columna de 430px obliga a desplazarse por cada plato— y
   el ticket se va a un panel a la derecha en vez de tapar la pantalla, para
   que el cajero pueda seguir agregando mientras lo ve.
   ===================================================================== */
body.pos { padding-bottom: 0; }
body.pos .cart-bar { bottom: 20px; }

/* --- El menú a lo ancho --- */
/* `.app` encierra la app en 480px, que es lo correcto en un teléfono y lo que
   dejaba el monitor del counter con una columna en el medio y todo lo demás
   vacío. Aquí se suelta. */
body.pos .app { max-width: none; }
body.pos .topbar { max-width: none; }
body.pos .menu,
body.pos .cat-sec,
body.pos .grid-head { max-width: none; }
body.pos .cat-grid,
body.pos .grid2 {
  display: grid;
  /* Se ajusta solo al ancho que haya: 2 columnas en un terminal angosto,
     5 en un monitor. Fijar un número dejaría huecos en una de las dos. */
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

/* --- Todo un poco más grande: se toca de pie y a un brazo de distancia --- */
body.pos .dish h3 { font-size: 16px; }
body.pos .d-add { width: 44px; height: 44px; font-size: 24px; }
body.pos .cat-nav button { font-size: 16px; padding: 14px 16px; }

/* --- El ticket, a la derecha --- */
body.pos #checkout {
  left: auto; width: min(460px, 46vw);
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 40px rgba(0, 0, 0, .10);
}
body.pos #checkout .inner { max-width: none; }
/* Con el ticket abierto el menú se encoge en vez de quedar tapado: así el
   cajero sigue agregando platos mientras ve lo que lleva. */
body.pos.con-ticket .app,
body.pos.con-ticket .topbar,
body.pos.con-ticket .cart-bar { padding-right: min(460px, 46vw); }

/* --- CAJA COMPACTA (cocina.js, COMPACTA; ?compacta=1) ---
   La tablet chica de Multiplaza: encabezados mínimos y fichas bajas, para
   que quepan dos filas de platos y las opciones (salsas) se vean sin bajar
   tanto. Solo con `body.pos.compacta`. */
body.pos.compacta .topbar { padding: 4px 12px; }
body.pos.compacta .tb-logo { width: 28px; height: 28px; border-radius: 8px; }
body.pos.compacta .tb-ttl h1 { font-size: 17px; }
body.pos.compacta .tb-ttl p { display: none; }
body.pos.compacta .header-cart { width: 34px; height: 34px; }
body.pos.compacta #tab-menu .cat-nav { top: 42px; padding: 2px 12px 4px; gap: 4px; }
body.pos.compacta #tab-menu .cat-nav button { font-size: 14px; padding: 7px 11px; }
body.pos.compacta .cat-sec { padding-top: 4px; }
body.pos.compacta .grid-head { padding: 8px 12px 6px; }
body.pos.compacta .grid-head > span { font-size: 15px; }
body.pos.compacta .cat-grid,
body.pos.compacta .grid2 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 0 12px; }
body.pos.compacta .dish { border-radius: 12px; }
body.pos.compacta .d-photo { aspect-ratio: 16 / 10; }
body.pos.compacta .d-info { padding: 6px 8px 8px; }
body.pos.compacta .dish h3 { font-size: 13.5px; }
body.pos.compacta .dish .d-desc,
body.pos.compacta .dish p { display: none; }
body.pos.compacta .d-row { padding-top: 4px; }
body.pos.compacta .d-price { font-size: 14px; }
body.pos.compacta .d-add { width: 34px; height: 34px; font-size: 20px; }
/* Las opciones: la foto chica y sin descripción, para ver las salsas. */
body.pos.compacta .item-sheet .is-photo { height: 84px; }
body.pos.compacta .item-sheet .sheet-desc { display: none; }
body.pos.compacta .item-sheet .is-body { padding-top: 10px; }

/* --- Las opciones del plato, también a lo ancho --- */
/* Centrada con márgenes y NO con left:50% + translateX: `.sheet-back.in
   .sheet` pone su propio transform (la animación de subida) y le ganaba,
   así que la ficha quedaba corrida a la derecha y medio fuera de la pantalla
   — en la tablet de Multiplaza las salsas no se veían (23/11/2026). */
body.pos .item-sheet { max-width: 620px; margin-left: auto; margin-right: auto; }

/* --- Mostrador: el miembro, dentro del ticket ---
   Va arriba del todo del ticket porque es la pregunta que hay que hacer antes
   de cobrar. Solo existe con ?pos=1. */
body.pos .pos-miembro {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 16px;
  padding: 14px 16px; margin-bottom: 16px;
}
body.pos .pos-miembro.es { background: #eef8f1; border-color: #cfe8d8; }
body.pos .pos-miembro.nuevo { background: var(--yellow-soft); border-color: #f0dfa8; }
body.pos .pm-h { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
body.pos .pm-fila { display: flex; align-items: center; gap: 10px; }
body.pos .pm-fila input {
  flex: 1 1 auto; min-width: 0;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px;
  font-family: inherit; font-size: 15px; font-weight: 700; background: var(--paper);
}
body.pos .pm-fila input:focus { outline: none; border-color: var(--yellow); }
body.pos .pm-btn {
  flex: 0 0 auto; border: 1.5px solid var(--line); background: var(--card);
  border-radius: 999px; padding: 12px 18px;
  font-family: inherit; font-size: 14px; font-weight: 800; color: var(--ink);
}
body.pos .pm-btn-ok { background: var(--ink); border-color: var(--ink); color: var(--yellow); }
body.pos .pm-ok {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: #1c7a3e; color: #fff;
  font-size: 16px; font-weight: 800;
}
body.pos .pm-quien { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
body.pos .pm-quien b { font-size: 15.5px; font-weight: 800; }
body.pos .pm-quien small { font-size: 12.5px; font-weight: 700; color: var(--muted); }
body.pos .pm-x {
  flex: 0 0 auto; width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.06); color: var(--muted); font-size: 13px; font-weight: 800;
}
body.pos .pm-nota { margin: 8px 0 0; font-size: 12.5px; font-weight: 700; color: var(--muted); line-height: 1.4; }
body.pos .pm-acc { display: flex; gap: 10px; margin-top: 4px; }
body.pos .pm-acc .pm-btn { flex: 1 1 0; }
body.pos .pm-err {
  margin: 10px 0 0; padding: 9px 12px; border-radius: 10px;
  background: #fdecec; color: #a4242d; font-size: 12.5px; font-weight: 700;
}

/* --- 3D Secure: el desafío del banco ---
   Dentro de la app, no saliendo a otra página: sacar al cliente del sitio
   justo al pagar es la forma más fácil de que no vuelva. */
.tds-back {
  position: fixed; inset: 0; z-index: 260;
  background: rgba(15, 15, 12, .72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.tds {
  width: min(430px, 100%); max-height: 92vh; display: flex; flex-direction: column;
  background: var(--card); border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}
.tds-cab {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.tds-t { font-size: 15px; font-weight: 800; }
.tds-x {
  width: 32px; height: 32px; border: 0; border-radius: 999px;
  background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 800;
}
/* Alto generoso: el formulario del banco es ajeno y no se puede medir desde
   fuera. Corto, el campo del código queda debajo del borde. */
.tds-marco { flex: 1 1 auto; width: 100%; min-height: 420px; border: 0; background: #fff; }
.tds-pie {
  margin: 0; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  font-size: 12.5px; font-weight: 700; color: var(--muted); line-height: 1.45; text-align: center;
  border-top: 1px solid var(--line);
}

/* "¿Ya eres miembro?" debajo de la caja de socio. Discreto a propósito: quien
   ya tiene cuenta lo busca, y a quien no la tiene no hay que distraerlo del
   botón de arriba. */
.pc-ya-socio {
  width: 100%; border: 0; background: none; padding: 12px 8px; margin: -4px 0 12px;
  font-family: var(--font); font-size: 13.5px; font-weight: 600; color: var(--muted);
  text-align: center; cursor: pointer;
}
.pc-ya-socio b { color: var(--ink); font-weight: 800; }

/* A quién llamar si algo pasa con el pedido. Reemplaza al botón de cancelar:
   cuando el cliente llega aquí el pedido ya está pagado y puede estar en la
   plancha, así que la decisión la toma alguien del local con el pedido a la
   vista, no un botón. */
.pc-ayuda {
  margin: 4px 0 12px; text-align: center;
  font-size: 13px; font-weight: 700; color: var(--muted); line-height: 1.5;
}
.pc-ayuda a { color: var(--ink); font-weight: 800; }

/* --- Permiso de notificaciones ---------------------------------------- */
.av-back .av-hoja { max-width: 440px; margin: 0 auto; }
.av-body { text-align: center; padding: 6px 22px 24px; }
.av-ico {
  width: 62px; height: 62px; margin: 6px auto 12px; border-radius: 99px;
  background: var(--yellow-soft); display: grid; place-items: center; font-size: 29px;
}
.av-body .sh-sub { margin: 7px auto 0; max-width: 34ch; }
.av-no {
  display: block; width: 100%; margin-top: 8px; padding: 13px; border: 0;
  background: none; color: var(--muted); font: inherit; font-weight: 800;
  font-size: 14px; cursor: pointer; border-radius: 14px;
}
.av-no:active { background: var(--paper); }

/* --- Programar pedido (local cerrado) ---------------------------------- */
.programar-caja { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: var(--card); }
.programar-caja .field { margin: 0; }
.programar-caja .cuando-nota { margin: 6px 0 0; }
/* El desplegable enseña la hora, pero NO el día: dentro de un <optgroup> el
   día solo se ve al abrirlo, y alguien podía creer que pidió para hoy. */
.programar-elegido {
  margin: 10px 0 0; padding: 10px 12px; border-radius: 12px;
  background: var(--yellow-soft); color: var(--ink);
  font-size: 15px; font-weight: 800; text-align: center;
}

/* --- Bloque de pago (dos fichas) --------------------------------------- */
.pg {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: 16px 13px; box-shadow: var(--shadow);
}
.pg-cab {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px; margin-bottom: 16px;
}
.pg-h { margin: 0; font-family: var(--display); font-size: 21px; font-weight: 800; line-height: 1.15; }
.pg-total { text-align: right; flex: 0 0 auto; }
.pg-total span { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.pg-total b { display: block; font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -.01em; }

/* Siempre lado a lado. Eso deja ~159px por ficha, así que el contenido es el
   que cabe ahí: centrado, con una línea de bajada y la flecha abajo. Girar
   solo la cuadrícula sin tocar el contenido partía el título en dos líneas y
   cortaba la flecha contra el borde. */
.pg-ops { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: stretch; }

.pg-op {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  align-items: flex-start; width: 100%; text-align: left;
  border: 0; border-radius: 18px; padding: 12px 42px 12px 12px;
  font: inherit; color: var(--ink); cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.pg-op:active { transform: scale(.985); }
.pg-op.on { box-shadow: 0 0 0 2.5px var(--ink) inset; }
.pg-op-yappy { background: linear-gradient(135deg, #FFE9A8 0%, #FFD24D 100%); }
.pg-op-card { background: linear-gradient(135deg, #DFF3E2 0%, #B9E5C4 100%); }

.pg-t { display: block; font-family: var(--display); font-size: 12.5px; font-weight: 800; line-height: 1.2; }
.pg-d { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 600; line-height: 1.3; color: #4A4A42; }

/* La flecha: es un botón dentro de otro, así que va como adorno. */
.pg-ir {
  position: absolute; top: 50%; right: 9px; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 99px; background: rgba(255,255,255,.78);
  display: grid; place-items: center; color: var(--ink);
}
.pg-ir svg { width: 13px; height: 13px; }


.pg-yappy-logo { display: flex; align-items: center; gap: 2px; margin-bottom: 7px; }
.pg-burbujas { width: 30px; height: 21px; flex: 0 0 30px; }
.pg-yappy-txt {
  font-family: var(--display); font-size: 17px; font-weight: 800;
  letter-spacing: -.02em; color: #1C3FAA; line-height: 1;
}
.pg-ico { display: block; width: 25px; height: 25px; margin: 0 0 7px; color: #0F2E1A; }

.pg-marcas { display: flex; align-items: center; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.pg-marca {
  display: inline-grid; place-items: center; height: 20px; min-width: 31px;
  padding: 0 5px; border-radius: 4px; background: #fff;
}
.pg-visa { font-size: 11.5px; font-weight: 900; font-style: italic; color: #1A1F71; letter-spacing: -.02em; }
.pg-mc svg { width: 26px; height: 16px; }


/* ---------- "Gana con Fud Lab": suscribirse a las promos (nov. 2026) ----------
   public/lib/suscribirse.js. Va en el checkout, el registro y el perfil.
   Las casillas son grandes a propósito: es la decisión que más queremos que
   la gente tome, y una casilla de 14px pasa desapercibida. Nada premarcado. */
.gana {
  background: var(--yellow-soft); border: 1.5px solid var(--yellow);
  border-radius: 16px; padding: 14px 14px 12px; margin: 6px 0 2px;
}
.gana-tit { margin: 0 0 6px; font-weight: 900; font-size: 16px; color: var(--ink); }
.gana-lista { margin: 0 0 10px; padding: 0; list-style: none; display: grid; gap: 3px; }
.gana-lista li { font-size: 13.5px; font-weight: 600; color: var(--ink); padding-left: 20px; position: relative; }
.gana-lista li::before { content: '✓'; position: absolute; left: 2px; font-weight: 900; color: var(--ink); }
.gana-canales { display: flex; gap: 8px; flex-wrap: wrap; }
.gana-op {
  flex: 1 1 130px; display: flex; align-items: center; gap: 8px; cursor: pointer;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px;
  font-weight: 800; font-size: 14px; color: var(--ink);
}
.gana-op input { width: 20px; height: 20px; flex: 0 0 auto; margin: 0; accent-color: var(--ink); }
.gana-op:has(input:checked) { border-color: var(--ink); }
.gana-extra { display: grid; gap: 10px; margin-top: 10px; }
.gana-campo { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--ink); }
.gana-campo small { font-weight: 600; color: var(--muted); }
.gana-campo input {
  font: inherit; font-weight: 600; padding: 10px 12px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; min-width: 0;
}
.gana-cumple { display: flex; gap: 8px; }
.gana-cumple select {
  flex: 1 1 0; min-width: 0; font: inherit; font-weight: 600; padding: 9px 10px;
  border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
}
.gana-pie { margin: 10px 0 0; font-size: 12px; color: var(--muted); font-weight: 600; }
.pf-cumple { cursor: default; flex-direction: column; }
/* `.pf-toggle span` pone en columna a todo span de la fila, y el de los
   selectores también lo es: Día y Mes salían uno encima del otro, con el
   ancho del más corto. */
.pf-cumple .gana-cumple { flex-direction: row; align-self: stretch; max-width: 320px; }
.pf-cumple .gana-cumple select:disabled { opacity: .75; background: var(--card); }
.pf-cumple-nota { font-size: 12px; font-weight: 700; color: var(--muted); }
.pf-cumple-ok {
  align-self: flex-start; border: 0; border-radius: 999px; padding: 9px 16px;
  background: var(--ink); color: #fff; font: inherit; font-size: 13.5px; font-weight: 800;
}
.pf-cumple-ok:disabled { opacity: .6; }

/* El postre de cumpleaños en el carrito: misma línea que una oferta. */
.cumple-usar {
  flex: 0 0 auto; border: 0; border-radius: 999px; padding: 7px 13px;
  background: var(--ink); color: #fff; font: inherit; font-size: 12.5px; font-weight: 800;
}
.cumple-ver {
  border: 0; background: none; padding: 0; font: inherit; font-weight: 800;
  color: var(--ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}

/* Ofertas solo para miembros y estrenos (nov. 2026): las promesas "no salen
   en redes" y "los drops antes que nadie", a la vista. */
.oc-miembros {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: var(--ink); color: #fff; border-radius: 999px;
  padding: 5px 9px; font-size: 10.5px; font-weight: 800;
}
.miembros-teaser {
  display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 14px;
  padding: 14px; border-radius: 16px; border: 1.5px dashed var(--ink);
  background: var(--card); color: var(--ink); font-family: var(--font); text-align: left; cursor: pointer;
}
.mt-ico { flex: 0 0 auto; font-size: 20px; }
.mt-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mt-txt b { font-size: 14px; font-weight: 800; }
.mt-txt small { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.mt-go { flex: 0 0 auto; display: grid; place-items: center; }
.mt-go svg { width: 19px; height: 19px; }
.is-estreno {
  margin: 8px 0 0; padding: 9px 12px; border-radius: 12px;
  background: var(--yellow-soft); font-size: 13px; font-weight: 800; line-height: 1.4;
}


/* Teléfonos chicos (iPhone SE y parecidos): la ficha baja a ~152px y ahí
   "Pagar con tarjeta" se parte en dos, dejando las dos fichas con distinta
   forma. Esta sí se dispara, a diferencia del diseño ancho que borré. */
@media (max-width: 374px) {
  .pg { padding: 14px 10px; }
  .pg-t { font-size: 11.5px; }
  .pg-op { padding: 11px 38px 11px 10px; }
}

.pg-panel { margin-top: 16px; }
.pg-panel .tj-form, .pg-panel .yappy-btn-wrap { margin-top: 0; }

.pg-pie {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 13.5px; font-weight: 700; color: var(--muted);
}
.pg-pie svg { width: 17px; height: 17px; }

/* --- Canjea tus puntos: tira horizontal ------------------------------- */
/* Antes iban de dos en dos y empujaban los niveles fuera de la pantalla.
   En tira caben todos, se ven de un vistazo y se pasan con el dedo. */
/* El título arranca donde arranca la primera tarjeta. Desalineados por seis
   píxeles se nota, aunque nadie sepa decir qué es lo que le pasa. */
.canje-h { padding-left: 16px; padding-right: 16px; }
.canje-tira {
  display: flex; gap: 7px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 16px 4px; scroll-padding: 0 16px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.canje-tira::-webkit-scrollbar { display: none; }
.canje {
  flex: 0 0 128px; scroll-snap-align: start;
  display: flex; flex-direction: column; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 0 0 11px; overflow: hidden; font: inherit; color: var(--ink);
  cursor: pointer; box-shadow: var(--shadow);
  transition: transform .12s ease;
}
.canje:active { transform: scale(.985); }
.cj-foto {
  position: relative; display: block; height: 96px;
  background-size: cover; background-position: center;
}
.cj-pts {
  position: absolute; top: 7px; left: 7px;
  background: var(--ink); color: var(--yellow);
  font-size: 10.5px; font-weight: 800; padding: 4px 8px; border-radius: 999px;
}
.canje .cj-t {
  display: block; margin: 9px 10px 0; font-size: 13px; font-weight: 800;
  line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.canje .cj-d {
  display: block; margin: 3px 10px 0; font-size: 11px; font-weight: 700;
  color: var(--muted); line-height: 1.25;
}
/* Lo que ya se puede canjear se dice en la marca, no solo en la letra chica. */
.canje:not(.short) .cj-d { color: #1F7A46; }

/* --- Tus niveles: la escalera en horizontal --------------------------- */
/* Antes era una lista vertical de cuatro tarjetas: ocupaba una pantalla
   entera y había que desplazarse para ver a dónde llevaba el camino, que es
   justo lo que la escalera tiene que enseñar de un vistazo. */
.niveles {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 4px; margin: 0 var(--gutter); padding: 30px 10px 14px;
  background: #F6F4EC; border-radius: 20px;
}
/* El riel va detrás de las fotos, a la altura de su centro. */
.nv-riel {
  position: absolute; left: 22%; right: 22%; top: 66px; height: 3px;
  border-radius: 9px; overflow: hidden;
  /* Punteado lo que falta, lleno lo andado: se lee el camino sin contar. */
  background-image: linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
  background-size: 12px 3px;
}
.nv-riel i { display: block; height: 100%; background: var(--yellow); border-radius: 9px; }

.nv {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 0; border: 0; background: none; font: inherit;
  color: var(--ink); text-align: center; cursor: pointer;
}
.nv:active { transform: scale(.97); }
.nv-foto {
  position: relative; width: 56px; height: 56px; border-radius: 99px;
  background-size: cover; background-position: center; background-color: var(--white);
  border: 3px solid var(--line); margin-bottom: 7px;
}
.nv.done .nv-foto { border-color: var(--yellow); }
/* El que sigue no va apagado: es a donde se quiere llegar. */
.nv.next .nv-foto { border-color: var(--yellow); filter: none; opacity: 1; }
.nv.now .nv-foto { box-shadow: 0 0 0 4px rgba(255,200,0,.28); }
.nv.lock .nv-foto { filter: grayscale(1) contrast(.9); opacity: .8; }
.nv-sello {
  position: absolute; right: -3px; bottom: -3px;
  width: 20px; height: 20px; border-radius: 99px;
  display: grid; place-items: center; font-size: 10px;
  border: 2px solid #F6F4EC;
}
.nv-sello.ok { background: var(--yellow); color: var(--ink); font-weight: 900; }
.nv-sello.lock { background: var(--muted); font-size: 8px; }

/* El globo del que sigue, encima de su foto. */
.nv-globo {
  position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
  background: var(--yellow); color: var(--ink); border-radius: 10px;
  padding: 4px 8px; font-size: 9px; font-weight: 800; line-height: 1.15;
  white-space: nowrap; z-index: 2;
}
.nv-globo b { font-size: 10.5px; }
.nv-globo::after {
  content: ''; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%);
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 5px solid var(--yellow);
}

.nv-n { font-size: 8.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nv-name { font-size: 12.5px; font-weight: 800; line-height: 1.15; }
.nv-perk { font-size: 9.5px; font-weight: 600; color: var(--muted); line-height: 1.25; }
.nv.lock .nv-name, .nv.lock .nv-perk { opacity: .7; }

/* --- Invita amigos: como la referencia -------------------------------- */
.rc-top { display: flex; align-items: flex-start; gap: 12px; }
/* El lema apilado, a la izquierda, como en la imagen. */
.rc-lema {
  flex: 0 0 74px; display: flex; flex-direction: column; line-height: .92;
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: 17px; letter-spacing: -.01em; padding-top: 2px;
}
.rc-lema b { color: var(--yellow); position: relative; display: inline-block; }
/* El subrayado a mano alzada de debajo de "sabor". */
.rc-lema b::after {
  content: ''; position: absolute; left: 0; right: 14%; bottom: -5px; height: 3px;
  background: var(--yellow); border-radius: 99px; transform: rotate(-2.5deg);
}
.rc-oferta { flex: 1 1 auto; min-width: 0; }
.refer-card .rc-big { font-size: 40px; }
.refer-card .rc-big small { font-size: 15px; }

.rc-codebox { align-items: stretch; }
.refer-card .rc-code {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  flex: 1 1 auto; min-width: 0; font: inherit;
  font-family: var(--display); font-weight: 800; letter-spacing: .04em;
  cursor: pointer;
}
.refer-card .rc-code span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.refer-card .rc-code svg { width: 15px; height: 15px; flex: 0 0 15px; opacity: .8; }
.refer-card .rc-copy {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
}
.refer-card .rc-copy svg { width: 15px; height: 15px; }

/* El contador de los cinco amigos: no está en la referencia, pero el combo
   del quinto es un premio de verdad y sin esto el cliente no sabe que existe.
   Va en una línea, sin robarle sitio a lo demás. */
.refer-card .rc-trackfoot {
  display: flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 700; opacity: .72; margin-top: 12px;
}
.refer-card .rc-dots { display: inline-flex; gap: 3px; flex: 0 0 auto; }
.refer-card .rc-dots i { width: 14px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.2); }
.refer-card .rc-dots i.on { background: var(--yellow); }

/* --- "Ver todos": el catálogo entero en una hoja ----------------------- */
.lista-sheet { display: flex; flex-direction: column; max-height: 82vh; }
.lst-cab {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 6px 18px 12px; border-bottom: 1px solid var(--line);
}
.lst-t { font-family: var(--display); font-size: 19px; font-weight: 800; line-height: 1.15; }
.lst-d { margin-top: 3px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.lst-d b { color: var(--ink); }
.lst-x {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 99px; border: 0;
  background: var(--paper); color: var(--ink); font-size: 14px; cursor: pointer;
}
/* La lista desplaza sola: la hoja se queda quieta y el encabezado a la vista. */
.lst-scroll { overflow-y: auto; padding: 8px 12px 20px; -webkit-overflow-scrolling: touch; }

.lst-fila {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 9px 8px; border: 0; background: none; border-radius: 14px;
  font: inherit; color: var(--ink); text-align: left; cursor: pointer;
}
.lst-fila:active { background: var(--paper); }
.lst-foto {
  flex: 0 0 52px; width: 52px; height: 52px; border-radius: 12px;
  background-size: cover; background-position: center; background-color: var(--paper);
}
.lst-fila.short .lst-foto { filter: grayscale(.55); opacity: .8; }
.lst-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lst-txt b { font-size: 14.5px; font-weight: 800; line-height: 1.2; }
.lst-txt small { font-size: 11.5px; font-weight: 700; color: #1F7A46; }
.lst-fila.short .lst-txt small { color: var(--muted); }
.lst-pts {
  flex: 0 0 auto; background: var(--ink); color: var(--yellow);
  font-size: 11.5px; font-weight: 800; padding: 5px 10px; border-radius: 999px;
}
.lst-fila.short .lst-pts { background: var(--line); color: var(--muted); }

/* --- Pasos para instalar en iPhone ------------------------------------ */
/* Iban en un párrafo corrido. Son instrucciones que se siguen con el teléfono
   en la mano, mirando arriba y abajo: numeradas se siguen, en bloque no. */
.av-pasos { list-style: none; margin: 16px 0 0; padding: 0; text-align: left; }
.av-pasos li {
  display: grid; grid-template-columns: 26px 1fr; gap: 3px 11px;
  align-items: start; padding: 11px 0;
}
.av-pasos li + li { border-top: 1px solid var(--line); }
.av-pasos li > span {
  grid-row: 1 / span 2; width: 26px; height: 26px; border-radius: 99px;
  background: var(--yellow); color: var(--ink);
  display: grid; place-items: center; font-size: 13px; font-weight: 800;
}
.av-pasos li > b {
  display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 14.5px; font-weight: 800; line-height: 1.3;
}
.av-pasos li > b svg { width: 17px; height: 17px; flex: 0 0 17px; }
.av-pasos li > small {
  font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1.4;
}
.av-cierre {
  margin: 14px 0 0; font-size: 13px; font-weight: 700; color: var(--muted);
  line-height: 1.45;
}

/* --- Canje en el mostrador -------------------------------------------- */
.canje-box {
  margin-top: 12px; padding: 13px 14px; border-radius: 14px;
  background: var(--yellow-soft); border: 1px solid #F3E3B0;
}
.canje-box .field { margin: 0; }
.canje-box input { text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.canje-box .hint { margin: 9px 0 0; line-height: 1.45; }
.canje-fila { display: flex; gap: 8px; align-items: stretch; margin-top: 6px; }
.canje-fila input { flex: 1 1 auto; min-width: 0; }
.canje-ok {
  flex: 0 0 auto; border: 0; border-radius: 12px; padding: 0 18px; cursor: pointer;
  background: var(--ink); color: var(--yellow); font: inherit; font-weight: 800;
}
.canje-ok[disabled] { opacity: .6; cursor: default; }
.canje-vale { margin: 9px 0 0; font-size: 13.5px; font-weight: 800; color: #1F7A46; }
.canje-err { margin: 9px 0 0; font-size: 13px; font-weight: 800; color: var(--danger); }
.canje-linea {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-top: 1px solid var(--line);
  font-size: 14px; font-weight: 800; color: #1F7A46;
}

/* Cuando el descuento del tag le gana al canje. La cajera tiene que poder
   decírselo al cliente ANTES de que se vaya creyendo que gastó su código. */
.canje-nota {
  padding: 0 0 10px; font-size: 12px; font-weight: 700;
  line-height: 1.4; color: var(--muted);
}

/* Etiquetas del cliente en la tarjeta del mostrador. */
.pm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.pm-tag {
  border-radius: 999px; padding: 3px 9px;
  background: rgba(0,0,0,.07); color: var(--ink);
  font-size: 11px; font-weight: 800; letter-spacing: .03em;
}
.pm-oferta {
  margin: 8px 0 0; font-size: 12.5px; font-weight: 800;
  line-height: 1.4; color: #1F7A46;
}

/* --- Consentimiento de publicidad ----------------------------------------
   Abajo y sin tapar la pantalla entera: un cuadro que bloquea todo se
   responde al azar con tal de quitarlo, y entonces el "sí" no vale nada.
   Las dos opciones se ven igual de disponibles; la de aceptar resalta, pero
   la de rechazar no está escondida ni en gris claro. */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
  max-width: 560px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 10px 34px rgba(20,20,10,.22);
  padding: 16px 18px;
}
.consent p {
  margin: 0 0 12px; font-size: 13.5px; font-weight: 600; line-height: 1.5; color: var(--ink);
}
.consent a { color: var(--ink); font-weight: 800; }
.consent-acc { display: flex; gap: 10px; }
.consent-acc button {
  flex: 1 1 0; border-radius: 12px; cursor: pointer;
  padding: 12px 14px; font: inherit; font-size: 14px; font-weight: 800;
}
.consent-no { border: 2px solid var(--line); background: var(--white); color: var(--ink); }
.consent-si { border: 0; background: var(--ink); color: var(--white); }

/* --- Enlaces legales ------------------------------------------------------ */
.legal-links {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  padding: 18px var(--gutter) 6px;
}
.legal-links a {
  font-size: 12.5px; font-weight: 700; color: var(--muted);
  text-decoration: none; border-bottom: 1px solid transparent;
}
.legal-links a:hover { color: var(--ink); border-bottom-color: var(--line); }
.legal-fine {
  margin: 14px 0 0; font-size: 12px; font-weight: 600;
  line-height: 1.5; color: var(--muted); text-align: center;
}
.legal-fine a { color: var(--muted); font-weight: 800; }

/* --- Privacidad dentro de la cuenta --------------------------------------- */
.priv-caja {
  margin: 10px var(--gutter) 0; padding-top: 14px;
  border-top: 1px solid var(--line);
}
.priv-fila {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 4px 0 12px; cursor: pointer;
}
.priv-fila > span { flex: 1 1 auto; min-width: 0; }
.priv-fila b { display: block; font-size: 14px; font-weight: 800; }
.priv-fila small {
  display: block; margin-top: 3px; font-size: 12px; font-weight: 600;
  line-height: 1.45; color: var(--muted);
}
/* Interruptor, no casilla: a simple vista se ve si está encendido o apagado. */
.priv-fila input {
  flex: 0 0 auto; appearance: none; -webkit-appearance: none;
  width: 46px; height: 27px; margin-top: 2px; border-radius: 999px;
  background: rgba(0,0,0,.18); position: relative; cursor: pointer;
  transition: background .18s ease;
}
.priv-fila input::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 21px; height: 21px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .18s ease;
}
.priv-fila input:checked { background: var(--ink); }
.priv-fila input:checked::after { transform: translateX(19px); }
.priv-caja .legal-links { padding: 4px 0 2px; }

/* ===========================================================================
   GIFT CARDS
   =========================================================================== */
/* Por encima de la hoja de la cuenta (240): el "¿quieres el gift card?" sale
   justo después de registrarse. Y por debajo de la de compartir (260), que se
   abre desde aquí. */
.gc-back {
  position: fixed; inset: 0; z-index: 250; background: rgba(0,0,0,.5);
  display: flex; align-items: flex-end; justify-content: center; overflow-y: auto;
}
.gc {
  width: 100%; background: #fff; border-radius: 22px 22px 0 0; position: relative;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); margin-top: auto;
}
@media (min-width: 560px) {
  .gc-back { align-items: center; padding: 24px; }
  .gc { border-radius: 22px; margin: 0; }
}
.gc h3 { margin: 0 44px 14px 0; font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.gc-x {
  position: absolute; top: 18px; right: 16px; width: 34px; height: 34px;
  border: 0; border-radius: 50%; background: #f1f0ec; font-size: 15px; cursor: pointer;
}
.gc-foto { width: 100%; border-radius: 14px; display: block; margin-bottom: 14px; }
.gc-monto-grande { font-size: 40px; font-weight: 800; letter-spacing: -.03em; text-align: center; }
.gc-p { margin: 6px 0 14px; font-size: 14.5px; font-weight: 600; color: #5c5c58; line-height: 1.5; text-align: center; }
.gc-msg { margin: 0 0 14px; font-size: 14.5px; font-style: italic; color: #6b6b67; text-align: center; }
.gc-nota { margin: 14px 0 0; font-size: 12.5px; font-weight: 600; color: #8a8a87; line-height: 1.55; }

.gc-montos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 14px; }
.gc-monto {
  border: 2px solid #ececE8; background: #fff; border-radius: 14px; padding: 15px 6px;
  font: inherit; font-size: 17px; font-weight: 800; cursor: pointer;
}
.gc-monto.on { border-color: #17171a; background: #17171a; color: #fff; }
.gc-monto.gc-otro { font-size: 15px; }

.gc-form { display: flex; flex-direction: column; gap: 12px; }
.gc-campo { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: #5c5c58; }
/* `display:flex` le gana a `[hidden]`, y el campo de "Otro" salía siempre. */
.gc-campo[hidden], .gc-err[hidden] { display: none; }
.gc-campo small { font-weight: 600; color: #a0a09c; }
.gc-campo input {
  border: 1.5px solid #ececE8; border-radius: 12px; padding: 13px 14px;
  /* 16px: con menos, iOS hace zoom al tocar el campo. */
  font: inherit; font-size: 16px; font-weight: 600; color: #17171a; background: #fff;
}
.gc-err { background: #fdeaea; color: #dc2626; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; font-weight: 800; }
.gc-btn {
  width: 100%; border: 0; border-radius: 14px; background: #FFC800; color: #17171a;
  padding: 16px; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer;
}
.gc-btn:disabled { opacity: .45; cursor: not-allowed; }
.gc-btn-gris { background: #f1f0ec; }
.gc-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* El código que se dicta en caja. Grande y espaciado: se lee en voz alta por
   encima del ruido de una cocina. */
.gc-codigo {
  background: #17171a; color: #fff; border-radius: 16px; padding: 16px; text-align: center; margin-bottom: 4px;
}
.gc-codigo small { display: block; font-size: 11.5px; font-weight: 700; color: #9a9a96; letter-spacing: .08em; text-transform: uppercase; }
.gc-codigo b { display: block; margin-top: 4px; font-size: 30px; font-weight: 800; letter-spacing: .14em; }

/* La lista en Rewards y en el perfil. */
.gc-lista { display: flex; flex-direction: column; gap: 10px; }
.gc-fila {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  border: 1.5px solid #ececE8; background: #fff; border-radius: 16px; padding: 10px 14px 10px 10px;
  font: inherit; cursor: pointer;
}
.gc-fila.reclamado { border-color: #f0d98a; background: #fffaeb; }
.gc-fila img { width: 58px; height: 58px; border-radius: 11px; object-fit: cover; flex: 0 0 auto; }
.gc-fila-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gc-fila-txt b { font-size: 15.5px; font-weight: 800; }
.gc-fila-txt small { font-size: 12.5px; font-weight: 700; color: #8a8a87; }
.gc-fila-go { color: #b4b4b0; font-size: 20px; flex: 0 0 auto; }

/* El resumen del gift card dentro del checkout, en vez de las líneas del carrito. */
.gc-resumen { display: flex; align-items: center; gap: 14px; }
.gc-resumen img { width: 86px; border-radius: 12px; flex: 0 0 auto; }
.gc-resumen div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gc-resumen b { font-size: 16px; font-weight: 800; }
.gc-resumen span { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.gc-resumen small { font-size: 12.5px; font-weight: 600; color: #8a8a87; line-height: 1.45; }

/* Gift card ya aplicado en el carrito, en lugar de la casilla de código. */
.cod-puesto { display: flex; align-items: center; gap: 12px; }
.cod-puesto img { width: 46px; border-radius: 9px; flex: 0 0 auto; }
.cod-puesto span { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cod-puesto b { font-size: 14.5px; font-weight: 800; }
.cod-puesto small { font-size: 12px; font-weight: 700; color: #8a8a87; }
.cod-quitar { border: 0; background: none; color: #dc2626; font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; }

/* Las dos cifras cuando hay gift card: lo que vale el pedido y lo que falta. */
.gc-cuentas { display: flex; flex-direction: column; gap: 8px; }
.gc-cuentas div { display: flex; justify-content: space-between; font-size: 14.5px; font-weight: 700; color: #5c5c58; }
.gc-cuentas b { color: #17171a; font-weight: 800; }
.gc-cuentas-gift b { color: #16a34a; }
.gc-cuentas-tot { border-top: 1px solid #ececE8; padding-top: 9px; font-size: 17px !important; }
.gc-cuentas-tot b { font-size: 20px; }

/* Los gift cards que compró, guardados en este teléfono. */
.gc-mios { border: 1.5px solid #f0d98a; background: #fffaeb; border-radius: 14px; padding: 12px; margin-bottom: 14px; }
.gc-mios > b { display: block; font-size: 13.5px; font-weight: 800; margin-bottom: 8px; }
.gc-mio {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  border: 0; background: #fff; border-radius: 11px; padding: 11px 13px; margin-top: 7px;
  font: inherit; cursor: pointer;
}
.gc-mio span { font-size: 16px; font-weight: 800; }
.gc-mio small { flex: 1 1 auto; font-size: 12.5px; font-weight: 700; color: #8a8a87; }
.gc-mio i { font-style: normal; color: #b4b4b0; font-size: 18px; }

/* El código de 6 dígitos. Grande y espaciado: se teclea mirando el chat de
   WhatsApp al lado, y con la letra normal se salta un dígito. */
.jf-codigo {
  font-size: 26px !important; font-weight: 800; letter-spacing: 10px;
  text-align: center; padding-left: 10px;
}

/* "Usar mi ubicación" en el checkout de domicilio. */
.ubi-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  border: 1.5px dashed var(--line); background: var(--card); border-radius: 14px;
  padding: 12px 14px; margin-bottom: 10px; font: inherit; cursor: pointer;
}
.ubi-btn:disabled { opacity: .6; cursor: default; }
.ubi-ico { font-size: 20px; flex: 0 0 auto; }
.ubi-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ubi-txt b { font-size: 14px; font-weight: 800; }
.ubi-txt small { font-size: 12px; font-weight: 600; color: var(--muted); }
.ubi-btn.ok { border-style: solid; border-color: #16a34a; background: #e8f7ee; }
.ubi-msg { margin: -4px 0 10px; font-size: 12.5px; font-weight: 700; color: var(--muted); line-height: 1.45; }
.ubi-msg.mal { color: #dc2626; }

/* Campaña de donaciones: secundaria a las tarjetas de pedido, misma separación. */
.donate-banner { width:calc(100% - 20px); margin:0 10px 0; display:flex; align-items:center; gap:13px; padding:17px 14px; background:#FFC800; border:1px solid #edbb00; border-radius:22px; text-align:left; overflow:hidden; position:relative; min-height:126px; color:var(--ink); flex-shrink:0}

.donate-art { flex:0 0 67px; height:78px; position:relative; display:grid; place-items:center}

.donate-art:before { content:''; position:absolute; width:69px; height:69px; border-radius:50%; background:#ffe78a; top:8px; left:-4px}

.donate-art svg { position:relative; width:65px; height:74px; transform:rotate(-7deg)}

.donate-copy { flex:1; min-width:0}
.donate-banner strong { display:block; font-size:21px; font-weight:800; line-height:1.16; letter-spacing:-.5px}
.donate-banner strong em { font-style:normal; display:inline-block; position:relative; z-index:0}
.donate-banner strong em:after { content:''; position:absolute; left:-2px; right:-3px; bottom:0; height:9px; background:#fff0a3; z-index:-1; border-radius:3px; transform:rotate(-2deg)}

.donate-desc { display:block; font-size:10px; font-weight:600; color:#51430e; line-height:1.4; margin-top:7px}
.donate-cta { display:flex; align-items:center; justify-content:center; flex:0 0 36px; height:36px; border-radius:50%; background:var(--ink); color:white; box-shadow:0 4px 10px #0002; line-height:1}
.donate-cta svg { display:block; width:21px; height:21px; flex:none}

@media(max-width:360px) { .donate-banner { gap:10px; padding:15px 12px}
.donate-art { flex-basis:56px}
.donate-art svg { width:56px}
.donate-art:before { width:58px; height:58px}
.donate-banner strong { font-size:20px}
.donate-desc { font-size:9px}
}

.donacion-modal { width:calc(100% - 28px); max-width:430px; max-height:92dvh; overflow:auto; border:0; border-radius:26px; padding:26px; color:var(--ink); font-family:var(--font); box-shadow:0 25px 100px #0003}
.donacion-modal::backdrop { background:#1a1a1a70; backdrop-filter:blur(3px)}
.donacion-modal .d-close { position:absolute; right:14px; top:12px; border:0; background:#f2f2ef; border-radius:50%; width:32px; height:32px; font-size:24px}
.donacion-modal .d-icon { width:46px; height:46px; background:var(--yellow); border-radius:16px; display:grid; place-items:center; font-size:25px; margin-bottom:16px}
.donacion-modal h2 { font-size:25px; line-height:1.15; margin:0 0 12px}
.donacion-modal p { font-size:13px; color:#66665e; line-height:1.55; margin:0 0 14px}
.donacion-modal ul { padding:0; margin:14px 0; list-style:none}
.donacion-modal li { font-size:12.5px; font-weight:700; padding:10px 0; border-bottom:1px solid var(--line)}
.donacion-modal li:before { content:'●'; color:#e7b500; margin-right:10px}
.donacion-modal .d-location { background:#f5f4ee; border-radius:14px; padding:13px; margin:16px 0}
.donacion-modal .d-location small { display:block; color:var(--muted); font-size:11px; margin-bottom:4px}
.donacion-modal .d-location b { font-size:14px}
.donacion-modal .d-primary { width:100%; padding:15px; border:0; border-radius:14px; background:var(--yellow); font-size:14px; font-weight:800}
.donacion-modal .d-fine { font-size:10.5px!important; margin:12px 0 0!important; text-align:center}
.donacion-modal .d-reward { text-align:center}
.donacion-modal .d-reward .d-icon { margin:4px auto 18px}
.donacion-modal .d-off { font-size:54px; font-weight:800; letter-spacing:-3px; line-height:1.1; margin:16px 0 0}
.donacion-modal .d-reward .d-sub { font-size:16px; color:var(--ink); font-weight:800}
.donacion-modal .d-reward h2 { font-size:26px}


.donacion-modal .d-code { background:#fff3c7; border:2px dashed #e5b500; border-radius:16px; padding:22px 12px; font-size:36px; font-weight:800; letter-spacing:4px; margin:24px 0 18px}
/* Reserva sitio a la navegación y al carrito, también en teléfonos bajos. */
#tab-order:has(.donate-banner) { min-height:calc(100vh - var(--topbar-h, 74px)); padding-bottom:calc(64px + env(safe-area-inset-bottom, 0px)); }
@supports (height:100dvh) { #tab-order:has(.donate-banner) { min-height:calc(100dvh - var(--topbar-h, 74px)); } }
body.con-carrito #tab-order:has(.donate-banner) { padding-bottom:calc(132px + env(safe-area-inset-bottom, 0px)); }
.donacion-modal a { color:var(--ink); text-underline-offset:3px; font-weight:700; }

/* Inicio: mismo ancho, alto y esquinas que el acceso a ordenar. */
#homeDonate { width:calc(100% - 20px); margin:12px 10px 0; min-height:0; height:var(--home-card-height,100px); border-radius:18px; padding:13px 13px 13px 11px; gap:14px; }
#homeDonate .donate-art { flex-basis:66px; height:68px; }
#homeDonate .donate-art:before { width:64px; height:64px; left:0; top:2px; }
#homeDonate .donate-art svg { width:58px; height:66px; }
#homeDonate strong { font-size:20px; line-height:1.15; }
#homeDonate .donate-desc { font-size:10.5px; margin-top:5px; }
#homeDonate .donate-cta { flex-basis:38px; height:38px; }

/* --- OFERTA DEL MOMENTO (public/lib/oferta-momento.js) ----------------------
   La fugaz arriba del inicio. Negro con amarillo: es lo único de la pantalla
   que corre contra el reloj, y tiene que verse distinto a las promos fijas. */
#homeMomento:empty { display: none; }
#homeMomento { margin: 4px var(--gutter) 14px; }
.om-card {
  display: flex; gap: 12px; width: 100%; padding: 10px; text-align: left; cursor: pointer;
  background: var(--ink); color: var(--white); border: 0; border-radius: 22px;
  box-shadow: var(--shadow-lift); font-family: var(--font); transition: transform .12s ease;
}
.om-card:active { transform: scale(.985); }
.om-photo {
  flex: 0 0 104px; min-height: 118px; border-radius: 16px;
  background: #333 center / cover no-repeat;
}
.om-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 4px 4px 2px 0; }
.om-kicker { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); }
.om-t { font-size: 16px; font-weight: 800; line-height: 1.2; }
.om-d { font-size: 12.5px; font-weight: 600; opacity: .85; line-height: 1.3; }
.om-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.om-reloj:empty { display: none; }
.om-reloj, .om-chip {
  font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px;
  background: rgba(255,255,255,.12); font-variant-numeric: tabular-nums;
}
.om-reloj { background: var(--yellow); color: var(--ink); }
.om-cta {
  align-self: flex-start; margin-top: 6px; padding: 7px 14px; border-radius: 999px;
  background: var(--yellow); color: var(--ink); font-size: 13px; font-weight: 800;
}
.om-pronto .om-cta, .om-agotada .om-cta { background: rgba(255,255,255,.16); color: var(--white); }
.om-agotada { opacity: .75; }

/* Mostrador: el tipo de pedido se escoge antes de empezar (app.js, TIPOS_POS). */
.pos-tipo { position: fixed; inset: 0; z-index: 9999; background: rgba(23,23,26,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.pos-tipo-caja { background: #fff; border-radius: 22px; padding: 22px; width: min(440px, 100%); display: flex; flex-direction: column; gap: 12px; }
.pos-tipo-caja h2 { margin: 0 0 4px; font-size: 22px; text-align: center; }
.pos-tipo-caja > button, .pos-beepers button { font: inherit; font-size: 22px; font-weight: 800; padding: 20px 16px; border-radius: 16px; border: 2px solid #e6e5e0; background: #faf9f5; cursor: pointer; }
.pos-tipo-caja > button:active { background: #FFC42E; }
.pos-tipo-chip { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 50; font: inherit; font-weight: 800; font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 0; background: #17171a; color: #fff; cursor: pointer; }
.pos-tipo-caja { max-height: 92vh; overflow: auto; }
.pos-beepers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.pos-beepers button { padding: 16px 0 !important; font-size: 22px !important; }
.pos-sin-beeper { font-size: 16px !important; padding: 12px !important; background: #fff !important; }
.pos-cambiar { margin-left: 8px; font: inherit; font-size: 13px; font-weight: 800; border: 0; background: #FFC42E; border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.pos-acciones { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.pos-partido { border: 2px solid #e6e5e0; border-radius: 14px; padding: 10px; margin: 8px 0; display: flex; flex-direction: column; gap: 8px; }
.pos-partido-fila { display: flex; gap: 8px; align-items: center; }
.pos-partido-fila select, .pos-partido-fila input { font: inherit; font-size: 17px; padding: 10px; border-radius: 10px; border: 1.5px solid #d8d7d2; flex: 1; min-width: 0; }
.pos-partido-fila button { font: inherit; border: 0; background: #fdeceb; color: #c0392b; border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.pos-partido-mas { font: inherit; font-weight: 800; border: 1.5px dashed #bbb; background: #fff; border-radius: 10px; padding: 10px; cursor: pointer; }
.pos-partido-falta { margin: 0; font-weight: 800; color: #c0392b; }
.pos-partido-falta.ok { color: #1F7A46; }
.pos-desc-sub { margin: -4px 0 4px; text-align: center; color: #6f6f74; font-weight: 700; }
#posMotivo { font: inherit; font-size: 18px; padding: 14px; border-radius: 12px; border: 2px solid #d8d7d2; }
.pos-desc-linea { display: flex; gap: 10px; align-items: center; font-size: 17px; padding: 10px; border: 1.5px solid #e6e5e0; border-radius: 12px; }
.pos-desc-linea b { margin-left: auto; }
/* La ventana de cobro de la caja (app.js, abrirCobroPOS). */
.pos-cobro-caja { width: min(560px, 100%); }
.pos-cobro-cab { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #e6e5e0; padding-bottom: 10px; }
.pos-cobro-cab span { font-weight: 800; color: #6f6f74; }
.pos-cobro-cab b { font-size: 34px; }
.pos-cobro-caja .pos-cobro-ok { background: #17171a !important; color: #fff; font-size: 22px; }
.pos-cobro-caja .pay-opts.falta { outline: 3px solid #c0392b; outline-offset: 4px; border-radius: 12px; }
.pos-cobro-caja #paySection .pay-opt { font-size: 17px; padding: 14px 12px; }
/* Una ventana abierta desde la de cobro (descuento, tipo) va encima de ella. */
.pos-cobro ~ .pos-tipo:not(.pos-cobro) { z-index: 10000; }
/* Tipo de pedido: lo de la caja grande; plataformas y cortesía aparte, más
   chicas, para no tocarlas por error (16/11/2026). */
.pos-tipo-sub { margin: 6px 0 0; text-align: center; font-weight: 800; color: #6f6f74; font-size: 14px; }
.pos-tipo-sub small { font-weight: 600; }
.pos-tipo-otros { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pos-tipo-otros button { font: inherit; font-size: 16px; font-weight: 800; padding: 13px 10px; border-radius: 14px; border: 2px dashed #d8d7d2; background: #fff; cursor: pointer; }
.pos-aviso-plat { background: #fff6cc; border: 2px solid #ffc800; border-radius: 14px; padding: 12px 14px; font-size: 16px; line-height: 1.4; margin: 8px 0; }
/* Sugerencias de venta en la ventana de cobro (app.js, pintarSugerencias). */
.pos-sug { background: #f0f7ff; border: 2px solid #b9d7ff; border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.pos-sug b { font-size: 14px; }
.pos-sug-fila { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 700; }
.pos-sug-fila button { flex: 0 0 auto; border: 0; border-radius: 10px; padding: 9px 12px; background: #17171a; color: #fff; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
#posRefPlat.falta { outline: 3px solid #c0392b; }

/* El campo que falta para pagar (17/11/2026): rojo y una sacudida, para que
   se vea en el celular. El aviso del navegador salía flotando lejos. */
.falta-dato { outline: 3px solid #c0392b !important; outline-offset: 2px; animation: falta-sacude .35s ease 2; }
@keyframes falta-sacude { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.link-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* ==========================================================================
   FUD LOVERS — la bienvenida al activar el pase (public/lib/activar-club.js)
   Oscuro, dorado y con movimiento: entrar tiene que sentirse como algo bueno.
   ========================================================================== */
.fl-back { position: fixed; inset: 0; z-index: 9000; overflow-y: auto; display: flex; justify-content: center; align-items: flex-start;
  background: radial-gradient(120% 80% at 50% 0%, #2b2410 0%, #121212 55%, #0b0b0b 100%); color: #fff; padding: 28px 18px 40px; }
.fl-hoja { position: relative; width: min(420px, 100%); text-align: center; animation: fl-sube .5s ease both; }
.fl-eyebrow { font-weight: 800; letter-spacing: .18em; font-size: 12px; color: #ffc800; margin-top: 8px; }
.fl-t { font-family: var(--display, inherit); font-weight: 800; font-size: 28px; line-height: 1.15; margin: 6px 0 18px; }
.fl-p { font-size: 16px; line-height: 1.5; color: #d8d6cf; margin: 18px 0; }
.fl-p b { color: #ffc800; }
.fl-mini { font-size: 13px; color: #9a988f; margin-top: 10px; }
.fl-cta { display: block; width: 100%; border: 0; border-radius: 16px; padding: 18px; margin-top: 18px; font: inherit; font-weight: 800; font-size: 18px;
  background: #ffc800; color: #111; box-shadow: 0 10px 30px rgba(255, 200, 0, .25); cursor: pointer; }
.fl-cta:disabled { opacity: .6; }
.fl-sec { margin-top: 10px; border: 1.5px solid #ffc800; background: none; color: #ffc800; border-radius: 12px; padding: 10px 16px; font: inherit; font-weight: 800; cursor: pointer; }
.fl-pase { position: relative; overflow: hidden; border-radius: 22px; padding: 20px; text-align: left; aspect-ratio: 1.586;
  background: linear-gradient(135deg, #1d1d1d 0%, #3a3014 55%, #b8901a 140%); border: 1px solid rgba(255, 200, 0, .45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .12);
  display: flex; flex-direction: column; animation: fl-gira .9s cubic-bezier(.2, .9, .3, 1.2) both; transform-style: preserve-3d; }
.fl-pase-brillo { position: absolute; inset: -40% -60%; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .22) 50%, transparent 60%); animation: fl-brillo 2.8s ease-in-out 1s infinite; pointer-events: none; }
.fl-pase-arriba { display: flex; align-items: center; justify-content: space-between; }
.fl-pase-logo { height: 34px; width: auto; border-radius: 8px; }
.fl-pase-club { font-weight: 800; letter-spacing: .16em; font-size: 13px; color: #ffc800; }
.fl-pase-num { margin-top: auto; font-family: var(--display, inherit); font-weight: 800; font-size: 40px; letter-spacing: .04em; color: #fff; text-shadow: 0 2px 12px rgba(255, 200, 0, .35); }
.fl-pase-nombre { font-weight: 800; font-size: 17px; color: #f1eee4; text-transform: capitalize; }
.fl-pase-abajo { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: #cfc7ad; margin-top: 8px; }
.fl-regalos { display: flex; align-items: center; justify-content: center; gap: 10px; }
.fl-regalo { flex: 1; background: #1c1c1c; border: 1px solid #3a3a3a; border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.fl-regalo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.fl-regalo b { font-size: 14px; line-height: 1.25; }
.fl-regalo-emo { font-size: 48px; }
.fl-o { font-weight: 800; color: #ffc800; }
.fl-codigo { margin-top: 18px; background: #fff; color: #111; border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.fl-codigo b { font-size: 34px; letter-spacing: .2em; font-family: ui-monospace, monospace; }
.fl-codigo small { font-size: 13px; color: #555; font-weight: 600; }
.fl-pasos { text-align: left; font-size: 16px; line-height: 1.6; padding-left: 22px; color: #e8e6df; }
.fl-extra { margin-top: 22px; border-top: 1px solid #333; padding-top: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #cfcdc6; }
.fl-extra b { color: #fff; font-size: 16px; }
.fl-chispas i { position: fixed; top: -10px; width: 8px; height: 14px; border-radius: 2px; background: #ffc800; opacity: .9; animation: fl-cae 3.2s linear forwards; }
.fl-chispas i:nth-child(3n) { background: #fff; } .fl-chispas i:nth-child(4n) { background: #f36f21; }
.fl-chispas i:nth-child(1) { left: 5%; animation-delay: 0.00s; }
.fl-chispas i:nth-child(2) { left: 12%; animation-delay: 0.18s; }
.fl-chispas i:nth-child(3) { left: 19%; animation-delay: 0.36s; }
.fl-chispas i:nth-child(4) { left: 26%; animation-delay: 0.54s; }
.fl-chispas i:nth-child(5) { left: 33%; animation-delay: 0.72s; }
.fl-chispas i:nth-child(6) { left: 40%; animation-delay: 0.90s; }
.fl-chispas i:nth-child(7) { left: 47%; animation-delay: 1.08s; }
.fl-chispas i:nth-child(8) { left: 54%; animation-delay: 0.00s; }
.fl-chispas i:nth-child(9) { left: 61%; animation-delay: 0.18s; }
.fl-chispas i:nth-child(10) { left: 68%; animation-delay: 0.36s; }
.fl-chispas i:nth-child(11) { left: 75%; animation-delay: 0.54s; }
.fl-chispas i:nth-child(12) { left: 82%; animation-delay: 0.72s; }
.fl-chispas i:nth-child(13) { left: 89%; animation-delay: 0.90s; }
.fl-chispas i:nth-child(14) { left: 96%; animation-delay: 1.08s; }

@keyframes fl-cae { to { transform: translateY(110vh) rotate(540deg); opacity: 0; } }
@keyframes fl-sube { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fl-gira { from { opacity: 0; transform: perspective(900px) rotateY(-70deg) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes fl-brillo { 0% { transform: translateX(-60%); } 60%, 100% { transform: translateX(60%); } }
@media (prefers-reduced-motion: reduce) { .fl-pase, .fl-hoja, .fl-pase-brillo, .fl-chispas i { animation: none !important; } .fl-chispas { display: none; } }

/* "Tu pedido te espera" en Inicio (screens/home.js, pintarCarritoEspera). */
.carrito-espera { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 14px; padding: 14px 16px;
  background: #fff6cc; border: 2px solid #ffc800; border-radius: 18px; text-align: left; font: inherit; color: #111; cursor: pointer; }
.carrito-espera .ce-ico { font-size: 28px; line-height: 1; }
.carrito-espera .ce-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.carrito-espera .ce-t { font-weight: 800; font-size: 16px; }
.carrito-espera .ce-d { font-size: 13px; color: #5c5c58; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carrito-espera .ce-go { background: #111; color: #ffc800; font-weight: 800; font-size: 14px; padding: 10px 14px; border-radius: 12px; white-space: nowrap; }

/* ---- Checkout: conversión (18/11/2026) ---- */
/* A. El envío se ve en la tarjeta de domicilio, antes de elegir zona. */
.ms-envio { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 800; color: #1f6b3a; }
/* B. Sin pestañas en el checkout: eran cinco salidas al momento de pagar. */
body.en-checkout .tabbar { display: none; }
body.en-checkout #checkout { padding-bottom: 0; }
/* C. La zona: el <select> queda (lo leen el envío y el pedido) pero no se ve. */
.zona-nativa { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.zona-btn { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--white);
  font: inherit; font-size: 15px; color: var(--ink); text-align: left; cursor: pointer; }
.zona-btn.elegida { border-color: var(--yellow); background: #fffbea; }
.zona-btn .zb-r { font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.zona-btn.falta-dato { border-color: #d93025; box-shadow: 0 0 0 3px rgba(217, 48, 37, .15); }
.zonas-back { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .45); display: flex; align-items: flex-end; justify-content: center; }
.zonas-hoja { width: min(480px, 100%); max-height: 82vh; display: flex; flex-direction: column; gap: 10px;
  background: var(--white); border-radius: 22px 22px 0 0; padding: 18px var(--gutter) calc(16px + env(safe-area-inset-bottom, 0px)); }
.zonas-cab { display: flex; justify-content: space-between; align-items: center; font-size: 17px; }
.zonas-cab button { border: 0; background: var(--card); border-radius: 999px; width: 34px; height: 34px; font-size: 15px; cursor: pointer; }
.zonas-q { padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 16px; }
.zonas-lista { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.zona-op { display: flex; justify-content: space-between; padding: 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); cursor: pointer; text-align: left; }
.zona-op span:last-child { color: var(--muted); font-weight: 700; }
.zona-op.on { border-color: var(--yellow); background: #fffbea; }
.zonas-vacio, .zonas-pie { font-size: 13px; color: var(--muted); text-align: center; margin: 4px 0 0; }
/* D. Cerrado: lo primero que se ve en el checkout, no lo último. */
.abrimos-arriba { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 12px; padding: 14px 16px;
  background: #fff6cc; border: 2px solid var(--yellow); border-radius: 16px; font-size: 14px; line-height: 1.4; }
.abrimos-arriba b:first-child { font-size: 16px; }

/* Dentro de Instagram/Facebook: la salida a Safari/Chrome con el carrito (app.js, enlaceAfuera). */
.pg-afuera { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; padding: 12px 14px;
  background: #f4f2ec; border-radius: 12px; font-size: 13px; color: var(--ink); }
.pg-afuera a { font-weight: 800; color: var(--ink); text-decoration: underline; }
.pg-afuera small { color: var(--muted); }

/* La encuesta de la bolsa (public/lib/encuesta-bolsa.js), sobre la capa de Fud Lovers. */
.enc-estrellas { display: flex; justify-content: center; gap: 6px; margin: 18px 0 8px; }
.enc-estrellas button { background: none; border: 0; font-size: 50px; line-height: 1; color: #4a4636; cursor: pointer; padding: 0 2px; transition: transform .12s; }
.enc-estrellas button.on { color: #ffc800; transform: scale(1.08); }
.enc-estrellas.fijas { font-size: 30px; color: #ffc800; letter-spacing: 2px; }
.enc-estrellas.fijas span { color: #4a4636; }
.enc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px 0 6px; }
.enc-chips button { border: 1.5px solid #6b5514; background: #2a2412; color: #f1eee4; border-radius: 999px; padding: 11px 16px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.enc-chips button.on { background: #ffc800; border-color: #ffc800; color: #111; }
.enc-coment { width: 100%; min-height: 80px; margin-top: 12px; border-radius: 12px; border: 1px solid #6b5514; background: #1d1a10; color: #fff; padding: 12px; font: inherit; font-size: 15px; }
.enc-resena { margin-top: 22px; padding: 14px; border-radius: 14px; font-size: 13.5px; color: #cfc7ad; display: flex; flex-direction: column; gap: 4px; }
.enc-resena.grande { background: #2a2412; border: 1px solid #6b5514; font-size: 15px; color: #f1eee4; }
.enc-resena.grande b { color: #ffc800; font-size: 16px; }
.enc-resena-txt { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #2a2412; border: 1px solid #6b5514; color: #f1eee4; font-size: 14.5px; line-height: 1.45; }
.enc-resena-chica { margin: 12px 0 0; font-size: 13px; color: #cfc7ad; }

/* ---------- Portada A · comida primero (prueba A/B, 19/11/2026) ----------
   La variante de Inicio que abre en comida. Los platos son las tarjetas del
   menú (mismas clases); aquí solo lo que es propio de esta portada.
   Arriba, UNA fila: cómo/de dónde a la izquierda, puntos (o el 15%) a la
   derecha. Arie pidió menos líneas antes de las hamburguesas. */
.ha-fila { display: flex; gap: 8px; margin: 4px var(--gutter) 0; }
.ha-pastilla { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 8px;
  min-height: 52px; padding: 7px 14px; border: 0; border-radius: 26px; background: var(--card); box-shadow: var(--shadow);
  text-align: left; color: var(--ink); }
.ha-p-t { font-weight: 800; font-size: 15px; }
.ha-p-d { grid-row: 2; font-size: 12px; color: #5E5E58; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ha-p-go { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 22px; font-weight: 800; }
.ha-club { flex: none; min-width: 84px; min-height: 52px; padding: 6px 12px; border: 0; border-radius: 26px; background: #141414;
  color: #E8E8E2; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.ha-club b { color: var(--yellow); font-size: 17px; font-weight: 800; }
.ha-club span { font-size: 11px; font-weight: 700; }
.ha-chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px var(--gutter) 2px; scrollbar-width: none; }
.ha-chips::-webkit-scrollbar { display: none; }
.ha-chips button { flex: none; padding: 9px 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--card);
  font-size: 13px; font-weight: 700; color: var(--ink); }
.ha-hero { padding: 10px 0 0; }
.ha-hero:empty { display: none; }
.ha-marca { margin: 10px var(--gutter) 0; font-size: 12.5px; font-weight: 700; color: #145C33; }
/* Variante B · cliente que vuelve: repetir con un toque + lo que más pide. */
.hv { margin: 10px 0 4px; }
.hv-rep { display: flex; align-items: center; gap: 10px; margin: 0 var(--gutter); padding: 10px; background: #fff; border: 1px solid #EDEBE4; border-radius: 16px; }
.hv-foto { flex: 0 0 52px; height: 52px; border-radius: 12px; background: #eee center/cover; }
.hv-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hv-txt b { font-size: 14px; font-weight: 800; }
.hv-txt span { font-size: 12.5px; color: #4A4A44; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hv-txt small { font-size: 11px; color: #8A6D00; }
.hv-btn { flex: 0 0 auto; border: 0; border-radius: 12px; background: #FFC800; color: #1A1A1A; font-weight: 800; font-size: 13px; padding: 11px 12px; min-height: 44px; }
.ha-todo { display: block; width: calc(100% - 2 * var(--gutter)); margin: 14px var(--gutter) 8px; min-height: 48px;
  border: 0; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 800; font-size: 15px; }
/* Etiquetas de dieta sobre la foto (solo en la portada A). Abajo a la
   izquierda: arriba ya vive la chapa de BEST SELLER / estreno. */
.etqs { position: absolute; left: 8px; bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px; z-index: 2; pointer-events: none; }
.etq { background: rgba(255,255,255,.94); color: var(--ink); font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 8px; }
.dish-hero .etqs { left: auto; right: 12px; top: 12px; bottom: auto; }

/* "Para ti" (lib/para-ti.js): la oferta personal, arriba del inicio. Amarilla
   y con foto para que se lea como un regalo y no como otro banner más. */
.parati {
  display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 14px;
  padding: 10px 12px 10px 10px; border-radius: 18px; border: 2px solid var(--ink);
  background: var(--yellow-soft); color: var(--ink); font-family: var(--font);
  text-align: left; cursor: pointer;
}
.pt-foto {
  flex: 0 0 64px; height: 64px; min-height: 0; border-radius: 14px;
  background: #fff center / cover no-repeat; border: 1.5px solid var(--ink);
}
.pt-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pt-tag { font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.pt-txt b { font-size: 15px; font-weight: 900; line-height: 1.2; }
.pt-txt > span:last-child { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.pt-go { flex: 0 0 auto; font-size: 26px; font-weight: 900; line-height: 1; }
.oc-parati { background: var(--yellow, #FFC800); color: var(--ink); }

/* "Se agotó por hoy" con recomendación (openAgotado en app.js). */
.ag-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; }
.ag-ico { font-size: 30px; flex: 0 0 auto; }
.ag-t { font-size: 18px; font-weight: 900; line-height: 1.2; }
.ag-s { font-size: 14px; font-weight: 700; color: var(--muted); margin-top: 2px; }
.ag-card { display: flex; gap: 12px; align-items: center; padding: 10px; border: 2px solid var(--ink); border-radius: 18px; background: var(--yellow-soft); margin-bottom: 14px; }
.ag-foto { flex: 0 0 84px; height: 84px; min-height: 0; border-radius: 14px; background: #fff center / cover no-repeat; }
.ag-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ag-reco { font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.ag-txt b { font-size: 16px; font-weight: 900; }
.ag-txt small { font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1.35; }

/* ---------------------------------------------------------------------------
   LA WEB SENCILLA (K-Lab, lib/marca.js `web: 'simple'`, 24/11/2026)
   Solo el Menú con su carrito: sin pestañas, sin cuenta de miembro. Lo que
   queda escondido aquí es de un programa (Rewards, ofertas, gift cards) que
   esa marca no tiene; mostrarlo prometería algo que no existe.
   --------------------------------------------------------------------------- */
body.web-simple .tabbar,
body.web-simple #headerUser { display: none !important; }
body.web-simple .app { padding-bottom: env(safe-area-inset-bottom); }
/* Sin gift cards ni códigos, sin "Gana con…" (promos por WhatsApp/correo) y
   sin el dibujo del delivery: la caja del scooter lleva el logo de la otra
   marca. */
body.web-simple .cod-promo,
body.web-simple #fGana,
body.web-simple .ms-art { display: none !important; }

/* Pedido del dueño sin cobro (app.js, renderPaySection). */
.dueno-pago { border: 2px solid #17171a; border-radius: 14px; padding: 12px 14px; background: #fff6cc; display: flex; flex-direction: column; gap: 6px; }
.dueno-pago .hint { margin: 0; }
.dueno-pago .pos-cambiar { align-self: flex-start; }

/* "Guardar esta dirección como" (app.js, pintarGuardarDireccion). */
.dir-guardar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; color: #6f6f74; font-weight: 700; }
.dir-guardar > span { width: 100%; }

/* Dieta del plato, en la ficha y no sobre la foto (app.js, etiquetasLinea). */
.is-dieta { margin: -4px 0 10px; font-size: 13px; font-weight: 700; color: #1f7a46; letter-spacing: .01em; }

/* La línea de marca del menú (app.js, renderMenu). */
.menu-marca { margin: 4px 4px 14px; font-size: 13px; font-weight: 700; color: #1f7a46; text-align: center; }
