/* ==============================================================
   GOAT BURGER - ESTILO WEBAPP DIGITAL (LIGHT THEME)
   Colores de marca: Royal Blue (#22388e), Gold Accent (#f59e0b), Light (#ffffff, #f8fafc)
   ============================================================== */

:root {
  --primary: #22388e;
  --primary-dark: #162668;
  --primary-light: #344ec4;
  --primary-subtle: #edf2ff;
  --primary-glow: rgba(34, 56, 142, 0.18);

  --accent-gold: #f59e0b;
  --accent-gold-dark: #d97706;
  --accent-gold-light: #fef3c7;

  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-muted: #f1f5f9;

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

  --border-light: #e2e8f0;
  --border-focus: #22388e;

  --whatsapp-color: #25d366;
  --whatsapp-dark: #128c7e;

  --danger: #ef4444;
  --danger-light: #fee2e2;

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

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(34, 56, 142, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-float: 0 12px 30px rgba(34, 56, 142, 0.22);

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

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

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

html {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-main);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Utilidades */
.hidden {
  display: none !important;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

input, select {
  font-family: inherit;
}

/* ==============================================================
   1. CONTROL DE VISIBILIDAD: ESCRITORIO vs MÓVIL
   ============================================================== */

/* Por defecto en pantallas de escritorio (>= 768px):
   Mostrar VISTA ESCRITORIO con QR, ocultar menú móvil */
@media (min-width: 768px) {
  #desktop-view {
    display: flex !important;
  }
  
  #mobile-view {
    display: none !important;
  }

  /* Modo simulador móvil activado en escritorio */
  body.simulator-active #desktop-view {
    display: none !important;
  }
  
  body.simulator-active {
    background: #e2e8f0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
  }

  body.simulator-active #mobile-view {
    display: block !important;
    width: 390px;
    height: 844px;
    max-height: 92vh;
    border-radius: 44px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35), 0 0 0 12px #1e293b, 0 0 0 14px #475569;
    overflow: hidden;
    position: relative;
    background: var(--bg-main);
    animation: simFadeIn 0.3s ease;
  }
}

/* En dispositivos móviles (< 768px):
   Ocultar vista de escritorio y mostrar el menú completo */
@media (max-width: 767px) {
  #desktop-view {
    display: none !important;
  }
  #mobile-view {
    display: block !important;
  }
}

@keyframes simFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* ==============================================================
   2. ESTILOS DE LA VISTA ESCRITORIO (QR CODE LANDING)
   ============================================================== */
.desktop-container {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 20%, #eff4ff 0%, #f8fafc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.desktop-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  max-width: 580px;
  width: 100%;
  padding: 48px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.desktop-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  animation: pulseAnim 2s infinite;
}

@keyframes pulseAnim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 56, 142, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 56, 142, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 56, 142, 0); }
}

.desktop-logo-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #ffffff;
  padding: 8px;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  border: 3px solid var(--primary-subtle);
}

.desktop-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.desktop-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.desktop-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 30px;
}

.qr-box {
  background: #ffffff;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--primary);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.qr-canvas-wrap {
  width: 190px;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.qr-canvas-wrap canvas,
.qr-canvas-wrap img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 6px;
}

.qr-scan-instruction {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.desktop-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  text-align: left;
  margin-bottom: 28px;
  background: var(--bg-muted);
  padding: 18px;
  border-radius: var(--radius-md);
}

.step-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.35;
}

.btn-simulator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-simulator:hover {
  background: var(--primary-subtle);
  color: var(--primary);
  border-color: var(--primary);
}

.desktop-footer {
  margin-top: 24px;
  color: var(--text-light);
  font-size: 0.85rem;
}

/* ==============================================================
   3. ESTILOS DE LA VISTA MÓVIL (WEBAPP)
   ============================================================== */

.mobile-app-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--bg-main);
  display: flex;
  flex-direction: column;
}

/* Header Superior Fijo */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px 16px;
  gap: 12px;
}

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

.brand-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
  border: 2px solid var(--primary-subtle);
  box-shadow: var(--shadow-sm);
}

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

.brand-title-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary);
  letter-spacing: -0.3px;
  line-height: 1.1;
}

.verified-badge {
  color: #3b82f6;
  display: flex;
  align-items: center;
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Selector de Modalidad (Pill) */
.order-mode-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-subtle);
  border: 1px solid rgba(34, 56, 142, 0.15);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  color: var(--primary);
  transition: transform 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}

