/* ========================================================
   UVE SMASH BURGER - WEBAPP MENÚ DIGITAL INTERACTIVO
   Estilo: Minimalista Premium Estilo App (Light Theme Only)
   Colores de Marca:
     - Primario (UVE Orange): #F05A28
     - Secundario (Golden Cheddar): #FFA028
     - Fondo: #FAF7F2 (Ivory suave)
     - Superficies: #FFFFFF (Blanco puro limpio)
     - Texto: #1C1917 / #44403C
   ======================================================== */

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

:root {
  --brand-orange: #F05A28;
  --brand-orange-hover: #D94818;
  --brand-orange-light: #FFF0EB;
  --brand-orange-glow: rgba(240, 90, 40, 0.25);
  --brand-gold: #FFA028;
  --brand-gold-light: #FFF8E7;
  
  --bg-app: #FAF7F2;
  --bg-card: #FFFFFF;
  --bg-subtle: #F5EFE6;
  --border-card: #ECE4D8;
  --border-light: #F0EAE1;
  
  --text-main: #1C1917;
  --text-muted: #78716C;
  --text-light: #A8A29E;
  
  --whatsapp-green: #25D366;
  --whatsapp-dark: #128C7E;
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(28, 25, 23, 0.04);
  --shadow-md: 0 8px 24px rgba(28, 25, 23, 0.06);
  --shadow-lg: 0 16px 36px rgba(240, 90, 40, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-bar: 0 -8px 25px rgba(28, 25, 23, 0.08);
  
  --font-brand: 'Fredoka', cursive, sans-serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  --safe-bottom: env(safe-area-inset-bottom, 16px);
}

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

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ========================================================
   DESKTOP GATE - EXCLUSIVIDAD SMARTPHONE CON QR
   (No debe abrir en desktop, solo mostrar pantalla elegante con QR)
   ======================================================== */
.desktop-gate {
  display: none;
  min-height: 100vh;
  width: 100%;
  background: radial-gradient(circle at 50% 20%, #FFF5EF 0%, #FAF7F2 60%, #F3ECE1 100%);
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.desktop-card {
  max-width: 540px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.desktop-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-gold));
}

.desktop-logo-wrapper {
  margin-bottom: 20px;
  display: inline-block;
  position: relative;
}

.desktop-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  border: 3px solid #FFFFFF;
  object-fit: cover;
}

.desktop-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-orange-light);
  color: var(--brand-orange);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.desktop-title {
  font-family: var(--font-brand);
  font-size: 28px;
  color: var(--brand-orange);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.desktop-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

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

.qr-code-target {
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-hint {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-orange);
  display: flex;
  align-items: center;
  gap: 6px;
}

.desktop-instructions {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
}

.desktop-instructions ol {
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 13.5px;
}

.desktop-instructions li {
  margin-bottom: 6px;
}

.desktop-instructions li:last-child {
  margin-bottom: 0;
}

.desktop-location-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
}

.desktop-location-bar a {
  color: var(--brand-orange);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.desktop-dev-override {
  margin-top: 16px;
}

.btn-dev-toggle {
  background: transparent;
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-dev-toggle:hover {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--brand-orange);
}

/* ========================================================
   MOBILE WEBAPP CONTAINER
   ======================================================== */
.mobile-app {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--bg-app);
  position: relative;
  padding-bottom: 110px; /* Space for bottom nav bar */
}

/* En desktop (> 768px), ocultar app y mostrar Gate con QR */
@media (min-width: 769px) {
  body:not(.force-mobile-view) .desktop-gate {
    display: flex;
  }
  body:not(.force-mobile-view) .mobile-app {
    display: none;
  }
  
  /* Cuando el usuario o desarrollador activa force-mobile-view */
  body.force-mobile-view .desktop-gate {
    display: none;
  }
  body.force-mobile-view .mobile-app {
    display: block;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
    border-left: 1px solid var(--border-card);
    border-right: 1px solid var(--border-card);
  }
}

/* ========================================================
   APP HEADER
   ======================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253, 251, 247, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-card);
  padding: 12px 18px;
}

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

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

.brand-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--brand-orange);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  background: #FFF;
}

.brand-text h1 {
  font-family: var(--font-brand);
  font-size: 20px;
  color: var(--brand-orange);
  line-height: 1.1;
  letter-spacing: 0.4px;
}

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

.brand-location .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-orange);
}

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

.btn-header-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.badge-counter {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--brand-orange);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
}

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

.promo-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF5EF 100%);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.promo-card::after {
  content: '🍔';
  position: absolute;
  right: -12px;
  bottom: -16px;
  font-size: 80px;
  opacity: 0.12;
  pointer-events: none;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-orange);
  color: #FFFFFF;
  font-family: var(--font-brand);
  font-size: 11px;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

.promo-title {
  font-family: var(--font-brand);
  font-size: 20px;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 6px;
}

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

.promo-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
}

.promo-dishes-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dish-chip {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.dish-chip.highlight {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  background: var(--brand-orange-light);
}

/* ========================================================
   CATEGORY ICON NAVIGATION
   ======================================================== */
