/* ==========================================================================
   BIM BAM BUM BURGER - Premium Minimalist Light WebApp Styles
   Brand Color: #FFB800 (Warm Amber Gold) / #111827 (Jet Dark) / #FFFFFF (Pure White)
   ========================================================================== */

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

:root {
  --brand-primary: #FFB800;
  --brand-primary-dark: #D97706;
  --brand-primary-light: #FEF3C7;
  --brand-primary-glow: rgba(255, 184, 0, 0.35);

  --bg-page: #F8F9FA;
  --bg-card: #FFFFFF;
  --bg-subtle: #F3F4F6;
  --bg-elevated: #FFFFFF;

  --text-main: #111827;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --text-on-brand: #111827;

  --border-light: #E5E7EB;
  --border-subtle: #F3F4F6;
  --border-focus: #FFB800;

  --tag-spicy-bg: #FEE2E2;
  --tag-spicy-text: #B91C1C;
  --tag-spicy-border: #FECACA;

  --tag-new-bg: #E0F2FE;
  --tag-new-text: #0369A1;
  --tag-new-border: #BAE6FD;

  --tag-pop-bg: #FEF3C7;
  --tag-pop-text: #92400E;
  --tag-pop-border: #FDE68A;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 6px 18px -2px rgba(0,0,0,0.06);
  --shadow-lg: 0 14px 34px -4px rgba(0,0,0,0.09);
  --shadow-nav: 0 10px 30px rgba(0,0,0,0.1);

  --font-heading: 'Oswald', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --safe-bottom: env(safe-area-inset-bottom, 16px);
  --safe-top: env(safe-area-inset-top, 0px);
}

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

html {
  font-size: 16px;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-body);
  scroll-behavior: smooth;
}

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

/* ==========================================================================
   DESKTOP GATEKEEPER / QR CODE SCREEN
   Visible strictly on desktop (min-width: 769px) unless forced in testing
   ========================================================================== */
#desktop-gatekeeper {
  display: none;
  min-height: 100vh;
  width: 100%;
  background: radial-gradient(circle at 50% 20%, #FFFBEB 0%, #F8F9FA 60%, #EEF2F6 100%);
  padding: 40px 24px;
  align-items: center;
  justify-content: center;
}

@media (min-width: 769px) {
  #desktop-gatekeeper {
    display: flex;
  }
  #mobile-app {
    display: none !important;
  }
}

.desktop-card {
  max-width: 580px;
  width: 100%;
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  text-align: center;
  box-shadow: 0 25px 60px -10px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}

.desktop-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #F59E0B, #FFB800, #FBBF24);
}

.desktop-logo-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #111827;
  padding: 4px;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.35);
}

.desktop-logo-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.desktop-brand-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.desktop-brand-sub {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.desktop-badge-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FEF3C7;
  color: #92400E;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid #FDE68A;
}

.desktop-badge-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.desktop-qr-container {
  background: #FFFFFF;
  border: 2px dashed #E5E7EB;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

#desktop-qrcode-canvas {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
}

#desktop-qrcode-canvas canvas {
  width: 200px !important;
  height: 200px !important;
  border-radius: 8px;
}

.desktop-scan-hint {
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.desktop-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.desktop-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.btn-desktop-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--text-main);
  color: #FFFFFF;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-desktop-copy:hover {
  background: #000000;
  transform: translateY(-1px);
}

.btn-desktop-preview {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: transparent;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
}

.desktop-footer-info {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.desktop-footer-info a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
}

/* ==========================================================================
   MOBILE APP CONTAINER
   ========================================================================== */
#mobile-app {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-page);
  position: relative;
  padding-bottom: 120px; /* Room for floating rounded bottom nav */
}

/* App Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 12px 18px 10px;
  transition: box-shadow 0.2s ease;
}

.app-header.scrolled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

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

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.header-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #111827;
  padding: 2px;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.35);
  flex-shrink: 0;
}

.header-logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

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

.header-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-main);
}

.header-location-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-primary-dark);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

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

.header-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.header-btn:active {
  transform: scale(0.94);
  background: #E5E7EB;
}

.header-cart-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--brand-primary);
  color: #111827;
  font-size: 0.68rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Search Bar */
.search-wrapper {
  margin-top: 10px;
  position: relative;
}

.search-input {
  width: 100%;
  height: 40px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0 16px 0 40px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

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

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

.search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #E5E7EB;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
}

/* ==========================================================================
   HERO BANNER (Referente a los platos al inicio del menú)
   ========================================================================== */
.hero-banner {
  padding: 16px 18px 8px;
}

.hero-banner-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-banner-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.25) 0%, rgba(255, 184, 0, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FEF3C7;
  color: #92400E;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

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

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.hero-pill span {
  color: var(--brand-primary-dark);
}

/* ==========================================================================
   CATEGORY TABS (With Icons)
   ========================================================================== */
.categories-nav-wrapper {
  position: sticky;
  top: 104px;
  z-index: 30;
  background: rgba(248, 249, 250, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 18px 10px;
  margin-top: 4px;
}

.categories-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}

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

.category-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.category-tab-btn .tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.category-tab-btn.active {
  background: var(--text-main);
  color: #FFFFFF;
  border-color: var(--text-main);
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.18);
}

.category-tab-btn.active .tab-icon {
  color: var(--brand-primary);
}

/* ==========================================================================
   CATEGORY BANNERS (Entre cada categoría)
   ========================================================================== */
.category-section {
  padding: 0 18px;
  margin-bottom: 32px;
}

.category-banner {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-left: 5px solid var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.category-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.category-banner-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.category-banner-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: #FEF3C7;
  color: #92400E;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.category-banner-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  line-height: 1.1;
  color: var(--text-main);
  margin-bottom: 4px;
}

