/* ═══════════════════════════════════════════════════════════════════════
   CROWED / PINCH PRO MODULES CSS ($0 OPERACIÓN COMPLETA · DINEOS EDITORIAL)
   Obsidian #08080a · Butter Yellow #fbf0bf · Ice Blue #edf4fc
   ═══════════════════════════════════════════════════════════════════════ */

/* 0. Modo Invitado limpio garantizado */
#view-client.guest-clean-mode #btn-header-prefs,
#view-client.guest-clean-mode #btn-header-loyalty,
#view-client.guest-clean-mode #btn-header-ai-waiter,
#view-client.guest-clean-mode #client-usual-ai-banner,
#view-client.guest-clean-mode #cart-loyalty-box {
  display: none !important;
}

.dineos-board-header {
  flex-wrap: wrap;
  gap: 12px;
}

.kds-filters-bar.dineos-filters-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  max-width: 100%;
}

.kds-filters-bar.dineos-filters-bar .kds-filters {
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* 1. Botón Reservar en cabecera limpia de Invitado */
.reserve-header-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: #edf4fc;
  border: 1px solid #c9ddf5;
  color: #08080a;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-spring), background 0.16s ease;
}

.reserve-header-pill:hover {
  background: #dfecfb;
}

.reserve-header-pill:active {
  transform: scale(0.95);
}

/* 2. Tiempos de servicio en Detalle del Platillo */
.dd-course-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 6px;
}

.dd-course-chip {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #e2e5eb;
  background: #ffffff;
  color: #1c1e24;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.dd-course-chip.selected {
  background: #08080a;
  border-color: #08080a;
  color: #ffffff;
}

.cart-mod-pill.is-course {
  background: #edf4fc;
  color: #1d4ed8;
  border: 1px solid #cfe0f5;
  font-weight: 700;
}

/* 3. Calculadora Split ampliada (Familiar + Aporte mayor) */
.tracker-split-calc-card .tsc-mode-pills {
  flex-wrap: wrap;
}

.tracker-split-calc-card .tsc-pill {
  min-width: calc(33% - 6px);
}

.tsc-custom-host-box {
  background: #fafbfc;
  border: 1px solid #e6e8ed;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tsc-ch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.tsc-host-pct-pills {
  display: inline-flex;
  gap: 5px;
}

.tsc-hpct-btn {
  border: 1px solid #dcdce2;
  background: #ffffff;
  color: #08080a;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
}

.tsc-hpct-btn:hover {
  background: #fbf0bf;
  border-color: #e6d692;
}

.tsc-ch-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tsc-host-inp {
  flex: 1;
  height: 36px;
  font-size: 13px;
}

.tsc-ch-summary {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: #4b5563;
  padding-top: 4px;
  border-top: 1px dashed #e2e4ea;
}

.tsc-ch-summary strong {
  color: #08080a;
}

/* 4. Pago por Transferencia SPEI */
.spei-payment-block {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-spei-toggle {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #d4e3f6;
  background: #edf4fc;
  color: #08080a;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
}

.btn-spei-toggle:hover {
  background: #dfecfb;
}

.spei-details-box {
  background: #fafbfc;
  border: 1px solid #e6e8ed;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spei-warning-pill {
  background: #fdf9e6;
  border: 1px solid #ecd98a;
  color: #423205;
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 11.5px;
  line-height: 1.4;
}

.spei-data-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #eceef2;
  border-radius: 10px;
  padding: 9px 11px;
}

.spei-data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #52525b;
}

.spei-data-row strong,
.spei-data-row code {
  color: #08080a;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
}

.spei-copy-val {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.spei-copy-btn {
  border: 1px solid #d4d8e0;
  background: #ffffff;
  color: #08080a;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}

.btn-spei-submit {
  width: 100%;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: #08080a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* 5. Modal de Reservaciones */
.reservation-modal {
  max-height: 88vh;
  overflow-y: auto;
}

.res-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.res-seats-stepper {
  height: 42px;
  padding: 0 12px;
  border: 1px solid #e2e4ea;
  border-radius: 12px;
  background: #fafbfc;
  justify-content: space-between;
}

.res-preorder-box {
  background: #fafbfc;
  border: 1px solid #eceef2;
  border-radius: 14px;
  padding: 11px 12px;
  margin-top: 6px;
}

.res-pre-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}

.res-pre-badge {
  font-size: 10px;
  font-weight: 700;
  background: #fbf0bf;
  color: #08080a;
  padding: 2px 8px;
  border-radius: 999px;
}

.res-preorder-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.res-preorder-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #eceef2;
  border-radius: 10px;
  padding: 7px 10px;
}

.res-pre-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.res-pre-info strong {
  font-size: 12.5px;
  color: #08080a;
}

.res-pre-info span {
  font-size: 11px;
  color: #6b7280;
}

/* 6. Croquis Interactivo de Mesas + Alerta con Parpadeo */
.floor-rail-alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ea580c;
  animation: floorDotPulse 1s ease-in-out infinite;
}

@keyframes floorDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.floor-legend-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #eceef2;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

.floor-leg-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.fl-dot.free     { background: #e5e7eb; border: 1px solid #9ca3af; }
.fl-dot.occupied { background: #08080a; }
.fl-dot.reserved { background: #fbf0bf; border: 1px solid #d4b84a; }
.fl-dot.billing  { background: #edf4fc; border: 1px solid #60a5fa; }
.fl-dot.alert    { background: #ea580c; animation: floorDotPulse 0.9s infinite; }

.floor-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.floor-map-card {
  padding: 14px;
}

.floor-zone-banners {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.floor-zone-banners span {
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #6b7280;
  background: #fafbfc;
  border: 1px dashed #e2e5eb;
  border-radius: 8px;
  padding: 5px 4px;
}

.floor-map-canvas {
  position: relative;
  min-height: 450px;
  border-radius: 18px;
  background-color: #fafbfc;
  background-image: radial-gradient(#dde1e8 1px, transparent 1px);
  background-size: 22px 22px;
  border: 1px solid #e6e8ed;
  overflow: hidden;
  touch-action: none;
}

.floor-table-node {
  position: absolute;
  width: 112px;
  min-height: 84px;
  padding: 9px 10px;
  border-radius: 16px;
  background: #ffffff;
  border: 2px solid #d9dde5;
  color: #08080a;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 8px 18px -12px rgba(8, 8, 10, 0.18);
  transition: transform 0.18s var(--ease-spring), border-color 0.2s ease, box-shadow 0.2s ease;
}

.floor-table-node.shape-round {
  border-radius: 28px;
}

.floor-table-node:hover {
  transform: translateY(-2px);
}

.floor-table-node.selected {
  box-shadow: 0 0 0 3px #08080a;
}

.floor-table-node.state-free {
  background: #ffffff;
  border-color: #d9dde5;
}

.floor-table-node.state-occupied {
  background: #08080a;
  border-color: #08080a;
  color: #ffffff;
}

.floor-table-node.state-reserved {
  background: #fdf9e6;
  border-color: #e6cf74;
  color: #08080a;
}

.floor-table-node.state-billing {
  background: #edf4fc;
  border-color: #82b3ed;
  color: #08080a;
}

.floor-table-node.is-blinking {
  animation: tableAlertBlink 0.95s ease-in-out infinite;
}

@keyframes tableAlertBlink {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.72), 0 10px 20px -10px rgba(234, 88, 12, 0.45);
    border-color: #ea580c;
  }
  50% {
    box-shadow: 0 0 0 8px rgba(234, 88, 12, 0.12), 0 10px 24px -8px rgba(234, 88, 12, 0.7);
    border-color: #f97316;
  }
}

.ftn-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.ftn-top strong {
  font-size: 12.5px;
  font-weight: 800;
}

.ftn-seats {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.76;
}

.ftn-status-lbl {
  font-size: 10.5px;
  font-weight: 700;
}

.ftn-alert-pill {
  font-size: 9.5px;
  font-weight: 800;
  background: #ea580c;
  color: #ffffff;
  border-radius: 999px;
  padding: 2px 6px;
  text-align: center;
}

.floor-side-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.floor-inspector-card,
.floor-reservations-card {
  padding: 16px;
}

.fi-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.fi-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #08080a;
}

.fi-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: #edf4fc;
  color: #08080a;
}

.fi-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.fi-btn {
  border: 1px solid #e2e4ea;
  background: #ffffff;
  color: #08080a;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.fi-btn.primary {
  background: #08080a;
  border-color: #08080a;
  color: #ffffff;
}

.fi-btn.warn {
  background: #ea580c;
  border-color: #ea580c;
  color: #ffffff;
  grid-column: span 2;
}

.floor-reservations-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.res-admin-card {
  border: 1px solid #eceef2;
  background: #fafbfc;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.res-admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.res-admin-meta {
  font-size: 11.5px;
  color: #4b5563;
}

.res-admin-actions {
  display: flex;
  gap: 6px;
}

/* 7. KDS por Estaciones, Tiempos, SPEI Verificar y Repartidores */
.kds-station-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.kds-station-pill {
  border: 1px solid #e2e5eb;
  background: #ffffff;
  color: #374151;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.kds-station-pill.active {
  background: #08080a;
  border-color: #08080a;
  color: #ffffff;
}

.kds-course-badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: #fbf0bf;
  color: #08080a;
  margin-left: 5px;
}

.kds-spei-verify-box {
  background: #fdf9e6;
  border: 1px solid #e9d483;
  border-radius: 10px;
  padding: 8px 10px;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11.5px;
}

.kds-spei-verify-btn {
  border: none;
  background: #08080a;
  color: #ffffff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.kds-driver-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #edf4fc;
  border: 1px solid #cfe0f5;
  border-radius: 10px;
  padding: 6px 9px;
  margin: 6px 0;
  font-size: 11px;
  font-weight: 700;
}

.kds-driver-select {
  border: 1px solid #bfd5f2;
  background: #ffffff;
  border-radius: 8px;
  padding: 3px 6px;
  font-size: 11px;
  font-weight: 600;
}

/* 8. Modo Mesero Modal + Tablas Pro (Escandallos, XML, Mermas, Caja, P&L, Bitácora) */
.pro-kds-modal {
  max-width: 680px;
  width: calc(100% - 28px);
}

.waiter-pos-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.waiter-course-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 6px 0 10px;
}

.waiter-pos-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 12px;
  margin-bottom: 12px;
}

.waiter-catalog-list,
.waiter-draft-list {
  max-height: 230px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.waiter-item-btn,
.waiter-draft-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid #eceef2;
  background: #ffffff;
  font-size: 12px;
  cursor: pointer;
}

.waiter-item-btn:hover {
  background: #edf4fc;
}

.waiter-draft-total-row {
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid #e6e8ed;
  font-size: 13.5px;
}

.pro-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.pro-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 10px;
}

.pro-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.pro-data-table th,
.pro-data-table td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid #eceef2;
  vertical-align: middle;
}

.pro-data-table th {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b7280;
  background: #fafbfc;
}

.pro-pill-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
}

.pro-pill-tag.star   { background: #fbf0bf; color: #08080a; }
.pro-pill-tag.ok     { background: #edf4fc; color: #1d4ed8; }
.pro-pill-tag.warn   { background: #fef2f2; color: #b91c1c; }

.pl-statement-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.pl-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 5px 0;
  border-bottom: 1px dashed #eceef2;
}

.pl-row.total {
  border-bottom: none;
  border-top: 2px solid #08080a;
  padding-top: 9px;
  font-size: 15px;
  font-weight: 800;
}

.cashier-mp-summary {
  background: #fafbfc;
  border: 1px solid #eceef2;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cmp-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
}

.cmp-row.total {
  border-top: 1px solid #dfe2e8;
  padding-top: 6px;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 800;
}

.cashier-mp-disc-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.cashier-mp-balance {
  text-align: center;
  padding: 8px;
  border-radius: 10px;
  background: #edf4fc;
  color: #08080a;
  font-size: 12.5px;
  font-weight: 800;
  margin-top: 6px;
}

@media (max-width: 960px) {
  .floor-workspace-grid,
  .pro-grid-2,
  .waiter-pos-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .res-form-grid,
  .waiter-pos-top {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------
   Reloj Mecánico Skeleton & Fecha/Hora en Barra Superior KDS
   ---------------------------------------------------------- */
.dineos-watch-capsule {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 5px;
  border-radius: 999px;
  background: linear-gradient(145deg, #101218 0%, #07080a 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 8px 20px -8px rgba(8, 8, 10, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #ffffff;
  user-select: none;
  flex-shrink: 0;
}

.skeleton-watch-dial {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #050608;
  cursor: zoom-in;
  transform-origin: 50% 0%;
  transition: transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.38s ease;
  box-shadow:
    0 0 0 1px rgba(212, 168, 67, 0.28),
    inset 0 2px 6px rgba(0, 0, 0, 0.85);
}

.skeleton-watch-dial:hover {
  transform: scale(2.8);
  z-index: 80;
  box-shadow:
    0 0 0 1px rgba(212, 168, 67, 0.35),
    0 18px 40px -10px rgba(0, 0, 0, 0.65),
    inset 0 2px 6px rgba(0, 0, 0, 0.85);
}

.skeleton-watch-svg {
  width: 100%;
  height: 100%;
  display: block;
  shape-rendering: geometricPrecision;
}

.skeleton-watch-glass {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: linear-gradient(
    132deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.05) 34%,
    rgba(255, 255, 255, 0) 48%,
    rgba(148, 163, 184, 0.04) 75%,
    rgba(255, 255, 255, 0.08) 100%
  );
  box-shadow:
    inset 0 1.5px 2px rgba(255, 255, 255, 0.22),
    inset 0 -2px 4px rgba(0, 0, 0, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-watch-dial {
    transition: none;
  }
}

.dineos-watch-readout {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.dineos-watch-time-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dineos-watch-time {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  color: #f8fafc;
}

.dineos-watch-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.85);
  animation: watchPulseDot 2s ease-in-out infinite;
}

@keyframes watchPulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.78); }
}

.dineos-watch-date {
  font-size: 10px;
  font-weight: 500;
  color: #9ca3af;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .dineos-watch-date {
    display: none;
  }
  .dineos-watch-capsule {
    padding: 4px 10px 4px 4px;
    gap: 7px;
  }
}

