* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #111;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  overscroll-behavior: none;
}

/* SCREENS */
.screen { display: none; min-height: 100vh; flex-direction: column; }
.screen.active { display: flex; }

/* IDIOMA */
.lang-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}
.logo-text {
  font-family: Georgia, serif;
  font-size: 2.4rem;
  letter-spacing: 3px;
  color: #fff;
}
.lang-subtitle {
  color: #aaa;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}
.lang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 1rem 1rem 2rem;
  flex: 1;
  align-content: start;
}
.lang-btn {
  position: relative;
  border: none;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 3/4;
  transition: transform 0.15s;
}
.lang-btn img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lang-btn::after { display: none; }
.lang-btn:active { transform: scale(0.95); }
.lang-name {
  position: relative;
  z-index: 2;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  padding: 8px 4px;
  width: 100%;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  letter-spacing: 0.4px;
}
.lang-footer {
  text-align: center;
  color: #444;
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 1rem;
}

/* HEADER */
.app-header {
  background: #1a1a1a;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 1px solid #333;
  min-height: 56px;
}
.app-header-brand {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
#lang-rest-logo, #cat-rest-logo {
  border-radius: 12px;
}
.restaurante-nombre {
  font-family: Georgia, serif;
  font-size: 1rem;
  color: #fff;
  letter-spacing: 1px;
}
.app-header-by {
  font-size: 0.55rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #666;
  white-space: nowrap;
}
.back-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  line-height: 1;
  white-space: nowrap;
}
.salir-btn {
  background: none;
  border: 1px solid #444;
  border-radius: 6px;
  color: #666;
  font-size: 0.85rem;
  padding: 4px 8px;
  cursor: pointer;
  line-height: 1;
}
.salir-btn:active { color: #fff; border-color: #666; }
.lang-change-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 10px;
  margin-left: auto;
  line-height: 1;
  transition: background 0.2s;
}
.lang-change-btn:hover { background: rgba(255,255,255,0.15); }
.cat-titulo {
  font-size: 1.1rem;
  font-weight: 600;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-input {
  flex: 1;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  padding: 0.4rem 0.8rem;
  outline: none;
}

/* CATEGORÍAS */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 1rem;
  padding-bottom: 90px;
}
.cat-card {
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.15s, opacity 0.2s;
  min-height: 130px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.cat-card:active { transform: scale(0.97); }

/* Degradé suave solo abajo — foto nítida arriba */
.cat-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(0,0,0,0.65) 100%);
  border-radius: inherit;
  pointer-events: none;
}
.cat-card-img:active::after {
  background: linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.72) 100%);
}

/* Texto encima del degradé */
.cat-card-img > * { position: relative; z-index: 1; padding-bottom: 0.25rem; text-shadow: 0 1px 4px rgba(0,0,0,0.8); }

/* PESTAÑAS DE CATEGORÍA (navegación estilo POS/MyRest, sin volver atrás) */
/* Flotan pegadas arriba al hacer scroll dentro de una categoría larga, para
   no tener que volver arriba para cambiar de categoría. */
