/* ==========================================================================
   FAT BURGER BOGOTÁ - ESTILOS OFICIALES WEBAPP (TEMA CLARO / BRAND COLORS)
   Colores de marca: Rojo Fat Burger, Queso Fundido Dorado, Blanco Puro y Carbón
   ========================================================================== */

:root {
  --color-primary: #DE2A26;
  --color-primary-dark: #B91C1C;
  --color-primary-light: #EF4444;
  --color-secondary: #D97706;
  --color-secondary-bright: #F59E0B;
  --color-secondary-dark: #B45309;
  --color-accent: #0284C7;
  --color-accent-dark: #0369A1;
  
  /* Paleta Clara Cálida Diner (Inspirada en el diseño de referencia) */
  --bg-app: #F7F5F0;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F3F4F6;
  --bg-input: #FFFFFF;
  --bg-modal: #FFFFFF;
  --border-color: #E8E6DF;
  --border-subtle: #F0EEE7;
  
  --text-main: #111827;
  --text-muted: #64748B;
  --text-dim: #94A3B8;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 18px rgba(222, 42, 38, 0.25);
  --shadow-cheese: 0 0 15px rgba(245, 158, 11, 0.25);

  --font-family-display: 'Impact', 'Bebas Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  --nav-height: 68px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

input, textarea, button, select {
  font-family: inherit;
  user-select: auto;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: #EAEDF2;
  color: var(--text-main);
  font-family: var(--font-family-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   DESKTOP MOCKUP CONTAINER - ENFORCES MOBILE-ONLY EXPERIENCE
   ========================================================================== */
.device-stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  position: relative;
  background: radial-gradient(circle at 50% 20%, #F4F6F9 0%, #DFE4EC 100%);
}

.device-stage::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../assets/img/real_graffiti.png') center/cover no-repeat;
  opacity: 0.05;
  filter: blur(25px);
  pointer-events: none;
}

/* Smartphone frame for desktop */
.phone-mockup {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 890px;
  background: var(--bg-app);
  border-radius: 46px;
  box-shadow: 0 0 0 10px #1E1E24, 0 0 0 12px #33333E, 0 25px 60px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 10;
  transition: all 0.3s ease;
}

/* Dynamic island / notch */
.phone-notch {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 25px;
  background: #000000;
  border-radius: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  pointer-events: none;
}

.notch-speaker {
  width: 45px;
  height: 4px;
  background: #222;
  border-radius: 3px;
}

.notch-camera {
  width: 10px;
  height: 10px;
  background: #111;
  border-radius: 50%;
  box-shadow: inset 0 0 3px #00B4D8;
}

/* Desktop header controls */
.desktop-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 430px;
  margin-bottom: 12px;
  z-index: 20;
  font-size: 13px;
  color: #4B5563;
}

.desktop-badge {
  background: rgba(222, 42, 38, 0.1);
  border: 1px solid rgba(222, 42, 38, 0.25);
  color: var(--color-primary);
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.desktop-toggle-btn {
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  color: #374151;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.desktop-toggle-btn:hover {
  background: #F3F4F6;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* When expanded or on true mobile screen */
@media (max-width: 600px) {
  .device-stage {
    padding: 0;
    background: var(--bg-app);
  }
  .device-stage::before {
    display: none;
  }
  .desktop-banner {
    display: none;
  }
  .phone-mockup {
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
  .phone-notch {
    display: none;
  }
}

/* Fullscreen mode on desktop when toggled */
body.fullscreen-mode .phone-mockup {
  max-width: 480px;
  height: 100vh;
  border-radius: 0;
  box-shadow: none;
}
body.fullscreen-mode .phone-notch {
  display: none;
}
body.fullscreen-mode .device-stage {
  padding: 0;
}

/* ==========================================================================
   WEBAPP APP SHELL & NAVIGATION
   ========================================================================== */
.app-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  position: relative;
  background: var(--bg-app);
  overflow: hidden;
}

/* App Header */
.app-header {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  padding: 38px 16px 12px 16px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

@media (max-width: 600px) {
  .app-header {
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
  }
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(222, 42, 38, 0.25));
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo-img:active {
  transform: scale(0.92) rotate(-3deg);
}

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

.brand-title {
  font-family: var(--font-family-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-main);
  line-height: 1.1;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
}

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

.brand-tagline {
  font-size: 11px;
  color: var(--color-secondary);
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* Quick Order Mode Toggle Pill in Header */
.order-mode-pill {
  display: flex;
  align-items: center;
  background: #F3F4F6;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3px;
  gap: 3px;
  cursor: pointer;
}

.mode-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mode-btn.active {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(222, 42, 38, 0.35);
}

/* Search and Filters Bar */
.search-container {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  height: 40px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0 38px 0 36px;
  color: var(--text-main);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.search-input:focus {
  background: #FFFFFF;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(222, 42, 38, 0.12);
}

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

.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #E5E7EB;
  border: none;
  color: #4B5563;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
}

.search-clear.visible {
  display: flex;
}

/* ==========================================================================
   APP CONTENT / MAIN SCROLL AREA
   ========================================================================== */
.app-main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-height) + 28px + var(--safe-bottom) + 20px);
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  background: var(--bg-app);
}

/* Custom scrollbar */
.app-main::-webkit-scrollbar {
  width: 4px;
}
.app-main::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 4px;
}

/* View Pages */
.view-page {
  display: none;
  padding: 14px;
  animation: fadeIn 0.25s ease-out;
}

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

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

/* ==========================================================================
   HERO BANNER DESTACADO (ESTILO APP ARBY'S / FAST CASUAL)
   ========================================================================== */
.promo-banner-arby {
  position: relative;
  width: 100%;
  min-height: 185px;
  background: linear-gradient(135deg, #9C1118 0%, #7A0A10 100%);
  border-radius: 24px;
  padding: 20px 16px 24px 18px;
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(156, 17, 24, 0.28);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.promo-banner-arby::before {
  content: "";
  position: absolute;
  top: -30px;
  left: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.banner-text-side {
  flex: 1;
  max-width: 58%;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.banner-main-title {
  font-family: var(--font-family-display);
  font-size: 25px;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  margin-bottom: 6px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.banner-sub-text {
  font-size: 11px;
  color: #FEE2E2;
  line-height: 1.35;
  margin-bottom: 14px;
  font-weight: 500;
}

.banner-order-btn {
  align-self: flex-start;
  background: #FFFFFF;
  color: #9C1118;
  border: none;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.banner-order-btn:active {
  transform: scale(0.94);
  background: #FEE2E2;
}

.banner-img-side {
  width: 44%;
  height: 155px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  position: relative;
}

.banner-burger-img {
  width: 128%;
  max-width: none;
  height: auto;
  object-fit: cover;
  transform: rotate(-3deg) scale(1.08);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.45));
}

.banner-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 3;
}

.banner-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.2s ease;
}

.banner-dots .dot.active {
  background: #FFFFFF;
  width: 16px;
  border-radius: 4px;
}

/* ==========================================================================
   CATEGORÍAS EN ICONOS (HORIZONTAL ICON CARDS ESTILO ARBY'S)
   ========================================================================== */
.categories-icon-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 14px 2px;
  margin-bottom: 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.categories-icon-row::-webkit-scrollbar {
  display: none;
}

.cat-icon-card {
  flex: 0 0 68px;
  height: 74px;
  background: #FFFFFF;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1.5px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  scroll-snap-align: start;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 6px 4px;
}

.cat-icon-card:active {
  transform: scale(0.92);
}

.cat-icon-card.active {
  background: #FFFFFF;
  border-color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(222, 42, 38, 0.2);
}

.cat-icon-emoji {
  font-size: 22px;
  line-height: 1;
}

.cat-icon-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #4B5563;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.cat-icon-card.active .cat-icon-label {
  color: var(--color-primary);
  font-weight: 800;
}

/* ==========================================================================
   POPULAR PICKS (3 PRODUCTOS DESTACADOS)
   ========================================================================== */
.popular-picks-section {
  margin-bottom: 22px;
}

.popular-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 2px;
}

.popular-section-title {
  font-family: var(--font-family-body);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.popular-view-all {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.popular-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.popular-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.08);
}

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

.popular-img-box {
  width: 100%;
  height: 82px;
  border-radius: 12px;
  overflow: hidden;
  background: #F7F5F0;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popular-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.popular-card:hover .popular-img-box img {
  transform: scale(1.06);
}

.popular-card-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  height: 28px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 8px;
}

