/* ==========================================================================
   Lisbon RestoBar - Minimalist Premium WebApp Stylesheet
   Colores de marca: Turquesa Lisbon (#00C9A7), Blanco Puro, Carbón Suave
   Modo Claro Exclusivo - Estilo App Nativa
   ========================================================================== */

:root {
  --brand-primary: #00C9A7;
  --brand-primary-rgb: 0, 201, 167;
  --brand-dark: #0A725E;
  --brand-light: #E8FAF6;
  --brand-accent: #FF7A00;
  --brand-badge: #10B981;

  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --bg-secondary: #F1F5F9;
  --bg-tertiary: #E2E8F0;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --text-brand: #0A725E;

  --border-light: #E2E8F0;
  --border-focus: #00C9A7;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-nav: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-brand: 0 8px 20px rgba(0, 201, 167, 0.3);

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

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Plus Jakarta Sans", Helvetica, Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;

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

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

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
  overflow-x: hidden;
}

/* ==========================================================================
   DESKTOP QR CODE SCREEN (Solo desde Smartphone)
   Requisito: No abrir en desktop, solo mostrar QR que redirija a versión móvil
   ========================================================================== */

#desktop-screen {
  display: none;
}

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

  body:not(.is-mobile-preview) #desktop-screen {
    display: flex !important;
    min-height: 100vh;
    width: 100vw;
    background: radial-gradient(circle at 50% 20%, #E8FAF6 0%, #F8FAFC 70%);
    align-items: center;
    justify-content: center;
    padding: 32px;
  }

  body.is-mobile-preview #desktop-screen {
    display: none !important;
  }
  body.is-mobile-preview #mobile-app-root {
    display: block !important;
    margin: 20px auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    border-radius: 36px;
    overflow: hidden;
  }

  .desktop-card {
    background: #FFFFFF;
    max-width: 520px;
    width: 100%;
    border-radius: 32px;
    padding: 44px 40px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 201, 167, 0.15);
    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, #00C9A7, #0B7A66, #00C9A7);
  }

  .desktop-logo-wrap {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #000000;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 201, 167, 0.25);
    border: 3px solid #00C9A7;
    overflow: hidden;
  }

  .desktop-logo-wrap img {
    width: 80%;
    height: 80%;
    object-fit: contain;
  }

  .desktop-brand-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
  }

  .desktop-brand-sub {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 24px;
  }

  .desktop-qr-container {
    background: #F8FAFC;
    border: 2px dashed #CBD5E1;
    border-radius: 24px;
    padding: 24px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
  }

  .qr-canvas-holder {
    background: #FFFFFF;
    padding: 14px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
  }

  .qr-canvas-holder canvas {
    display: block;
    width: 200px;
    height: 200px;
  }

  .desktop-scan-badge {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-light);
    color: var(--brand-dark);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
  }

  .desktop-steps {
    display: flex;
    justify-content: space-around;
    gap: 12px;
    margin-bottom: 26px;
    text-align: center;
  }

  .desktop-step {
    flex: 1;
    font-size: 12px;
    color: var(--text-secondary);
  }

  .desktop-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #FFFFFF;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    font-size: 12px;
  }

  .desktop-footer {
    border-top: 1px solid var(--border-light);
    padding-top: 18px;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .btn-bypass-desktop {
    margin-top: 12px;
    background: none;
    border: none;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: underline;
  }
}

/* ==========================================================================
   MOBILE WEBAPP CONTAINER
   ========================================================================== */

#mobile-app-root {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-page);
  padding-bottom: calc(88px + var(--safe-bottom));
}

/* --- App Header --- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-emblem {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #000000;
  border: 2px solid var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 201, 167, 0.2);
  flex-shrink: 0;
}

.brand-emblem img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

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

.brand-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  line-height: 1.15;
}

.brand-location-chip {
  font-size: 11px;
  color: var(--brand-dark);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
}

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

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

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

.badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--brand-primary);
  color: #FFFFFF;
  font-size: 10px;
  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;
}

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

.search-input-wrap {
  position: relative;
  width: 100%;
}

.search-input-wrap input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.search-input-wrap input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(0, 201, 167, 0.15);
}

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

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

/* ==========================================================================
   HERO BANNER CAROUSEL (Al inicio del menú, haciendo referencia a los platos)
   ========================================================================== */