/* ----------------------------------------------------------
   Armonización Topbar & Apple Dynamic Island (Opción A Flotante)
   ---------------------------------------------------------- */
#view-kitchen.kds-dineos-theme .dineos-topbar {
  padding: 14px 24px 12px;
  gap: 12px;
  min-height: 74px;
  flex-shrink: 0;
}

#view-kitchen.kds-dineos-theme .dineos-top-left,
#view-kitchen.kds-dineos-theme .dineos-top-right {
  gap: 10px;
}

#view-kitchen.kds-dineos-theme .dineos-brand-mark {
  padding-right: 2px;
  gap: 7px;
}

#view-kitchen.kds-dineos-theme .dineos-brand-name {
  font-size: 0.86rem;
  letter-spacing: 0.13em;
}

#view-kitchen.kds-dineos-theme .dineos-search-capsule {
  width: 170px;
  padding: 4px 12px 4px 5px;
  gap: 8px;
  transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.18s ease, box-shadow 0.18s ease;
}

#view-kitchen.kds-dineos-theme .dineos-search-capsule:focus-within {
  width: 186px;
}

#view-kitchen.kds-dineos-theme .dineos-chef-pill {
  padding: 4px 8px 4px 10px;
  gap: 7px;
}

#view-kitchen.kds-dineos-theme .dineos-chef-texts span {
  display: none;
}

#view-kitchen.kds-dineos-theme .dineos-chef-avatars {
  margin-left: 2px;
}

#view-kitchen.kds-dineos-theme .dca-thumb {
  width: 24px;
  height: 24px;
}

#view-kitchen.kds-dineos-theme .dca-count {
  width: 26px;
  height: 26px;
  font-size: 0.64rem;
}

#view-kitchen.kds-dineos-theme #kds-service-alerts {
  display: none !important;
}

#btn-dineos-alerts.has-urgent::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.75);
  animation: watchPulseDot 1.6s ease-in-out infinite;
}

/* Ancla flotante centrada sobre el corredor central */
.di-anchor {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  pointer-events: none;
  display: flex;
  justify-content: center;
}

.di-shell {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 186px;
  min-height: 44px;
  border-radius: 22px;
  background: rgba(7, 8, 11, 0.92);
  backdrop-filter: blur(26px) saturate(190%);
  -webkit-backdrop-filter: blur(26px) saturate(190%);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    0 12px 32px -10px rgba(0, 0, 0, 0.52),
    0 2px 6px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  cursor: pointer;
  user-select: none;
  outline: none;
  will-change: width, transform, border-radius;
  transition:
    width 0.54s cubic-bezier(0.22, 1.16, 0.36, 1),
    border-radius 0.48s cubic-bezier(0.22, 1.12, 0.36, 1),
    box-shadow 0.42s ease,
    border-color 0.35s ease,
    transform 0.36s cubic-bezier(0.22, 1.18, 0.36, 1);
}

.di-shell:active {
  transform: scale(0.985);
}

.di-shell:focus-visible {
  box-shadow:
    0 0 0 2px rgba(248, 230, 162, 0.7),
    0 12px 32px -10px rgba(0, 0, 0, 0.52);
}

.di-shell.di-state-alert {
  width: 244px;
}

.di-shell.di-state-toast {
  width: 274px;
}

.di-shell.di-expanded {
  width: min(414px, calc(100vw - 24px));
  border-radius: 28px;
  cursor: default;
  box-shadow:
    0 28px 64px -14px rgba(0, 0, 0, 0.68),
    0 6px 18px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Glow ambiental superior sutil según severidad */
.di-ambient-glow {
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 110px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(22px);
  opacity: 0.85;
  transition: background 0.4s ease, opacity 0.4s ease;
  z-index: 1;
}

.di-tone-idle .di-ambient-glow {
  background: radial-gradient(circle, rgba(52, 211, 153, 0.12) 0%, rgba(52, 211, 153, 0) 70%);
}

.di-tone-critical {
  border-color: rgba(248, 113, 113, 0.42);
}
.di-tone-critical .di-ambient-glow {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.24) 0%, rgba(239, 68, 68, 0) 72%);
}

.di-tone-spei {
  border-color: rgba(52, 211, 153, 0.44);
}
.di-tone-spei .di-ambient-glow {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.24) 0%, rgba(16, 185, 129, 0) 72%);
}

.di-tone-bill {
  border-color: rgba(251, 191, 36, 0.44);
}
.di-tone-bill .di-ambient-glow {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, rgba(245, 158, 11, 0) 72%);
}

.di-tone-waiter {
  border-color: rgba(251, 146, 60, 0.44);
}
.di-tone-waiter .di-ambient-glow {
  background: radial-gradient(circle, rgba(249, 115, 22, 0.22) 0%, rgba(249, 115, 22, 0) 72%);
}

.di-tone-stock {
  border-color: rgba(250, 204, 21, 0.38);
}
.di-tone-stock .di-ambient-glow {
  background: radial-gradient(circle, rgba(234, 179, 8, 0.18) 0%, rgba(234, 179, 8, 0) 72%);
}

.di-tone-reservation {
  border-color: rgba(167, 139, 250, 0.42);
}
.di-tone-reservation .di-ambient-glow {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.22) 0%, rgba(139, 92, 246, 0) 72%);
}

.di-shell.di-bounce-in {
  animation: diSpringPop 0.56s cubic-bezier(0.22, 1.2, 0.36, 1);
}

@keyframes diSpringPop {
  0% { transform: scale(0.94); }
  48% { transform: scale(1.045, 1.03); }
  75% { transform: scale(0.992); }
  100% { transform: scale(1); }
}

/* Fila compacta superior (siempre 44px) */
.di-compact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  height: 44px;
  padding: 0 12px 0 8px;
  position: relative;
  z-index: 2;
}