.popular-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.popular-card-price {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--color-primary);
}

.popular-btn-add {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-primary);
  border: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(222, 42, 38, 0.35);
  transition: transform 0.12s ease;
}

.popular-btn-add:active {
  transform: scale(0.85);
  background: var(--color-primary-dark);
}

/* ==========================================================================
   REWARDS CARD (ESTILO ARBY'S REWARDS / LOCAL FAT BURGER)
   ========================================================================== */
.rewards-card-arby {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 22px;
}

.rewards-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(222, 42, 38, 0.05);
  flex-shrink: 0;
}

.rewards-text {
  flex: 1;
}

.rewards-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.rewards-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 1px;
}

.rewards-cta-btn {
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  padding: 7px 14px;
  border-radius: 18px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(222, 42, 38, 0.3);
  flex-shrink: 0;
  transition: transform 0.12s ease;
}

.rewards-cta-btn:active {
  transform: scale(0.94);
}
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(222, 42, 38, 0.35);
}

.cat-chip-icon {
  font-size: 14px;
}

/* Category Sections */
.category-section {
  margin-bottom: 24px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  font-family: var(--font-family-display);
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-badge {
  font-size: 11px;
  font-family: var(--font-family-body);
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 700;
}

/* Menu Items Grid / Cards */
.dishes-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dish-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  gap: 12px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.dish-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #D1D5DB;
}