.category-nav-wrapper {
  padding: 12px 18px 8px 18px;
  position: sticky;
  top: 69px;
  z-index: 35;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.category-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px;
}

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

.category-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-sm);
}

.category-pill .cat-icon {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.category-pill.active {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(240, 90, 40, 0.35);
}

/* ========================================================
   CATEGORY DIVIDER BANNERS (Banners entre cada categoría)
   ======================================================== */
.category-divider-banner {
  margin: 26px 18px 16px 18px;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.banner-burgers {
  background: linear-gradient(135deg, #FFF1EB 0%, #FFE6DC 100%);
  border: 1px solid #FED3C2;
}

.banner-papas {
  background: linear-gradient(135deg, #FFF8E6 0%, #FFF0C9 100%);
  border: 1px solid #FFE49E;
}

.banner-adiciones {
  background: linear-gradient(135deg, #F3F0EC 0%, #E9E3DA 100%);
  border: 1px solid #DFD7CB;
}

.banner-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.banner-content {
  flex: 1;
}

.banner-tag {
  font-family: var(--font-brand);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--brand-orange);
  font-weight: 700;
  margin-bottom: 2px;
}

.banner-title {
  font-family: var(--font-brand);
  font-size: 16px;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 3px;
}

.banner-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ========================================================
   PRODUCT SECTION & CARDS
   ======================================================== */
.section-title-wrap {
  padding: 0 18px 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title {
  font-family: var(--font-brand);
  font-size: 18px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  background: var(--bg-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.products-grid {
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Card Principal de Hamburguesas */
.product-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

/* Contenedor de la Imagen: FONDO BLANCO LIMPIO */
.product-image-container {
  width: 100%;
  height: 175px;
  background-color: #FFFFFF; /* Fondo blanco limpio estricto */
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.product-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

/* Botón de Favorito */
.btn-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-card);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  z-index: 5;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.btn-fav.active {
  color: var(--brand-orange);
  background: var(--brand-orange-light);
  border-color: var(--brand-orange);
}

.btn-fav.active svg {
  fill: var(--brand-orange);
  stroke: var(--brand-orange);
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--brand-orange);
  color: #FFFFFF;
  font-family: var(--font-brand);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(240, 90, 40, 0.3);
  letter-spacing: 0.4px;
}

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

.product-name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.product-title {
  font-family: var(--font-brand);
  font-size: 18px;
  color: var(--text-main);
  letter-spacing: 0.3px;
}

.product-price {
  font-family: var(--font-brand);
  font-size: 17px;
  color: var(--brand-orange);
  font-weight: 700;
}

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

.product-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.product-meta {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-gold);
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-add {
  background: var(--brand-orange);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(240, 90, 40, 0.3);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Platos SIN imagen (Papas Rústicas y Adiciones - diseño tipográfico minimalista limpio) */
.product-card-no-img {
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  transition: transform 0.2s;
}

.product-card-no-img:active {
  transform: scale(0.985);
}

.card-no-img-body {
  flex: 1;
}

.card-no-img-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.no-img-tag {
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}

.card-no-img-title {
  font-family: var(--font-brand);
  font-size: 15.5px;
  color: var(--text-main);
}

.card-no-img-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 8px;
}

.card-no-img-price {
  font-family: var(--font-brand);
  font-size: 15.5px;
  color: var(--brand-orange);
  font-weight: 700;
}

.card-no-img-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

/* ========================================================
   FAVORITOS EMPTY STATE
   ======================================================== */
.favorites-empty {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-card);
  border: 1.5px dashed var(--border-card);
  border-radius: var(--radius-lg);
  margin: 0 18px;
}

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

.favorites-empty-title {
  font-family: var(--font-brand);
  font-size: 18px;
  color: var(--text-main);
  margin-bottom: 6px;
}

.favorites-empty-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* ========================================================
   FOOTER INFORMACIÓN DEL NEGOCIO (CALI, INSTAGRAM, WS)
   ======================================================== */
.app-footer {
  margin: 36px 18px 20px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.footer-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 10px;
  border: 2px solid var(--brand-orange);
}

.footer-title {
  font-family: var(--font-brand);
  font-size: 18px;
  color: var(--brand-orange);
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-info-pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.footer-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-app);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
}

.footer-pill a {
  color: var(--brand-orange);
  text-decoration: none;
}

.footer-copy {
  font-size: 11px;
  color: var(--text-light);
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}

/* ========================================================
   BARRA DE MENÚ ESTILO APP INFERIOR CON BORDES REDONDEADOS
   REQUISITO:
   - "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-app-nav {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 456px;
  height: 68px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-card);
  border-radius: 34px; /* Bordes redondeados pronunciados estilo app */
  box-shadow: 0 10px 30px rgba(28, 25, 23, 0.12), 0 2px 8px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 10px;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

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

/* CÍRCULO DEL COLOR DE LA MARCA PARA EL ITEM SELECCIONADO */
.nav-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--text-muted);
}

.nav-icon-wrapper svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: all 0.25s ease;
}

/* ITEM ACTIVO: Se encierra en un círculo del color de la marca (#F05A28) */
.app-nav-item.active .nav-icon-wrapper {
  background-color: var(--brand-orange); /* Círculo del color de la marca */
  color: #FFFFFF; /* Icono en blanco */
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 6px 16px rgba(240, 90, 40, 0.45);
}

.app-nav-item.active .nav-icon-wrapper svg {
  fill: #FFFFFF;
}

.nav-label {
  font-size: 10.5px;
  font-weight: 700;
  transition: color 0.2s ease;
  line-height: 1;
}

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

.nav-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--brand-orange);
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
}

