/* ==========================================================================
   CARBON BURGER - ESTILOS OFICIALES APP MÓVIL
   Tema: Claro, Moderno, Estilo App Móvil con Floating Navigation Bar
   Colores de Marca: Carbón (#121212), Ámbar/Fuego (#EA580C / #F97316), Dorado (#F59E0B), Blanco Puro (#FFFFFF)
   ========================================================================== */

:root {
  --color-primary: #121212;
  --color-primary-light: #262626;
  --color-accent: #ea580c;
  --color-accent-hover: #c2410c;
  --color-accent-subtle: #ffedd5;
  --color-gold: #f59e0b;
  --color-gold-subtle: #fef3c7;
  --color-success: #16a34a;
  --color-danger: #dc2626;

  /* Fondos Claros (Obligatorio: No fondos oscuros) */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --bg-muted: #f1f5f9;
  --bg-tag: #f8fafc;

  /* Texto */
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  /* Bordes y Sombras */
  --border-subtle: #e2e8f0;
  --border-focus: #ea580c;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.12), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
  --shadow-floating: 0 14px 35px -6px rgba(18, 18, 18, 0.25);

  /* Dimensiones y Bordes */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --bottom-bar-height: 76px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html, body {
  width: 100%;
  min-height: 100%;
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   VISTA ESCRITORIO (SOLO CÓDIGO QR - REQUERIMIENTO ESTRICTO)
   "la version de escritorio debe tener un codigo QR para escanear y dirigir al menu"
   ========================================================================== */

#desktop-screen {
  display: none;
}

@media (min-width: 769px) {
  body:not(.force-mobile-view) #mobile-app {
    display: none !important;
  }

  body:not(.force-mobile-view) #desktop-screen {
    display: flex;
    min-height: 100vh;
    width: 100%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 32px 20px;
  }

  .desktop-card {
    background: #ffffff;
    max-width: 580px;
    width: 100%;
    border-radius: 28px;
    padding: 44px 36px;
    text-align: center;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.12);
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
  }

  .desktop-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #121212 0%, #ea580c 50%, #f59e0b 100%);
  }

  .desktop-logo-wrap {
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
    background: #121212;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }

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

  .desktop-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--color-accent-subtle);
    color: var(--color-accent);
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-pill);
    margin-bottom: 14px;
  }

  .desktop-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
  }

  .desktop-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 440px;
    margin: 0 auto 28px;
    line-height: 1.5;
  }

  .qr-box-container {
    background: #ffffff;
    padding: 20px;
    border-radius: 24px;
    display: inline-block;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--border-subtle);
    margin-bottom: 24px;
    position: relative;
  }

  .qr-code-svg {
    display: block;
    width: 220px;
    height: 220px;
    margin: 0 auto;
  }

  .qr-instruction {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 12px;
  }

  .desktop-info-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
  }

  .desktop-sim-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-muted);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
  }

  .desktop-sim-btn:hover {
    background: #e2e8f0;
    color: var(--color-primary);
  }
}

/* ==========================================================================
   VISTA MÓVIL (WEBAPP ESTILO MCDONALDS / BURGER KING)
   ========================================================================== */

#mobile-app {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--bg-body);
  position: relative;
  padding-bottom: calc(var(--bottom-bar-height) + 30px);
}

/* Header Superior */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 16px 8px;
}

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

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

.brand-avatar {
  width: 44px;
  height: 44px;
  background: #121212;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

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

.brand-text h1 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--color-primary);
  line-height: 1.1;
}

.brand-status-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: 2px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

/* Selector de Tipo de Pedido (Mesa vs Domicilio) */
.order-type-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--color-accent-subtle);
  border: 1px solid rgba(234, 88, 12, 0.2);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
  white-space: nowrap;
}

.order-type-pill:active {
  transform: scale(0.96);
}

