/* ==========================================================================
   SAN IGNACIO BURGERS - Menú Digital WebApp
   Estilo: Minimalista Premium • Tema Claro • Estilo App Nativa
   ========================================================================== */

:root {
  --brand-primary: #E5A93C;
  --brand-primary-hover: #D6972B;
  --brand-primary-dark: #B5750A;
  --brand-primary-light: #FFF8EB;
  --brand-primary-subtle: rgba(229, 169, 60, 0.12);
  --brand-black: #1A1817;
  --brand-charcoal: #2A2725;
  --bg-page: #FAF8F5;
  --bg-card: #FFFFFF;
  --bg-input: #F6F4F0;
  --text-main: #1A1817;
  --text-muted: #736E68;
  --text-light: #9E9991;
  --border-light: #ECE7DE;
  --border-active: #E5A93C;
  --shadow-sm: 0 2px 8px rgba(26, 24, 23, 0.04);
  --shadow-md: 0 6px 20px rgba(26, 24, 23, 0.07);
  --shadow-lg: 0 12px 36px rgba(26, 24, 23, 0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --font-display: 'Righteous', 'Paytone One', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

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

/* ==========================================================================
   1. DESKTOP VIEW (SOLO QR, NO SIMULADOR)
   ========================================================================== */

#desktop-screen {
  display: none;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 10%, #FFFFFF 0%, #F5F1E9 100%);
  padding: 40px 24px;
  align-items: center;
  justify-content: center;
}

.desktop-container {
  max-width: 580px;
  width: 100%;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(26, 24, 23, 0.08);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.desktop-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #C98616, #E5A93C, #F4C46A);
}

.desktop-logo-wrap {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border-light);
  background: #000;
}

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

.desktop-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-primary-light);
  color: var(--brand-primary-dark);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  border: 1px solid rgba(229, 169, 60, 0.3);
}

.desktop-title {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--brand-black);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

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

.desktop-qr-card {
  background: #FFFFFF;
  padding: 20px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 24px;
  border: 2px dashed rgba(229, 169, 60, 0.4);
  box-shadow: inset 0 0 20px rgba(229, 169, 60, 0.05);
}

.desktop-qr-code {
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.desktop-qr-code svg {
  width: 100%;
  height: 100%;
}

.desktop-scan-instruction {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.desktop-location-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-page);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-main);
  font-weight: 500;
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.desktop-preview-btn {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 12.5px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.desktop-preview-btn:hover {
  background: var(--bg-input);
  color: var(--brand-black);
  border-color: var(--brand-primary);
}

/* ==========================================================================
   2. MOBILE WEBAPP CONTAINER
   ========================================================================== */

#app-screen {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-page);
  padding-bottom: 110px; /* Space for bottom nav bar */
  position: relative;
}

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

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

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

.brand-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #000;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

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

.brand-info h1 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--brand-black);
  line-height: 1.15;
  letter-spacing: 0.3px;
}

.brand-info p {
  font-size: 11.5px;
  color: var(--brand-primary-dark);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

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

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

.header-btn: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: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
}

/* Modality Selector Bar (En la Mesa / A Domicilio) */
.modality-selector-wrap {
  padding: 12px 16px 4px;
}

.modality-toggle {
  background: #ECE7DE;
  padding: 4px;
  border-radius: var(--radius-full);
  display: flex;
  gap: 4px;
}

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

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

.modality-btn svg {
  width: 16px;
  height: 16px;
}

/* Modality Active Info Pill */
.modality-info-pill {
  margin: 6px 16px 0;
  padding: 7px 12px;
  background: var(--brand-primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--brand-primary-dark);
  font-weight: 600;
  border: 1px solid rgba(229, 169, 60, 0.25);
}