.hero-banner-section {
  padding: 12px 16px 6px;
}

.banner-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.banner-slider-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.hero-banner-slide {
  min-width: 100%;
  background: linear-gradient(135deg, #0A2E26 0%, #064E3B 100%);
  color: #FFFFFF;
  padding: 22px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 146px;
  border-radius: 20px;
  overflow: hidden;
}

.hero-banner-slide.slide-burgers {
  background: linear-gradient(135deg, #042F2E 0%, #0D9488 100%);
}

.hero-banner-slide.slide-ribs {
  background: linear-gradient(135deg, #1C1917 0%, #44403C 100%);
}

.hero-banner-slide.slide-fries {
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%);
}

.hero-banner-slide.slide-delivery {
  background: linear-gradient(135deg, #064E3B 0%, #047857 100%);
}

.banner-pill {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.banner-title {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 6px;
  color: #FFFFFF;
}

.banner-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.35;
  margin-bottom: 12px;
  max-width: 90%;
}

.banner-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.banner-btn {
  background: var(--brand-primary);
  color: #042F2E;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #CBD5E1;
  transition: all 0.3s ease;
  cursor: pointer;
}

.carousel-dot.active {
  width: 18px;
  border-radius: 4px;
  background: var(--brand-primary);
}

/* ==========================================================================
   CATEGORY NAVIGATION (A TRAVÉS DE ICONOS)
   Requisito: Las categorías deben ser a través de iconos
   ========================================================================== */

.category-nav-wrapper {
  position: sticky;
  top: 66px;
  z-index: 40;
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 16px 10px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

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

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

.cat-item-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 8px 12px;
  min-width: 68px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.cat-item-btn:active {
  transform: scale(0.94);
}

.cat-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  margin-bottom: 4px;
  transition: all 0.2s ease;
}

.cat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Active Category Pill */
.cat-item-btn.active {
  background: #FFFFFF;
  border-color: var(--brand-primary);
  box-shadow: 0 4px 14px rgba(0, 201, 167, 0.25);
  transform: translateY(-2px);
}

.cat-item-btn.active .cat-icon-wrap {
  background: var(--brand-primary);
  color: #FFFFFF;
}

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

/* ==========================================================================
   CATEGORY THEMATIC BANNERS (Entre cada categoría)
   Requisito: Usa un banner entre cada categoría que haga referencia a ella
   ========================================================================== */

.category-section {
  padding: 8px 16px 20px;
}

.category-thematic-banner {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--brand-light) 100%);
  border: 1px solid rgba(0, 201, 167, 0.2);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.cat-banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 201, 167, 0.15);
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}

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

.cat-banner-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.cat-banner-promo {
  margin-top: 8px;
  padding: 8px 10px;
  background: #FFFFFF;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #0A725E;
  border: 1px dashed var(--brand-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   PRODUCT CARDS (LIMPIAS EN FONDO BLANCO, SIN FOTOS INVENTADAS)
   Requisito: fondo blanco limpio, no inventar imágenes de platos
   ========================================================================== */

.items-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-card {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.2s ease;
}

.product-card:active {
  border-color: rgba(0, 201, 167, 0.4);
}

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

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

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

.product-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--brand-light);
  color: var(--brand-dark);
  margin-top: 4px;
}

.product-tag.tag-new {
  background: #FEF3C7;
  color: #92400E;
}

.btn-favorite {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

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

.btn-favorite.active {
  background: #FFE4E6;
  color: #E11D48;
}

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

.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--bg-secondary);
}

.product-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.card-action-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-add-item {
  background: var(--brand-primary);
  color: #042F2E;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

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

.qty-counter-control {
  display: inline-flex;
  align-items: center;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  padding: 2px;
  gap: 6px;
}

.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;
  color: var(--text-primary);
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
}

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

.qty-val {
  font-size: 13px;
  font-weight: 800;
  min-width: 18px;
  text-align: center;
}