.di-orb {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.di-orb svg {
  width: 14px;
  height: 14px;
  position: relative;
  z-index: 2;
}

.di-orb.tone-idle { background: rgba(16, 185, 129, 0.18); color: #34d399; }
.di-orb.tone-critical { background: rgba(239, 68, 68, 0.22); color: #f87171; }
.di-orb.tone-spei { background: rgba(16, 185, 129, 0.22); color: #34d399; }
.di-orb.tone-bill { background: rgba(245, 158, 11, 0.22); color: #fbbf24; }
.di-orb.tone-waiter { background: rgba(249, 115, 22, 0.22); color: #fb923c; }
.di-orb.tone-stock { background: rgba(234, 179, 8, 0.2); color: #facc15; }
.di-orb.tone-reservation { background: rgba(139, 92, 246, 0.22); color: #a78bfa; }

.di-orb.is-pulsing::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0;
  animation: diRingPulse 2.1s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
}

@keyframes diRingPulse {
  0% { transform: scale(0.88); opacity: 0.75; }
  75%, 100% { transform: scale(1.36); opacity: 0; }
}

.di-compact-texts {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.di-compact-title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.di-compact-sub {
  font-size: 9.8px;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.di-compact-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.di-wave {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 12px;
}

.di-wave i {
  display: block;
  width: 2px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  animation: diWaveBar 1.05s ease-in-out infinite;
}

.di-wave i:nth-child(2) {
  animation-delay: 0.18s;
  height: 9px;
}

.di-wave i:nth-child(3) {
  animation-delay: 0.36s;
  height: 6px;
}

@keyframes diWaveBar {
  0%, 100% { transform: scaleY(0.55); opacity: 0.6; }
  50% { transform: scaleY(1.25); opacity: 1; }
}

.di-wave.tone-critical { color: #f87171; }
.di-wave.tone-spei { color: #34d399; }
.di-wave.tone-bill { color: #fbbf24; }
.di-wave.tone-waiter { color: #fb923c; }
.di-wave.tone-stock { color: #facc15; }
.di-wave.tone-reservation { color: #a78bfa; }

.di-count-pill {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.di-close-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}

.di-close-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.06);
}

/* Expansión fluida con Grid 0fr -> 1fr y blur-to-sharp */
.di-expand-grid {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.50s cubic-bezier(0.22, 1.14, 0.36, 1),
    opacity 0.26s ease;
  position: relative;
  z-index: 2;
}

.di-shell.di-expanded .di-expand-grid {
  grid-template-rows: 1fr;
  opacity: 1;
}

.di-expand-inner {
  overflow: hidden;
  min-height: 0;
  transform: translateY(-6px) scale(0.975);
  filter: blur(4px);
  transition:
    transform 0.42s cubic-bezier(0.16, 1, 0.3, 1) 0.04s,
    filter 0.34s ease 0.04s;
}

.di-shell.di-expanded .di-expand-inner {
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.di-panel-body {
  padding: 2px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2px;
}

.di-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 2px 8px;
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(203, 213, 225, 0.72);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.di-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 2px;
}

.di-list::-webkit-scrollbar {
  width: 4px;
}
.di-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.di-item {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 10px 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.18s ease, transform 0.2s ease, border-color 0.18s ease;
}

.di-item:hover {
  background: rgba(255, 255, 255, 0.095);
  border-color: rgba(255, 255, 255, 0.16);
}

.di-item-texts {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.di-item-title {
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.di-item-sub {
  font-size: 10.5px;
  color: rgba(203, 213, 225, 0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.di-action-btn {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.di-action-btn:hover {
  transform: scale(1.04);
  filter: brightness(1.06);
}

.di-action-btn:active {
  transform: scale(0.96);
}

.di-action-btn.tone-spei {
  background: #10b981;
  color: #042f2e;
}

.di-action-btn.tone-bill {
  background: #f8e6a2;
  color: #08080a;
}

.di-action-btn.tone-waiter {
  background: #ffffff;
  color: #08080a;
}

.di-action-btn.tone-critical {
  background: #ef4444;
  color: #ffffff;
}

.di-action-btn.tone-stock,
.di-action-btn.tone-reservation {
  background: rgba(255, 255, 255, 0.16);
  color: #f8fafc;
}

/* Estado idle expandido: KPIs operativos rápidos */
.di-idle-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}

.di-idle-kpi {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 8px 9px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.di-idle-kpi strong {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.di-idle-kpi span {
  font-size: 9.8px;
  color: rgba(203, 213, 225, 0.72);
}

.di-idle-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
}

.di-idle-cta {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border-radius: 12px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
}

.di-idle-cta:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

@media (max-width: 1380px) {
  #view-kitchen.kds-dineos-theme .dineos-brand-mark {
    padding-right: 0;
    gap: 6px;
  }
  #view-kitchen.kds-dineos-theme .dineos-brand-name {
    font-size: 0.80rem;
    letter-spacing: 0.10em;
  }
  #view-kitchen.kds-dineos-theme .dineos-search-capsule {
    width: 136px;
  }
  #view-kitchen.kds-dineos-theme .dineos-search-capsule:focus-within {
    width: 148px;
  }
  #view-kitchen.kds-dineos-theme .dca-thumb {
    display: none;
  }
  #view-kitchen.kds-dineos-theme .dca-count {
    margin-left: 0;
  }
  #view-kitchen.kds-dineos-theme .dineos-watch-capsule {
    padding: 3px 10px 3px 4px;
    gap: 7px;
  }
  #view-kitchen.kds-dineos-theme .dineos-circle-btn {
    width: 36px;
    height: 36px;
  }
  #view-kitchen.kds-dineos-theme .dineos-icon-tools {
    gap: 6px;
  }
  .di-shell.di-state-alert {
    width: 226px;
  }
}

@media (max-width: 1120px) {
  #view-kitchen.kds-dineos-theme .dineos-topbar {
    padding-top: 64px;
    flex-wrap: wrap;
    height: auto;
  }
  .di-anchor {
    top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .di-shell,
  .di-expand-grid,
  .di-expand-inner,
  #view-kitchen.kds-dineos-theme .dineos-search-capsule {
    transition: opacity 0.15s ease, background 0.15s ease !important;
  }
  .di-shell.di-bounce-in,
  .di-orb.is-pulsing::after,
  .di-wave i,
  #btn-dineos-alerts.has-urgent::after {
    animation: none !important;
  }
}

/* ----------------------------------------------------------
   Rediseño Cliente Minimalista, Puerta Remota, Modo Familia y Subgrupos
   ---------------------------------------------------------- */
#view-client .topnav {
  min-height: 68px;
  height: auto !important;
  padding: 8px 14px !important;
}

.client-brand-minimal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.client-crowed-brand-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.client-crowed-wordmark {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #09090b;
  line-height: 1;
}

.client-crowed-mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
}

.client-welcome-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  line-height: 1.2;
  color: #52525b;
  white-space: nowrap;
}

.client-welcome-line strong {
  color: #09090b;
  font-weight: 700;
}

/* Ocultar selectores obsoletos de modalidad y contexto manual de mesa */
#view-client #fulfillment-mode-tabs,
#view-client #modal-fmode-tabs,
#view-client #client-context-bar,
#view-client #modal-block-group-mode {
  display: none !important;
}

/* Puerta de bienvenida para Link Remoto (Pickup vs Domicilio) */
.remote-mode-gate {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: #fafaf9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 1;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.remote-mode-gate.hidden {
  display: none !important;
}

.remote-mode-gate.is-closing {
  opacity: 0;
  transform: scale(0.985);
}

.rmg-card-wrap {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 26px;
  padding: 28px 22px 22px;
  box-shadow: 0 24px 60px -20px rgba(9, 9, 11, 0.14);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rmg-brand-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.rmg-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.rmg-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #09090b;
}

.rmg-sub {
  margin: 0;
  font-size: 13px;
  color: #71717a;
}

.rmg-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rmg-choice-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #e4e4e7;
  background: #fafafa;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.rmg-choice-btn:hover {
  border-color: #09090b;
  background: #ffffff;
  transform: translateY(-1px);
}

.rmg-choice-btn:active {
  transform: scale(0.985);
}

.rmg-choice-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  color: #09090b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rmg-choice-ico svg {
  width: 20px;
  height: 20px;
}

.rmg-choice-texts {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rmg-choice-texts strong {
  font-size: 14.5px;
  font-weight: 700;
  color: #09090b;
}

.rmg-choice-texts span {
  font-size: 12px;
  color: #71717a;
}

.rmg-choice-arrow {
  font-size: 16px;
  font-weight: 700;
  color: #52525b;
}

/* Ilustraciones vectoriales minimalistas en carrito y categorías */
.pcs-svg-ico,
.cart-item-svg {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 5px;
  box-sizing: border-box;
}

.pcs-svg-ico svg,
.cart-item-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Validación de @username único en mesa */
.username-conflict-hint {
  margin-top: 7px;
  padding: 9px 11px;
  border-radius: 12px;
  background: #fef9c3;
  border: 1px solid #fde047;
  color: #713f12;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.username-conflict-hint.hidden {
  display: none !important;
}

.username-suggest-btn {
  padding: 5px 10px;
  border-radius: 999px;
  border: none;
  background: #09090b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* Barra y Modal de Control Familiar del Anfitrión */
.family-host-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  margin-bottom: 10px;
}

.family-host-bar.hidden {
  display: none !important;
}

.fhb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fhb-info {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.fhb-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #f4f4f5;
  color: #09090b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fhb-ico svg {
  width: 16px;
  height: 16px;
}

.fhb-texts {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fhb-texts strong {
  font-size: 12.5px;
  font-weight: 700;
  color: #09090b;
}

.fhb-texts span {
  font-size: 11px;
  color: #71717a;
}

.fhb-btn {
  border: 1px solid #e4e4e7;
  background: #fafafa;
  color: #09090b;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.fhb-btn.is-active {
  background: #09090b;
  border-color: #09090b;
  color: #ffffff;
}

.fhb-badge {
  background: #ef4444;
  color: #ffffff;
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 800;
}

.family-budget-meter {
  height: 6px;
  border-radius: 999px;
  background: #f4f4f5;
  overflow: hidden;
}

.family-budget-fill {
  height: 100%;
  border-radius: 999px;
  background: #09090b;
  transition: width 0.25s ease;
}

.family-budget-fill.is-warn {
  background: #d97706;
}

.family-budget-fill.is-full {
  background: #dc2626;
}

.family-pending-strip {
  padding: 9px 12px;
  border-radius: 14px;
  background: #fefce8;
  border: 1px solid #fde047;
  color: #713f12;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.family-pending-strip.hidden {
  display: none !important;
}

.family-host-modal {
  max-width: 480px;
  width: 94vw;
  max-height: 86vh;
  overflow-y: auto;
}

.family-host-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.fh-section {
  background: #fafafa;
  border: 1px solid #eceef2;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fh-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fh-section-head strong {
  font-size: 12.5px;
  font-weight: 700;
  color: #09090b;
}

.fh-cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fh-chip {
  border: 1px solid #e4e4e7;
  background: #ffffff;
  color: #27272a;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.fh-chip.is-hidden-cat {
  background: #09090b;
  border-color: #09090b;
  color: #ffffff;
  text-decoration: line-through;
}

.fh-dish-scroll {
  max-height: 150px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fh-dish-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: #ffffff;
  border: 1px solid #eceef2;
  border-radius: 10px;
  font-size: 12px;
  cursor: pointer;
}

.fh-req-card {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fh-req-top {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
}

.fh-req-items {
  font-size: 11.5px;
  color: #52525b;
}

.fh-req-actions {
  display: flex;
  gap: 8px;
}

.fh-btn-approve {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 7px 10px;
  background: #09090b;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.fh-btn-reject {
  border: 1px solid #e4e4e7;
  border-radius: 999px;
  padding: 7px 12px;
  background: #ffffff;
  color: #dc2626;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

/* Centro de Pagos Unificado en Tracker (Individual · Familiar · Grupal + Subgrupos) */
.client-settlement-hub {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 22px;
  padding: 16px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 24px -14px rgba(9, 9, 11, 0.12);
}

.client-settlement-hub.hidden {
  display: none !important;
}

.csh-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.csh-head-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #52525b;
  text-transform: uppercase;
}

.csh-head-title svg {
  width: 15px;
  height: 15px;
}

.csh-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  background: #f4f4f5;
  padding: 4px;
  border-radius: 14px;
}

.csh-mode-tab {
  border: none;
  background: transparent;
  color: #52525b;
  border-radius: 10px;
  padding: 8px 6px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.csh-mode-tab svg {
  width: 16px;
  height: 16px;
}

.csh-mode-tab.active {
  background: #ffffff;
  color: #09090b;
  box-shadow: 0 2px 6px rgba(9, 9, 11, 0.08);
}

.csh-submode-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.csh-sub-pill {
  border: 1px solid #e4e4e7;
  background: #fafafa;
  color: #52525b;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.csh-sub-pill.active {
  background: #09090b;
  border-color: #09090b;
  color: #ffffff;
}

.csh-diners-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.csh-diner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 14px;
  border: 1px solid #e4e4e7;
  background: #fafafa;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.csh-diner-row.is-selected {
  border-color: #09090b;
  background: #f4f4f5;
}

.csh-diner-row.is-covered {
  opacity: 0.68;
  cursor: not-allowed;
  background: #f8fafc;
}

.csh-diner-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.csh-check-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.8px solid #a1a1aa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
}

.csh-diner-row.is-selected .csh-check-circle {
  background: #09090b;
  border-color: #09090b;
}

.csh-diner-row.is-covered .csh-check-circle {
  background: #10b981;
  border-color: #10b981;
}

.csh-diner-texts {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.csh-diner-texts strong {
  font-size: 12.5px;
  font-weight: 700;
  color: #09090b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.csh-diner-texts span {
  font-size: 11px;
  color: #71717a;
}

.csh-diner-amt {
  font-size: 13px;
  font-weight: 800;
  color: #09090b;
  font-variant-numeric: tabular-nums;
}

.csh-summary-box {
  background: #fafafa;
  border: 1px solid #eceef2;
  border-radius: 14px;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.csh-sum-line {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #52525b;
}

.csh-sum-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e4e4e7;
  padding-top: 7px;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 800;
  color: #09090b;
}

.csh-pay-cta {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 13px 16px;
  background: #09090b;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.csh-pay-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.csh-phys-cta {
  width: 100%;
  border: 1px solid #e4e4e7;
  border-radius: 999px;
  padding: 10px 14px;
  background: #ffffff;
  color: #18181b;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════════════
   FASE A + FASE B: STOREFRONT UBEREATS-STYLE, RESERVA PUNTUAL Y GROUP HUB
   ═══════════════════════════════════════════════════════════════════════ */

/* Z-index limpio para que Modales de Grupo, Reservación y Pago nunca queden debajo */
#group-hub-overlay { z-index: 1150; }
#group-hub-modal { z-index: 1160; width: min(94vw, 480px); max-height: 88vh; overflow-y: auto; padding: 18px; }
#reservation-modal-overlay { z-index: 1180; }
#reservation-modal-overlay.open {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(9, 9, 11, 0.52);
  animation: rwFadeOverlay 0.22s ease;
}
#reservation-modal { z-index: 1190; }
#reservation-modal.open {
  display: flex;
  flex-direction: column;
  width: min(94vw, 500px);
  max-height: min(88vh, 720px);
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  color: #09090b;
  border: 1px solid #e4e4e7;
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(9, 9, 11, 0.26);
  animation: rwModalEnter 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
#payment-modal-overlay { z-index: 1200; }
#payment-modal { z-index: 1210; }
#family-host-overlay { z-index: 1170; }
#family-host-modal { z-index: 1175; }

/* Ocultar barras redundantes sobre el menú que ahora viven en el Storefront y el botón Group */
#client-menu-flow .pinch-top-context #prepay-mode-banner,
#client-menu-flow .pinch-top-context #table-invite-bar,
#client-menu-flow .pinch-top-context #table-presence-strip,
#client-menu-flow .pinch-top-context #invite-welcome-banner,
#client-menu-flow .pinch-top-context #family-host-bar {
  display: none !important;
}

/* Contenedor principal del Storefront */
.sf-storefront {
  width: 100%;
  max-width: 680px;
  margin: 0 auto 12px;
  background: #ffffff;
  border-radius: 0;
  overflow: visible;
  border: none;
  box-shadow: none;
}

.sf-hero-banner {
  position: relative;
  width: 100%;
  margin: 8px 0 0;
  height: 220px;
  background: #000000;
  overflow: hidden;
  border-radius: 18px;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.09);
}

.sf-hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.sf-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 9, 11, 0.28) 0%, rgba(9, 9, 11, 0) 48%, rgba(9, 9, 11, 0.18) 100%);
  pointer-events: none;
}

.sf-hero-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.sf-hero-circle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  color: #09090b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}

.sf-hero-circle svg {
  width: 18px;
  height: 18px;
}

/* Hoja blanca limpia debajo del hero horizontal */
.sf-info-sheet {
  position: relative;
  margin-top: 0;
  background: #ffffff;
  border-radius: 0;
  padding: 16px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.sf-title-block {
  text-align: left;
}

.sf-rest-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #09090b;
}

.sf-meta-line {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #52525b;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.sf-meta-dot {
  color: #a1a1aa;
}

.sf-price-tiers {
  font-weight: 800;
  letter-spacing: 0.01em;
}

.sf-price-on {
  color: #09090b;
}

.sf-price-off {
  color: #d4d4d8;
}

/* Fila de métricas de 3 columnas */
.sf-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafafa;
  border: 1px solid #eceef2;
  border-radius: 14px;
  padding: 10px 8px;
}

.sf-stat-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.sf-stat-top {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 800;
  color: #09090b;
}

.sf-stat-top svg {
  width: 14px;
  height: 14px;
  color: #3f3f46;
  flex-shrink: 0;
}

.sf-stat-top.is-star svg {
  color: #f59e0b;
}

.sf-stat-item span {
  font-size: 11px;
  color: #71717a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.sf-stat-divider {
  width: 1px;
  height: 26px;
  background: #e4e4e7;
  flex-shrink: 0;
}

/* Fila de controles: [Delivery | Pickup] + [Reservar] + [Group] */
.sf-controls-row {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  flex-wrap: nowrap;
}

.sf-seg-switch {
  display: inline-flex;
  align-items: center;
  background: #f4f4f5;
  border-radius: 999px;
  padding: 3px;
  flex: 1.35;
  min-width: 0;
}

.sf-seg-switch.hidden {
  display: none !important;
}

.sf-seg-btn {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  padding: 7px 6px;
  font-size: 12px;
  font-weight: 700;
  color: #52525b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.sf-seg-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.sf-seg-btn.active {
  background: #ffffff;
  color: #09090b;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.sf-action-pill {
  flex: 1;
  min-width: 0;
  border: 1px solid #e4e4e7;
  background: #f4f4f5;
  color: #09090b;
  border-radius: 999px;
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
}

.sf-action-pill.is-group {
  background: #09090b;
  border-color: #09090b;
  color: #ffffff;
}

.sf-action-pill svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.sf-group-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff6b1a;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
}

.sf-group-badge.hidden {
  display: none;
}

/* Barra horizontal de Cupones, Especiales y Anuncios */
.sf-promos-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.sf-promos-strip::-webkit-scrollbar {
  display: none;
}

.sf-promo-card {
  flex: 0 0 auto;
  min-width: 235px;
  max-width: 270px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-align: left;
  cursor: pointer;
}

.sf-promo-card.is-rose {
  background: #fff1f2;
  border-color: #fecdd3;
}

.sf-promo-card.is-amber {
  background: #fffbeb;
  border-color: #fde68a;
}

.sf-promo-card.is-sky {
  background: #f0f9ff;
  border-color: #bae6fd;
}

.sf-promo-card.is-applied {
  border-color: #09090b;
  box-shadow: inset 0 0 0 1px #09090b;
}

.sf-promo-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  color: #09090b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sf-promo-icon svg {
  width: 16px;
  height: 16px;
}

.sf-promo-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sf-promo-copy strong {
  font-size: 12.5px;
  font-weight: 800;
  color: #09090b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sf-promo-copy span {
  font-size: 11px;
  color: #52525b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Carrusel Recomendados para ti */
.sf-featured-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sf-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.sf-sec-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #09090b;
}

.sf-sec-head span {
  font-size: 11.5px;
  color: #71717a;
}

.sf-featured-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.sf-featured-strip::-webkit-scrollbar {
  display: none;
}

.sf-feat-card {
  flex: 0 0 144px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.sf-feat-media {
  position: relative;
  width: 144px;
  height: 106px;
  border-radius: 14px;
  overflow: hidden;
  background: #f4f4f5;
  margin-bottom: 6px;
}

.sf-feat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sf-feat-media .pinch-media-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.sf-feat-add {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid #e4e4e7;
  background: #ffffff;
  color: #09090b;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

.sf-feat-name {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #09090b;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sf-feat-price {
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 800;
  color: #18181b;
}

/* Fase A: Controles de Reservación Puntual + Política KDS */
.res-policy-admin-bar {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-bottom: 10px;
}

.res-policy-admin-bar label {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
}

.res-time-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.res-custom-time-inp {
  border: 1px solid #d4d4d8;
  border-radius: 9px;
  padding: 4px 9px;
  font-size: 13px;
  font-weight: 700;
  color: #09090b;
  background: #ffffff;
}

.res-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: #f4f4f5;
  padding: 4px;
  border-radius: 12px;
  margin-top: 6px;
}

.res-mode-tab {
  border: none;
  border-radius: 9px;
  background: transparent;
  padding: 8px 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #52525b;
  cursor: pointer;
}

.res-mode-tab.active {
  background: #ffffff;
  color: #09090b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.res-preorder-stage {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.res-preorder-stage.hidden {
  display: none;
}

.res-pre-search {
  font-size: 13px !important;
  padding: 8px 11px !important;
}

.res-punctuality-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rpb-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #92400e;
}