.category-banner-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.category-banner-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   DISH CARDS (Pure Minimalist Premium White - NO fake images)
   ========================================================================== */
.dishes-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dish-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 16px 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.dish-card:active {
  transform: scale(0.99);
}

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

.dish-title-group {
  flex: 1;
}

.dish-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-main);
  line-height: 1.15;
}

.dish-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.tag-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.tag-badge.spicy {
  background: var(--tag-spicy-bg);
  color: var(--tag-spicy-text);
  border: 1px solid var(--tag-spicy-border);
}

.tag-badge.new {
  background: var(--tag-new-bg);
  color: var(--tag-new-text);
  border: 1px solid var(--tag-new-border);
}

.tag-badge.popular {
  background: var(--tag-pop-bg);
  color: var(--tag-pop-text);
  border: 1px solid var(--tag-pop-border);
}

.tag-badge.brand {
  background: #FEF3C7;
  color: #78350F;
  border: 1px solid #FCD34D;
}

.tag-badge.seasonal {
  background: #F3E8FF;
  color: #6B21A8;
  border: 1px solid #E9D5FF;
}

.dish-actions-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-fav {
  background: transparent;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #9CA3AF;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-fav:active {
  transform: scale(1.25);
}

.btn-fav.active {
  color: #EF4444;
}

.btn-fav.active svg {
  fill: #EF4444;
}

.dish-description {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 14px;
}

.dish-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
}

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

.dish-price-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.dish-price {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}

/* Add / Quantity Buttons */
.dish-order-actions {
  display: flex;
  align-items: center;
}

.btn-add-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--text-main);
  color: #FFFFFF;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.btn-add-item:active {
  transform: scale(0.95);
  background: #000000;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  background: #F3F4F6;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 2px;
}

.btn-qty {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #FFFFFF;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.15s ease;
}

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

.qty-display {
  min-width: 28px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

/* ==========================================================================
   BOTTOM APP MENU (Barra estilo app con bordes redondeados y círculo de marca)
   "la barra de menu inferior debe tener bordes redondeados, a medida que voy
   seleccionando un item del menu debe encerrarse en un circulo del color de la marca"
   ========================================================================== */
.bottom-nav-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 16px calc(var(--safe-bottom) + 8px);
  pointer-events: none;
  display: flex;
  justify-content: center;
}

.bottom-nav-bar {
  pointer-events: auto;
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 36px; /* Bordes notablemente redondeados */
  padding: 8px 12px;
  box-shadow: var(--shadow-nav);
  display: flex;
  align-items: center;
  justify-content: space-around;
  transition: transform 0.25s ease;
}

.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 10px;
  color: var(--text-muted);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Icon container with circular highlight requirement */
.nav-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: transparent;
  color: #6B7280;
  position: relative;
}

.nav-item.active .nav-icon-circle {
  background: var(--brand-primary); /* Círculo del color de la marca */
  color: #111827;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.45);
}

.nav-label {
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 2px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-item.active .nav-label {
  color: var(--text-main);
  font-weight: 800;
}

.nav-badge-pill {
  position: absolute;
  top: 0px;
  right: 0px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #FFFFFF;
}

/* ==========================================================================
   MODALS & DRAWERS (Order / Modality / Cart / Info)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: flex-end;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.modal-backdrop.active {
  display: flex;
}

.modal-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  background: #FFFFFF;
  border-radius: 28px 28px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-handle-bar {
  width: 44px;
  height: 5px;
  background: #E5E7EB;
  border-radius: 3px;
  margin: 12px auto 8px;
}

.modal-header {
  padding: 8px 20px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.modal-close-btn {
  background: #F3F4F6;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}

/* Modality Selector Tabs (En Mesa vs Domicilio) */
.modality-selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.modality-btn {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-light);
  background: #FFFFFF;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.modality-btn .modality-icon {
  font-size: 1.4rem;
}

.modality-btn .modality-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.modality-btn .modality-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.modality-btn.selected {
  border-color: var(--brand-primary);
  background: #FFFDF5;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.modality-btn.selected .modality-name {
  color: #B45309;
}

/* Form inputs for checkout */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 5px;
}

.form-label span {
  color: #EF4444;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  background: #FFFFFF;
}

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

.form-textarea {
  resize: none;
  height: 64px;
}

/* Cart Items in Checkout */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #F9FAFB;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

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

.cart-item-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-main);
}

.cart-item-unit-price {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-item-total {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  min-width: 60px;
  text-align: right;
}

/* Order Totals */
.order-totals-card {
  background: #F9FAFB;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 10px;
  border: 1px solid var(--border-light);
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.order-total-row.grand-total {
  border-top: 1px dashed var(--border-light);
  padding-top: 10px;
  margin-top: 8px;
  margin-bottom: 0;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-footer {
  padding: 14px 20px calc(var(--safe-bottom) + 14px);
  border-top: 1px solid var(--border-subtle);
  background: #FFFFFF;
}

.btn-confirm-ws {
  width: 100%;
  padding: 15px 20px;
  border-radius: var(--radius-full);
  background: #25D366;
  color: #FFFFFF;
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
}

.btn-confirm-ws:active {
  transform: scale(0.98);
  background: #1EBE5D;
}

/* Info & Location Sheet */
.info-sheet-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.info-card-body {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.info-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.btn-info-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border-light);
  background: #F9FAFB;
  color: var(--text-main);
}

.btn-info-action.primary {
  background: var(--text-main);
  color: #FFFFFF;
  border-color: var(--text-main);
}

/* Toast notification */
.toast-notice {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #111827;
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

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

/* Empty state */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-light);
  margin: 10px 0;
}

.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.empty-state-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 4px;
}

.empty-state-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 280px;
  margin: 0 auto 16px;
}
