/* ===================================================================
   LAS PALMERAS RESTOBAR - MENÚ DIGITAL INTERACTIVO (WEBAPP)
   Diseño Minimalista Premium Mobile App (Light Mode)
   =================================================================== */

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

:root {
  --brand-primary: #FF6B00;
  --brand-primary-dark: #E05300;
  --brand-primary-light: #FFF4ED;
  --brand-secondary: #FFA100;
  --brand-gradient: linear-gradient(135deg, #FF6B00 0%, #FF9500 100%);
  --brand-gradient-soft: linear-gradient(135deg, #FFF7F0 0%, #FFF0E5 100%);
  
  --bg-app: #F8F9FA;
  --bg-card: #FFFFFF;
  --bg-card-subtle: #F3F4F6;
  
  --text-main: #14171A;
  --text-muted: #657786;
  --text-subtle: #94A3B8;
  
  --border-light: #EDEDF0;
  --border-subtle: #F1F3F5;
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-brand: 0 6px 20px rgba(255, 107, 0, 0.35);
  
  --whatsapp-color: #25D366;
  --whatsapp-hover: #1EBE5D;
  
  --safe-bottom: env(safe-area-inset-bottom, 16px);
  --safe-top: env(safe-area-inset-top, 0px);
}

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

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===================================================================
   DESKTOP GATEKEEPER (SOLO SMARTPHONES / NO DESKTOP / QR REDIRECT)
   =================================================================== */

#desktop-gatekeeper {
  display: none;
  min-height: 100vh;
  width: 100%;
  background: radial-gradient(circle at top center, #1F1915 0%, #0E0C0B 100%);
  color: #FFFFFF;
  padding: 40px 24px;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

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

@media (max-width: 768px) {
  #desktop-gatekeeper {
    display: none !important;
  }
  #mobile-webapp {
    display: block !important;
  }
}

.desktop-card {
  max-width: 520px;
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 107, 0, 0.12);
}

.desktop-logo-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 20px;
  border-radius: 50%;
  padding: 3px;
  background: var(--brand-gradient);
  box-shadow: 0 0 30px rgba(255, 107, 0, 0.4);
}

.desktop-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #141110;
}

.desktop-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 107, 0, 0.15);
  border: 1px solid rgba(255, 107, 0, 0.35);
  color: #FFA100;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.desktop-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: #FFFFFF;
}

.desktop-subtitle {
  font-size: 0.95rem;
  color: #D1D5DB;
  margin-bottom: 24px;
  line-height: 1.5;
}

.desktop-qr-container {
  background: #FFFFFF;
  padding: 20px;
  border-radius: var(--radius-lg);
  display: inline-block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  border: 2px solid rgba(255, 107, 0, 0.2);
}

.desktop-qr-container svg {
  display: block;
  width: 190px;
  height: 190px;
}

.desktop-hint {
  font-size: 0.9rem;
  color: #F3F4F6;
  font-weight: 500;
  margin-bottom: 24px;
}

.desktop-hint span {
  color: #FF8E26;
  font-weight: 600;
}

.desktop-info-chips {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  text-align: left;
}

.desktop-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #9CA3AF;
}

.desktop-chip svg {
  width: 16px;
  height: 16px;
  color: #FF8E26;
  flex-shrink: 0;
}

.desktop-slogan {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: #FFA100;
  margin-top: 18px;
  text-transform: uppercase;
}


/* ===================================================================
   MOBILE WEBAPP ARCHITECTURE
   =================================================================== */

#mobile-webapp {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--bg-app);
  padding-bottom: calc(90px + var(--safe-bottom));
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: calc(12px + var(--safe-top)) 16px 12px;
}

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

.brand-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--brand-primary);
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.2);
  flex-shrink: 0;
}

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

.brand-text h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

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

.header-icon-btn:active {
  transform: scale(0.92);
}

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

/* Modality Selector (En Mesa / A Domicilio) */
.modality-selector-bar {
  display: flex;
  align-items: center;
  background: #EDEDF0;
  border-radius: var(--radius-pill);
  padding: 4px;
  position: relative;
  gap: 4px;
}