.rpb-desc,
.rpb-policy {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: #78350f;
}

.rpb-accept-row {
  margin-top: 4px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  color: #09090b;
  cursor: pointer;
}

/* Modal Group Hub */
.ghm-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: #f4f4f5;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.ghm-tab {
  border: none;
  border-radius: 9px;
  background: transparent;
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 700;
  color: #52525b;
  cursor: pointer;
}

.ghm-tab.active {
  background: #ffffff;
  color: #09090b;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.group-hub-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ghm-inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ghm-inline-form .modal-input {
  flex: 1;
}

.ghm-member-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ghm-member-chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  font-size: 12px;
  font-weight: 700;
  color: #09090b;
}

.ghm-share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ghm-active-bill-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ghm-active-bill-card strong {
  font-size: 13px;
  color: #14532d;
}

.ghm-active-bill-card p {
  margin: 0;
  font-size: 12px;
  color: #166534;
}

.ghm-split-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ghm-split-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e4e4e7;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.ghm-split-card.active {
  border-color: #09090b;
  background: #fafafa;
  box-shadow: inset 0 0 0 1px #09090b;
}

.ghm-sc-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #f4f4f5;
  color: #09090b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ghm-sc-ico svg {
  width: 17px;
  height: 17px;
}

.ghm-split-card strong {
  display: block;
  font-size: 13px;
  color: #09090b;
}

.ghm-split-card span {
  display: block;
  font-size: 11.5px;
  color: #71717a;
  line-height: 1.3;
}

@media (max-width: 420px) {
  .sf-hero-banner { margin: 6px 0 0; height: 188px; border-radius: 16px; }
  .sf-info-sheet { padding: 14px 12px 10px; }
  .sf-rest-title { font-size: 22px; }
  .sf-controls-row { gap: 5px; }
  .sf-seg-btn { padding: 7px 4px; font-size: 11px; gap: 3px; }
  .sf-action-pill { padding: 8px 8px; font-size: 11.5px; gap: 4px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   WIZARD DE RESERVACIÓN EN 5 PASOS + PASE DE CONFIRMACIÓN
   ═══════════════════════════════════════════════════════════════════════ */
@keyframes rwFadeOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rwModalEnter {
  from { opacity: 0; transform: translate(-50%, -46%) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes rwSlideNext {
  from { opacity: 0; transform: translateX(26px) scale(0.985); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes rwSlidePrev {
  from { opacity: 0; transform: translateX(-26px) scale(0.985); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes rwSeatPop {
  0% { transform: scale(0.86); }
  55% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes rwDrawCircle {
  to { stroke-dashoffset: 0; }
}

@keyframes rwDrawTick {
  to { stroke-dashoffset: 0; }
}

/* Aislamiento editorial claro para cliente y KDS */
#reservation-modal .modal-field-label {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #71717a;
  margin-bottom: 6px;
}

#reservation-modal .modal-input {
  width: 100%;
  background: #f8fafc;
  color: #09090b;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0;
  outline: none;
  transition: border-color 0.16s ease, background 0.16s ease;
}

#reservation-modal .modal-input:focus {
  border-color: #09090b;
  background: #ffffff;
}

#reservation-modal .modal-input::placeholder {
  color: #a1a1aa;
  font-weight: 500;
}

#reservation-modal .btn-cancel {
  background: #f4f4f5;
  color: #18181b;
  border: 1px solid #e4e4e7;
}

#reservation-modal .btn-confirm {
  background: #09090b;
  color: #ffffff;
  border: none;
}

/* Topbar del wizard */
.rw-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 10px;
  background: #ffffff;
}

.rw-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #e4e4e7;
  background: #f8fafc;
  color: #09090b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.16s ease, transform 0.14s ease;
}

.rw-icon-btn:hover {
  background: #f4f4f5;
}

.rw-icon-btn:active {
  transform: scale(0.94);
}

.rw-icon-btn.hidden {
  visibility: hidden;
  pointer-events: none;
}

.rw-icon-btn svg {
  width: 16px;
  height: 16px;
}

.rw-top-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.rw-step-kicker {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #71717a;
}

.rw-step-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.rw-dot {
  width: 8px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #e4e4e7;
  cursor: pointer;
  transition: width 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease;
}

.rw-dot.is-done {
  background: #71717a;
}

.rw-dot.is-active {
  width: 22px;
  background: #09090b;
}

.rw-progress-track {
  width: 100%;
  height: 3px;
  background: #f1f5f9;
  overflow: hidden;
  flex-shrink: 0;
}

.rw-progress-fill {
  height: 100%;
  background: #09090b;
  transition: width 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Strip de resumen interactivo */
.rw-summary-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #fafafa;
  border-bottom: 1px solid #eceef2;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}

.rw-summary-strip::-webkit-scrollbar {
  display: none;
}

.rw-summary-strip.hidden {
  display: none;
}

.rw-sum-pill {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  font-size: 10.5px;
  font-weight: 700;
  color: #52525b;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.rw-sum-pill.is-current {
  border-color: #09090b;
  color: #09090b;
  background: #ffffff;
}

/* Escenario principal */
.rw-stage {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px 18px 14px;
}

.rw-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rw-step.hidden {
  display: none !important;
}

.rw-step.anim-next {
  animation: rwSlideNext 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rw-step.anim-prev {
  animation: rwSlidePrev 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rw-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rw-title {
  margin: 0;
  font-size: 21px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #09090b;
}

.rw-sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #71717a;
}

.rw-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rw-block-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rw-block-row .modal-field-label {
  margin-bottom: 0;
}

.rw-date-inp {
  border: 1px solid #e4e4e7;
  border-radius: 999px;
  background: #f8fafc;
  color: #09090b;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  outline: none;
}

/* Paso 1: Tarjetas de fecha rápida & bloque de hora */
.rw-quick-dates {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.rw-date-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 9px 4px;
  border-radius: 14px;
  border: 1px solid #e4e4e7;
  background: #ffffff;
  color: #09090b;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.16s ease, background 0.16s ease;
}

.rw-date-card:active {
  transform: scale(0.96);
}

.rw-date-card .rw-dc-day {
  font-size: 10px;
  font-weight: 700;
  color: #71717a;
  text-transform: uppercase;
}

.rw-date-card .rw-dc-num {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
}

.rw-date-card .rw-dc-mon {
  font-size: 10px;
  color: #71717a;
}

.rw-date-card.active {
  background: #09090b;
  border-color: #09090b;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(9, 9, 11, 0.18);
}

.rw-date-card.active .rw-dc-day,
.rw-date-card.active .rw-dc-mon {
  color: #d4d4d8;
}

@keyframes rwWheelItemPop {
  0% { transform: scale(0.88); }
  52% { transform: scale(1.24); }
  80% { transform: scale(0.96); }
  100% { transform: scale(1); }
}

@keyframes rwLensPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.022, 1.09); }
  100% { transform: scale(1); }
}

@keyframes rwZonePop {
  0% { transform: scale(0.97); }
  55% { transform: scale(1.025); }
  100% { transform: scale(1); }
}

/* Paso 1: Ruleta 3D deslizable de Hora y Slots rápidos */
#rw-step-1 .rw-time-big-display {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  color: #09090b;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: -0.01em;
}

#rw-step-1 .rw-time-big-display.is-popping {
  animation: rwSeatPop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rw-roulette-box {
  position: relative;
  height: 176px;
  border-radius: 14px;
  background: #fafafa;
  border: 1px solid #e4e4e7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.rw-roulette-lens {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 50%;
  height: 44px;
  margin-top: -22px;
  border-radius: 10px;
  background: #ffffff;
  border: 1.5px solid #09090b;
  box-shadow: 0 4px 14px rgba(9, 9, 11, 0.08);
  pointer-events: none;
  z-index: 1;
}

.rw-roulette-lens.is-lens-pop {
  animation: rwLensPop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rw-roulette-fade {
  position: absolute;
  left: 0;
  right: 0;
  height: 54px;
  pointer-events: none;
  z-index: 3;
}

.rw-roulette-fade-top {
  top: 0;
  background: linear-gradient(180deg, #fafafa 14%, rgba(250, 250, 250, 0) 100%);
}

.rw-roulette-fade-bot {
  bottom: 0;
  background: linear-gradient(0deg, #fafafa 14%, rgba(250, 250, 250, 0) 100%);
}

.rw-roulette-drum {
  position: relative;
  z-index: 2;
  width: 96px;
  height: 176px;
  overflow-y: scroll;
  scrollbar-width: none;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  overscroll-behavior: contain;
}

.rw-roulette-drum::-webkit-scrollbar {
  display: none;
}

.rw-roulette-drum.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
}

.rw-wheel-pad {
  height: 66px;
  flex-shrink: 0;
}

.rw-wheel-item {
  width: 100%;
  height: 44px;
  scroll-snap-align: center;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  color: #71717a;
  font-family: 'JetBrains Mono', monospace;
  font-size: 21px;
  font-weight: 600;
  transform-origin: center center;
  will-change: transform, opacity;
}

.rw-wheel-item.is-center {
  color: #09090b;
  font-weight: 800;
  font-size: 23px;
}

.rw-wi-label {
  display: inline-block;
  pointer-events: none;
}

.rw-wi-label.is-pop-settled {
  animation: rwWheelItemPop 0.34s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rw-roulette-colon {
  position: relative;
  z-index: 2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 800;
  color: #09090b;
  padding: 0 4px;
  pointer-events: none;
}

.rw-quick-slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 2px;
}

.rw-slot-pill {
  padding: 7px 2px;
  border-radius: 8px;
  border: 1px solid #e4e4e7;
  background: #ffffff;
  color: #3f3f46;
  font-size: 10px;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.15s ease;
}

.rw-slot-pill.selected {
  background: #09090b;
  border-color: #09090b;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(9, 9, 11, 0.14);
}

/* Paso 2: Escenario interactivo de mesa y asientos con física spring */
.rw-seat-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 12px 10px;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 48%, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #eceef2;
  overflow: hidden;
}

.rw-table-stage {
  position: relative;
  width: 260px;
  height: 136px;
  margin: 0 auto;
}

.rw-morph-table {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border: 2px solid #09090b;
  box-shadow: 0 10px 24px rgba(9, 9, 11, 0.08), inset 0 0 0 4px #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: width 0.48s cubic-bezier(0.34, 1.45, 0.64, 1),
              height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
              border-radius 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.rw-morph-table.is-table-bump {
  animation: rwTableBump 0.34s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rw-morph-table.is-table-entrance {
  animation: rwTableEntrance 0.42s cubic-bezier(0.34, 1.45, 0.64, 1);
}

.rw-table-inner-ring {
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  border: 1px dashed rgba(9, 9, 11, 0.12);
  pointer-events: none;
}

.rw-table-emblem {
  width: 18px;
  height: 18px;
  color: #a1a1aa;
  opacity: 0.7;
}

.rw-table-ripple {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  border-radius: 999px;
  border: 1.5px solid rgba(9, 9, 11, 0.25);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.rw-table-ripple.is-rippling {
  animation: rwTableRipple 0.52s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.rw-seat-node {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.48s cubic-bezier(0.34, 1.42, 0.64, 1), opacity 0.26s ease;
  will-change: transform, opacity;
}

.rw-seat-node.no-trans {
  transition: none !important;
}

.rw-seat-dot {
  position: absolute;
  left: -7px;
  top: -7px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #09090b;
  box-shadow: 0 3px 8px rgba(9, 9, 11, 0.22), inset 0 0 0 2px #ffffff;
  border: 1.5px solid #09090b;
}

.rw-seat-dot.is-arriving {
  animation: rwDotArrive 0.44s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.rw-seat-arc {
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1.6px solid transparent;
  border-right-color: #3f3f46;
  transform: rotate(var(--seat-rot, 0deg));
  opacity: 0.75;
}

.rw-seat-halo {
  position: absolute;
  left: -13px;
  top: -13px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1.8px solid #09090b;
  opacity: 0;
  transform: scale(0.4);
  pointer-events: none;
}

.rw-seat-halo.is-bursting {
  animation: rwHaloBurst 0.52s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.rw-seat-caption-wrap {
  min-height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rw-seat-caption {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: #52525b;
}

.rw-seat-caption.is-cap-pop {
  animation: rwCaptionPop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes rwTableBump {
  0% { transform: translate(-50%, -50%) scale(1); }
  45% { transform: translate(-50%, -50%) scale(1.06); }
  75% { transform: translate(-50%, -50%) scale(0.98); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes rwTableEntrance {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.72); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes rwTableRipple {
  0% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.85); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.55); }
}

@keyframes rwDotArrive {
  0% { transform: scale(0.3); }
  55% { transform: scale(1.36); }
  80% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

@keyframes rwHaloBurst {
  0% { opacity: 0.75; transform: scale(0.45); }
  100% { opacity: 0; transform: scale(1.9); }
}

@keyframes rwCaptionPop {
  0% { transform: scale(0.9); opacity: 0.6; }
  55% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.rw-giant-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 6px 0;
}

.rw-step-circle {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1.5px solid #e4e4e7;
  background: #ffffff;
  color: #09090b;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  transition: transform 0.14s ease, border-color 0.16s ease, background 0.16s ease;
}

.rw-step-circle:hover {
  border-color: #09090b;
}

.rw-step-circle:active {
  transform: scale(0.92);
}

.rw-giant-readout {
  min-width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.rw-giant-num {
  font-size: 52px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #09090b;
}

.rw-giant-num.is-popping {
  animation: rwSeatPop 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.rw-giant-cap {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  color: #71717a;
}

.rw-party-presets {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.rw-preset-pill {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid #e4e4e7;
  background: #f8fafc;
  color: #3f3f46;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.rw-preset-pill.active {
  background: #09090b;
  border-color: #09090b;
  color: #ffffff;
}

/* Paso 3: Tarjetas 2x2 rectangulares simétricas de ambiente */
#reservation-modal .rw-zone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 10px;
}

#reservation-modal .rw-zone-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  gap: 6px;
  min-height: 116px;
  padding: 14px;
  border-radius: 10px !important;
  border: 1.5px solid #e4e4e7;
  background: #ffffff;
  color: #09090b;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.14s ease, background 0.18s ease;
}

#reservation-modal .rw-zone-card:active {
  transform: scale(0.98);
}

#reservation-modal .rw-zone-card.is-zone-pop {
  animation: rwZonePop 0.26s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#reservation-modal .rw-zone-ico {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f4f4f5;
  color: #09090b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#reservation-modal .rw-zone-ico svg {
  width: 19px;
  height: 19px;
}

#reservation-modal .rw-zone-card strong {
  font-size: 14.5px;
  font-weight: 800;
  color: #09090b;
}

#reservation-modal .rw-zone-card span:last-child {
  font-size: 11.5px;
  line-height: 1.35;
  color: #71717a;
}

#reservation-modal .rw-zone-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid #d4d4d8;
  background: #ffffff;
}

#reservation-modal .rw-zone-card.selected {
  border-color: #09090b;
  background: #fafafa;
  color: #09090b;
  box-shadow: inset 0 0 0 1px #09090b, 0 6px 16px rgba(9, 9, 11, 0.07);
}

#reservation-modal .rw-zone-card.selected .rw-zone-ico {
  background: #09090b;
  color: #ffffff;
}

#reservation-modal .rw-zone-card.selected .rw-zone-check {
  border-color: #09090b;
  background: #09090b;
  box-shadow: inset 0 0 0 4px #ffffff;
}

/* Paso 4: Tarjetas de experiencia y buscador */
.rw-exp-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rw-exp-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border-radius: 16px;
  border: 1.5px solid #e4e4e7;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: all 0.16s ease;
}

.rw-exp-card.active {
  background: #fafafa;
  border-color: #09090b;
  box-shadow: inset 0 0 0 1px #09090b;
}

.rw-exp-ico {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #f4f4f5;
  color: #09090b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rw-exp-ico svg {
  width: 18px;
  height: 18px;
}

.rw-exp-card.active .rw-exp-ico {
  background: #09090b;
  color: #ffffff;
}

.rw-exp-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.rw-exp-copy strong {
  font-size: 13.5px;
  font-weight: 800;
  color: #09090b;
}

.rw-exp-copy span {
  font-size: 11.5px;
  color: #71717a;
}

.rw-exp-radio {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1.5px solid #d4d4d8;
  flex-shrink: 0;
}

.rw-exp-card.active .rw-exp-radio {
  border-color: #09090b;
  background: #09090b;
  box-shadow: inset 0 0 0 4px #ffffff;
}

.rw-pre-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rw-pre-search-row .res-pre-search {
  flex: 1;
}

.rw-preorder-count-pill {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f4f4f5;
  color: #52525b;
  font-size: 11px;
  font-weight: 700;
}

.rw-preorder-count-pill.has-items {
  background: #09090b;
  color: #ffffff;
}

#reservation-modal .res-preorder-list {
  max-height: 175px;
  overflow-y: auto;
  border: 1px solid #eceef2;
  border-radius: 14px;
  padding: 6px 10px;
  background: #fafafa;
}