.modality-info-pill button {
  background: none;
  border: none;
  color: var(--brand-black);
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* ==========================================================================
   3. HERO BANNER INICIO DEL MENÚ
   ========================================================================== */

.hero-banner-section {
  padding: 14px 16px 4px;
}

.hero-banner-card {
  background: linear-gradient(135deg, #1A1817 0%, #2A2522 100%);
  color: #FFFFFF;
  border-radius: 20px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(26, 24, 23, 0.15);
}

.hero-banner-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(229, 169, 60, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-primary);
  color: #1A1817;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 6px;
  color: #FFFFFF;
}

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

.hero-description {
  font-size: 12.5px;
  color: #D6D0C7;
  margin-bottom: 14px;
  line-height: 1.4;
}

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

.hero-chip {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   4. CATEGORÍAS CON ICONOS
   ========================================================================== */

.categories-section {
  padding: 14px 0 10px;
  position: sticky;
  top: 68px;
  z-index: 40;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.categories-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 16px;
  scrollbar-width: none;
}

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

.category-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.category-pill .cat-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
}

.category-pill.active {
  background: var(--brand-black);
  border-color: var(--brand-black);
  color: #FFFFFF;
}

.category-pill.active .cat-icon {
  color: var(--brand-primary);
}

/* ==========================================================================
   5. SEARCH & QUICK FILTER
   ========================================================================== */

.search-wrap {
  padding: 0 16px 12px;
}

.search-bar {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  padding: 8px 16px;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.search-bar svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-input {
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--text-main);
  width: 100%;
  outline: none;
}

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

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

/* ==========================================================================
   6. BANNERS ENTRE CATEGORÍAS
   ========================================================================== */

.category-banner {
  margin: 22px 16px 12px;
  background: #FFFFFF;
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.category-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--brand-primary);
}

.cat-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.cat-banner-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cat-banner-icon {
  font-size: 18px;
}

.cat-banner-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--brand-black);
  margin-bottom: 3px;
}

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

/* ==========================================================================
   7. LISTADO DE PLATOS (MINIMALISTA PREMIUM, FONDO BLANCO LIMPIO)
   ========================================================================== */

.dishes-list {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dish-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 18px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.dish-card:hover {
  border-color: rgba(229, 169, 60, 0.4);
  box-shadow: var(--shadow-md);
}

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

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

.dish-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.dish-fries-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFF8EB;
  color: var(--brand-primary-dark);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(229, 169, 60, 0.3);
}

.dish-special-badge {
  background: #F0FDF4;
  color: #15803D;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(22, 163, 74, 0.2);
}

.dish-name {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--brand-black);
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.dish-fav-btn {
  background: #FAF8F5;
  border: 1px solid var(--border-light);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.dish-fav-btn.active {
  background: #FFF1F2;
  border-color: #FECDD3;
  color: #E11D48;
}

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

.dish-ingredients {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 12px;
}

/* Chips de ingredientes */
.dish-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 14px;
}

.dish-tag {
  background: var(--bg-input);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
}

/* Selector de Variantes (Simple, Doble, Triple, GRAN) */
.variants-wrapper {
  margin-bottom: 14px;
  background: var(--bg-page);
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
}

.variants-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.variants-options {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.variants-options::-webkit-scrollbar {
  display: none;
}

.variant-pill {
  flex: 1;
  min-width: 65px;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  border-radius: 10px;
  padding: 6px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.variant-pill .v-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
}

.variant-pill .v-price {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-black);
  display: block;
}

.variant-pill.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  box-shadow: 0 3px 8px rgba(229, 169, 60, 0.35);
}

.variant-pill.active .v-name {
  color: #1A1817;
}

.variant-pill.active .v-price {
  color: #1A1817;
}

/* Barra inferior del plato: Precio actual y botón añadir */
.dish-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed var(--border-light);
}

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

.dish-price-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
}

.dish-price-val {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--brand-black);
  line-height: 1;
}

.dish-action-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-input);
  padding: 3px 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.stepper-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: #FFFFFF;
  color: var(--brand-black);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

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

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

.add-btn {
  background: var(--brand-primary);
  color: #1A1817;
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(229, 169, 60, 0.3);
  transition: all 0.2s ease;
}

.add-btn:active {
  transform: scale(0.95);
  background: var(--brand-primary-hover);
}