.modality-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.modality-btn.active {
  background: #FFFFFF;
  color: var(--brand-primary-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-weight: 700;
}

.modality-info-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: var(--brand-primary-light);
  border-radius: var(--radius-sm);
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--brand-primary-dark);
}

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

/* Search Bar */
.search-container {
  padding: 8px 16px 4px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s;
}

.search-box:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9rem;
  color: var(--text-main);
  font-family: inherit;
}

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

.search-clear-btn {
  background: none;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  display: none;
}

/* Hero Carousel / Banner al Inicio */
.hero-banner-container {
  padding: 12px 16px;
}

.hero-banner {
  background: linear-gradient(135deg, #1A1412 0%, #2D1D16 100%);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-banner::after {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.35) 0%, rgba(255, 107, 0, 0) 70%);
  pointer-events: none;
}

.hero-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-gradient);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.hero-title span {
  color: #FFA100;
}

.hero-desc {
  font-size: 0.85rem;
  color: #E2E8F0;
  margin-bottom: 14px;
  line-height: 1.4;
  max-width: 85%;
}

.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.hero-mini-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  color: #FFFFFF;
  font-weight: 500;
}

.hero-slogan-strip {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: #FFB300;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  padding-top: 10px;
  text-align: center;
}

/* Category Quick Bar (Icon-based) */
.category-nav-section {
  position: sticky;
  top: 125px;
  z-index: 90;
  background: rgba(248, 249, 250, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.category-scroll-list {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-scroll-list::-webkit-scrollbar {
  display: none;
}

.category-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  min-width: 68px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.category-pill:active {
  transform: scale(0.95);
}

.category-pill.active {
  background: #FFFFFF;
  border-color: var(--brand-primary);
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.2);
}

.category-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-pill.active .category-icon-box {
  background: var(--brand-gradient);
  color: #FFFFFF;
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(255, 107, 0, 0.35);
}

.category-pill-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.category-pill.active .category-pill-label {
  color: var(--brand-primary-dark);
  font-weight: 700;
}

/* Category Sections & Category Banners */
.menu-content-area {
  padding: 8px 16px 20px;
}

.category-section {
  margin-bottom: 28px;
  scroll-margin-top: 210px;
}

/* Category Banners (Banners entre cada categoría) */
.category-banner {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: linear-gradient(135deg, #FFF8F2 0%, #FFF2E6 100%);
  border: 1px solid rgba(255, 107, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.category-banner-text {
  flex: 1;
}

.category-banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-primary-dark);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.category-banner-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #2D1D16;
  line-height: 1.2;
  margin-bottom: 4px;
}

.category-banner-tagline {
  font-size: 0.8rem;
  color: #78350F;
  line-height: 1.35;
}

.category-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid rgba(255, 107, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.15);
}

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

.dish-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 14px;
  align-items: center;
  position: relative;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

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

/* Dish Image Container (Clean White Background as requested) */
.dish-image-wrap {
  width: 86px;
  height: 86px;
  min-width: 86px;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.02);
}

.dish-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #FFFFFF;
}

.dish-details {
  flex: 1;
  min-width: 0;
}

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

.dish-name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.dish-fav-btn {
  background: none;
  border: none;
  color: #CBD5E1;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.dish-fav-btn.active {
  color: #EF4444;
  transform: scale(1.15);
}

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

.dish-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dish-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand-primary-dark);
}