.order-type-pill span.edit-badge {
  font-size: 10px;
  background: var(--color-accent);
  color: #fff;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}

/* Buscador Rápido */
.search-bar-wrap {
  position: relative;
  margin-bottom: 6px;
}

.search-input {
  width: 100%;
  height: 40px;
  padding: 0 16px 0 38px;
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s;
}

.search-input:focus {
  background: #ffffff;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}

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

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

/* Barra de Categorías Horizontal con Iconos */
.category-nav-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 4px 6px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-nav-bar::-webkit-scrollbar {
  display: none;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.category-chip .chip-icon {
  font-size: 15px;
}

.category-chip.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 3px 10px rgba(18, 18, 18, 0.2);
}

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

/* ==========================================================================
   HERO / BANNER PRINCIPAL
   ========================================================================== */

.hero-promo {
  margin: 12px 16px 8px;
  background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
  border-radius: 20px;
  padding: 18px 20px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.hero-promo::after {
  content: "🔥";
  position: absolute;
  right: 12px;
  bottom: -10px;
  font-size: 80px;
  opacity: 0.15;
  pointer-events: none;
}

.hero-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 6px;
}

.hero-desc {
  font-size: 13px;
  color: #d4d4d8;
  line-height: 1.4;
}

/* ==========================================================================
   BANNERS ENTRE SECCIONES (CATEGORÍAS)
   "usa banners entre cada seccion es decir entre cada categoria"
   ========================================================================== */

.section-banner {
  margin: 28px 16px 14px;
  border-radius: 18px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.section-banner.theme-amber {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fde68a;
}

.section-banner.theme-orange {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-color: #fed7aa;
}

.section-banner .banner-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: #ffffff;
  margin-bottom: 6px;
}

.section-banner .banner-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.section-banner .banner-sub {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.35;
}

/* Encabezado de Categoría */
.category-section-header {
  padding: 18px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-title-icon {
  font-size: 24px;
}

.category-title-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.4px;
}

.category-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-muted);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   GRILLA Y TARJETAS DE PRODUCTO (FONDO BLANCO, SIN FOTOS INVENTADAS)
   ========================================================================== */

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

.product-card {
  background: var(--bg-card);
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  padding: 16px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.product-card.is-favorite {
  border-color: rgba(234, 88, 12, 0.35);
  background: #ffffff;
}

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

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

.product-name {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.product-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--color-gold-subtle);
  color: #b45309;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  margin-top: 4px;
}

/* Botón de Favoritos (Corazón con Icono SVG) */
.favorite-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  flex-shrink: 0;
  outline: none;
}

.favorite-btn .heart-svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #94a3b8;
  stroke-width: 2.2;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), fill 0.2s, stroke 0.2s;
  pointer-events: none;
}

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

.favorite-btn.favorited {
  background: #fef2f2;
  border-color: #fecaca;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.favorite-btn.favorited .heart-svg {
  fill: #ef4444;
  stroke: #ef4444;
  transform: scale(1.1);
  animation: heartPulse 0.35s ease;
}

@keyframes heartPulse {
  0% { transform: scale(0.85); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1.1); }
}

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

/* Tags de Ingredientes */
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.product-tag {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  background: var(--bg-muted);
  padding: 3px 8px;
  border-radius: 6px;
}

/* Pie de Tarjeta: Precio y Botón de Acción */
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
}

.product-price {
  font-size: 17.5px;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: -0.3px;
}

.product-price span.currency {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: 2px;
}

/* Botón Añadir / Stepper Contador */
.add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(18, 18, 18, 0.15);
}

.add-btn:active {
  transform: scale(0.95);
  background: var(--color-accent);
}