.cat-tabs-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #111;
}
.cat-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0.7rem 0.8rem 0.6rem;
  scrollbar-width: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs-arrow {
  position: absolute;
  top: 0;
  bottom: 0.6rem;
  width: 32px;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.cat-tabs-arrow-left {
  left: 0;
  background: linear-gradient(to right, #111 40%, transparent);
  justify-content: flex-start;
  padding-left: 2px;
}
.cat-tabs-arrow-right {
  right: 0;
  background: linear-gradient(to left, #111 40%, transparent);
  justify-content: flex-end;
  padding-right: 2px;
}
body.tema-dia .cat-tabs-arrow-left { background: linear-gradient(to right, #fff 40%, transparent); color: #333; }
body.tema-dia .cat-tabs-arrow-right { background: linear-gradient(to left, #fff 40%, transparent); color: #333; }
body.tema-calido .cat-tabs-arrow-left { background: linear-gradient(to right, #150c04 40%, transparent); color: #d4b896; }
body.tema-calido .cat-tabs-arrow-right { background: linear-gradient(to left, #150c04 40%, transparent); color: #d4b896; }
.cat-tab {
  flex-shrink: 0;
  background: #1e1e1e;
  border: 1.5px solid #333;
  border-radius: 20px;
  color: #ccc;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.cat-tab.active {
  background: var(--cat-tab-color, #4CAF50);
  border-color: var(--cat-tab-color, #4CAF50);
  color: #111;
}
body.tema-dia .cat-tab { background: #f0f0f2; border-color: #ddd; color: #444; }
body.tema-dia .cat-tab.active { color: #111; }
body.tema-calido .cat-tab { background: #201408; border-color: #503828; color: #d4b896; }
body.tema-calido .cat-tab.active { color: #1a0f05; }

/* MENÚS DEL DÍA — tira horizontal aparte de las pestañas de categoría */
.menu-dia-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0.7rem 0.8rem 0;
  scrollbar-width: none;
}
.menu-dia-strip::-webkit-scrollbar { display: none; }
.menu-dia-chip {
  flex-shrink: 0;
  width: 160px;
  min-height: 76px;
  border-radius: 10px;
  border: 2px solid #f59e0b;
  background: #f59e0b22;
  color: #f59e0b;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}
.menu-dia-chip-img {
  background-size: cover;
  background-position: center;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  position: relative;
}
.menu-dia-chip-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.65) 100%);
  border-radius: inherit;
}
.menu-dia-chip-img > * { position: relative; z-index: 1; }
.menu-dia-chip-nombre { font-size: 0.85rem; font-weight: 700; }
.menu-dia-chip-precio { font-size: 0.68rem; opacity: 0.8; }

/* PLATOS */
.platos-list {
  padding: 0.5rem;
  padding-bottom: 90px;
}
.plato-card {
  background: #1e1e1e;
  border-radius: 12px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.plato-card--en-pedido { border-color: var(--app-accent); }
.plato-card-top {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  padding: 0;
}
.plato-img-wrap {
  position: relative;
  line-height: 0;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}
.plato-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 0;
  flex-shrink: 0;
  display: block;
}
.plato-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.68));
  padding: 24px 14px 10px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.plato-info { flex: 1; min-width: 0; padding: 0.75rem 1rem 0.6rem; }
/* Tira inferior — agregar */
.plato-strip-add {
  padding: 0.5rem 1rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
  transition: filter 0.12s;
  letter-spacing: 0.2px;
}
.plato-strip-add:active { filter: brightness(0.82); }
/* Tira inferior — cantidad */
.plato-strip-qty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.38rem 0.5rem;
  background: rgba(255,255,255,0.04);
  border-top: 2px solid transparent;
}
/* Tira inferior — agotado */
.plato-strip-agotado {
  padding: 0.45rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.plato-agotado { pointer-events: none; opacity: 0.5; }
.plato-agotado-badge { display: none; } /* reemplazado por strip */
.plato-en-pedido {
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 5px;
}
.plato-info { flex: 1; }
.plato-nombre {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 3px;
}
.plato-desc {
  font-size: 0.78rem;
  color: #999;
  margin-bottom: 4px;
  line-height: 1.4;
}
.plato-ings {
  font-size: 0.72rem;
  color: #666;
}
.plato-precio { font-size: 0.9rem; color: #ccc; font-weight: 500; }
.plato-info-btn {
  background: none;
  border: 1px solid #666;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  color: #aaa;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 0.15s, color 0.15s, border-color 0.15s;
}
.plato-info-btn:hover, .plato-info-btn:active { opacity: 1; color: #fff; border-color: #999; }
.plato-alerg {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}
.alerg-icon {
  font-size: 0.7rem;
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 2px 6px;
  color: #aaa;
  white-space: nowrap;
}
/* Badge de alérgenos en el modal de detalle — visible en todos los temas */
.alerg-badge {
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.4);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #f59e0b;
  white-space: nowrap;
}
.plato-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #333;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-num {
  min-width: 24px;
  text-align: center;
  font-size: 0.9rem;
}
.edit-ing-btn {
  background: none;
  border: 1px solid #444;
  border-radius: 6px;
  color: #aaa;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 3px 8px;
  margin-left: 4px;
}

/* CARRITO */
.carrito-items {
  padding: 0.8rem;
  padding-bottom: 10px;
}
.carrito-cat-titulo {
  font-size: 0.8rem;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 12px 0 6px;
}
.carrito-item {
  background: #1e1e1e;
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.carrito-item-nombre { font-size: 0.9rem; }
.carrito-item-detalle { font-size: 0.75rem; color: #888; margin-top: 2px; }
.carrito-item-precio { font-size: 0.9rem; color: #ccc; white-space: nowrap; }
.carrito-footer {
  padding: 0.8rem 1rem;
  padding-bottom: calc(0.8rem + 64px);
  background: #1a1a1a;
  border-top: 1px solid #333;
}
.obs-textarea {
  width: 100%;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  padding: 0.6rem 0.8rem;
  resize: none;
  height: 70px;
  margin-bottom: 10px;
  outline: none;
}
.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.btn-volver-menu {
  width: 100%;
  background: transparent;
  border: 1.5px solid var(--app-accent);
  border-radius: 10px;
  color: var(--app-accent);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background 0.2s, color 0.2s;
}
.btn-volver-menu:active { background: var(--app-accent); color: #fff; }
.btn-enviar {
  width: 100%;
  background: #4CAF50;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-enviar:active { background: #388E3C; }
.btn-enviar-qr {
  background: #6366f1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-enviar-qr:active { background: #4f46e5; }

/* CONFIRMACIÓN / MI PEDIDO */
.confirm-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem 90px;
  gap: 1.2rem;
  text-align: center;
}
.confirm-icon {
  width: 70px;
  height: 70px;
  min-width: 70px;
  min-height: 70px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #4CAF50;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s;
}
.confirm-icon.cocinando { background: #3b82f6; }
.confirm-icon.listo     { background: #4CAF50; }

/* Progress bar */
.pedido-progress {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 320px;
  margin: 0.2rem 0;
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.progress-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #333;
  border: 2px solid #555;
  transition: background 0.4s, border-color 0.4s;
}
.progress-step.activo .progress-dot  { background: #4CAF50; border-color: #4CAF50; }
.progress-step.cocinando .progress-dot { background: #3b82f6; border-color: #3b82f6; }
.progress-step.hecho .progress-dot   { background: #4CAF50; border-color: #4CAF50; }
.progress-label {
  font-size: 0.7rem;
  color: #666;
  white-space: nowrap;
}
.progress-step.activo .progress-label,
.progress-step.cocinando .progress-label,
.progress-step.hecho .progress-label  { color: #ccc; }
.progress-line {
  flex: 1;
  height: 2px;
  background: #333;
  margin-bottom: 22px;
  transition: background 0.4s;
}
.progress-line.activo { background: #4CAF50; }

/* Items del pedido confirmado */
.confirm-items {
  width: 100%;
  max-width: 360px;
  background: #1e1e1e;
  border-radius: 10px;
  padding: 0.8rem;
  text-align: left;
}
.confirm-item {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 0.88rem;
  border-bottom: 1px solid #2a2a2a;
}
.confirm-item:last-child { border-bottom: none; }
.confirm-item-qty { color: #4CAF50; font-weight: 700; margin-right: 6px; }

.confirm-total-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0 2px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  border-top: 1px solid #3a3a3a;
  margin-top: 4px;
}

/* Botones de acción en pantalla de confirmación */
.confirm-actions {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 20px;
}
.btn-volver-menu {
  width: 100%;
  background: #1e1e1e;
  border: 1px solid #444;
  border-radius: 10px;
  color: #ccc;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-volver-menu:active { background: #2a2a2a; }
.btn-llamar-mozo {
  width: 100%;
  background: #14532d;
  border: 1px solid #16a34a;
  border-radius: 10px;
  color: #86efac;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-llamar-mozo:active { background: #166534; }
.btn-llamar-mozo:disabled { cursor: not-allowed; }
.btn-pedir-cuenta {
  width: 100%;
  background: #0f2744;
  border: 1px solid #2563eb;
  border-radius: 10px;
  color: #93c5fd;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-pedir-cuenta:active { background: #1e40af; }
.btn-pedir-cuenta:disabled { cursor: not-allowed; }
.btn-referido {
  width: 100%;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 10px;
  color: #16a34a;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-referido svg { width: 16px; height: 16px; }
.btn-referido:active { background: #dcfce7; }
.btn-pagar-mp {
  width: 100%;
  background: #003087;
  border: 1px solid #009ee3;
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-pagar-mp:active { background: #005cb9; }
.btn-pagar-mp:disabled { cursor: not-allowed; opacity: 0.6; }
.btn-pagar-mp svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-pedir-mas svg, .btn-llamar-mozo svg, .btn-pedir-cuenta svg, .btn-sugerencia svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -4px; margin-right: 6px; flex-shrink: 0;
}
.btn-sugerencia {
  width: 100%;
  background: #1a0a3d;
  border: 1px solid #6366f1;
  border-radius: 10px;
  color: #a5b4fc;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-sugerencia:active { background: #312e81; }

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 100;
  align-items: flex-end;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #1e1e1e;
  border-radius: 16px 16px 0 0;
  padding: 1.5rem 1rem;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-box h3 { font-size: 1rem; }
.ing-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #2a2a2a;
  cursor: pointer;
}
.ing-check input[type=checkbox] { width: 18px; height: 18px; accent-color: #4CAF50; }

/* MODIFICADORES */
.mod-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 12px 0 6px;
}
.mod-check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #2a2a2a;
  cursor: pointer;
  font-size: 0.9rem;
}
.mod-check-label:last-child { border-bottom: none; }
.mod-check-label input[type=checkbox],
.mod-check-label input[type=radio] { width: 18px; height: 18px; accent-color: #4CAF50; flex-shrink: 0; }
.mod-precio { color: #4CAF50; font-size: 0.83rem; margin-left: auto; white-space: nowrap; }
.mod-req-star { color: #ef4444; margin-left: 2px; }

/* TOAST */
.toast {
  position: fixed;
  bottom: 150px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #4CAF50;
  color: #fff;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.toast-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: 0.8;
}

/* BOTTOM NAV */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a1a;
  border-top: 1px solid #333;
  display: flex;
  z-index: 50;
  /* Fuerza capa GPU: evita el "jitter" cuando el navegador móvil muestra/oculta la barra URL */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
.nav-btn {
  flex: 1;
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  padding: 12px 4px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 0.2s;
  min-height: 64px;
}
.nav-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}
.nav-btn svg[stroke] { fill: none; }
.nav-btn.active { color: #4CAF50; }
.nav-btn-volver { color: #4CAF50; }
.nav-btn.pulsing { animation: navPulse 1s ease-in-out 3; color: #4CAF50; }
.nav-btn.nav-mipedido { visibility: hidden; opacity: 0; transition: opacity 0.2s; }
.nav-btn.nav-mipedido.visible { visibility: visible; opacity: 1; }
@keyframes navPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
.nav-badge {
  background: #ef4444;
  color: #fff;
  border-radius: 10px;
  font-size: 0.65rem;
  padding: 1px 5px;
  position: relative;
  top: -4px;
  left: -6px;
}

/* NOTIFICACIÓN PEDIDO LISTO */
#notif-listo {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: notifFadeIn 0.3s ease;
}
@keyframes notifFadeIn { from { opacity:0; } to { opacity:1; } }
.notif-listo-box {
  background: linear-gradient(135deg, #14532d, #166534);
  border: 2px solid #4ade80;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 320px;
  width: 90%;
  animation: notifPop 0.35s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 0 60px rgba(74,222,128,0.3);
}
@keyframes notifPop {
  from { transform: scale(0.7); opacity:0; }
  to   { transform: scale(1);   opacity:1; }
}
.notif-listo-emoji {
  font-size: 3.5rem;
  margin-bottom: 0.75rem;
  animation: plateSpin 0.6s ease 0.2s both;
}
@keyframes plateSpin {
  from { transform: rotate(-20deg) scale(0.8); }
  to   { transform: rotate(0deg)   scale(1); }
}
.notif-listo-titulo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.4rem;
  letter-spacing: -0.5px;
}
.notif-listo-sub {
  font-size: 1rem;
  color: #86efac;
  margin-bottom: 1.5rem;
}
.notif-listo-btn {
  background: #fff;
  color: #14532d;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  padding: 0.75rem 2.5rem;
  cursor: pointer;
  transition: transform 0.15s;
}
.notif-listo-btn:active { transform: scale(0.96); }

/* MULTI-COMENSAL: Rondas anteriores */
.confirm-rondas {
  margin-top: 1rem;
  border-top: 1px solid #333;
  padding-top: 0.75rem;
  width: 100%;
  max-width: 360px;
}
.ronda-anterior {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0.5rem;
  opacity: 1;
  width: 100%;
}
.ronda-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aaa;
  margin-bottom: 0.3rem;
  text-align: left;
}
.ronda-actual-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #f59e0b;
  margin-bottom: 0.4rem;
}
.ronda-item {
  font-size: 0.85rem;
  color: #ccc;
  display: flex;
  justify-content: space-between;
  padding: 1px 0;
}

/* BOTÓN PEDIR MÁS */
.btn-pedir-mas {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  letter-spacing: 0.3px;
}
.btn-pedir-mas:active { transform: scale(0.97); }
.btn-pedir-mas:disabled { opacity: 0.45; cursor: default; }

/* CONFIRM ACTIONS layout */
.confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1rem;
  width: 100%;
  max-width: 360px;
}

/* PANTALLA PAGADO */
.pagado-icon {
  font-size: 3.5rem;
  margin-bottom: 0.75rem;
  animation: notifPop 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.pagado-titulo {
  font-size: 1.6rem;
  font-weight: 800;
  color: #4ade80;
  margin-bottom: 0.5rem;
}
.pagado-subtitulo {
  font-size: 1rem;
  color: #9ca3af;
  margin-bottom: 1.2rem;
}
.pagado-buen-provecho {
  font-size: 1.2rem;
  color: #f59e0b;
  font-weight: 700;
  margin-top: 0.5rem;
}
.pagado-acciones {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  margin-top: 1.2rem;
}
.pagado-btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.pagado-btn-wa:active { opacity: 0.8; }
.pagado-btn-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: none;
  border: 2px solid var(--app-accent);
  color: var(--app-accent);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: opacity 0.15s;
  width: 100%;
}
.pagado-btn-contact:active { opacity: 0.7; }
.pagado-btn-review {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #fff;
  color: #1a73e8;
  border: 2px solid #1a73e8;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  margin: 12px 0 4px;
  transition: background 0.15s, color 0.15s;
}
.pagado-btn-review:active { background: #e8f0fe; }
.pagado-instalar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid #2d2d2d;
}
.pagado-instalar-titulo {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.pagado-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.pagado-install-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 400;
  cursor: pointer;
  border: 1px solid #555;
  transition: opacity 0.15s;
  background: #111;
  color: #fff;
  text-align: left;
  min-width: 140px;
}
.pagado-install-btn:active { opacity: 0.75; }
.pagado-install-btn .badge-top { font-size: 0.6rem; opacity: 0.8; display: block; line-height: 1.2; }
.pagado-install-btn .badge-store { font-size: 1rem; font-weight: 700; display: block; line-height: 1.3; }
.pagado-install-android { border-color: #01875f; }
.pagado-install-ios      { border-color: #555; }

/* ── STEPPER / CONTROLES DE CANTIDAD ────────────────────── */
.plato-stepper {
  display: flex;
  flex-direction: row;
  align-items: center;
  border: 2px solid;
  border-radius: 24px;
  flex-shrink: 0;
  margin-top: 2px;
  overflow: hidden;
  width: 44px;
}
.plato-step-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 8px;
  color: #fff;
  width: 34px;
  height: 34px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s;
}
.plato-step-btn:active { transform: scale(0.88); }
.plato-step-qty {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  padding: 0 4px;
  min-width: 80px;
  text-align: center;
}

/* MENÚ DEL DÍA — Card especial */
.menu-dia-app-card {
  flex-direction: column;
  gap: 4px;
  grid-column: 1 / -1;
  min-height: 140px;
}

/* ── BARRA FLOTANTE ENVIAR PEDIDO ────────────────────────────────────────────── */
#float-send-bar {
  position: fixed;
  bottom: 68px;
  left: 12px;
  right: 12px;
  z-index: 60;
  background: var(--app-accent);
  background: color-mix(in srgb, var(--app-accent) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 0 6px 0 16px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0,0,0,0.45);
  animation: floatBarIn 0.25s cubic-bezier(0.34,1.56,0.64,1);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
@keyframes floatBarIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
#float-send-total {
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.4rem 0.5rem 0.4rem 0;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.45);
  flex: 1;
  text-align: left;
}
#float-send-btn {
  background: rgba(0,0,0,0.25);
  border: none;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
#float-send-btn:active { background: rgba(0,0,0,0.4); }

/* ── BOTÓN PEDIDO EN HEADER DE PLATOS ───────────────────────────────────────── */
.hdr-pedido-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--app-accent);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 0.38rem 0.9rem 0.38rem 0.75rem;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: filter 0.15s;
  animation: floatBarIn 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.hdr-pedido-btn:active { filter: brightness(0.82); }
.hdr-pedido-sep { opacity: 0.55; font-weight: 400; }

/* ── COLOR DE ACENTO (override dinámico via JS) ──────────────────────────────── */
:root { --app-accent: #6366f1; }
.btn-enviar { background: var(--app-accent); }
.btn-enviar:active { filter: brightness(0.85); }
.nav-btn.active { color: var(--app-accent); }
.nav-btn.pulsing { color: var(--app-accent); }
.nav-btn-volver { color: var(--app-accent); }

/* ── TEMA DÍA ────────────────────────────────────────────────────────────────── */
body.tema-dia { background: #f2f2f5; color: #111; }
body.tema-dia .cat-tabs-wrap { background: #f2f2f5; }
body.tema-dia .app-header { background: #fff; border-bottom-color: #d8d8df; }
body.tema-dia .restaurante-nombre { color: #111 !important; }
body.tema-dia .logo-text { color: #222 !important; }
body.tema-dia .back-btn { color: #333; background: rgba(0,0,0,0.08); border-color: rgba(0,0,0,0.15); }
body.tema-dia .salir-btn { color: #888; border-color: #ccc; }
body.tema-dia .lang-change-btn { color: #333; background: rgba(0,0,0,0.08); border-color: rgba(0,0,0,0.15); }
body.tema-dia .lang-subtitle { color: #555; }
body.tema-dia .lang-footer { color: #bbb; }
body.tema-dia .search-input { background: #e8e8ec; border-color: #c8c8d0; color: #111; }
body.tema-dia .search-input::placeholder { color: #999; }
body.tema-dia .cat-titulo { color: #111; }
body.tema-dia .plato-card { background: #ebebef; }
body.tema-dia .plato-nombre { color: #111; }
body.tema-dia .plato-desc { color: #555; }
body.tema-dia .plato-ings { color: #888; }
body.tema-dia .plato-precio { color: #333; }
body.tema-dia .plato-add-btn { border-color: #c8c8d0; color: #777; }
body.tema-dia .plato-strip-qty { background: rgba(0,0,0,.04); }
body.tema-dia .plato-step-btn { background: rgba(0,0,0,.08); color: #333; }
body.tema-dia .plato-info-btn { border-color: #c8c8d0; color: #777; }
body.tema-dia .plato-info-btn:active { color: #111; border-color: #888; }
body.tema-dia .plato-agotado-badge { background: #e8e8ec; color: #999; }
body.tema-dia .alerg-icon { background: #f0f0f3; border-color: #d8d8df; color: #777; }
body.tema-dia .qty-btn { background: #e0e0e5; color: #111; }
body.tema-dia .edit-ing-btn { border-color: #ccc; color: #777; }
body.tema-dia .plato-en-pedido { color: var(--app-accent); }
body.tema-dia .carrito-cat-titulo { color: #777; }
body.tema-dia .carrito-item { background: #fff; }
body.tema-dia .carrito-item-detalle { color: #777; }
body.tema-dia .carrito-item-precio { color: #333; }
body.tema-dia .carrito-footer { background: #f0f0f3; border-top-color: #d8d8df; }
body.tema-dia .obs-textarea { background: #fff; border-color: #c8c8d0; color: #111; }
body.tema-dia .obs-textarea::placeholder { color: #999; }
body.tema-dia .total-row { color: #111; }
body.tema-dia .btn-volver-menu { background: transparent; border-color: var(--app-accent); color: var(--app-accent); }
body.tema-dia .btn-volver-menu:active { background: var(--app-accent); color: #fff; }
body.tema-dia .confirm-items { background: #fff; }
body.tema-dia .confirm-item { border-bottom-color: #e8e8ec; color: #111; }
body.tema-dia .confirm-total-row { border-top-color: #d8d8df; color: #111; }
body.tema-dia .progress-dot { background: #d8d8df; border-color: #c8c8d0; }
body.tema-dia .progress-line { background: #d8d8df; }
body.tema-dia .progress-label { color: #999; }
body.tema-dia .progress-step.activo .progress-label,
body.tema-dia .progress-step.cocinando .progress-label,
body.tema-dia .progress-step.hecho .progress-label { color: #333; }
body.tema-dia .modal-box { background: #fff; }
body.tema-dia .ing-check { border-bottom-color: #e8e8ec; }
body.tema-dia .mod-section-title { color: #777; }
body.tema-dia .mod-check-label { border-bottom-color: #e8e8ec; }
body.tema-dia .bottom-nav { background: #fff; border-top-color: #d8d8df; }
body.tema-dia .nav-btn { color: #999; }
body.tema-dia .nav-btn.active { color: var(--app-accent); }
body.tema-dia .nav-btn.pulsing { color: var(--app-accent); }
body.tema-dia .ronda-anterior { background: transparent; border-color: transparent; }
body.tema-dia .ronda-label { color: #555; }
body.tema-dia .ronda-item { color: #222; }
body.tema-dia .btn-pedir-mas { background: var(--app-accent); }
body.tema-dia .btn-llamar-mozo { background: #16a34a; border-color: #15803d; color: #fff; }
body.tema-dia .btn-llamar-mozo:active { background: #15803d; }
body.tema-dia .btn-pedir-cuenta { background: #2563eb; border-color: #1d4ed8; color: #fff; }
body.tema-dia .btn-pedir-cuenta:active { background: #1d4ed8; }
body.tema-dia .info-rest-titulo { color: #111; }
body.tema-dia .info-rest-card { background: #fff; border-color: #d8d8df; color: #111; }
body.tema-dia .info-rest-card-titulo { color: #777; }
body.tema-dia .info-rest-wifi-row button { background: #e8e8ec; border-color: #c8c8d0; color: #333; }
body.tema-dia .info-rest-insta { color: #111; }
body.tema-dia .info-rest-resena { background: #eaf0ff; border-color: #2563eb; color: #1d4ed8; }
body.tema-dia .info-rest-volver { border-color: #c8c8d0; color: #555; }

/* ── TEMA CÁLIDO ─────────────────────────────────────────────────────────────── */
body.tema-calido { background: #180f05; color: #f5e8d0; }
body.tema-calido .cat-tabs-wrap { background: #180f05; }
body.tema-calido .app-header { background: #201408; border-bottom-color: #503828; }
body.tema-calido .restaurante-nombre { color: #f5e8d0; }
body.tema-calido .back-btn { color: #d4b896; background: rgba(255,220,180,0.1); border-color: rgba(255,220,180,0.2); }
body.tema-calido .salir-btn { color: #7a5c40; border-color: #5a4030; }
body.tema-calido .lang-change-btn { color: #d4b896; background: rgba(255,220,180,0.1); border-color: rgba(255,220,180,0.2); }
body.tema-calido .lang-subtitle { color: #a88060; }
body.tema-calido .lang-footer { color: #5a3c28; }
body.tema-calido .search-input { background: #3a2814; border-color: #5a4030; color: #f5e8d0; }
body.tema-calido .search-input::placeholder { color: #7a5c40; }
body.tema-calido .cat-titulo { color: #f5e8d0; }
body.tema-calido .plato-card { background: #281a0c; }
body.tema-calido .plato-nombre { color: #f5e8d0; }
body.tema-calido .plato-desc { color: #a88060; }
body.tema-calido .plato-ings { color: #7a5c40; }
body.tema-calido .plato-precio { color: #d4b896; }
body.tema-calido .plato-add-btn { border-color: #5a4030; color: #7a5c40; }
body.tema-calido .plato-strip-qty { background: rgba(255,255,255,.03); }
body.tema-calido .plato-step-btn { background: rgba(255,255,255,.08); }
body.tema-calido .plato-info-btn { border-color: #5a4030; color: #a88060; }
body.tema-calido .plato-info-btn:active { color: #f5e8d0; border-color: #a88060; }
body.tema-calido .plato-agotado-badge { background: #3a2814; color: #7a5c40; }
body.tema-calido .alerg-icon { background: #281a0c; border-color: #503828; color: #a88060; }
body.tema-calido .qty-btn { background: #3a2814; color: #f5e8d0; }
body.tema-calido .edit-ing-btn { border-color: #5a4030; color: #a88060; }
body.tema-calido .plato-en-pedido { color: #f59e0b; }
body.tema-calido .carrito-cat-titulo { color: #a88060; }
body.tema-calido .carrito-item { background: #281a0c; }
body.tema-calido .carrito-item-detalle { color: #7a5c40; }
body.tema-calido .carrito-item-precio { color: #d4b896; }
body.tema-calido .carrito-footer { background: #201408; border-top-color: #503828; }
body.tema-calido .obs-textarea { background: #3a2814; border-color: #5a4030; color: #f5e8d0; }
body.tema-calido .obs-textarea::placeholder { color: #7a5c40; }
body.tema-calido .total-row { color: #f5e8d0; }
body.tema-calido .btn-volver-menu { background: transparent; border-color: var(--app-accent); color: var(--app-accent); }
body.tema-calido .btn-volver-menu:active { background: var(--app-accent); color: #fff; }
body.tema-calido .confirm-items { background: #281a0c; }
body.tema-calido .confirm-item { border-bottom-color: #3a2814; color: #f5e8d0; }
body.tema-calido .confirm-total-row { border-top-color: #503828; color: #f5e8d0; }
body.tema-calido .progress-dot { background: #503828; border-color: #5a4030; }
body.tema-calido .progress-line { background: #503828; }
body.tema-calido .progress-label { color: #7a5c40; }
body.tema-calido .modal-box { background: #281a0c; }
body.tema-calido .ing-check { border-bottom-color: #3a2814; }
body.tema-calido .mod-section-title { color: #a88060; }
body.tema-calido .mod-check-label { border-bottom-color: #3a2814; }
body.tema-calido .bottom-nav { background: #201408; border-top-color: #503828; }
body.tema-calido .nav-btn { color: #7a5c40; }
body.tema-calido .ronda-anterior { background: transparent; border-color: transparent; }
body.tema-calido .ronda-label { color: #7a5c40; }
body.tema-calido .ronda-item { color: #d4b896; }
body.tema-calido .btn-pedir-mas { background: linear-gradient(135deg, #92400e, #b45309); }
body.tema-calido .btn-llamar-mozo { background: #1a3d20; border-color: #2d6a35; color: #86efac; }
body.tema-calido .btn-llamar-mozo:active { background: #2d6a35; }
body.tema-calido .btn-pedir-cuenta { background: #1a2a44; border-color: #3b6cb7; color: #93c5fd; }
body.tema-calido .btn-pedir-cuenta:active { background: #1e3a6e; }
body.tema-calido .info-rest-titulo { color: #f5e8d0; }
body.tema-calido .info-rest-card { background: #281a0c; border-color: #503828; color: #f5e8d0; }
body.tema-calido .info-rest-card-titulo { color: #a88060; }
body.tema-calido .info-rest-wifi-row button { background: #3a2814; border-color: #5a4030; color: #d4b896; }
body.tema-calido .info-rest-insta { color: #f5e8d0; }
body.tema-calido .info-rest-resena { background: #1a2a44; border-color: #3b6cb7; color: #93c5fd; }
body.tema-calido .info-rest-volver { border-color: #5a4030; color: #a88060; }

/* CATEGORY HINT */
.cat-hint {
  text-align: center;
  color: #888;
  font-size: 0.83rem;
  font-weight: 500;
  padding: 8px 1rem 2px;
  margin-bottom: -4px;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.cat-hint::before {
  content: "↓";
  font-size: 0.95rem;
  opacity: 0.6;
}
body.tema-dia .cat-hint { color: #888; }
body.tema-calido .cat-hint { color: #a88060; }

/* CARRITO — ESTADO VACÍO */
.carrito-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.5rem 2rem;
  gap: 12px;
  text-align: center;
}
.carrito-empty-icon { color: #333; }
.carrito-empty-titulo {
  font-size: 1.05rem;
  font-weight: 600;
  color: #777;
}
.carrito-empty-sub {
  font-size: 0.82rem;
  color: #555;
  max-width: 240px;
  line-height: 1.5;
}
.carrito-empty-btn {
  margin-top: 10px;
  padding: 0.75rem 1.8rem;
  background: var(--app-accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.3px;
}
body.tema-dia .carrito-empty-icon { color: #bbb; }
body.tema-dia .carrito-empty-titulo { color: #666; }
body.tema-dia .carrito-empty-sub { color: #999; }
body.tema-calido .carrito-empty-icon { color: #503828; }
body.tema-calido .carrito-empty-titulo { color: #7a5c40; }
body.tema-calido .carrito-empty-sub { color: #5a4030; }

/* Overlay de banderas según tema — oscuro/cálido: sin capa, día: capa suave */

/* CARRITO — HINT SUPERIOR */
.carrito-top-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--app-accent);
  background: color-mix(in srgb, var(--app-accent) 14%, transparent);
  border: 1.5px solid var(--app-accent);
  border-color: color-mix(in srgb, var(--app-accent) 45%, transparent);
  border-radius: 10px;
  margin-bottom: 12px;
  padding: 11px 14px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--app-accent);
  line-height: 1.4;
}

/* ── HISTORIAL DE PEDIDOS ──────────────────────────────────────── */
.historial-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.historial-fecha {
  font-size: 0.72rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.historial-items {
  font-size: 0.88rem;
  color: #374151;
  margin-bottom: 6px;
  line-height: 1.4;
}
.historial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.historial-total {
  font-size: 1rem;
  font-weight: 800;
  color: #1e293b;
}
.historial-estado {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
}
.historial-vacio {
  text-align: center;
  padding: 3rem 1rem;
  color: #9ca3af;
}
.historial-vacio-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.historial-vacio p { font-size: 0.9rem; }

/* Pantalla "Información" (Wi-Fi, Instagram, reseña siempre disponible) */
.info-rest-overlay {
  position: fixed; inset: 0; background: #0d0d14f2; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 2rem 1.4rem; text-align: center; color: #fff;
}
.info-rest-titulo {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.info-rest-card {
  width: 100%;
  max-width: 340px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 14px 16px;
  color: #fff;
  text-decoration: none;
  display: block;
  text-align: left;
}
.info-rest-card-titulo {
  font-size: 0.85rem;
  font-weight: 700;
  color: #9ca3af;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-rest-card-titulo svg { width: 16px; height: 16px; flex-shrink: 0; }
.info-rest-wifi-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  padding: 6px 0;
}
.info-rest-wifi-row span { word-break: break-all; }
.info-rest-wifi-row button {
  flex-shrink: 0;
  background: #262626;
  border: 1px solid #444;
  color: #ccc;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.info-rest-insta, .info-rest-resena {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}
.info-rest-insta svg, .info-rest-resena svg { width: 18px; height: 18px; flex-shrink: 0; }
.info-rest-insta { color: #e5e7eb; }
.info-rest-resena { background: #0f2744; border-color: #2563eb; color: #93c5fd; }
.info-rest-volver {
  margin-top: 8px;
  background: none;
  border: 1px solid #444;
  color: #ccc;
  border-radius: 10px;
  padding: 10px 22px;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Modal "Encuesta de satisfacción" — mismo idioma visual que el resto de la carta (SVG, temable) */
.encuesta-overlay {
  position: fixed; inset: 0; background: #000b; z-index: 9100;
  display: flex; align-items: flex-end; justify-content: center;
}
.encuesta-box {
  background: #1a1a1a;
  border-radius: 20px 20px 0 0;
  padding: 24px 20px 32px;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  color: #fff;
  overscroll-behavior: contain;
}
.encuesta-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px;
}
.encuesta-titulo {
  font-size: 1.05rem; font-weight: 800; color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.encuesta-titulo svg { width: 20px; height: 20px; color: #f59e0b; flex-shrink: 0; }
.encuesta-cerrar {
  background: none; border: none; padding: 4px; color: #9ca3af; cursor: pointer;
}
.encuesta-cerrar svg { width: 22px; height: 22px; }
.encuesta-sub { font-size: 0.82rem; color: #9ca3af; margin-bottom: 20px; }
.encuesta-cat { margin-bottom: 18px; }
.encuesta-cat-label {
  font-size: 0.85rem; font-weight: 700; color: #d1d5db; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.encuesta-cat-label svg { width: 17px; height: 17px; flex-shrink: 0; color: #9ca3af; }
.encuesta-stars { display: flex; gap: 10px; justify-content: center; }
.encuesta-star { cursor: pointer; color: #374151; transition: color .15s; user-select: none; }
.encuesta-star svg { width: 2.2rem; height: 2.2rem; }
.encuesta-star.activa { color: #f59e0b; }
.encuesta-campo { margin-bottom: 16px; }
.encuesta-campo-label {
  font-size: 0.82rem; font-weight: 600; color: #d1d5db; margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.encuesta-campo-label svg { width: 15px; height: 15px; flex-shrink: 0; color: #9ca3af; }
.encuesta-opcional { font-weight: 400; color: #6b7280; font-size: 0.75rem; }
.encuesta-textarea, .encuesta-input {
  width: 100%; border: 1.5px solid #374151; border-radius: 10px; padding: 10px;
  font-size: 0.88rem; font-family: inherit; outline: none; color: #fff; background: #111;
}
.encuesta-textarea { resize: none; }
.encuesta-textarea::placeholder, .encuesta-input::placeholder { color: #6b7280; }
.encuesta-error { color: #f87171; font-size: 0.82rem; margin-bottom: 10px; }
.encuesta-submit {
  width: 100%; padding: 14px; background: #6366f1; color: #fff; border: none;
  border-radius: 12px; font-size: 1rem; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.encuesta-submit svg { width: 20px; height: 20px; flex-shrink: 0; }

body.tema-dia .encuesta-box { background: #fff; color: #1e293b; }
body.tema-dia .encuesta-titulo { color: #1e293b; }
body.tema-dia .encuesta-sub { color: #64748b; }
body.tema-dia .encuesta-cat-label { color: #374151; }
body.tema-dia .encuesta-star { color: #e2e8f0; }
body.tema-dia .encuesta-campo-label { color: #374151; }
body.tema-dia .encuesta-textarea, body.tema-dia .encuesta-input { background: #fff; border-color: #e2e8f0; color: #1e293b; }
body.tema-dia .encuesta-textarea::placeholder, body.tema-dia .encuesta-input::placeholder { color: #94a3b8; }

body.tema-calido .encuesta-box { background: #281a0c; color: #f5e8d0; }
body.tema-calido .encuesta-titulo { color: #f5e8d0; }
body.tema-calido .encuesta-sub { color: #a88060; }
body.tema-calido .encuesta-cat-label { color: #d4b896; }
body.tema-calido .encuesta-star { color: #503828; }
body.tema-calido .encuesta-campo-label { color: #d4b896; }
body.tema-calido .encuesta-textarea, body.tema-calido .encuesta-input { background: #180f05; border-color: #5a4030; color: #f5e8d0; }
body.tema-calido .encuesta-textarea::placeholder, body.tema-calido .encuesta-input::placeholder { color: #7a5c40; }

/* Modal "¡Gracias por tu opinión!" (premio + sorteo) — mismo idioma visual, SVG y temable */
.premio-overlay {
  position: fixed; inset: 0; background: #000b; z-index: 9200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.premio-box {
  background: #1a1a1a;
  border-radius: 20px;
  padding: 24px 20px;
  width: 100%;
  max-width: 380px;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  color: #fff;
}
.premio-icon { color: #f59e0b; margin-bottom: 8px; display: flex; justify-content: center; }
.premio-icon svg { width: 46px; height: 46px; }
.premio-titulo { font-size: 1.15rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.premio-sub { font-size: 0.85rem; color: #9ca3af; margin-bottom: 16px; }
.premio-codigo-box {
  background: #0f2744;
  border: 1px solid #2563eb;
  border-radius: 14px;
  padding: 16px;
  margin: 12px 0;
  text-align: center;
}
.premio-codigo-label {
  font-size: 0.75rem; color: #93c5fd; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.premio-codigo-label svg { width: 14px; height: 14px; flex-shrink: 0; }
.premio-codigo-valor { font-size: 2rem; font-weight: 900; color: #fff; letter-spacing: 4px; margin: 6px 0; }
.premio-codigo-desc { font-size: 0.8rem; color: #93c5fd; }
.premio-codigo-vencimiento { font-size: 0.72rem; color: #6b93d6; margin-top: 4px; }
.premio-hint {
  font-size: 0.8rem; color: #9ca3af; margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px; text-align: left;
}
.premio-hint svg { width: 16px; height: 16px; flex-shrink: 0; }
.premio-sorteo-box {
  background: #0f2e1a; border: 2px solid #22c55e; border-radius: 12px; padding: 14px;
  text-align: center; margin-bottom: 12px;
}
.premio-sorteo-icon { color: #22c55e; margin-bottom: 4px; display: flex; justify-content: center; }
.premio-sorteo-icon svg { width: 22px; height: 22px; }
.premio-sorteo-titulo { font-weight: 700; color: #4ade80; margin-bottom: 4px; }
.premio-sorteo-desc { font-size: 0.82rem; color: #86efac; }
.premio-btn {
  width: 100%; padding: 12px; background: #6366f1; color: #fff; border: none;
  border-radius: 12px; font-size: 0.95rem; font-weight: 700; cursor: pointer; margin-top: 4px;
}

body.tema-dia .premio-box { background: #fff; color: #1e293b; }
body.tema-dia .premio-titulo { color: #1e293b; }
body.tema-dia .premio-sub { color: #64748b; }
body.tema-dia .premio-hint { color: #475569; }

body.tema-calido .premio-box { background: #281a0c; color: #f5e8d0; }
body.tema-calido .premio-titulo { color: #f5e8d0; }
body.tema-calido .premio-sub { color: #a88060; }
body.tema-calido .premio-hint { color: #a88060; }