.dish-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--brand-primary-light);
  border: 1px solid rgba(255, 107, 0, 0.25);
  color: var(--brand-primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.dish-add-btn:active {
  transform: scale(0.92);
  background: var(--brand-primary);
  color: #FFFFFF;
}

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

.allergen-mini-tag {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: #F1F5F9;
  color: #475569;
  font-weight: 600;
  text-transform: capitalize;
}

/* ===================================================================
   APP-STYLE BOTTOM NAVIGATION BAR (CON BORDES REDONDEADOS)
   "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: calc(12px + var(--safe-bottom));
  left: 16px;
  right: 16px;
  max-width: 568px;
  margin: 0 auto;
  z-index: 1000;
  pointer-events: none;
}

.bottom-nav-bar {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 12px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 4px 6px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  min-width: 54px;
}

.nav-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  position: relative;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-icon-wrapper svg {
  width: 22px;
  height: 22px;
  transition: transform 0.25s;
}

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

/* CIRCULAR SELECTION IN BRAND COLOR (Requisito explícito) */
.nav-item.active .nav-icon-wrapper {
  background: var(--brand-gradient);
  color: #FFFFFF;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(255, 107, 0, 0.45);
  transform: translateY(-6px) scale(1.08);
}

.nav-item.active .nav-label {
  color: var(--brand-primary-dark);
  font-weight: 800;
}

.nav-badge-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Floating Cart Summary Pill (when order has items) */
.floating-cart-pill {
  position: fixed;
  bottom: calc(85px + var(--safe-bottom));
  left: 20px;
  right: 20px;
  max-width: 560px;
  margin: 0 auto;
  z-index: 990;
  background: var(--brand-gradient);
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-brand);
  cursor: pointer;
  transform: translateY(120px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.floating-cart-pill:active {
  transform: scale(0.98);
}

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

.floating-cart-badge {
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 800;
}

.floating-cart-text {
  font-size: 0.9rem;
  font-weight: 700;
}

.floating-cart-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
}

/* ===================================================================
   MODALS & BOTTOM SHEETS (Carrito, Modalidad, Ubicación, Favoritos)
   =================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

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

.modal-sheet {
  background: #FFFFFF;
  width: 100%;
  max-width: 600px;
  border-radius: 28px 28px 0 0;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

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

.sheet-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.sheet-drag-handle {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: #CBD5E1;
}

.sheet-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sheet-close-btn {
  background: var(--bg-card-subtle);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
}

.sheet-body {
  padding: 18px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

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

/* Form Controls in Modal */
.form-group {
  margin-bottom: 16px;
}

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

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

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.12);
}

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

/* Modality Selector Tabs inside Modal */
.modal-modality-tabs {
  display: flex;
  gap: 8px;
  background: #F1F3F5;
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.modal-modality-tab {
  flex: 1;
  padding: 12px 14px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.modal-modality-tab.active {
  background: #FFFFFF;
  color: var(--brand-primary-dark);
  box-shadow: var(--shadow-sm);
}

/* Cart Item Rows */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-card-subtle);
  border-radius: var(--radius-md);
  gap: 12px;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-weight: 700;
  font-size: 0.92rem;
  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: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

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

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

.cart-item-total {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--brand-primary-dark);
  min-width: 60px;
  text-align: right;
}

/* Order Summary Box */
.order-summary-box {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

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

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

.summary-row.total .total-amount {
  color: var(--brand-primary-dark);
}

/* WhatsApp Order Button */
.btn-whatsapp-order {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  background: var(--whatsapp-color);
  color: #FFFFFF;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transition: all 0.2s;
}

.btn-whatsapp-order:active {
  transform: scale(0.98);
  background: var(--whatsapp-hover);
}

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

.empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #94A3B8;
}

.empty-state h3 {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 0.85rem;
  margin-bottom: 18px;
}

/* Toast Notifications */
.toast-notice {
  position: fixed;
  top: calc(20px + var(--safe-top));
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(20, 23, 26, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

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

/* Info & Restaurant Details Section */
.restaurant-info-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.restaurant-info-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-main);
}

.contact-row-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s;
}

.contact-row-btn:active {
  transform: scale(0.98);
  background: #FFFFFF;
  border-color: var(--brand-primary);
}

.contact-row-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Allergens section */
.allergens-pill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.allergen-card-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
}

/* Utility Animations */
@keyframes pulseSubtle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.pulse-anim {
  animation: pulseSubtle 2.5s infinite ease-in-out;
}