/* ==========================================================================
   8. BARRA DE MENÚ INFERIOR (ESTILO APP CON BORDES REDONDEADOS Y CÍRCULO ACTIVO)
   ========================================================================== */

.bottom-nav-wrap {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 460px;
  z-index: 100;
}

.bottom-nav-bar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 36px; /* Bordes redondeados requeridos */
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 12px 36px rgba(26, 24, 23, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(229, 169, 60, 0.35);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Círculo que encierra el ítem al seleccionarlo */
.nav-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: transparent;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

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

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

/* Estado ACTIVO: Encerrado en un círculo con el color de la marca */
.nav-item.active .nav-icon-circle {
  background: var(--brand-primary);
  color: #1A1817;
  box-shadow: 0 4px 14px rgba(229, 169, 60, 0.5);
  transform: translateY(-2px);
}

.nav-item.active .nav-icon-circle svg {
  transform: scale(1.08);
}

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

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

/* ==========================================================================
   9. VISTAS SECUNDARIAS (FAVORITOS, LOCAL/UBICACIÓN)
   ========================================================================== */

.view-section {
  display: none;
  padding: 16px;
}

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

.view-header {
  margin-bottom: 18px;
}

.view-header h2 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--brand-black);
  margin-bottom: 4px;
}

.view-header p {
  color: var(--text-muted);
  font-size: 13px;
}

/* Empty State */
.empty-box {
  text-align: center;
  padding: 48px 24px;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-light);
  margin-top: 10px;
}

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

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

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

.btn-primary {
  background: var(--brand-primary);
  color: #1A1817;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(229, 169, 60, 0.35);
}

/* Información del Local y Ubicación */
.info-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 22px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

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

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

.info-item:first-child {
  padding-top: 0;
}

.info-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-primary-light);
  color: var(--brand-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-content h3 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand-black);
  margin-bottom: 2px;
}

.info-content p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   10. MODAL / DRAWER DEL CARRITO & CONFIRMACIÓN A WHATSAPP
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 24, 23, 0.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

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

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

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

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

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

.modal-sheet-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--brand-black);
}

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

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

/* Modality Card inside Checkout */
.checkout-modality-box {
  background: var(--bg-page);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
}

.checkout-modality-header {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Form Fields */
.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-black);
  margin-bottom: 4px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--brand-black);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand-primary);
}

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

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

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

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

.cart-item-name {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--brand-black);
}

.cart-item-variant {
  font-size: 11px;
  color: var(--brand-primary-dark);
  font-weight: 600;
}

.cart-item-fries {
  font-size: 10.5px;
  color: #15803D;
  font-weight: 500;
}

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

.cart-item-price {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--brand-black);
}

.cart-summary-card {
  background: var(--brand-primary-light);
  border-radius: 14px;
  padding: 14px;
  border: 1px solid rgba(229, 169, 60, 0.3);
  margin-bottom: 16px;
}

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

.summary-row.total {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--brand-black);
  border-top: 1px dashed rgba(229, 169, 60, 0.4);
  padding-top: 8px;
  margin-top: 8px;
  margin-bottom: 0;
}

/* Botón de Confirmación WhatsApp */
.ws-confirm-btn {
  width: 100%;
  background: #25D366;
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
}

.ws-confirm-btn:hover {
  background: #20BD5A;
}

.ws-confirm-btn:active {
  transform: scale(0.98);
}

/* Toast notification */
.toast-msg {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--brand-black);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

/* ==========================================================================
   11. RESPONSIVE BREAKPOINT: SOLO SMARTPHONE
   ========================================================================== */

@media (min-width: 769px) {
  /* Si la pantalla es desktop (> 768px), ocultamos la app y mostramos el QR */
  body:not(.force-mobile) #desktop-screen {
    display: flex;
  }
  body:not(.force-mobile) #app-screen {
    display: none;
  }
}

@media (max-width: 768px) {
  /* En smartphone, se muestra directamente la WebApp */
  #desktop-screen {
    display: none !important;
  }
  #app-screen {
    display: block !important;
  }
}