.app-nav-item.active .nav-badge {
  background: var(--text-main);
}

/* ========================================================
   MODAL DE PRODUCTO / PERSONALIZACIÓN
   ======================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 90;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

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

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

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

.modal-handle-bar {
  width: 44px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--border-card);
  margin: 12px auto 6px auto;
}

.modal-header {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-main);
}

.modal-img-wrap {
  width: 100%;
  height: 200px;
  background: #FFFFFF; /* Fondo blanco limpio */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.modal-img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}

.modal-body {
  padding: 16px 20px;
}

.modal-product-title {
  font-family: var(--font-brand);
  font-size: 22px;
  color: var(--text-main);
  margin-bottom: 6px;
}

.modal-product-price {
  font-family: var(--font-brand);
  font-size: 20px;
  color: var(--brand-orange);
  font-weight: 700;
  margin-bottom: 10px;
}

.modal-product-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 20px;
}

.modal-section-title {
  font-family: var(--font-brand);
  font-size: 15px;
  color: var(--text-main);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-section-title span {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Custom Additions List */
.additions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.addition-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-app);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.addition-item:hover {
  border-color: var(--brand-orange);
}

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

.addition-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--brand-orange);
}

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

.addition-price {
  font-family: var(--font-brand);
  font-size: 13.5px;
  color: var(--brand-orange);
  font-weight: 700;
}

/* Modal Bottom Actions */
.modal-bottom-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-subtle);
  border-radius: var(--radius-pill);
  padding: 4px;
}

.qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
}

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

.qty-number {
  font-family: var(--font-brand);
  font-size: 16px;
  min-width: 24px;
  text-align: center;
}

.btn-modal-add {
  flex: 1;
  background: var(--brand-orange);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-pill);
  height: 48px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(240, 90, 40, 0.4);
}

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

/* ========================================================
   MODALIDAD DE PEDIDO (EN LA MESA / A DOMICILIO) & CARRITO
   ======================================================== */
.cart-sheet {
  max-height: 90vh;
}

.order-mode-toggle {
  display: flex;
  background: var(--bg-subtle);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 18px;
}

.order-mode-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.order-mode-btn.active {
  background: #FFFFFF;
  color: var(--brand-orange);
  box-shadow: var(--shadow-sm);
}

/* Inputs del Formulario de Pedido */
.order-form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.input-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.input-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.input-field, .select-field, .textarea-field {
  width: 100%;
  background: var(--bg-app);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s;
}

.input-field:focus, .select-field:focus, .textarea-field:focus {
  border-color: var(--brand-orange);
  background: #FFFFFF;
}

/* Mesas Quick Grid Selector */
.tables-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 4px;
}

.table-btn {
  background: var(--bg-app);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 8px 0;
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s;
}

.table-btn.active {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #FFFFFF;
}

/* Cart Items Breakdown */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  max-height: 220px;
  overflow-y: auto;
}

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

.cart-item-info h4 {
  font-family: var(--font-brand);
  font-size: 14px;
  color: var(--text-main);
}

.cart-item-toppings {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

.cart-item-price {
  font-family: var(--font-brand);
  font-size: 13px;
  color: var(--brand-orange);
  font-weight: 700;
  margin-top: 2px;
}

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

.cart-btn-qty {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Order Totals */
.cart-totals-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.total-line.final {
  font-family: var(--font-brand);
  font-size: 18px;
  color: var(--text-main);
  border-top: 1px solid var(--border-card);
  padding-top: 8px;
  margin-top: 4px;
}

.total-line.final .total-value {
  color: var(--brand-orange);
}

/* BOTÓN DE CONFIRMACIÓN A WHATSAPP */
.btn-whatsapp-confirm {
  width: 100%;
  background: var(--whatsapp-green);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-pill);
  height: 52px;
  font-size: 15.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.btn-whatsapp-confirm svg {
  width: 22px;
  height: 22px;
  fill: #FFFFFF;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #1C1917;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

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