.qty-stepper {
  display: flex;
  align-items: center;
  background: var(--bg-muted);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.stepper-btn {
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stepper-btn:active {
  background: #e2e8f0;
}

.stepper-val {
  min-width: 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--color-primary);
}

/* ==========================================================================
   FLOATING BOTTOM NAVIGATION BAR (ESTILO APP FLOTANTE)
   "en la parte inferior debe tener un menu estilo APP flotante con lo colores de la marca"
   ========================================================================== */

.bottom-nav-dock {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 500px;
  height: var(--bottom-bar-height);
  background: rgba(18, 18, 18, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 10px;
  z-index: 50;
  box-shadow: var(--shadow-floating);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  position: relative;
  padding: 8px 12px;
  border-radius: 16px;
  transition: all 0.2s ease;
  flex: 1;
  outline: none;
}

.nav-item .nav-svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.2;
  transition: transform 0.2s ease, stroke 0.2s ease, fill 0.2s ease;
  pointer-events: none;
}

.nav-item .nav-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.2px;
  pointer-events: none;
}

.nav-item.active {
  color: #ffffff;
}

.nav-item.active .nav-svg {
  stroke: var(--color-accent);
  transform: translateY(-2px);
}

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

/* Badge en Favoritos y Carrito */
.nav-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 18px);
  background: var(--color-accent);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  animation: badgePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgePop {
  0% { transform: scale(0.5); }
  100% { transform: scale(1); }
}

/* Botón central del Carrito resaltado */
.nav-cart-btn {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  color: #ffffff !important;
  border-radius: 20px !important;
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.45);
  transform: translateY(-6px);
  padding: 10px 14px;
}

.nav-cart-btn .nav-svg {
  stroke: #ffffff !important;
}

.nav-cart-btn .nav-label {
  color: #ffffff !important;
}

.nav-cart-btn:active {
  transform: translateY(-3px) scale(0.96);
}

/* ==========================================================================
   MODALES Y DRAWERS (CARRITO, DETALLE, CAMBIO MESA/DOMICILIO, INFO)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-backdrop.open {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.bottom-drawer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 105%);
  width: 100%;
  max-width: 540px;
  background: #ffffff;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  z-index: 101;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
  visibility: hidden;
  pointer-events: none;
}

.bottom-drawer.open {
  transform: translate(-50%, 0);
  visibility: visible;
  pointer-events: auto;
}

.drawer-drag-handle {
  width: 44px;
  height: 5px;
  background: #cbd5e1;
  border-radius: var(--radius-pill);
  margin: 10px auto 4px;
}

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

.drawer-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--color-primary);
}

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

.drawer-content {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}

.drawer-footer {
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
}

/* Selector Segmentado de Tipo de Pedido dentro del Carrito */
.segmented-control {
  display: flex;
  background: var(--bg-muted);
  padding: 4px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.segment-btn {
  flex: 1;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.segment-btn.active {
  background: #ffffff;
  color: var(--color-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Campos de Formulario en el Carrito */
.form-group {
  margin-bottom: 14px;
}

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

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-main);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-accent);
  background: #ffffff;
}

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

/* Lista de Items en Carrito */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

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

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

.cart-item-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-primary);
}

.cart-item-opt {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.cart-item-price {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--color-accent);
  margin-top: 2px;
}

/* Resumen de Totales */
.cart-summary-box {
  background: var(--bg-muted);
  border-radius: 16px;
  padding: 14px 16px;
  margin-top: 14px;
}

.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.summary-line.total {
  font-size: 17px;
  font-weight: 800;
  color: var(--color-primary);
  border-top: 1px dashed var(--border-subtle);
  padding-top: 8px;
  margin-top: 8px;
}

.summary-line.total .total-amount {
  color: var(--color-accent);
}

/* Botón Grande de Confirmar por WhatsApp */
.whatsapp-submit-btn {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 15.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

/* ==========================================================================
   VISTA DE FAVORITOS Y VISTA DE INFO
   ========================================================================== */

.view-container {
  display: none;
}

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

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-state-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.empty-state-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 280px;
  margin: 0 auto 18px;
}

/* Vista de Info del Restaurante */
.info-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  margin: 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.info-item:last-child {
  border-bottom: none;
}

.info-icon {
  font-size: 22px;
  color: var(--color-accent);
}

.info-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
}

.info-detail {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Toast Notificaciones Flotantes */
.toast-notice {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  background: var(--color-primary);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  z-index: 200;
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

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