/* =====================================================================
   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;
  padding-bottom: 104px;
}

/* ---------- 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); }
.topbar .loc::before { content: "📍 "; }

.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;
  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%;
  aspect-ratio: 16 / 11;
  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;
}
.cart-bar .count {
  background: var(--yellow);
  color: var(--ink);
  border-radius: 999px;
  padding: 2px 11px;
  font-size: 13px;
}
.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; }
.pay-opts { display: flex; gap: 8px; margin-bottom: 12px; }
.pay-opt {
  flex: 1;
  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; }

/* ---------- 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)
   ===================================================================== */
.kitchen { max-width: 1100px; margin: 0 auto; padding-bottom: 40px; }
.kitchen .topbar { background: var(--ink); color: #fff; position: sticky; border-radius: 0 0 18px 18px; }
.kitchen .topbar .wordmark .name { color: var(--yellow); font-size: 19px; }
.kitchen .topbar .loc { color: rgba(255,255,255,0.75); }

.k-login {
  max-width: 380px;
  margin: 60px auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 26px;
  text-align: center;
}
.k-login h2 { margin: 0 0 6px; }

.k-filter { display: flex; gap: 8px; padding: 14px 18px; flex-wrap: wrap; }
.k-filter button {
  background: var(--card);
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.k-filter button.active { background: var(--ink); color: var(--yellow); }

.k-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  padding: 4px 18px;
}
.k-card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  border-left: 6px solid var(--muted);
  padding: 14px 16px;
}
.k-card.k-preparando { border-left-color: var(--yellow); }
.k-card.k-listo { border-left-color: var(--ok); }
.k-card.k-entregado { border-left-color: #C9C6BC; opacity: 0.75; }
.k-card.k-cancelado { border-left-color: var(--danger); opacity: 0.7; }
.k-card .head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.k-card .code { font-weight: 800; font-size: 22px; letter-spacing: 0.04em; }
.k-card .when { color: var(--muted); font-size: 12px; font-weight: 600; }
.k-card .cust { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.k-card .arrived {
  background: var(--ok);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  border-radius: 999px;
  padding: 3px 9px;
  letter-spacing: 0.04em;
}
.k-card .car { color: var(--muted); font-size: 12.5px; font-weight: 600; margin-top: 2px; }
.k-card ul { list-style: none; margin: 10px 0; padding: 0; }
.k-card ul li {
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  font-weight: 700;
  font-size: 14px;
}
.k-card ul li small { color: var(--muted); font-weight: 600; }
.k-card ul li small.opt { display: block; color: var(--orange); font-weight: 700; }
.k-notes {
  background: var(--yellow-soft);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 700;
  margin-top: 4px;
}
.k-phone { font-size: 12.5px; font-weight: 600; margin-top: 2px; }
.k-phone a { color: inherit; }
.k-tel { text-decoration: none; font-weight: 700; }
.k-wa { color: #1B9E4B; font-weight: 800; text-decoration: none; margin-left: 6px; }
.k-paid { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 4px 10px; display: inline-block; }
.k-paid.yes { background: #E4F5EA; color: var(--ok); }
.k-paid.no { background: #FDEBEC; color: var(--danger); }
.k-card .eta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 14px;
  margin: 8px 0;
}
.k-card .eta button {
  width: 32px; height: 32px;
  border: 0;
  border-radius: 999px;
  background: #F1EFE8;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}
.k-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.k-actions button {
  border: 0;
  border-radius: 999px;
  padding: 10px 15px;
  font-weight: 800;
  font-size: 13px;
}
.k-actions .b-prep { background: var(--yellow); color: var(--ink); }
.k-actions .b-ready { background: var(--ok); color: #fff; }
.k-actions .b-done { background: var(--ink); color: #fff; }
.k-actions .b-msg { background: #F1EFE8; color: var(--ink); }
.k-actions .b-cancel { background: none; color: var(--danger); }

/* Banner del club en cocina */
.club-banner {
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 700;
  margin: 6px 0;
}
.club-banner.give { background: var(--yellow-soft); }
.club-banner.give b { display: block; font-size: 14px; }
.club-banner.give small { display: block; color: var(--muted); font-weight: 600; }
.club-banner.none { background: #F1EFE8; color: var(--muted); }

/* ---------- 🧠 Vista de clientes (cocina) ---------- */
.k-cust { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 16px 18px; }
.k-cust-top { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.k-cust-top b { color: var(--ink); }
.k-segs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-bottom: 16px; }
.k-seg { background: var(--paper); border-radius: 14px; padding: 11px 13px; }
.k-seg-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; gap: 8px; }
.k-seg-head span { color: var(--muted); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.k-seg-why { color: var(--muted); font-size: 11.5px; font-weight: 600; margin: 3px 0 6px; }
.k-seg-sug { background: var(--yellow-soft); border-radius: 10px; padding: 7px 10px; font-size: 12px; font-weight: 600; line-height: 1.4; }
.k-cust-tablewrap { overflow-x: auto; }
.k-cust-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.k-cust-table th { text-align: left; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1.5px solid var(--line); }
.k-cust-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.k-cust-table td small { color: var(--muted); font-weight: 600; }

/* ---------- "¿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) ---------- */
.k-card.k-sinpagar { border-left-color: var(--danger); }
.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; }
.k-actions button:disabled { opacity: 0.4; cursor: not-allowed; }

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