.order-mode-pill:active {
  transform: scale(0.96);
  background: #dbe4ff;
}

.mode-icon {
  font-size: 1.1rem;
}

.mode-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.mode-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1;
}

.mode-value {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.15;
}

/* Barra de Estado y Horarios */
.store-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px 8px 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.schedule-text {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Barra de Búsqueda */
.search-bar-wrap {
  padding: 0 16px 10px 16px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-muted);
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  padding: 0 14px;
  height: 40px;
  transition: border-color 0.2s, background 0.2s;
}

.search-box:focus-within {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

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

.search-box input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  padding: 8px 8px 8px 10px;
  font-size: 0.9rem;
  color: var(--text-main);
}

.search-clear {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 4px;
  border-radius: 50%;
}

/* Pestañas Horizontales de Categorías */
.categories-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.cat-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.cat-tab.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
  transform: translateY(-1px);
}

.cat-tab-icon {
  font-size: 1rem;
}

/* ==============================================================
   4. CONTENIDO PRINCIPAL Y SECCIONES DEL MENÚ
   ============================================================== */
.app-content {
  flex: 1;
  padding: 16px 16px 120px 16px;
}

/* Avisos y Filtros */
.filter-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  animation: slideDown 0.25s ease;
}

.filter-notice-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #b91c1c;
}

.filter-notice-btn {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: underline;
}

.no-results-box {
  text-align: center;
  padding: 40px 20px;
}

.no-results-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.no-results-box h3 {
  font-family: var(--font-heading);
  color: var(--text-main);
  margin-bottom: 8px;
}

.no-results-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

/* Encabezados de Sección */
.menu-section {
  margin-bottom: 28px;
  scroll-margin-top: 150px;
}

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

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

.section-icon {
  font-size: 1.4rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.3px;
}

.section-badge {
  background: var(--accent-gold-light);
  color: var(--accent-gold-dark);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* Grid de Productos */
.products-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Tarjeta de Producto */
.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

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

.pc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.pc-title-col {
  flex: 1;
}

.pc-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.tag-classic {
  background: #eff6ff;
  color: #1d4ed8;
}

.tag-hot {
  background: #fef2f2;
  color: #dc2626;
}

.tag-special {
  background: #fffbeb;
  color: #b45309;
}

.pc-name {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 6px;
}

.pc-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Botón Favorito */
.btn-fav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  flex-shrink: 0;
}

.btn-fav.active {
  background: #fee2e2;
  color: #ef4444;
  transform: scale(1.1);
}

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

/* Fila de Precio y Acción */
.pc-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-light);
}

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

.pc-price-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
}

.pc-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
}

.btn-add-quick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 3px 8px var(--primary-glow);
  transition: all 0.15s ease;
}

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

/* Grid de Adiciones (Más compacto) */
.addons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.addon-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  gap: 8px;
}

.addon-info h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 4px;
}

.addon-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
}

.btn-add-mini {
  align-self: flex-start;
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-add-mini:active {
  background: var(--primary);
  color: #ffffff;
}

/* ==============================================================
   5. BANNERS INTER-CATEGORÍAS (REQUERIMIENTO CLAVE)
   ============================================================== */
.promo-banner {
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1.5px solid rgba(0, 0, 0, 0.04);
}

.banner-content {
  flex: 1;
}

.banner-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.banner-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
}

.banner-subtitle {
  font-size: 0.8rem;
  line-height: 1.35;
}