#reservation-modal .res-preorder-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eceef2;
}

#reservation-modal .res-preorder-row:last-child {
  border-bottom: none;
}

#reservation-modal .res-pre-info strong {
  display: block;
  font-size: 13px;
  color: #09090b;
}

#reservation-modal .res-pre-info span {
  font-size: 11.5px;
  color: #71717a;
}

/* Paso 5: Resumen Ticket y Ocasión */
.rw-summary-ticket {
  background: #fafafa;
  border: 1px dashed #d4d4d8;
  border-radius: 16px;
  padding: 12px 14px;
}

.rw-ticket-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rw-ticket-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rw-ticket-cell span {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #71717a;
}

.rw-ticket-cell strong {
  font-size: 13px;
  font-weight: 800;
  color: #09090b;
}

.rw-occasion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.rw-occ-chip {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid #e4e4e7;
  background: #f8fafc;
  color: #3f3f46;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}

.rw-occ-chip.active {
  background: #09090b;
  border-color: #09090b;
  color: #ffffff;
}

.rw-occ-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-style: dashed;
  border-color: #a1a1aa;
  background: #ffffff;
  color: #09090b;
}

.rw-occ-more-btn.has-extra,
.rw-occ-more-btn.is-open {
  border-style: solid;
  border-color: #09090b;
  background: #fafafa;
}

.rw-occ-chev {
  width: 13px;
  height: 13px;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.rw-occ-more-btn.is-open .rw-occ-chev {
  transform: rotate(180deg);
}

.rw-occ-drawer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, margin-bottom 0.26s ease;
  margin-bottom: 0;
}

.rw-occ-drawer.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-bottom: 10px;
}

.rw-occ-drawer-inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fafafa;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 0 12px;
  transition: padding 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease;
}

.rw-occ-drawer.is-open .rw-occ-drawer-inner {
  padding: 12px;
  border-color: #e4e4e7;
}

.rw-occ-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rw-occ-group-title {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #71717a;
}

.rw-occ-group-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Paso 6: Boarding Pass Animado */
.rw-pass-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 20px 16px;
  border-radius: 20px;
  background: #fafafa;
  border: 1px solid #e4e4e7;
}

.rw-pass-check {
  width: 56px;
  height: 56px;
  color: #16a34a;
}

.rw-pass-check svg {
  width: 56px;
  height: 56px;
}

.rw-check-circle {
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  animation: rwDrawCircle 0.48s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.rw-check-tick {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: rwDrawTick 0.34s 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.rw-pass-folio {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  background: #09090b;
  color: #ffffff;
}

.rw-pass-title {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 800;
  color: #09090b;
}

.rw-pass-sub {
  margin: 0;
  font-size: 13px;
  color: #71717a;
}

.rw-pass-divider {
  width: 100%;
  border-top: 1.5px dashed #d4d4d8;
  margin: 8px 0;
}

.rw-pass-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  text-align: left;
}

.rw-pass-grid span {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #71717a;
}

.rw-pass-grid strong {
  font-size: 13px;
  font-weight: 800;
  color: #09090b;
}

.rw-pass-note {
  margin: 6px 0 0;
  font-size: 12px;
  color: #52525b;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  padding: 7px 10px;
  width: 100%;
}

/* Footer fijo del Wizard */
.rw-footer {
  padding: 12px 18px 16px;
  border-top: 1px solid #eceef2;
  background: #ffffff;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.rw-btn-sec {
  flex: 0.72;
  height: 46px;
  border-radius: 999px !important;
  font-weight: 700 !important;
  cursor: pointer;
}

.rw-btn-prim {
  flex: 1.35;
  height: 46px;
  border-radius: 999px !important;
  font-weight: 800 !important;
  cursor: pointer;
}

.rw-btn-sec.hidden,
.rw-btn-prim.hidden {
  display: none !important;
}

@media (max-width: 480px) {
  #reservation-modal.open {
    width: calc(100vw - 16px);
    max-height: 90vh;
    border-radius: 24px;
  }
  .rw-stage { padding: 14px 14px 12px; }
  .rw-title { font-size: 19px; }
  .rw-quick-dates { gap: 5px; }
  .rw-date-card { padding: 7px 2px; border-radius: 12px; }
  .rw-time-grid { gap: 6px; }
  .rw-zone-grid { gap: 8px; }
  .rw-zone-card { padding: 12px 11px; }
  .res-form-grid { grid-template-columns: 1fr; }
  .rw-footer { padding: 10px 14px 14px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   FASE C: AVATAR CON ANILLO DE LEALTAD + HOJA DE PERFIL DEMO (@bowlandcrow)
   ═══════════════════════════════════════════════════════════════════════ */
#view-client .topnav {
  grid-template-columns: 1fr auto 1fr !important;
}

#view-client .topnav-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

#view-client .topnav:has(#btn-client-back:not(.hidden)) #btn-client-avatar {
  display: none;
}