/* ==========================================================================
   BOTTOM APP NAVIGATION BAR
   Requisito: Barra de menú estilo app en la parte inferior, con bordes redondeados,
   colores de la marca, y a medida que voy seleccionando un item debe encerrarse
   en un círculo del color de la marca.
   ========================================================================== */

.bottom-app-nav {
  position: fixed;
  bottom: calc(14px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 440px;
  background: #FFFFFF;
  border-radius: 30px;
  padding: 6px 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 90;
}

.nav-tab-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 4px 8px;
  position: relative;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex: 1;
}

.nav-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.nav-tab-label {
  font-size: 10px;
  font-weight: 600;
  color: #64748B;
  margin-top: 1px;
  transition: all 0.2s ease;
}

/* REQUISITO CRUCIAL: Encerrarse en un círculo del color de la marca */
.nav-tab-btn.active .nav-icon-circle {
  background: var(--brand-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 201, 167, 0.45);
  transform: translateY(-4px) scale(1.05);
}

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

.nav-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
}

/* ==========================================================================
   MODALS & BOTTOM SHEETS (Carrito, Modalidad En la Mesa / A Domicilio)
   Requisito: Pedidos en dos modalidades en la mesa y a domicilio, confirmación a WS
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

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

.modal-sheet {
  background: #FFFFFF;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  padding: 20px 20px calc(24px + var(--safe-bottom));
  overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
  position: relative;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.sheet-handle {
  width: 44px;
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

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

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

/* --- Modality Selector (En la Mesa / A Domicilio) --- */
.modality-toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
  background: var(--bg-secondary);
  padding: 4px;
  border-radius: 16px;
}

.modality-option-btn {
  background: transparent;
  border: none;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.modality-option-btn.active {
  background: #FFFFFF;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.modality-option-btn.active .modality-icon {
  color: var(--brand-primary);
}

/* --- Cart Items List --- */
.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;
  background: var(--bg-page);
  border-radius: 14px;
  border: 1px solid var(--border-light);
}

.cart-item-info {
  flex: 1;
  padding-right: 12px;
}

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

.cart-item-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-dark);
}

.cart-item-addons {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* --- Order Form Inputs --- */
.order-form-group {
  margin-bottom: 14px;
}

.order-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.order-input, .order-select, .order-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.order-input:focus, .order-select:focus, .order-textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(0, 201, 167, 0.15);
}

.order-textarea {
  min-height: 64px;
  resize: vertical;
}

/* --- Cart Summary & WhatsApp Button --- */
.cart-bill-summary {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.bill-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.bill-line.total {
  border-top: 1px dashed var(--border-light);
  padding-top: 8px;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

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

.btn-whatsapp-order:active {
  transform: scale(0.97);
  background: #1EBE5D;
}

/* ==========================================================================
   UBICACIÓN / RESTOBAR VIEW
   Requisito: Usa los datos de ubicación del negocio
   ========================================================================== */

.location-view-card {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 24px 20px;
  margin: 16px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.location-logo-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #000000;
  border: 3px solid var(--brand-primary);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 201, 167, 0.25);
}

.location-logo-wrap img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.location-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.location-tagline {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.location-details-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  margin-bottom: 24px;
}

.location-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-page);
  padding: 12px 14px;
  border-radius: 14px;
}

.location-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-item-text h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.location-item-text p {
  font-size: 12px;
  color: var(--text-secondary);
}

.location-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-location-action {
  padding: 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border-light);
}

.btn-maps {
  background: var(--brand-primary);
  color: #042F2E;
  border: none;
}

.btn-insta {
  background: #FFFFFF;
  color: var(--text-primary);
}

/* ==========================================================================
   FAVORITOS EMPTY & VIEW
   ========================================================================== */

.favorites-view-wrapper {
  padding: 16px;
}

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

.empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

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

.empty-state-desc {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 260px;
  margin: 0 auto 20px;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  top: 74px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(15, 23, 42, 0.9);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  z-index: 120;
  pointer-events: none;
  opacity: 0;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

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