.banner-features {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.bf-item {
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.banner-visual {
  flex-shrink: 0;
}

.banner-emoji-art {
  font-size: 2.2rem;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

/* Variantes de Banners con Colores de la Marca */

/* Banner 1: Combo Upgrade (Amarillo/Dorado y Azul GOAT) */
.banner-combo {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fde68a;
  color: #78350f;
}
.banner-combo .banner-badge {
  background: var(--accent-gold);
  color: #ffffff;
}
.banner-combo .banner-title {
  color: #92400e;
}
.banner-combo .banner-subtitle {
  color: #b45309;
}

/* Banner 2: Adiciones (Azul GOAT Suave) */
.banner-addons {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #bfdbfe;
  color: #1e3a8a;
}
.banner-addons .banner-badge {
  background: var(--primary);
  color: #ffffff;
}
.banner-addons .banner-title {
  color: var(--primary);
}
.banner-addons .banner-subtitle {
  color: #1e40af;
}

/* Banner 3: Postres (Tono frambuesa / velvet suave) */
.banner-dessert {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border-color: #fecdd3;
  color: #881337;
}
.banner-dessert .banner-badge {
  background: #e11d48;
  color: #ffffff;
}
.banner-dessert .banner-title {
  color: #9f1239;
}
.banner-dessert .banner-subtitle {
  color: #be123c;
}

/* Banner 4: Bebidas (Tono celeste / helado) */
.banner-drinks {
  background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
  border-color: #a5f3fc;
  color: #155e75;
}
.banner-drinks .banner-badge {
  background: #0891b2;
  color: #ffffff;
}
.banner-drinks .banner-title {
  color: #0e7490;
}
.banner-drinks .banner-subtitle {
  color: #155e75;
}

/* ==============================================================
   6. FOOTER INFORMATIVO
   ============================================================== */
.app-footer {
  text-align: center;
  padding: 30px 10px 40px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo-wrap {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #ffffff;
  padding: 4px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  border: 2px solid var(--primary-subtle);
}

.footer-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2px;
}

.footer-slogan {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-info-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  margin-bottom: 24px;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  text-align: left;
}

.ic-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.ic-text strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-main);
}

.ic-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-light);
}

.bottom-spacer {
  height: 60px;
}

/* ==============================================================
   7. BOTTOM NAVIGATION BAR FLOTANTE (ESTILO APP GRANDES CADENAS)
   ============================================================== */
.bottom-nav {
  position: fixed;
  bottom: calc(var(--safe-bottom) + 8px);
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 16px;
}

.bottom-nav-inner {
  pointer-events: auto;
  background: var(--primary);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px 12px;
  width: 100%;
  max-width: 420px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.bnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 10px;
  border-radius: var(--radius-full);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 58px;
}

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

.bnav-btn.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.bnav-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bnav-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.bnav-badge {
  position: absolute;
  top: -5px;
  right: -9px;
  background: var(--accent-gold);
  color: #0f172a;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.bnav-cart-btn {
  background: var(--accent-gold) !important;
  color: #0f172a !important;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.4);
}

.bnav-cart-btn.active,
.bnav-cart-btn:hover {
  background: #f59e0b !important;
}

.bnav-cart-btn .bnav-badge {
  background: var(--primary);
  color: #ffffff;
}

/* Barra flotante rápida de aviso del carrito */
.floating-cart-bar {
  position: fixed;
  bottom: calc(var(--safe-bottom) + 72px);
  left: 16px;
  right: 16px;
  max-width: 420px;
  margin: 0 auto;
  background: var(--text-main);
  color: #ffffff;
  border-radius: var(--radius-full);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 48;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  animation: slideUpFloat 0.25s ease;
}

@keyframes slideUpFloat {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

.fc-count-pill {
  background: var(--accent-gold);
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.fc-total {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
}

.fc-right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
}

/* ==============================================================
   8. MODALES Y BOTTOM SHEETS
   ============================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.modal-sheet {
  position: relative;
  background: var(--bg-surface);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  z-index: 101;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
  animation: slideSheetUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sheet-handle {
  width: 40px;
  height: 5px;
  background: var(--border-light);
  border-radius: var(--radius-full);
  margin: 10px auto 4px auto;
  cursor: grab;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: var(--bg-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  z-index: 10;
}

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

/* Header del producto en modal */
.modal-product-header {
  text-align: center;
  margin-bottom: 20px;
}

.modal-img-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #ffffff;
  padding: 6px;
  box-shadow: var(--shadow-sm);
  margin: 0 auto 12px auto;
  border: 2px solid var(--primary-subtle);
}

.modal-product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.modal-badges {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

.modal-product-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.modal-product-price {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 8px;
}

.modal-product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 340px;
  margin: 0 auto;
}

/* Secciones del Personalizador */
.customizer-section {
  background: var(--bg-muted);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
}

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

.customizer-header h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.badge-combo {
  background: var(--accent-gold);
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.customizer-hint {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-light);
}

.customizer-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Tarjeta Checkbox Combo */
.combo-checkbox-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.combo-checkbox-card:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-subtle);
}

.combo-check-content strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-main);
}

.combo-check-content small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.combo-checkbox-card input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.combo-drink-select {
  margin-top: 12px;
  animation: fadeIn 0.2s ease;
}

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

.custom-select {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--text-main);
  outline: none;
}

.custom-select:focus {
  border-color: var(--primary);
}

/* Checklist de Adiciones */
.addons-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.addon-row-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  cursor: pointer;
}

.addon-row-check:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-subtle);
}

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

.arc-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.arc-price {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
}

