/* ============================================================
   BANDIDOS JM - APP-STYLE DIGITAL MENU STYLES
   Colors: Dark Charcoal / Black (#0d0d0f), Brand Gold (#d4a753),
   Crimson Red (#c0292b), Cream (#f5ecd7), Pure White (#ffffff)
   ============================================================ */

:root {
  --bg-main: #0b0b0d;
  --bg-card: #151518;
  --bg-card-hover: #1c1c20;
  --bg-sheet: #17171b;
  --bg-nav: rgba(18, 18, 22, 0.94);
  
  --gold-primary: #d4a753;
  --gold-light: #f5d488;
  --gold-dark: #916c27;
  --gold-glow: rgba(212, 167, 83, 0.25);
  
  --red-accent: #c0292b;
  --red-dark: #7a1517;
  
  --text-main: #f5f5f7;
  --text-muted: #9e9ea7;
  --text-dim: #6e6e78;
  
  --border-subtle: rgba(212, 167, 83, 0.15);
  --border-gold: rgba(212, 167, 83, 0.35);
  --border-focus: #d4a753;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.55);
  --shadow-gold: 0 6px 20px rgba(212, 167, 83, 0.22);
  --shadow-nav: 0 -4px 25px rgba(0, 0, 0, 0.65);
  
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

input, textarea, select {
  user-select: text;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   RESPONSIVE VIEWPORT CONTROL (DESKTOP QR vs MOBILE ONLY APP)
   Strict requirement: Desktop only shows QR to redirect to mobile
   ============================================================ */

/* By default on mobile (< 768px): Desktop screen is hidden, mobile app is active */
.desktop-qr-screen {
  display: none;
}

.mobile-app-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  background-color: var(--bg-main);
  padding-bottom: 95px; /* space for bottom nav bar */
}

/* On Desktop screens (>= 768px): Hide mobile app, show QR screen */
@media (min-width: 769px) {
  .mobile-app-wrapper {
    display: none !important;
  }
  
  .desktop-qr-screen {
    display: flex !important;
    min-height: 100vh;
    width: 100%;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1a1714 0%, #0c0b0a 100%);
    padding: 24px;
    position: relative;
    overflow: hidden;
  }
}

/* ============================================================
   DESKTOP QR CODE SCREEN STYLES
   ============================================================ */
.desktop-container {
  max-width: 900px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  background: rgba(21, 21, 24, 0.9);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(212, 167, 83, 0.12);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 2;
}

.desktop-brand-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.desktop-logo-wrap {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 20px var(--gold-glow);
  margin-bottom: 20px;
}

.desktop-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.desktop-brand-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.desktop-brand-title span {
  color: var(--gold-primary);
}

.desktop-slogan {
  font-size: 1.05rem;
  color: var(--gold-light);
  font-style: italic;
  margin-bottom: 20px;
}

.desktop-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.desktop-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.desktop-info-item .icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 167, 83, 0.1);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--gold-primary);
  font-size: 1.1rem;
}

.desktop-qr-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(14, 14, 16, 0.8);
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
}

.desktop-badge-mobile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-primary);
  color: #0b0b0d;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.qr-box-wrapper {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-box-wrapper canvas, .qr-box-wrapper img {
  display: block;
  max-width: 200px;
  height: auto;
}

.desktop-qr-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.desktop-qr-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 280px;
  margin-bottom: 16px;
}

.desktop-wa-direct-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.desktop-wa-direct-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* ============================================================
   MOBILE APP: TOP BAR & BRAND HEADER
   ============================================================ */
.app-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(11, 11, 13, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 16px;
}

.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.brand-badge-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-glow);
  flex-shrink: 0;
}

.brand-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-name span {
  color: var(--gold-primary);
}

.brand-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: #2ecc71;
  font-weight: 600;
  margin-top: 3px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: #2ecc71;
  border-radius: 50%;
  box-shadow: 0 0 6px #2ecc71;
}

/* Order Mode Switcher: Domicilio vs Mesa */
.order-mode-selector {
  display: flex;
  background: #19191d;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 3px;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.mode-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition-fast);
}

