/* ==============================================================================
   VendlyPOS Menú Digital Gastronómico — Design System (styles.css)
   Paleta: Fondo oscuro culinario (#120700), Acento Ámbar Dorado (#F59E0B)
   Tipografía: Playfair Display + Plus Jakarta Sans
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Fondo Gastronómico Nocturno */
  --bg-primary: #120700;
  --bg-surface: #1c0d02;
  --bg-card: #251204;
  --bg-card-hover: #2e1706;
  --bg-elevated: #361a07;
  --bg-glass: rgba(28, 13, 2, 0.88);
  --bg-overlay: rgba(10, 4, 0, 0.85);

  /* Acentos Ámbar y Fuego */
  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --accent-gold-light: #fbbf24;
  --accent-glow: rgba(245, 158, 11, 0.28);
  --accent-soft: rgba(245, 158, 11, 0.12);
  --accent-border: rgba(245, 158, 11, 0.22);
  --accent-border-active: rgba(245, 158, 11, 0.55);

  /* Acentos de Estado */
  --color-success: #10b981;
  --color-success-soft: rgba(16, 185, 129, 0.14);
  --color-danger: #ef4444;
  --color-danger-soft: rgba(239, 68, 68, 0.14);
  --color-warning: #f97316;

  /* Texto */
  --text-primary: #ffffff;
  --text-secondary: #e5e7eb;
  --text-muted: #9ca3af;
  --text-dark: #6b7280;

  /* Tipografías */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Bordes y Sombras */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 4px 20px rgba(245, 158, 11, 0.25);

  /* Layout */
  --header-height: 240px;
  --tabs-height: 56px;
  --floating-bar-height: 72px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  padding-bottom: calc(var(--floating-bar-height) + 32px);
}

/* Scrollbars finas temáticas */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* ==============================================================================
   Contenedor Principal y Grid
   ============================================================================== */
.app-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}

/* ==============================================================================
   Header Inmersivo del Restaurante
   ============================================================================== */
.hero-header {
  position: relative;
  width: 100%;
  min-height: var(--header-height);
  background-color: var(--bg-surface);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--accent-border);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 7, 0, 0.3) 0%,
    rgba(18, 7, 0, 0.75) 55%,
    var(--bg-primary) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 7, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-full);
  padding: 6px 14px;
}

.brand-logo-img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: contain;
}

.brand-badge-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

/* Píldora de Mesa Asignada */
.table-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(217, 119, 6, 0.15));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--accent-gold);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.table-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.table-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
  animation: pulse-glow 2s infinite;
}

.table-pill-text {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.table-pill-edit {
  font-size: 0.72rem;
  color: var(--accent-gold-light);
  text-decoration: underline;
  margin-left: 2px;
}

/* Título de Restaurante y Metadatos */
.restaurant-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  letter-spacing: -0.5px;
}

.restaurant-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  max-width: 600px;
}

.restaurant-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.meta-pill.open {
  color: var(--color-success);
}
.meta-pill.open::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-success);
  display: inline-block;
}

/* ==============================================================================
   Barra de Búsqueda Culinaria
   ============================================================================== */
.search-bar-wrap {
  padding: 14px 20px 4px;
  background-color: var(--bg-primary);
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--bg-surface);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-full);
  padding: 4px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-bar:focus-within {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 12px;
  font-size: 0.92rem;
  font-family: var(--font-sans);
  color: var(--text-primary);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-clear-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: none;
}
.search-clear-btn.visible {
  display: inline-flex;
}

/* ==============================================================================
   Barra de Categorías Adhesiva (Sticky Course Tabs)
   ============================================================================== */
.sticky-tabs-container {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--accent-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.categories-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 18px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.categories-scroll::-webkit-scrollbar {
  display: none;
}

.category-tab-btn {
  white-space: nowrap;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.category-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(245, 158, 11, 0.08);
}

.category-tab-btn.active {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-hover));
  color: #120700;
  font-weight: 800;
  border-color: var(--accent-gold);
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.4);
  transform: scale(1.02);
}

/* ==============================================================================
   Secciones y Grid de Platillos
   ============================================================================== */
.menu-content {
  padding: 20px 18px;
}

.category-section {
  margin-bottom: 36px;
  scroll-margin-top: calc(var(--tabs-height) + 16px);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.15);
  padding-bottom: 8px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-count {
  font-size: 0.82rem;
  color: var(--accent-gold);
  font-weight: 700;
}

.dishes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .dishes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* ==============================================================================
   Tarjeta de Platillo (Dish Card)
   ============================================================================== */
.dish-card {
  background-color: var(--bg-card);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.25s ease,
              border-color 0.25s ease;
  position: relative;
}

.dish-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-border-active);
  box-shadow: var(--shadow-md), 0 0 15px rgba(245, 158, 11, 0.1);
}

.dish-card.sold-out {
  opacity: 0.65;
  filter: grayscale(40%);
}

.dish-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: var(--bg-surface);
  overflow: hidden;
}

.dish-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.dish-card:hover .dish-img {
  transform: scale(1.05);
}

.dish-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(18, 7, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--accent-gold);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--accent-gold);
  z-index: 2;
}

.dish-sold-out-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.dish-details {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dish-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.25;
}

.dish-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dish-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed rgba(245, 158, 11, 0.12);
}

.dish-price-wrap {
  display: flex;
  flex-direction: column;
}