.dish-card:active {
  transform: scale(0.985);
  border-color: var(--color-primary);
}

.dish-img-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
}

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

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

.dish-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  color: #92400E;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid #FCD34D;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dish-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dish-number {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.dish-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 4px;
}

.dish-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.dish-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.dish-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.dish-price::before {
  content: "$";
  font-size: 13px;
  color: var(--color-primary);
  margin-right: 1px;
  font-weight: 700;
}

.btn-add-quick {
  background: var(--color-primary);
  border: none;
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(222, 42, 38, 0.35);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn-add-quick:active {
  transform: scale(0.88);
  background: var(--color-primary-dark);
}

/* ==========================================================================
   BOTTOM NAVIGATION BAR (WEBAPP TAB BAR - ESTILO APP FLOTANTE)
   ========================================================================== */
.bottom-nav {
  position: absolute;
  bottom: calc(10px + var(--safe-bottom));
  left: 14px;
  right: 14px;
  height: 64px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 6px;
  z-index: 60;
  box-shadow: 0 10px 28px -4px rgba(0, 0, 0, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
}

.nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 48px;
  border-radius: 20px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  background: none;
  border: none;
}

.nav-tab:active {
  transform: scale(0.92);
}

.nav-tab.active {
  color: #ffffff;
  font-weight: 700;
  background: var(--color-primary);
  box-shadow: 0 3px 10px rgba(222, 42, 38, 0.35);
}

.nav-icon-wrapper {
  position: relative;
  font-size: 19px;
  line-height: 1;
}

.nav-tab.active .nav-icon-wrapper {
  color: #ffffff;
}

/* Botón Central Flotante y Elevado para el Carrito */
.nav-tab-center {
  position: relative;
  top: -14px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #DE2A26 0%, #B91C1C 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(222, 42, 38, 0.45);
  border: 3.5px solid var(--bg-app);
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
  border: none;
}

.nav-tab-center:active {
  transform: scale(0.9);
}

.nav-tab-center .nav-icon-wrapper {
  font-size: 22px;
  line-height: 1;
  color: #ffffff;
}

.badge-cart-count {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #ffffff;
  color: var(--color-primary);
  font-size: 10.5px;
  font-weight: 900;
  min-width: 19px;
  height: 19px;
  border-radius: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--color-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.badge-cart-count.visible {
  display: flex;
  animation: popBadge 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popBadge {
  0% { transform: scale(0.5); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   CART & ORDER SUMMARY VIEW
   ========================================================================== */
.cart-header-status {
  background: linear-gradient(135deg, rgba(222,42,38,0.08) 0%, rgba(245,158,11,0.12) 100%);
  border: 1px solid rgba(222, 42, 38, 0.2);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-info h4 {
  font-size: 14px;
  color: var(--text-main);
  font-weight: 700;
}

.status-info p {
  font-size: 12px;
  color: var(--text-muted);
}

.status-badge {
  background: var(--color-primary);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 8px;
  text-transform: uppercase;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.cart-item-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.cart-item-img {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.cart-item-additions {
  font-size: 11px;
  color: var(--color-secondary);
  margin-bottom: 4px;
  font-weight: 600;
}

.cart-item-price {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F3F4F6;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 3px;
}

.btn-qty {
  width: 26px;
  height: 26px;
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-qty:active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.cart-qty-num {
  font-size: 13px;
  font-weight: 700;
  min-width: 16px;
  text-align: center;
  color: var(--text-main);
}

.cart-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.cart-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.9;
}

.cart-empty-btn {
  margin-top: 16px;
  background: var(--color-primary);
  border: none;
  color: #ffffff;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(222, 42, 38, 0.3);
  transition: transform 0.15s ease;
}

.cart-empty-btn:active {
  transform: scale(0.97);
}

/* Order Mode Details (Mesa vs Domicilio Forms) */
.order-mode-section {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.order-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.tab-mode-selector {
  background: #F9FAFB;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-mode-selector.active {
  background: rgba(222, 42, 38, 0.07);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.tab-mode-selector h5 {
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 2px;
  color: var(--text-main);
}

.tab-mode-selector.active h5 {
  color: var(--color-primary);
}

.tab-mode-selector span {
  font-size: 11px;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: #F9FAFB;
  border: 1px solid #D1D5DB;
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--text-main);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  background: #FFFFFF;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(222, 42, 38, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 55px;
}

/* Payment Method Badges */
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.payment-chip {
  background: #F9FAFB;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 8px 4px;
  font-size: 11.5px;
  text-align: center;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-chip.active {
  background: #FEF3C7;
  border-color: #F59E0B;
  color: #92400E;
}

/* Cart Calculation Summary */
.cart-summary-box {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.summary-row.total {
  border-top: 1px dashed var(--border-color);
  padding-top: 10px;
  margin-top: 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.summary-row.total .total-amount {
  color: var(--color-primary);
  font-size: 19px;
}

/* WhatsApp Checkout Button */
.btn-checkout-whatsapp {
  width: 100%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-checkout-whatsapp:active {
  transform: scale(0.98);
  filter: brightness(0.92);
}

.whatsapp-icon {
  font-size: 20px;
}

/* ==========================================================================
   RESTAURANT INFO VIEW (UBICACIÓN, HORARIOS, FOTOS)
   ========================================================================== */
.info-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.info-hero-graffiti {
  position: relative;
  width: 100%;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid #E5E7EB;
}

.info-hero-graffiti img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-graffiti-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(17, 24, 39, 0.85);
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: #FCD34D;
}

.info-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.info-icon {
  font-size: 18px;
  color: var(--color-primary);
  width: 24px;
  text-align: center;
}

.info-text h5 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.info-text p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.info-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.btn-info-action {
  background: #F9FAFB;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-info-action:hover {
  background: #F3F4F6;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.gallery-item {
  position: relative;
  height: 95px;
  border-radius: 10px;
  overflow: hidden;
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   PRODUCT DETAIL MODAL (BOTTOM SHEET ESTILO RAPPI / UBER EATS)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  background: #FFFFFF;
  width: 100%;
  max-width: 430px;
  max-height: 85vh;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.sheet-handle {
  width: 38px;
  height: 4px;
  background: #D1D5DB;
  border-radius: 2px;
  margin: 10px auto 4px auto;
  flex-shrink: 0;
}

.sheet-hero {
  position: relative;
  width: 100%;
  height: 175px;
  flex-shrink: 0;
  background: #F3F4F6;
}

.sheet-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sheet-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sheet-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}

.sheet-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}

.sheet-title {
  font-family: var(--font-family-display);
  font-size: 21px;
  text-transform: uppercase;
  color: var(--text-main);
  line-height: 1.15;
}

.sheet-price {
  font-size: 19px;
  font-weight: 800;
  color: var(--color-primary);
  white-space: nowrap;
}

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

.sheet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.sheet-tag {
  background: #F3F4F6;
  border: 1px solid var(--border-color);
  color: #374151;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

/* Combo Upgrade Banner inside sheet */
.combo-promo-box {
  background: linear-gradient(135deg, rgba(222,42,38,0.07) 0%, rgba(245,158,11,0.12) 100%);
  border: 1px solid rgba(222,42,38,0.25);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.combo-promo-text h5 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.combo-promo-text p {
  font-size: 11.5px;
  color: var(--color-secondary);
  font-weight: 600;
}

.checkbox-custom {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
}

.checkbox-custom input {
  opacity: 0;
  width: 0;
  height: 0;
}

.checkmark {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #FFFFFF;
  border: 2px solid #D1D5DB;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.checkbox-custom input:checked ~ .checkmark {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-custom input:checked ~ .checkmark:after {
  display: block;
}

/* Additions List in Modal */
.sheet-section-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-section-title span:last-child {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

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

.addition-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F9FAFB;
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.addition-row:hover {
  background: #F3F4F6;
  border-color: var(--color-primary);
}

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

.addition-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.addition-price {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-secondary);
}

/* Sheet Footer with Add to Cart Button */
.sheet-footer {
  border-top: 1px solid var(--border-color);
  padding: 14px 16px calc(14px + var(--safe-bottom)) 16px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
}

.sheet-qty-ctrl {
  display: flex;
  align-items: center;
  background: #F3F4F6;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 4px;
}

.sheet-qty-btn {
  width: 32px;
  height: 32px;
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sheet-qty-val {
  font-size: 14px;
  font-weight: 700;
  min-width: 28px;
  text-align: center;
  color: var(--text-main);
}

.btn-add-modal {
  flex: 1;
  background: var(--color-primary);
  border: none;
  color: #ffffff;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(222, 42, 38, 0.35);
  transition: transform 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-add-modal:active {
  transform: scale(0.98);
}

/* ==========================================================================
   ORDER CONFIRMATION DIALOG & TOAST
   ========================================================================== */
.toast-msg {
  position: fixed;
  bottom: calc(var(--nav-height) + 24px + var(--safe-bottom) + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #18181B;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 90;
}

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

.toast-icon {
  color: #FBBF24;
}