.mode-tab-btn.active {
  background: linear-gradient(135deg, var(--gold-primary), #b58832);
  color: #0b0b0d;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(212, 167, 83, 0.4);
}

.active-mode-banner {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(212, 167, 83, 0.08);
  border: 1px solid rgba(212, 167, 83, 0.2);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.78rem;
  color: var(--gold-light);
}

.active-mode-banner span strong {
  color: #fff;
}

.btn-change-mode {
  background: none;
  border: none;
  color: var(--gold-primary);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* ============================================================
   HERO / BANNER CAROUSEL
   ============================================================ */
.promo-slider-wrap {
  padding: 12px 16px 6px;
}

.promo-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 6px;
}

.promo-slider::-webkit-scrollbar {
  display: none;
}

.promo-card {
  min-width: 86%;
  scroll-snap-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: #161619;
  border: 1px solid var(--border-subtle);
  aspect-ratio: 16 / 8.5;
  box-shadow: var(--shadow-sm);
}

.promo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 11, 13, 0.95) 10%, rgba(11, 11, 13, 0.2) 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}

.promo-tag {
  align-self: flex-start;
  background: var(--red-accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.promo-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.promo-subtitle {
  font-size: 0.78rem;
  color: var(--gold-light);
}

/* ============================================================
   SEARCH & CATEGORY BAR (McD / Burger King style)
   ============================================================ */
.menu-controls-sticky {
  position: sticky;
  top: 73px;
  z-index: 70;
  background: rgba(11, 11, 13, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 16px 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.search-input-wrap {
  position: relative;
  margin-bottom: 10px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.9rem;
}

.menu-search-input {
  width: 100%;
  background: #17171b;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 9px 36px 9px 36px;
  font-size: 0.85rem;
  color: #fff;
  outline: none;
  transition: var(--transition-fast);
}

.menu-search-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-glow);
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.95rem;
  display: none;
  cursor: pointer;
}

.categories-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.category-pill {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: #17171a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.category-pill.active {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: #0b0b0d;
  font-weight: 700;
  box-shadow: 0 2px 8px var(--gold-glow);
}

/* ============================================================
   VIEWS CONTAINER: MENU / POPULARES / CART / INFO
   ============================================================ */
.app-view {
  display: none;
  padding: 12px 16px;
}

.app-view.active-view {
  display: block;
}

/* SECTION HEADERS */
.section-heading-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 12px;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-title .badge-count {
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(212, 167, 83, 0.15);
  color: var(--gold-light);
  padding: 2px 7px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

/* ============================================================
   PRODUCT CARDS (Clean, authentic, NO fake invented images)
   ============================================================ */
.products-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.product-card:active {
  transform: scale(0.985);
  background: var(--bg-card-hover);
}

.product-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.product-badge-tag {
  align-self: flex-start;
  background: rgba(212, 167, 83, 0.12);
  color: var(--gold-light);
  border: 1px solid rgba(212, 167, 83, 0.25);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

.product-badge-tag.highlight {
  background: rgba(192, 41, 43, 0.2);
  color: #ff7878;
  border-color: rgba(192, 41, 43, 0.4);
}

.product-icon-wrap {
  width: 40px;
  height: 40px;
  background: rgba(212, 167, 83, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.product-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-name {
  font-size: 1.08rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
}

.product-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.product-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-primary);
  letter-spacing: 0.3px;
}

.btn-add-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-primary);
  color: #0b0b0d;
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 3px 10px rgba(212, 167, 83, 0.3);
}

.btn-add-item:active {
  transform: scale(0.92);
}

/* ============================================================
   BOTTOM SHEET / ITEM CUSTOMIZER MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 150;
  display: none;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.show {
  display: flex;
  opacity: 1;
}

.bottom-sheet {
  width: 100%;
  max-width: 500px;
  background: var(--bg-sheet);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  border-top: 1px solid var(--border-gold);
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  padding: 18px 20px 24px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.show .bottom-sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 44px;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  margin: 0 auto 14px;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.sheet-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.sheet-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold-primary);
}

.sheet-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 16px;
}

.sheet-section-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin: 16px 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sheet-section-title span {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: normal;
}

.extras-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.extra-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1d1d22;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.extra-row.checked {
  border-color: var(--gold-primary);
  background: rgba(212, 167, 83, 0.08);
}

.extra-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

.extra-checkbox {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--text-dim);
  border-radius: 4px;
  outline: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.extra-checkbox:checked {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
}

.extra-checkbox:checked::after {
  content: "✔";
  color: #0b0b0d;
  font-size: 0.7rem;
  font-weight: 900;
}

.extra-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-light);
}

.sheet-notes-input {
  width: 100%;
  background: #1c1c20;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 0.85rem;
  color: #fff;
  resize: none;
  outline: none;
  margin-bottom: 20px;
}

.sheet-notes-input:focus {
  border-color: var(--gold-primary);
}

.sheet-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.qty-counter {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1c1c20;
  border-radius: var(--radius-xl);
  padding: 4px 8px;
  border: 1px solid var(--border-subtle);
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #27272e;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.qty-btn:active {
  transform: scale(0.9);
}

.qty-value {
  font-size: 1rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.btn-confirm-add {
  width: 100%;
  background: linear-gradient(135deg, var(--gold-primary), #b58832);
  color: #0b0b0d;
  border: none;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 14px;
  border-radius: var(--radius-xl);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(212, 167, 83, 0.4);
  transition: var(--transition-fast);
}

.btn-confirm-add:active {
  transform: scale(0.97);
}

/* ============================================================
   FLOATING CART BAR (Above bottom nav when cart has items)
   ============================================================ */
.floating-cart-pill {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: calc(100% - 32px);
  max-width: 468px;
  background: linear-gradient(135deg, #1b1b20, #25252c);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-xl);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 15px var(--gold-glow);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-cart-pill.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.floating-cart-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.floating-badge {
  background: var(--gold-primary);
  color: #0b0b0d;
  font-size: 0.78rem;
  font-weight: 800;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-total {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.btn-view-order {
  background: var(--gold-primary);
  color: #0b0b0d;
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-xl);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

/* ============================================================
   BOTTOM NAVIGATION BAR (McD / KFC / Burger King Style)
   ============================================================ */
.bottom-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background: var(--bg-nav);
  border-top: 1px solid var(--border-gold);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  z-index: 100;
  box-shadow: var(--shadow-nav);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px 0;
  position: relative;
  transition: var(--transition-fast);
}

.nav-item .nav-icon {
  font-size: 1.35rem;
  transition: transform 0.2s ease;
}

.nav-item .nav-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.nav-item.active {
  color: var(--gold-primary);
}

.nav-item.active .nav-icon {
  transform: translateY(-2px) scale(1.1);
}

.nav-item .cart-counter-bubble {
  position: absolute;
  top: 1px;
  right: calc(50% - 18px);
  background: var(--red-accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--bg-main);
  box-shadow: 0 0 6px rgba(192, 41, 43, 0.6);
}

.nav-item .cart-counter-bubble.active {
  display: flex;
}

/* ============================================================
   CART & CHECKOUT VIEW
   ============================================================ */
.cart-items-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.cart-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.cart-item-extras {
  font-size: 0.78rem;
  color: var(--gold-light);
  line-height: 1.35;
}

.cart-item-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-style: italic;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.cart-item-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold-primary);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-item-remove {
  background: none;
  border: none;
  color: #e74c3c;
  font-size: 0.95rem;
  padding: 4px;
  cursor: pointer;
}

/* ORDER FORM (MESA vs DOMICILIO) */
.order-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 20px;
}

.order-form-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.form-input, .form-select, .form-textarea {
  background: #1c1c20;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 0.88rem;
  color: #fff;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 8px var(--gold-glow);
}

.mesa-number-input {
  font-size: 1.2rem;
  font-weight: 800;
  text-align: center;
  color: var(--gold-primary);
  letter-spacing: 1px;
}

/* TOTAL BILL BREAKDOWN */
.bill-summary {
  background: #17171a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bill-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.bill-row.total {
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
}

.bill-row.total .price-tag {
  color: var(--gold-primary);
}

/* WHATSAPP SUBMIT BUTTON */
.btn-whatsapp-order {
  width: 100%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff;
  border: none;
  font-size: 1rem;
  font-weight: 800;
  padding: 15px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-whatsapp-order:active {
  transform: scale(0.97);
}

/* EMPTY CART STATE */
.empty-cart-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
  opacity: 0.6;
}

.empty-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.empty-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.btn-back-to-menu {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-primary);
  color: #0b0b0d;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
}

/* ============================================================
   INFO & LOCAL VIEW
   ============================================================ */
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.info-card-header .icon {
  font-size: 1.2rem;
  color: var(--gold-primary);
}

.info-banner-img {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border: 1px solid var(--border-subtle);
}

.btn-open-maps {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1f1f25;
  color: var(--gold-light);
  border: 1px solid var(--border-gold);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px;
  border-radius: var(--radius-md);
  text-decoration: none;
  margin-top: 8px;
}

.social-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #19191d;
  border: 1px solid var(--border-subtle);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px;
  border-radius: var(--radius-md);
}

.social-btn.ig {
  border-color: rgba(225, 48, 108, 0.4);
}

.social-btn.fb {
  border-color: rgba(66, 103, 178, 0.4);
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-notice {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  background: rgba(25, 25, 29, 0.95);
  border: 1px solid var(--gold-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px var(--gold-glow);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