.dish-price-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.dish-price {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-gold-light);
  letter-spacing: -0.3px;
}

/* Botones de Acción en Platillo */
.btn-dish-action {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.btn-dish-action.btn-customize {
  background: rgba(245, 158, 11, 0.14);
  color: var(--accent-gold-light);
  border: 1px solid var(--accent-border);
}

.btn-dish-action.btn-customize:hover {
  background: var(--accent-gold);
  color: #120700;
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-gold);
}

.btn-dish-action.btn-direct-add {
  background: var(--accent-gold);
  color: #120700;
  padding: 9px 14px;
}

.btn-dish-action.btn-direct-add:hover {
  background: var(--accent-gold-light);
  box-shadow: var(--shadow-gold);
  transform: scale(1.05);
}

.btn-dish-action:disabled {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dark);
  border-color: transparent;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ==============================================================================
   Barra Flotante Persistente de Comanda (Floating Comanda Bar)
   ============================================================================== */
.floating-comanda-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  width: calc(100% - 32px);
  max-width: 620px;
  background: linear-gradient(135deg, rgba(37, 18, 4, 0.95), rgba(28, 13, 2, 0.98));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid var(--accent-gold);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(245, 158, 11, 0.3);
  padding: 10px 14px 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  z-index: 100;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.floating-comanda-bar.visible {
  transform: translateX(-50%) translateY(0);
}

.floating-comanda-bar:hover {
  box-shadow: var(--shadow-lg), 0 0 35px rgba(245, 158, 11, 0.45);
}

.comanda-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.comanda-badge-count {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-hover));
  color: #120700;
  font-weight: 800;
  font-size: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.comanda-bar-info {
  display: flex;
  flex-direction: column;
}

.comanda-bar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.comanda-bar-subtitle {
  font-size: 0.78rem;
  color: var(--accent-gold);
  font-weight: 600;
}

.comanda-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.comanda-bar-total {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.comanda-bar-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* ==============================================================================
   Drawer Modal de Comanda Activa (Full Review Drawer)
   ============================================================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--bg-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.comanda-drawer {
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  background-color: var(--bg-surface);
  border-top: 1.5px solid var(--accent-border);
  border-left: 1px solid var(--accent-border);
  border-right: 1px solid var(--accent-border);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.drawer-overlay.active .comanda-drawer {
  transform: translateY(0);
}

.drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
}

.drawer-title-group {
  display: flex;
  flex-direction: column;
}

.drawer-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.drawer-table-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-gold);
}

.btn-close-drawer {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-close-drawer:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

.drawer-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Ítems de la Comanda */
.comanda-item {
  background-color: var(--bg-card);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comanda-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.comanda-item-name {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-primary);
}

.comanda-item-price {
  font-weight: 800;
  color: var(--accent-gold-light);
  font-size: 1.05rem;
  white-space: nowrap;
}

.comanda-item-modifiers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mod-pill-tag {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.comanda-item-notes {
  font-size: 0.78rem;
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.05);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-style: italic;
}

.comanda-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px dashed rgba(245, 158, 11, 0.1);
}

.item-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.stepper-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.stepper-btn:hover {
  background: var(--accent-soft);
  color: var(--accent-gold);
}

.stepper-val {
  padding: 0 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.btn-remove-item {
  background: transparent;
  border: none;
  color: var(--color-danger);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
}

.btn-remove-item:hover {
  text-decoration: underline;
}

/* Selector de Propina y Campos */
.drawer-extra-section {
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.extra-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.tip-btn {
  background: var(--bg-surface);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tip-btn.active {
  background: var(--accent-gold);
  color: #120700;
  border-color: var(--accent-gold);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.form-input {
  width: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.88rem;
  font-family: var(--font-sans);
  color: var(--text-primary);
  outline: none;
}

.form-input:focus {
  border-color: var(--accent-gold);
}

/* Totales en Drawer */
.comanda-totals {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.total-row.grand-total {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  padding-top: 8px;
  border-top: 1.5px solid var(--accent-border);
}

.total-row.grand-total .val {
  color: var(--accent-gold-light);
}

/* Acciones Finales de Comanda */
.drawer-footer {
  padding: 16px 20px;
  background: var(--bg-card);
  border-top: 1px solid var(--accent-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-primary-action {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-hover));
  color: #120700;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.55);
}

.btn-primary-action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-whatsapp-action {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-full);
  background: transparent;
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.35);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-whatsapp-action:hover {
  background: rgba(37, 211, 102, 0.1);
  border-color: #25d366;
}

/* ==============================================================================
   Modal de Selección Manual de Mesa
   ============================================================================== */
.modal-table-selector {
  width: 100%;
  max-width: 440px;
  background-color: var(--bg-surface);
  border: 1.5px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: auto;
  position: relative;
  z-index: 1001;
}

.quick-tables-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.quick-table-btn {
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  padding: 10px 4px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-table-btn:hover {
  border-color: var(--accent-gold);
  background: var(--accent-soft);
  color: var(--accent-gold);
}

/* ==============================================================================
   Pantalla de Éxito / Confirmación de Pedido
   ============================================================================== */
.order-success-screen {
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.success-check-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-success-soft);
  border: 2px solid var(--color-success);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  animation: pop-bounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
}

.success-folio {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.1);
  padding: 6px 16px;
  border-radius: var(--radius-full);
}

.success-message {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 380px;
  line-height: 1.5;
}