.client-avatar-btn {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.client-avatar-btn:hover {
  transform: scale(1.06);
}

.client-avatar-btn:active {
  transform: scale(0.93);
}

.cab-ring {
  position: absolute;
  inset: 0;
  width: 42px;
  height: 42px;
  transform: rotate(-90deg);
  pointer-events: none;
}

.cab-ring-bg {
  fill: none;
  stroke: #e4e4e7;
  stroke-width: 2.5;
}

.cab-ring-prog {
  fill: none;
  stroke: #09090b;
  stroke-width: 2.6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.cab-inner {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  overflow: hidden;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cp-av-crow.is-sm {
  width: 22px;
  height: 22px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.cp-av-letter.is-sm {
  font-size: 14px;
  font-weight: 800;
  color: #09090b;
}

.cp-av-photo.is-sm {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cp-av-crow.is-lg {
  width: 48px;
  height: 48px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.cp-av-letter.is-lg {
  font-size: 30px;
  font-weight: 800;
  color: #09090b;
}

.cp-av-photo.is-lg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay & Hoja con transición Morph FLIP */
.cp-overlay {
  position: fixed;
  inset: 0;
  z-index: 1215;
  background: rgba(9, 9, 11, 0.48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.cp-overlay.open {
  opacity: 1;
}

.cp-overlay.hidden {
  display: none;
}

.cp-sheet {
  --cp-accent: #09090b;
  --cp-accent-soft: #f4f4f5;
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(94vw, 460px);
  height: min(90vh, 780px);
  z-index: 1220;
  background: #ffffff;
  color: #09090b;
  border-radius: 26px;
  border: 1px solid #e4e4e7;
  box-shadow: 0 32px 80px rgba(9, 9, 11, 0.28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.28s ease,
              border-radius 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.cp-sheet.hidden {
  display: none !important;
}

.cp-sheet.is-morph-start {
  transition: none !important;
  transform: translate(calc(-50% + var(--cp-morph-dx, -160px)), calc(-50% + var(--cp-morph-dy, -340px))) scale(0.12);
  border-radius: 999px;
  opacity: 0.2;
}

.cp-sheet.is-closing {
  transform: translate(calc(-50% + var(--cp-morph-dx, -160px)), calc(-50% + var(--cp-morph-dy, -340px))) scale(0.12);
  border-radius: 999px;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.24s ease, border-radius 0.28s ease;
}

/* Temas de color de vista previa */
.cp-sheet.theme-obsidian { --cp-accent: #09090b; --cp-accent-soft: #f4f4f5; }
.cp-sheet.theme-terracotta { --cp-accent: #c2410c; --cp-accent-soft: #fff7ed; }
.cp-sheet.theme-sage { --cp-accent: #166534; --cp-accent-soft: #f0fdf4; }
.cp-sheet.theme-sapphire { --cp-accent: #1d4ed8; --cp-accent-soft: #eff6ff; }

.cp-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Banner superior personalizable */
.cp-banner {
  position: relative;
  height: 114px;
  padding: 12px 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #18181b 0%, #3f3f46 100%);
}

.cp-banner.is-ban-escandon {
  background: linear-gradient(135deg, #18181b 0%, #27272a 55%, #7c2d12 100%);
}

.cp-banner.is-ban-midnight {
  background: linear-gradient(135deg, #09090b 0%, #1e1b4b 60%, #312e81 100%);
}

.cp-banner.is-ban-botanical {
  background: linear-gradient(135deg, #052e16 0%, #14532d 55%, #3f6212 100%);
}

.cp-banner-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 14px 14px;
  pointer-events: none;
}

.cp-banner-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cp-demo-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.cp-banner-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cp-circle-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(9, 9, 11, 0.45);
  backdrop-filter: blur(8px);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cp-circle-btn svg {
  width: 15px;
  height: 15px;
}

/* Cabecera de identidad + marco exclusivo */
.cp-identity-wrap {
  padding: 0 16px 14px;
  border-bottom: 1px solid #eceef2;
  background: #ffffff;
}

.cp-avatar-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.cp-avatar-frame {
  position: relative;
  z-index: 2;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  padding: 3.5px;
  margin-top: -39px;
  background: #e4e4e7;
  box-shadow: 0 10px 24px rgba(9, 9, 11, 0.16);
}

.cp-avatar-frame.is-frame-classic {
  background: #09090b;
}

.cp-avatar-frame.is-frame-gold {
  background: linear-gradient(135deg, #fde68a 0%, #d97706 50%, #fef08a 100%);
}

.cp-avatar-frame.is-frame-burger_challenge {
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 50%, #fde047 100%);
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.34);
}

.cp-avatar-frame.is-frame-winter {
  background: linear-gradient(135deg, #e0f2fe 0%, #38bdf8 50%, #818cf8 100%);
}

.cp-avatar-hero-inner {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #ffffff;
  border: 2.5px solid #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cp-privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #e4e4e7;
  background: #f8fafc;
  color: #3f3f46;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.cp-privacy-pill svg {
  width: 13px;
  height: 13px;
}

.cp-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cp-display-name {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #09090b;
}

.cp-verified-ico {
  width: 18px;
  height: 18px;
  color: var(--cp-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cp-verified-ico svg {
  width: 17px;
  height: 17px;
}

.cp-handle-row {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #71717a;
}

.cp-handle-row strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--cp-accent);
}

.cp-title-badge {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--cp-accent-soft);
  color: var(--cp-accent);
  font-size: 11.5px;
  font-weight: 800;
}

.cp-title-badge svg {
  width: 14px;
  height: 14px;
}

.cp-bio {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.42;
  color: #3f3f46;
}

.cp-pinned-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cp-pin-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #e4e4e7;
  background: #fafafa;
  color: #18181b;
}

.cp-pin-badge svg {
  width: 12px;
  height: 12px;
}

.cp-pin-badge.is-gold {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.cp-pin-badge.is-dark {
  background: var(--cp-accent);
  border-color: var(--cp-accent);
  color: #ffffff;
}

.cp-metrics-bar {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafafa;
  border: 1px solid #eceef2;
  border-radius: 14px;
  padding: 9px 10px;
}

.cp-metric {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cp-metric-val {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 800;
  color: #09090b;
}

.cp-metric-val svg {
  width: 14px;
  height: 14px;
  color: var(--cp-accent);
}

.cp-metric span {
  font-size: 10.5px;
  color: #71717a;
}

.cp-metric-sep {
  width: 1px;
  height: 22px;
  background: #e4e4e7;
}

/* Cuerpo de tarjetas editoriales */
.cp-body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
}

.cp-card {
  background: #ffffff;
  border: 1px solid #eceef2;
  border-radius: 16px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@keyframes cpCardFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.cp-sheet.open .cp-card {
  animation: cpCardFadeUp 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cp-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cp-sec-head h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #09090b;
}

.cp-mini-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f4f4f5;
  color: #52525b;
}

/* Tarjeta de Lealtad del restaurante actual */
.cp-loyalty-card {
  background: var(--cp-accent);
  border-color: var(--cp-accent);
  color: #ffffff;
}

.cp-loy-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.cp-loy-kicker {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.68);
}

.cp-loy-rest {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.cp-loy-tier {
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  white-space: nowrap;
}

.cp-loy-pts-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.cp-loy-pts-row strong {
  font-size: 20px;
  font-weight: 800;
}

.cp-loy-pts-row strong span {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.cp-loy-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.cp-loy-bar {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.cp-loy-fill {
  height: 100%;
  border-radius: 999px;
  background: #ffffff;
}

.cp-loy-stamps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.cp-loy-stamp {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1.5px dashed rgba(255, 255, 255, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}

.cp-loy-stamp.is-filled {
  border-style: solid;
  border-color: #ffffff;
  background: #ffffff;
  color: var(--cp-accent);
}

.cp-loy-stamp.is-filled svg {
  width: 14px;
  height: 14px;
}

.cp-loy-foot {
  margin: 2px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.8);
}

/* Teaser Crowed Passport */
.cp-passport-teaser {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border-style: dashed;
  border-color: #cbd5e1;
  cursor: pointer;
}

.cp-pp-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.cp-pp-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--cp-accent-soft);
  color: var(--cp-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cp-pp-ico svg {
  width: 20px;
  height: 20px;
}

.cp-pp-code {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #71717a;
}

.cp-pp-left strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #09090b;
}

.cp-pp-left p {
  margin: 1px 0 0;
  font-size: 11.5px;
  color: #52525b;
}

.cp-pp-arrow {
  font-size: 16px;
  font-weight: 800;
  color: #71717a;
}

/* Personalización demo */
.cp-custom-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cp-custom-lbl {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: #71717a;
}

.cp-swatch-row,
.cp-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cp-swatch,
.cp-opt-pill {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #e4e4e7;
  background: #fafafa;
  color: #3f3f46;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.cp-swatch.active,
.cp-opt-pill.active {
  background: var(--cp-accent);
  border-color: var(--cp-accent);
  color: #ffffff;
}

.cp-frame-hint {
  margin: 2px 0 0;
  font-size: 11px;
  color: #52525b;
}

/* Mi orden de siempre & mesa favorita */
.cp-usual-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border-radius: 12px;
  background: #fafafa;
  border: 1px solid #eceef2;
}

.cp-usual-box img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.cp-mini-kicker {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--cp-accent);
}

.cp-usual-box strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #09090b;
}

.cp-usual-box span:last-child {
  display: block;
  font-size: 11px;
  color: #71717a;
}

.cp-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cp-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 8px 9px;
  border-radius: 11px;
  background: #fafafa;
  border: 1px solid #eceef2;
}

.cp-detail-item svg {
  width: 15px;
  height: 15px;
  color: var(--cp-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.cp-detail-item span {
  display: block;
  font-size: 10px;
  color: #71717a;
}

.cp-detail-item strong {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #09090b;
  line-height: 1.25;
}

/* Tags de gustos & alergias */
.cp-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cp-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f4f4f5;
  color: #18181b;
  font-size: 11.5px;
  font-weight: 600;
}

.cp-tag.is-alert {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.cp-tag.is-alert svg {
  width: 12px;
  height: 12px;
}

/* Vitrina de Badges + Temporada */
.cp-badge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.cp-badge-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  padding: 9px 5px;
  border-radius: 12px;
  border: 1px solid #e4e4e7;
  background: #fafafa;
}

.cp-badge-tile.is-locked {
  opacity: 0.48;
  border-style: dashed;
}

.cp-bt-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--cp-accent-soft);
  color: var(--cp-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.cp-bt-ico svg {
  width: 15px;
  height: 15px;
}

.cp-badge-tile strong {
  font-size: 11px;
  font-weight: 800;
  color: #09090b;
  line-height: 1.15;
}

.cp-badge-tile span:last-child {
  font-size: 9.5px;
  color: #71717a;
}

.cp-season-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
}

.cp-season-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 9px;
  border-radius: 11px;
  background: var(--cp-accent-soft);
  color: var(--cp-accent);
}

.cp-season-pill svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.cp-season-pill strong {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
}

.cp-season-pill span {
  display: block;
  font-size: 10px;
  opacity: 0.82;
}

/* Favoritos y Redes */
.cp-fav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cp-fav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 11px;
  background: #fafafa;
  border: 1px solid #eceef2;
}

.cp-fav-row strong {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: #09090b;
}

.cp-fav-row span {
  font-size: 10.5px;
  color: #71717a;
}

.cp-fav-visits {
  font-weight: 700;
  color: var(--cp-accent) !important;
}

.cp-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cp-social-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid #e4e4e7;
  background: #ffffff;
  color: #09090b;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.cp-social-chip svg {
  width: 14px;
  height: 14px;
}

/* Pie fijo modo demo */
.cp-demo-footer {
  flex-shrink: 0;
  border-top: 1px solid #eceef2;
  background: #ffffff;
  padding: 11px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cp-demo-footer-copy {
  min-width: 0;
}

.cp-demo-footer-copy strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #09090b;
}

.cp-demo-footer-copy span {
  display: block;
  font-size: 10.5px;
  line-height: 1.3;
  color: #71717a;
}

.cp-demo-auth-btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.cp-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #e4e4e7;
  background: #ffffff;
  color: #09090b;
}

.cp-auth-btn.is-apple {
  background: #09090b;
  border-color: #09090b;
  color: #ffffff;
}

.cp-auth-btn svg {
  width: 13px;
  height: 13px;
}

@media (max-width: 480px) {
  .cp-sheet {
    width: calc(100vw - 14px);
    height: 90vh;
    border-radius: 24px;
  }
  .cp-detail-grid,
  .cp-season-row {
    grid-template-columns: 1fr;
  }
  .cp-demo-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .cp-demo-auth-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .cp-auth-btn {
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   FASE D: TEXTOS INTERACTIVOS DEL ENCABEZADO + BOTTOM SHEET EDITORIAL
   ═══════════════════════════════════════════════════════════════════════ */
.sf-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sf-egg-text {
  cursor: pointer;
  border-radius: 4px;
  transition: opacity 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}

.sf-egg-text:hover,
.sf-egg-text:active {
  text-decoration: underline dotted rgba(9, 9, 11, 0.34);
  text-underline-offset: 4px;
}

.sf-egg-text:active {
  opacity: 0.7;
}

.sf-stat-item.sf-egg-stat {
  cursor: pointer;
  border-radius: 10px;
  padding: 3px 2px;
  transition: background 0.14s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.sf-stat-item.sf-egg-stat:active {
  background: rgba(9, 9, 11, 0.05);
  transform: scale(0.97);
}

@keyframes sfEggBreathe {
  0% { transform: scale(1); }
  45% { transform: scale(1.045); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}

#sf-rest-title.is-egg-breathe {
  display: inline-block;
  transform-origin: left center;
  animation: sfEggBreathe 1.05s cubic-bezier(0.22, 1, 0.36, 1) 1;
}

.sf-egg-hint {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #09090b;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.34s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.sf-egg-hint.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sf-egg-hint.hidden {
  display: none;
}

/* Bottom Sheet (#info-egg-sheet) */
.ies-overlay {
  position: fixed;
  inset: 0;
  z-index: 1225;
  background: rgba(9, 9, 11, 0.46);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.ies-overlay.open {
  opacity: 1;
}

.ies-overlay.hidden {
  display: none;
}

.ies-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: min(100vw, 480px);
  max-height: 82vh;
  z-index: 1230;
  background: #ffffff;
  color: #09090b;
  border-radius: 24px 24px 0 0;
  border: 1px solid #e4e4e7;
  box-shadow: 0 -16px 48px rgba(9, 9, 11, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translate(-50%, 100%);
  opacity: 1;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.ies-sheet.open {
  transform: translate(-50%, 0);
  opacity: 1;
}

.ies-sheet.hidden {
  display: none !important;
}

@media (min-width: 640px) {
  .ies-sheet {
    bottom: auto;
    top: 50%;
    border-radius: 24px;
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.96);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
  }
  .ies-sheet.open {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  .ies-grabber {
    display: none;
  }
}

.ies-grabber {
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: #d4d4d8;
  margin: 10px auto 2px;
  flex-shrink: 0;
}

.ies-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px 12px;
  border-bottom: 1px solid #eceef2;
  flex-shrink: 0;
}

.ies-kicker {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #71717a;
}

.ies-title {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  color: #09090b;
}

.ies-close {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #e4e4e7;
  background: #f4f4f5;
  color: #09090b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.ies-close svg {
  width: 15px;
  height: 15px;
}

.ies-body {
  padding: 14px 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ies-meta-card {
  background: #fafafa;
  border: 1px solid #eceef2;
  border-radius: 14px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ies-meta-card strong {
  font-size: 13.5px;
  font-weight: 800;
  color: #09090b;
}

.ies-meta-card span {
  font-size: 12px;
  color: #52525b;
}

.ies-action-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ies-action-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1.5px solid #e4e4e7;
  background: #ffffff;
  color: #09090b;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.ies-action-btn.active {
  border-color: #09090b;
  background: #fafafa;
}

.ies-ab-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f4f4f5;
  color: #09090b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ies-action-btn.active .ies-ab-ico {
  background: #09090b;
  color: #ffffff;
}

.ies-ab-ico svg {
  width: 17px;
  height: 17px;
}

.ies-ab-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ies-ab-copy strong {
  font-size: 13px;
  font-weight: 800;
  color: #09090b;
}

.ies-ab-copy span {
  font-size: 11px;
  color: #71717a;
}

.ies-ab-state {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid #d4d4d8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #52525b;
  flex-shrink: 0;
}

.ies-action-btn.active .ies-ab-state {
  background: #09090b;
  border-color: #09090b;
  color: #ffffff;
}

.ies-ab-state svg {
  width: 13px;
  height: 13px;
}

.ies-sub-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ies-sub-lbl {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #71717a;
}

.ies-related-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ies-related-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  border-radius: 11px;
  background: #fafafa;
  border: 1px solid #eceef2;
  font-size: 12.5px;
}

.ies-related-row span {
  font-size: 11.5px;
  color: #71717a;
}

.ies-lead {
  margin: 0;
  font-size: 13px;
  color: #3f3f46;
}

.ies-price-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ies-price-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 13px;
  border: 1px solid #eceef2;
  background: #fafafa;
}

.ies-price-row.is-current {
  border: 1.5px solid #09090b;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(9, 9, 11, 0.06);
}

.ies-pr-sym {
  min-width: 44px;
  font-size: 15px;
  font-weight: 800;
  color: #09090b;
}

.ies-pr-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ies-pr-copy strong {
  font-size: 13px;
  font-weight: 800;
  color: #09090b;
}

.ies-pr-copy span {
  font-size: 11.5px;
  color: #52525b;
}

.ies-pr-badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: #09090b;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
}

.ies-footnote {
  margin: 0;
  font-size: 11px;
  color: #71717a;
  line-height: 1.4;
}

/* Mapas */
.ies-map-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ies-map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 10px;
  border-radius: 12px;
  border: 1px solid #e4e4e7;
  background: #ffffff;
  color: #09090b;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.ies-map-btn.is-dark {
  background: #09090b;
  border-color: #09090b;
  color: #ffffff;
}

.ies-map-btn svg {
  width: 15px;
  height: 15px;
}

.ies-copy-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid #e4e4e7;
  background: #fafafa;
  color: #18181b;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.ies-copy-btn svg {
  width: 14px;
  height: 14px;
}

/* Opiniones */
.ies-review-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fafafa;
  border: 1px solid #eceef2;
}

.ies-rh-score {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.ies-rh-score strong {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: #09090b;
}

.ies-rh-stars,
.ies-rc-stars {
  display: inline-flex;
  gap: 2px;
}

.ies-star {
  width: 13px;
  height: 13px;
  color: #d4d4d8;
  display: inline-flex;
}

.ies-star.is-on {
  color: #f59e0b;
}

.ies-star svg {
  width: 13px;
  height: 13px;
}

.ies-rh-score span {
  font-size: 11px;
  color: #71717a;
}

.ies-rh-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ies-bar-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: #71717a;
}

.ies-bar-row div {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: #e4e4e7;
  overflow: hidden;
}

.ies-bar-row i {
  display: block;
  height: 100%;
  background: #09090b;
  border-radius: 999px;
}

.ies-filter-row {
  display: flex;
  gap: 7px;
}

.ies-filter-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #e4e4e7;
  background: #ffffff;
  color: #52525b;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.ies-filter-pill.active {
  background: #09090b;
  border-color: #09090b;
  color: #ffffff;
}

.ies-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.ies-review-card {
  padding: 10px 12px;
  border-radius: 13px;
  border: 1px solid #eceef2;
  background: #ffffff;
}

.ies-rc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 3px;
}

.ies-rc-head span {
  font-size: 11px;
  color: #71717a;
}

.ies-review-card p {
  margin: 5px 0 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: #3f3f46;
}

.ies-composer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: #fafafa;
  border: 1px solid #e4e4e7;
}

.ies-star-picker {
  display: flex;
  gap: 6px;
}

.ies-pick-star {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #e4e4e7;
  background: #ffffff;
  color: #d4d4d8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ies-pick-star.active {
  color: #f59e0b;
  border-color: #fde68a;
  background: #fffbeb;
}

.ies-pick-star svg {
  width: 16px;
  height: 16px;
}

.ies-review-input {
  width: 100%;
  border-radius: 11px;
  border: 1px solid #e4e4e7;
  padding: 9px 11px;
  font-size: 13px;
  font-family: inherit;
  resize: none;
  outline: none;
}

.ies-composer-actions {
  display: flex;
  gap: 8px;
}

.ies-btn-ghost {
  flex: 0.7;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #e4e4e7;
  background: #ffffff;
  color: #18181b;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.ies-btn-solid {
  flex: 1.3;
  height: 42px;
  border-radius: 999px;
  border: none;
  background: #09090b;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
}

.ies-btn-solid svg {
  width: 15px;
  height: 15px;
}

/* Tiempos de preparación */
.ies-load-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 13px;
  border: 1px solid #e4e4e7;
}

.ies-load-pill.is-calm { background: #f0fdf4; border-color: #bbf7d0; }
.ies-load-pill.is-normal { background: #fffbeb; border-color: #fde68a; }
.ies-load-pill.is-busy { background: #fff1f2; border-color: #fecdd3; }

.ies-lp-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.ies-load-pill.is-calm .ies-lp-dot { background: #16a34a; }
.ies-load-pill.is-normal .ies-lp-dot { background: #d97706; }
.ies-load-pill.is-busy .ies-lp-dot { background: #e11d48; }

.ies-load-pill strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #09090b;
}

.ies-load-pill span {
  display: block;
  font-size: 11.5px;
  color: #52525b;
}

.ies-cat-times {
  display: flex;
  flex-direction: column;
  border: 1px solid #eceef2;
  border-radius: 14px;
  overflow: hidden;
}

.ies-ct-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 12.5px;
  color: #3f3f46;
  background: #ffffff;
  border-bottom: 1px solid #eceef2;
}

.ies-ct-row:last-child {
  border-bottom: none;
}

.ies-ct-row strong {
  color: #09090b;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}

/* Atención en mesa */
.ies-table-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ies-table-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 10px;
  border-radius: 13px;
  border: 1px solid #e4e4e7;
  background: #ffffff;
  color: #09090b;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

.ies-table-btn.is-primary {
  background: #09090b;
  border-color: #09090b;
  color: #ffffff;
}

.ies-table-btn svg {
  width: 15px;
  height: 15px;
}

.ies-policy-box {
  background: #fafafa;
  border: 1px solid #eceef2;
  border-radius: 13px;
  padding: 11px 13px;
}

.ies-policy-box strong {
  display: block;
  font-size: 12.5px;
  color: #09090b;
  margin-bottom: 5px;
}

.ies-policy-box ul {
  margin: 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  line-height: 1.38;
  color: #52525b;
}

/* ═══════════════════════════════════════════════════════════════════════
   FASE E: CROWED PASSPORT COMPLETO (PORTADA + 9 PÁGINAS + SELLO SLAM)
   ═══════════════════════════════════════════════════════════════════════ */
.pp-overlay {
  position: fixed;
  inset: 0;
  z-index: 1245;
  background: rgba(9, 9, 11, 0.54);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.pp-overlay.open { opacity: 1; }
.pp-overlay.hidden { display: none; }

.pp-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(94vw, 470px);
  height: min(90vh, 760px);
  z-index: 1250;
  background: #faf9f6;
  color: #09090b;
  border-radius: 24px;
  border: 1px solid #e4e4e7;
  box-shadow: 0 32px 84px rgba(9, 9, 11, 0.34);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translate(-50%, -46%) scale(0.95);
  opacity: 0;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
}

.pp-modal.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.pp-modal.hidden {
  display: none !important;
}

.pp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px 10px;
  background: #ffffff;
  border-bottom: 1px solid #eceef2;
  flex-shrink: 0;
}

.pp-tb-left {
  min-width: 0;
}

.pp-tb-kicker {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #71717a;
}

.pp-tb-left strong {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #09090b;
}

.pp-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #e4e4e7;
  background: #f4f4f5;
  color: #09090b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.pp-close-btn svg {
  width: 15px;
  height: 15px;
}

.pp-nav-tabs {
  display: flex;
  gap: 6px;
  padding: 8px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  background: #ffffff;
  border-bottom: 1px solid #eceef2;
  flex-shrink: 0;
}

.pp-nav-tabs::-webkit-scrollbar { display: none; }

.pp-nav-tab {
  flex: 0 0 auto;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid #e4e4e7;
  background: #fafafa;
  color: #52525b;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.pp-nav-tab.active {
  background: #09090b;
  border-color: #09090b;
  color: #ffffff;
}

.pp-stage {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 15px 16px;
}

@keyframes ppFlipNext {
  from { opacity: 0; transform: translateX(22px) rotateY(-4deg); }
  to { opacity: 1; transform: translateX(0) rotateY(0); }
}

@keyframes ppFlipPrev {
  from { opacity: 0; transform: translateX(-22px) rotateY(4deg); }
  to { opacity: 1; transform: translateX(0) rotateY(0); }
}

.pp-page-canvas.anim-next { animation: ppFlipNext 0.28s cubic-bezier(0.22, 1, 0.36, 1) both; }
.pp-page-canvas.anim-prev { animation: ppFlipPrev 0.28s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* Portada de cuero e hilo dorado */
.pp-cover-card {
  background: linear-gradient(160deg, #111114 0%, #1c1917 65%, #27272a 100%);
  border-radius: 18px;
  padding: 12px;
  color: #f8fafc;
  box-shadow: 0 18px 40px rgba(9, 9, 11, 0.28);
}

.pp-cover-inner {
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 12px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pp-cover-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pp-cover-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.pp-cover-head span {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #eab308;
}

.pp-cover-head strong {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.pp-cover-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.24);
}

.pp-cover-av {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid #eab308;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pp-cover-av img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.pp-cover-user h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.pp-cover-user strong {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: #fde047;
}

.pp-cover-user span {
  display: block;
  font-size: 11px;
  color: #a1a1aa;
}

.pp-cover-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pp-cover-meta span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #a1a1aa;
}

.pp-cover-meta strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #ffffff;
}

.pp-cover-qr-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(212, 175, 55, 0.35);
}

.pp-qr-box {
  width: 48px;
  height: 48px;
  padding: 4px;
  border-radius: 8px;
  background: #111114;
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #fde047;
  flex-shrink: 0;
}

.pp-qr-box svg { width: 100%; height: 100%; }

.pp-qr-copy strong {
  display: block;
  font-size: 11.5px;
  color: #ffffff;
}

.pp-qr-copy span {
  display: block;
  font-size: 10.5px;
  line-height: 1.3;
  color: #a1a1aa;
}

.pp-open-book-btn {
  width: 100%;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #eab308;
  background: #eab308;
  color: #09090b;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

/* Cabeceras de páginas */
.pp-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.pp-page-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #09090b;
}

.pp-page-head p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #71717a;
}

.pp-demo-stamp-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border-radius: 999px;
  border: none;
  background: #09090b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.pp-demo-stamp-btn svg { width: 13px; height: 13px; }

/* Sellos entintados + animación Stamp Slam */
.pp-stamp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@keyframes ppStampSlam {
  0% { opacity: 0; transform: scale(2.1) rotate(-18deg); }
  65% { opacity: 1; transform: scale(0.92) rotate(-2deg); }
  100% { opacity: 1; transform: scale(1) rotate(var(--st-rot, -3deg)); }
}

@keyframes ppInkRing {
  0% { opacity: 0.7; transform: scale(0.5); }
  100% { opacity: 0; transform: scale(1.65); }
}

.pp-stamp-seal {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  padding: 13px 10px;
  border-radius: 14px;
  border: 2px solid currentColor;
  background: rgba(255, 255, 255, 0.72);
  transform: rotate(var(--st-rot, -2deg));
  box-shadow: inset 0 0 0 2px #faf9f6, inset 0 0 0 3px currentColor;
}

.pp-stamp-seal.is-fresh-slam {
  animation: ppStampSlam 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pp-ink-ring {
  position: absolute;
  inset: -4px;
  border-radius: 16px;
  border: 2px solid currentColor;
  pointer-events: none;
  animation: ppInkRing 0.55s ease-out forwards;
}

.pp-stamp-seal.is-ink-terracotta { color: #9a3412; }
.pp-stamp-seal.is-ink-ink { color: #18181b; }
.pp-stamp-seal.is-ink-emerald { color: #166534; }
.pp-stamp-seal.is-ink-indigo { color: #3730a3; }
.pp-stamp-seal.is-ink-rose { color: #9f1239; }

.pp-st-top {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.pp-stamp-seal strong {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
}

.pp-st-zone {
  font-size: 10.5px;
  opacity: 0.82;
}

.pp-st-count {
  margin-top: 2px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 10px;
  font-weight: 800;
}

.pp-policy-note {
  margin: 14px 0 0;
  font-size: 11px;
  text-align: center;
  color: #71717a;
}

/* Quiero ir (sellos grises) */
.pp-wish-seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  padding: 13px 10px;
  border-radius: 14px;
  border: 1.5px dashed #a1a1aa;
  background: #f4f4f5;
  color: #71717a;
  transform: rotate(var(--st-rot, 0deg));
}

.pp-ws-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.pp-wish-seal strong {
  font-size: 13.5px;
  font-weight: 800;
  color: #52525b;
}

.pp-wish-seal span {
  font-size: 11px;
}

/* Sabores del mundo */
.pp-cuisine-list,
.pp-dish-list,
.pp-routes-list,
.pp-badges-list,
.pp-cosmetics-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pp-cuisine-row {
  background: #ffffff;
  border: 1px solid #eceef2;
  border-radius: 12px;
  padding: 9px 12px;
}

.pp-cuisine-row.is-top {
  border: 1.5px solid #09090b;
  background: #fffbeb;
}

.pp-cui-top {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 5px;
}

.pp-cui-bar {
  height: 5px;
  border-radius: 999px;
  background: #e4e4e7;
  overflow: hidden;
}

.pp-cui-fill {
  height: 100%;
  background: #09090b;
  border-radius: 999px;
}

/* Platillos probados */
.pp-dish-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #eceef2;
}

.pp-dish-info strong {
  display: block;
  font-size: 13px;
  color: #09090b;
}

.pp-dish-info span {
  font-size: 11px;
  color: #71717a;
}

.pp-heart-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #e4e4e7;
  background: #fafafa;
  color: #71717a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pp-heart-btn.active {
  color: #e11d48;
  background: #fff1f2;
  border-color: #fecdd3;
}

.pp-heart-btn svg { width: 16px; height: 16px; }

/* Rutas */
.pp-route-card {
  background: #ffffff;
  border: 1px solid #eceef2;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pp-rt-top {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 800;
}

.pp-rt-reward {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #92400e;
}

.pp-rt-reward svg { width: 13px; height: 13px; }

.pp-rt-bar {
  height: 6px;
  border-radius: 999px;
  background: #e4e4e7;
  overflow: hidden;
}

.pp-rt-fill {
  height: 100%;
  background: #09090b;
  border-radius: 999px;
}

.pp-rt-stops {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.pp-rt-stop {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px dashed #d4d4d8;
  font-size: 10.5px;
  color: #71717a;
}

.pp-rt-stop.is-done {
  border-style: solid;
  border-color: #09090b;
  background: #09090b;
  color: #ffffff;
}

.pp-rt-stop.is-done svg { width: 11px; height: 11px; }

/* Badges lista */
.pp-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #eceef2;
}

.pp-badge-row.is-locked { opacity: 0.56; }

.pp-br-ico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #f4f4f5;
  color: #09090b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pp-br-ico svg { width: 16px; height: 16px; }

.pp-br-copy { flex: 1; min-width: 0; }
.pp-br-copy strong { display: block; font-size: 12.5px; color: #09090b; }
.pp-br-copy span { display: block; font-size: 11px; color: #71717a; }

.pp-br-bar {
  height: 4px;
  border-radius: 999px;
  background: #e4e4e7;
  margin-top: 4px;
  overflow: hidden;
}

.pp-br-bar div { height: 100%; background: #09090b; }

.pp-br-state {
  font-size: 10.5px;
  font-weight: 800;
  color: #09090b;
}

/* Cosméticos */
.pp-cos-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #eceef2;
}

.pp-cos-row.is-locked { opacity: 0.55; }
.pp-cos-type { display: block; font-size: 9px; font-weight: 800; letter-spacing: 0.08em; color: #71717a; }
.pp-cos-info strong { display: block; font-size: 13px; color: #09090b; }
.pp-cos-info span:last-child { display: block; font-size: 11px; color: #52525b; }

.pp-cos-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  background: #09090b;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.pp-cos-lock {
  font-size: 11px;
  font-weight: 700;
  color: #71717a;
}

/* Stats bento */
.pp-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.pp-stat-card {
  background: #ffffff;
  border: 1px solid #eceef2;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pp-stat-card span {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: #71717a;
}

.pp-stat-card strong {
  font-size: 19px;
  font-weight: 800;
  color: #09090b;
}

.pp-stat-card small {
  font-size: 11px;
  color: #52525b;
}

/* Momentos timeline */
.pp-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 12px;
  border-left: 2px solid #e4e4e7;
}

.pp-tl-item {
  position: relative;
  padding-left: 10px;
}

.pp-tl-dot {
  position: absolute;
  left: -18px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #09090b;
  border: 2px solid #faf9f6;
}

.pp-tl-date {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #71717a;
}

.pp-tl-copy strong {
  display: block;
  font-size: 13px;
  color: #09090b;
}

.pp-tl-copy p {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: #52525b;
}

/* Footer paginador */
.pp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px 13px;
  background: #ffffff;
  border-top: 1px solid #eceef2;
  flex-shrink: 0;
}

.pp-pager-btn {
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid #e4e4e7;
  background: #ffffff;
  color: #09090b;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.pp-pager-btn.is-dark {
  background: #09090b;
  border-color: #09090b;
  color: #ffffff;
}

.pp-pager-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pp-pager-ind {
  font-size: 11px;
  font-weight: 700;
  color: #71717a;
}

@media (max-width: 480px) {
  .pp-modal {
    width: calc(100vw - 14px);
    height: 90vh;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   FASE F: MENÚ DE 3 BARRAS + MONEDERO MULTI-RESTAURANTE
   ═══════════════════════════════════════════════════════════════════════ */
.client-menu-btn {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #e4e4e7;
  background: #ffffff;
  color: #09090b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.16s ease, background 0.16s ease;
}

.client-menu-btn:hover { background: #f4f4f5; }
.client-menu-btn:active { transform: scale(0.94); }
.client-menu-btn svg { width: 19px; height: 19px; }

.cmb-order-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #16a34a;
  border: 1.5px solid #ffffff;
}

.cmb-order-dot.hidden { display: none; }

/* Overlay & Drawer lateral */
.amd-overlay {
  position: fixed;
  inset: 0;
  z-index: 1235;
  background: rgba(9, 9, 11, 0.46);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.amd-overlay.open { opacity: 1; }
.amd-overlay.hidden { display: none; }

.amd-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(92vw, 390px);
  z-index: 1240;
  background: #ffffff;
  color: #09090b;
  box-shadow: -20px 0 60px rgba(9, 9, 11, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.amd-drawer.open { transform: translateX(0); }
.amd-drawer.hidden { display: none !important; }

.amd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid #eceef2;
  background: #ffffff;
  flex-shrink: 0;
}

.amd-head-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.amd-head-brand img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.amd-head-brand span {
  font-size: 16px;
  font-weight: 800;
  color: #09090b;
}

.amd-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  border: 1px solid #e4e4e7;
  background: #f8fafc;
  color: #09090b;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.amd-back-btn svg { width: 15px; height: 15px; }

.amd-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #e4e4e7;
  background: #f4f4f5;
  color: #09090b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.amd-close-btn svg { width: 15px; height: 15px; }

.amd-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 15px 24px;
  background: #f8fafc;
}

@keyframes amdSubSlide {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

.amd-canvas.is-sub {
  animation: amdSubSlide 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Strip perfil y orden activa */
.amd-profile-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 15px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  margin-bottom: 12px;
  cursor: pointer;
}

.amd-ps-av {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #f4f4f5;
  border: 1.5px solid #09090b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.amd-ps-av img { width: 25px; height: 25px; object-fit: contain; }
.amd-ps-copy { flex: 1; min-width: 0; }
.amd-ps-copy strong { display: block; font-size: 13px; font-weight: 800; color: #09090b; }
.amd-ps-copy span { display: block; font-size: 11px; color: #71717a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.amd-live-order-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 14px;
  border: none;
  background: #09090b;
  color: #ffffff;
  text-align: left;
  margin-bottom: 14px;
  cursor: pointer;
}

.amd-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  flex-shrink: 0;
}

.amd-live-order-card div { flex: 1; min-width: 0; }
.amd-live-order-card strong { display: block; font-size: 13px; }
.amd-live-order-card span { display: block; font-size: 11px; color: #d4d4d8; }
.amd-live-cta { font-size: 12px; font-weight: 800; color: #ffffff !important; }

/* Secciones y filas del menú */
.amd-sec-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
}

.amd-sec-title {
  padding: 0 4px 2px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: #71717a;
}

.amd-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 13px;
  border: 1px solid #eceef2;
  background: #ffffff;
  color: #09090b;
  text-align: left;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.amd-row:hover {
  background: #fafafa;
  border-color: #d4d4d8;
}

.amd-row-ico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #f4f4f5;
  color: #09090b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.amd-row-ico svg { width: 16px; height: 16px; }

.amd-row-copy { flex: 1; min-width: 0; }
.amd-row-copy strong { display: block; font-size: 13px; font-weight: 700; color: #09090b; }
.amd-row-copy span { display: block; font-size: 11px; color: #71717a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.amd-row-badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f4f4f5;
  color: #09090b;
  font-size: 10.5px;
  font-weight: 800;
}

.amd-row-chev {
  width: 15px;
  height: 15px;
  color: #a1a1aa;
  flex-shrink: 0;
  display: inline-flex;
}

.amd-row-chev svg { width: 15px; height: 15px; }

/* Sub-paneles */
.amd-sub-head { margin-bottom: 12px; }
.amd-sub-head h3 { margin: 0; font-size: 18px; font-weight: 800; color: #09090b; }
.amd-sub-head p { margin: 2px 0 0; font-size: 12px; color: #71717a; }

.amd-card-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.amd-info-card {
  background: #ffffff;
  border: 1px solid #eceef2;
  border-radius: 14px;
  padding: 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.amd-info-card strong { font-size: 13.5px; font-weight: 800; color: #09090b; }
.amd-info-card span { font-size: 12px; line-height: 1.4; color: #52525b; }

.amd-btn-solid {
  width: 100%;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: #09090b;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

.amd-btn-ghost {
  width: 100%;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #e4e4e7;
  background: #fafafa;
  color: #18181b;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.amd-muted-tag {
  font-size: 11px !important;
  font-weight: 700;
  color: #71717a !important;
}

/* Monedero multi-restaurante */
.amd-wallet-card {
  background: #ffffff;
  border: 1px solid #eceef2;
  border-radius: 15px;
  padding: 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.amd-wc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.amd-wc-top strong { font-size: 14.5px; font-weight: 800; color: #09090b; }
.amd-wc-top span {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f4f4f5;
  color: #09090b;
}

.amd-wc-pts {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.amd-wc-pts span {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #52525b;
}

.amd-wc-bar {
  height: 6px;
  border-radius: 999px;
  background: #e4e4e7;
  overflow: hidden;
}

.amd-wc-bar div {
  height: 100%;
  background: #09090b;
  border-radius: 999px;
}

.amd-wc-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #52525b;
}

.amd-wc-foot em {
  font-style: normal;
  color: #71717a;
  flex-shrink: 0;
}

.amd-code-box {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #09090b !important;
  background: #f4f4f5;
  padding: 8px 12px;
  border-radius: 10px;
  text-align: center;
}

.amd-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.amd-chip {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid #e4e4e7;
  background: #fafafa;
  color: #3f3f46;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.amd-chip.active {
  background: #09090b;
  border-color: #09090b;
  color: #ffffff;
}

.amd-select-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 13px;
  border: 1.5px solid #e4e4e7;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.amd-select-card.active {
  border-color: #09090b;
  background: #fafafa;
}

.amd-select-card strong { display: block; font-size: 13.5px; color: #09090b; }
.amd-select-card span { display: block; font-size: 11px; color: #71717a; }

.amd-sc-radio {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1.5px solid #d4d4d8;
  flex-shrink: 0;
}

.amd-select-card.active .amd-sc-radio {
  border-color: #09090b;
  background: #09090b;
  box-shadow: inset 0 0 0 4px #ffffff;
}

.amd-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 13px;
  background: #ffffff;
  border: 1px solid #eceef2;
}

.amd-toggle-row strong { display: block; font-size: 13px; color: #09090b; }
.amd-toggle-row span { display: block; font-size: 11px; color: #71717a; }

.amd-switch {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  border: none;
  background: #d4d4d8;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s ease;
}

.amd-switch span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.amd-switch.on { background: #09090b; }
.amd-switch.on span { transform: translateX(20px); }

.amd-inp,
.amd-textarea {
  width: 100%;
  border-radius: 11px;
  border: 1px solid #e4e4e7;
  background: #fafafa;
  color: #09090b;
  padding: 9px 11px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

body.crowed-large-text {
  font-size: 108%;
}

/* ═══════════════════════════════════════════════════════════════════════
   FASE G: PULIDO FINAL (CAPAS TOAST, ACCESIBILIDAD Y REDUCED MOTION)
   ═══════════════════════════════════════════════════════════════════════ */
.toast,
body.apple-warm-theme #order-toast.toast {
  z-index: 1300 !important;
  max-width: min(calc(100vw - 28px), 420px);
  white-space: normal;
  line-height: 1.32;
  padding: 9px 16px;
  text-align: left;
}

.push-notification {
  z-index: 1295 !important;
}

.client-avatar-btn:focus-visible,
.client-menu-bars-btn:focus-visible,
.sf-egg-trigger:focus-visible,
.amd-row:focus-visible,
.pp-tab-btn:focus-visible,
.cp-swatch:focus-visible,
.cp-frame-btn:focus-visible,
.cp-banner-btn:focus-visible,
.cp-av-mode-btn:focus-visible {
  outline: 2px solid #09090b;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .sf-egg-breathe,
  .pp-stamp.is-slamming {
    animation: none !important;
  }
  .cp-sheet,
  .cp-overlay,
  .ies-sheet,
  .ies-overlay,
  .pp-modal,
  .pp-overlay,
  .amd-drawer,
  .amd-overlay,
  .sf-seg-thumb {
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   DEMO PÁGINA ÚNICA UNIFICADA (EN MESA · PICKUP · DELIVERY + SELECTOR MESA)
   ═══════════════════════════════════════════════════════════════════════ */
.sf-controls-row {
  flex-wrap: wrap;
  gap: 8px;
}

.sf-seg-switch.is-unified {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  flex: 1 1 100%;
  width: 100%;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  border-radius: 999px;
  padding: 3px;
  min-width: 0;
}

.sf-seg-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px) / 3);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(9, 9, 11, 0.12);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
  pointer-events: none;
}

.sf-seg-switch.is-unified[data-mode="dine_in"] .sf-seg-thumb {
  transform: translateX(0%);
}

.sf-seg-switch.is-unified[data-mode="pickup"] .sf-seg-thumb {
  transform: translateX(100%);
}

.sf-seg-switch.is-unified[data-mode="delivery"] .sf-seg-thumb {
  transform: translateX(200%);
}

.sf-seg-switch.is-unified .sf-seg-btn {
  position: relative;
  z-index: 1;
  background: transparent !important;
  box-shadow: none !important;
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 700;
  color: #52525b;
  min-width: 0;
}

.sf-seg-switch.is-unified .sf-seg-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sf-seg-switch.is-unified .sf-seg-btn.active {
  color: #09090b;
}

.sf-controls-row .sf-action-pill {
  flex: 1 1 100%;
  width: 100%;
}

@media (min-width: 720px) {
  .sf-controls-row {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .sf-seg-switch.is-unified {
    flex: 2.15 1 0;
    width: auto;
  }
  .sf-controls-row .sf-action-pill {
    flex: 1 1 0;
    width: auto;
  }
}

.sf-stat-top.is-prompt strong {
  color: #09090b;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

/* Hoja inferior: ¿En qué mesa estás? + Cambiar mesa */
.ies-meta-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ies-change-table-btn {
  border: 1px solid #d4d4d8;
  background: #ffffff;
  color: #09090b;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.ies-change-table-btn:hover {
  background: #f4f4f5;
  border-color: #09090b;
}

.ies-table-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fafafa;
  border: 1px solid #e4e4e7;
  border-radius: 14px;
  padding: 6px 6px 6px 12px;
}

.ies-tir-prefix {
  font-size: 13px;
  font-weight: 800;
  color: #71717a;
  flex-shrink: 0;
}

.ies-tir-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 800;
  color: #09090b;
  outline: none;
  padding: 6px 4px;
}

.ies-tir-btn {
  border: none;
  background: #09090b;
  color: #ffffff;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.ies-table-chips-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #71717a;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.ies-table-chips-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.ies-table-zone-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.ies-table-chip {
  height: 42px;
  border-radius: 12px;
  border: 1px solid #e4e4e7;
  background: #ffffff;
  color: #09090b;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease, transform 0.12s ease;
}

.ies-table-chip:hover {
  border-color: #a1a1aa;
  background: #fafafa;
}

.ies-table-chip.is-active {
  background: #09090b;
  border-color: #09090b;
  color: #ffffff;
}

/* KDS: Confirmación de mesa antes de empezar a cocinar */
.order-card.is-awaiting-table-confirm {
  border-color: #fb923c !important;
  box-shadow: 0 0 0 2px rgba(251, 146, 60, 0.16), 0 8px 24px rgba(15, 23, 42, 0.06);
}

.kds-fulfillment-banner.mode-verify-table {
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11.5px;
  font-weight: 800;
}

.kds-fulfillment-banner.mode-verify-table .kds-fulfillment-sub {
  font-size: 11px;
  font-weight: 600;
  color: #7c2d12;
}