.text-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s;
}

.text-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Stepper de Cantidad */
.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  margin-top: 4px;
}

.quantity-label {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-main);
}

.qty-stepper {
  display: flex;
  align-items: center;
  background: var(--bg-muted);
  border-radius: var(--radius-full);
  padding: 4px;
  border: 1px solid var(--border-light);
}

.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s;
}

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

.qty-number {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  min-width: 40px;
  text-align: center;
}

/* Footer del Modal */
.modal-footer {
  padding: 16px 20px calc(var(--safe-bottom) + 12px) 20px;
  border-top: 1px solid var(--border-light);
  background: #ffffff;
}

.btn-primary {
  width: 100%;
  background: var(--primary);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-primary:active {
  transform: scale(0.98);
  background: var(--primary-dark);
}

.btn-divider {
  opacity: 0.6;
}

/* ==============================================================
   9. DRAWER DEL CARRITO & CHECKOUT WHATSAPP
   ============================================================== */
.cart-sheet {
  max-height: 94vh;
}

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

.cart-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
}

.cart-title-wrap h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
}

/* Selector Domicilio vs Mesa en Carrito */
.order-mode-toggle-wrap {
  margin-bottom: 16px;
}

.mode-toggle {
  display: flex;
  background: var(--bg-muted);
  border-radius: var(--radius-full);
  padding: 4px;
  border: 1px solid var(--border-light);
}

.mode-opt {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.mode-opt.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* Items del Carrito */
.cart-items-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.cart-item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ci-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.ci-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.ci-remove-btn {
  color: var(--text-light);
  font-size: 0.85rem;
  padding: 2px 6px;
}

.ci-remove-btn:hover {
  color: var(--danger);
}

.ci-breakdown {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-muted);
  padding: 6px 10px;
  border-radius: 6px;
}

.ci-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.ci-subtotal {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
}

.cart-empty-box {
  text-align: center;
  padding: 40px 10px;
}

.cart-empty-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.cart-empty-box h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.cart-empty-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Formulario de Checkout */
.checkout-form-section {
  background: var(--bg-muted);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  border: 1px solid var(--border-light);
}

.form-sec-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.input-group {
  margin-bottom: 12px;
}

.input-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.field-hint {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Opciones de Pago */
.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.pay-option {
  cursor: pointer;
}

.pay-option input {
  display: none;
}

.pay-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.pay-option input:checked + .pay-card {
  border-color: var(--primary);
  background: var(--primary-subtle);
  box-shadow: 0 2px 8px var(--primary-glow);
}

.pay-icon {
  font-size: 1.25rem;
}

.pay-name {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.15;
}

/* Caja de Resumen */
.cart-summary-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.total-line {
  border-top: 1px dashed var(--border-light);
  padding-top: 8px;
  margin-top: 4px;
  font-size: 1rem;
  color: var(--text-main);
}

.total-highlight {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--primary);
}

/* Footer del Carrito con WhatsApp CTA */
.cart-footer {
  padding: 14px 20px calc(var(--safe-bottom) + 12px) 20px;
  border-top: 1px solid var(--border-light);
  background: #ffffff;
}

.btn-whatsapp {
  width: 100%;
  background: var(--whatsapp-color);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transition: all 0.15s ease;
}

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

/* ==============================================================
   10. MODALES SECUNDARIOS (MODALIDAD Y ÉXITO)
   ============================================================== */
.mode-sheet {
  padding: 24px 20px calc(var(--safe-bottom) + 20px) 20px;
  text-align: center;
}

.mode-sheet-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.mode-sheet-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

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

.mode-selection-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-muted);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: left;
  transition: all 0.2s ease;
}

.mode-selection-card:active {
  background: var(--primary-subtle);
  border-color: var(--primary);
  transform: scale(0.98);
}

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

.msc-info strong {
  display: block;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.msc-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Diálogo de Éxito */
.modal-dialog {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 400px;
  padding: 30px 24px;
  text-align: center;
  z-index: 102;
  box-shadow: var(--shadow-lg);
  margin-bottom: auto;
  margin-top: auto;
  animation: popIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #dcfce7;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.success-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.success-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 18px;
}

.success-ticket {
  background: var(--bg-muted);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 0.8rem;
  color: var(--text-main);
  text-align: left;
  margin-bottom: 20px;
  max-height: 180px;
  overflow-y: auto;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-secondary {
  background: var(--bg-muted);
  color: var(--text-main);
  padding: 12px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  width: 100%;
}
