/* ==========================================================
   JHONNY'S BBQ - MENÚ DIGITAL WEBAPP ESTILO APP
   Paleta: Texas BBQ Red (#C41E24), Smoked Amber (#F59E0B),
   Charcoal (#18181B), Fondos Claros (#F8F9FA, #FFFFFF).
   ========================================================== */

:root {
  --brand-red: #C41E24;
  --brand-red-dark: #991B1B;
  --brand-red-light: #FEE2E2;
  --brand-amber: #F59E0B;
  --brand-orange: #EA580C;
  --brand-navy: #1E3A8A;
  
  --bg-main: #F4F5F7;
  --bg-card: #FFFFFF;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F9FAFB;
  --border-light: #E5E7EB;
  --border-subtle: #F3F4F6;
  
  --text-main: #18181B;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-dock: 0 12px 36px rgba(0, 0, 0, 0.14), 0 4px 10px rgba(0, 0, 0, 0.05);
  
  --font-heading: 'Bebas Neue', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

/* ==========================================================
   VISTA DE ESCRITORIO: CÓDIGO QR PARA ESCANEAR
   (Solo se muestra en pantallas desktop, sin simuladores)
   ========================================================== */
.desktop-view {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 32px 20px;
  background: radial-gradient(circle at 50% 20%, #FFFFFF 0%, #F1F3F5 100%);
  position: relative;
}

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

.desktop-card {
  width: 100%;
  max-width: 520px;
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  text-align: center;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.12), 0 10px 15px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
}

.brand-badge-wrapper {
  margin: 0 auto 16px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-amber));
  box-shadow: 0 8px 20px rgba(196, 30, 36, 0.25);
}

.desktop-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
}

.texas-tag {
  display: inline-block;
  background: var(--brand-red-light);
  color: var(--brand-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.desktop-title {
  font-family: var(--font-heading);
  font-size: 44px;
  letter-spacing: 1.5px;
  line-height: 1;
  color: #18181B;
  margin-bottom: 4px;
}

.desktop-subtitle {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--brand-red);
  margin-bottom: 24px;
}

.qr-container {
  background: #FAFAFA;
  border: 2px dashed #E5E7EB;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  display: inline-block;
}

.qr-code-box {
  width: 220px;
  height: 220px;
  margin: 0 auto 14px;
  background: #FFFFFF;
  padding: 12px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.qr-caption {
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.desktop-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  background: #F9FAFB;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
}

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

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

.step-text {
  font-size: 13.5px;
  color: #374151;
  font-weight: 500;
}

.desktop-footer-info {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  margin-bottom: 16px;
}

.desktop-bypass-btn {
  background: none;
  border: 1px solid #D1D5DB;
  color: #4B5563;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.desktop-bypass-btn:hover {
  background: #F3F4F6;
  color: #111827;
  border-color: #9CA3AF;
}

/* ==========================================================
   APP MÓVIL: SOLO VISIBLE EN MÓVIL
   ========================================================== */
.mobile-app {
  display: none; /* en desktop está oculto por default */
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--bg-main);
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.05);
}

/* Control responsive para Desktop vs Mobile */
@media (max-width: 767px) {
  .desktop-view {
    display: none !important;
  }
  .mobile-app {
    display: flex !important;
    flex-direction: column;
  }
}

/* Si el usuario forza ver la versión móvil en desktop */
body.force-mobile-view .desktop-view {
  display: none !important;
}
body.force-mobile-view .mobile-app {
  display: flex !important;
  flex-direction: column;
}

/* ==========================================================
   HEADER DE LA APP ESTILO MCDONALD'S / KFC
   ========================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 12px 16px 8px;
  box-shadow: var(--shadow-sm);
}

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

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

.header-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-red);
  background: #000;
  box-shadow: 0 2px 8px rgba(196, 30, 36, 0.2);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: 0.8px;
  line-height: 1;
  color: #111827;
}

.order-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #F3F4F6;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-red);
  cursor: pointer;
  margin-top: 2px;
  transition: all 0.2s ease;
  border: 1px solid #E5E7EB;
}

.order-mode-pill:active {
  transform: scale(0.96);
  background: var(--brand-red-light);
}

.chevron-icon {
  color: #6B7280;
}

.cart-trigger-btn {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1F2937;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s var(--ease-spring);
}

.cart-trigger-btn:active {
  transform: scale(0.92);
  background: #F9FAFB;
}

.cart-trigger-btn .badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background-color: var(--brand-red);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 5px rgba(196, 30, 36, 0.4);
}

/* Buscador */
.search-bar-wrap {
  margin-bottom: 10px;
}

.search-input-box {
  display: flex;
  align-items: center;
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-full);
  padding: 8px 14px;
  gap: 8px;
  color: #9CA3AF;
  transition: all 0.2s ease;
}

.search-input-box:focus-within {
  background: #FFFFFF;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(196, 30, 36, 0.12);
  color: var(--brand-red);
}

.search-input-box input {
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 13.5px;
  color: #1F2937;
  width: 100%;
}

.search-input-box input::placeholder {
  color: #9CA3AF;
}

.search-clear-btn {
  background: #D1D5DB;
  border: none;
  color: #FFFFFF;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

/* Categorías Scrollable con Iconos */
.categories-nav {
  width: 100%;
  overflow: hidden;
  padding-bottom: 4px;
}

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

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

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: #4B5563;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

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

.category-chip .chip-fav-count {
  background: var(--brand-red-light);
  color: var(--brand-red);
  font-size: 11px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  margin-left: 2px;
}

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

.category-chip.active {
  background: var(--brand-red);
  color: #FFFFFF;
  border-color: var(--brand-red);
  box-shadow: 0 4px 12px rgba(196, 30, 36, 0.3);
}

.category-chip.active .chip-fav-count {
  background: #FFFFFF;
  color: var(--brand-red);
}

/* ==========================================================
   CONTENIDO SCROLLABLE Y BANNERS
   ========================================================== */
.app-scroll-content {
  flex: 1;
  padding: 14px 16px;
}

.banner-section {
  margin-bottom: 20px;
}

/* BANNER 1: Hero Principal */
.promo-banner {
  border-radius: var(--radius-lg);
  padding: 20px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-banner {
  background: linear-gradient(135deg, #C41E24 0%, #881337 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-banner::after {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.35) 0%, rgba(245, 158, 11, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.banner-badge {
  display: inline-block;
  background: rgba(0, 0, 0, 0.3);
  color: var(--brand-amber);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.banner-title {
  font-family: var(--font-heading);
  font-size: 28px;
  letter-spacing: 1px;
  line-height: 1.05;
  margin-bottom: 6px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.banner-description {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  margin-bottom: 14px;
}

.banner-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feat-tag {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  padding: 4px 9px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}

/* BANNER 2: Inter-secciones (Ahumado BBQ) */
.inter-banner-section {
  margin: 28px 0 20px;
}

.bbq-smoke-banner {
  background: linear-gradient(135deg, #18181B 0%, #27272A 100%);
  color: #FFFFFF;
  border-left: 5px solid var(--brand-amber);
  position: relative;
}

.bbq-smoke-banner::before {
  content: '🔥';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  opacity: 0.25;
}

.banner-tag-red {
  display: inline-block;
  background: var(--brand-red);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}

.banner-title-sm {
  font-family: var(--font-heading);
  font-size: 23px;
  letter-spacing: 0.8px;
  line-height: 1.1;
  color: #FBBF24;
  margin-bottom: 4px;
}

.banner-description-sm {
  font-size: 12.5px;
  color: #E4E4E7;
  line-height: 1.45;
  max-width: 90%;
}

/* BANNER 3: Modalidad y Domicilio */
.delivery-banner-section {
  margin: 28px 0 20px;
}

.info-action-banner {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-left: 5px solid var(--brand-red);
}

.action-banner-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.badge-accent {
  display: inline-block;
  background: var(--brand-red-light);
  color: var(--brand-red);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 4px;
}

.action-banner-title {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 2px;
}

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

.btn-banner-action {
  background: var(--brand-red);
  color: #FFFFFF;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(196, 30, 36, 0.25);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.btn-banner-action:active {
  transform: scale(0.95);
}

/* ==========================================================
   SECCIONES Y TARJETAS DE PRODUCTOS
   ========================================================== */
.menu-section {
  margin-bottom: 24px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 2px;
}

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

.section-icon {
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid #E5E7EB;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 24px;
  letter-spacing: 0.8px;
  color: #111827;
  line-height: 1.1;
}

.section-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.25;
}

.section-count {
  font-size: 12px;
  font-weight: 700;
  color: #9CA3AF;
  white-space: nowrap;
}

/* Grid de Productos */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 360px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* Tarjeta de Producto Estilo App */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #E5E7EB;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

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

.card-img-container {
  width: 100%;
  aspect-ratio: 1 / 0.85;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  position: relative;
}

.card-product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s var(--ease-spring);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.08));
}

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

/* Botón Favorito en la tarjeta */
.btn-card-fav {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

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

.btn-card-fav.is-favorite {
  color: var(--brand-red);
  background: #FFFFFF;
}

.btn-card-fav.is-favorite svg {
  fill: var(--brand-red);
}

.card-badge-portion {
  position: absolute;
  bottom: 6px;
  left: 8px;
  background: #F3F4F6;
  color: #4B5563;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  border: 1px solid #E5E7EB;
}

.card-info {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  letter-spacing: 0.5px;
  line-height: 1.15;
  color: #111827;
  margin-bottom: 4px;
}

.card-description {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px dashed #F3F4F6;
}

.card-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--brand-red);
}

.btn-add-quick {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-red);
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(196, 30, 36, 0.3);
  transition: transform 0.2s var(--ease-spring);
}

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

/* Estado vacío de favoritos */
.empty-state {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px dashed #D1D5DB;
  padding: 36px 20px;
  text-align: center;
}

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

.empty-state h4 {
  font-size: 16px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 16px;
}

.btn-primary-sm {
  background: var(--brand-red);
  color: #FFFFFF;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(196, 30, 36, 0.25);
}

/* ==========================================================
   SECCIÓN INFORMACIÓN DEL RESTAURANTE
   ========================================================== */
.info-details-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid #E5E7EB;
  box-shadow: var(--shadow-sm);
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #F3F4F6;
}

.info-row:last-of-type {
  border-bottom: none;
}

.info-icon-circle {
  width: 36px;
  height: 36px;
  background: #F3F4F6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.info-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.info-text p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 1px;
  line-height: 1.35;
}

.info-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.btn-ws-direct, .btn-ig-direct {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  padding: 11px 16px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.btn-ws-direct {
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-ws-direct:active {
  transform: scale(0.97);
}

.btn-ig-direct {
  background: #F3F4F6;
  color: #1F2937;
  border: 1px solid #E5E7EB;
}

.btn-ig-direct:active {
  background: #E5E7EB;
}

/* Espaciador del dock inferior para que no tape contenido */
.bottom-dock-spacer {
  height: 90px;
}

/* ==========================================================
   MENÚ ESTILO APP FLOTANTE INFERIOR (BOTTOM NAVIGATION DOCK)
   Requisito Clave: Resaltado en Círculo con Relleno del Color de la Marca
   ========================================================== */
.floating-bottom-nav {
  position: fixed;
  bottom: 14px;
  left: 0;
  right: 0;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 16px;
  z-index: 1000;
  pointer-events: none; /* el contenedor es traspasable, los botones activos */
}

.dock-container {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 40px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: var(--shadow-dock);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.dock-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 4px 6px;
  position: relative;
  transition: transform 0.25s var(--ease-spring);
  outline: none;
}

.dock-item:active {
  transform: scale(0.92);
}

/* El círculo del icono */
.dock-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: #6B7280;
  position: relative;
  transition: all 0.25s var(--ease-spring);
}

.dock-icon {
  width: 22px;
  height: 22px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.dock-label {
  font-size: 11px;
  font-weight: 700;
  color: #6B7280;
  margin-top: 2px;
  transition: color 0.2s ease;
}

/* ==========================================================
   REQUISITO EXACTO:
   "cada ves que el cliente se pare sobre un item del menu se debe
    resaltar en un circulo con un fondo de relleno del color de la marca"
   ========================================================== */
.dock-item:hover .dock-icon-circle,
.dock-item.active .dock-icon-circle {
  background-color: var(--brand-red) !important;
  color: #FFFFFF !important;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 16px rgba(196, 30, 36, 0.4);
}

.dock-item:hover .dock-icon,
.dock-item.active .dock-icon {
  stroke: #FFFFFF !important;
}

.dock-item:hover .dock-label,
.dock-item.active .dock-label {
  color: var(--brand-red);
  font-weight: 800;
}

/* Badge contador sobre el icono del dock */
.dock-badge {
  position: absolute;
  top: 0px;
  right: 0px;
  background-color: var(--brand-amber);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.dock-item.active .dock-badge {
  background-color: #111827;
  border-color: #FFFFFF;
}

/* ==========================================================
   MODAL DE PRODUCTO (BOTTOM SHEET ANIMADO)
   ========================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  animation: fadeIn 0.2s ease;
}

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

.product-sheet {
  background: #FFFFFF;
  border-radius: 28px 28px 0 0;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s var(--ease-spring);
  overflow: hidden;
}

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

.sheet-handle-bar {
  padding: 10px 0 4px;
  display: flex;
  justify-content: center;
}

.sheet-handle {
  width: 44px;
  height: 5px;
  border-radius: var(--radius-full);
  background: #E5E7EB;
}

.sheet-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #F3F4F6;
  border: none;
  color: #4B5563;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.product-sheet-content {
  overflow-y: auto;
  padding: 0 20px 20px;
  flex: 1;
}

.sheet-image-box {
  width: 100%;
  height: 220px;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 16px;
}

.sheet-product-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.12));
}

.sheet-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s var(--ease-spring);
}

.sheet-fav-btn.is-favorite {
  color: var(--brand-red);
}

.sheet-fav-btn.is-favorite svg {
  fill: var(--brand-red);
}

.sheet-header-info {
  margin-bottom: 10px;
}

.sheet-category-tag {
  display: inline-block;
  background: var(--brand-red-light);
  color: var(--brand-red);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 4px;
}

.sheet-title {
  font-family: var(--font-heading);
  font-size: 28px;
  letter-spacing: 0.8px;
  color: #111827;
  line-height: 1.1;
}

.sheet-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-red);
  margin-top: 4px;
}

.sheet-description {
  font-size: 13.5px;
  color: #4B5563;
  line-height: 1.5;
  margin-bottom: 18px;
  background: #F9FAFB;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid #E5E7EB;
}

.sheet-notes-section {
  margin-bottom: 18px;
}

.sheet-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
}

.sheet-textarea {
  width: 100%;
  min-height: 64px;
  border: 1px solid #D1D5DB;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  resize: none;
  background: #FFFFFF;
}

.sheet-textarea:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(196, 30, 36, 0.12);
}

.sheet-quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 10px 0;
  border-top: 1px solid #F3F4F6;
  border-bottom: 1px solid #F3F4F6;
}

.sheet-qty-label {
  font-size: 14px;
  font-weight: 700;
  color: #1F2937;
}

.qty-stepper {
  display: flex;
  align-items: center;
  background: #F3F4F6;
  border-radius: var(--radius-full);
  padding: 3px;
  border: 1px solid #E5E7EB;
}

.stepper-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #FFFFFF;
  color: #1F2937;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.15s ease;
}

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

.stepper-value {
  width: 36px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #111827;
}

.sheet-footer {
  padding-top: 10px;
}

.btn-add-to-cart {
  width: 100%;
  background: var(--brand-red);
  color: #FFFFFF;
  border: none;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 18px rgba(196, 30, 36, 0.35);
  transition: transform 0.2s var(--ease-spring);
}

.btn-add-to-cart:active {
  transform: scale(0.98);
}

/* ==========================================================
   DRAWER: CARRITO Y CONFIRMACIÓN POR WHATSAPP
   ========================================================== */
.cart-drawer {
  background: #FFFFFF;
  border-radius: 28px 28px 0 0;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s var(--ease-spring);
  overflow: hidden;
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #F3F4F6;
}

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

.drawer-title-wrap h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  letter-spacing: 0.8px;
  color: #111827;
}

.drawer-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #F3F4F6;
  border: none;
  color: #4B5563;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Selector Tipo de Pedido: Domicilio vs Mesa */
.order-type-tabs-card {
  background: #F9FAFB;
  border-radius: var(--radius-md);
  padding: 12px;
  border: 1px solid #E5E7EB;
  margin-bottom: 16px;
}

.type-tab-title {
  font-size: 12px;
  font-weight: 700;
  color: #4B5563;
  margin-bottom: 8px;
}

.type-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.type-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  padding: 9px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: #4B5563;
  cursor: pointer;
  transition: all 0.2s ease;
}

.type-tab-btn.active {
  background: var(--brand-red);
  color: #FFFFFF;
  border-color: var(--brand-red);
  box-shadow: 0 4px 10px rgba(196, 30, 36, 0.25);
}

/* Campos de Cliente */
.customer-info-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid #E5E7EB;
  padding: 14px;
  margin-bottom: 16px;
}

.customer-fields-title {
  font-size: 13px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.input-group:last-child {
  margin-bottom: 0;
}

.input-group label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #4B5563;
  margin-bottom: 4px;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #D1D5DB;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 13px;
  color: #111827;
  outline: none;
  background: #FAFAFA;
}

.input-group input:focus,
.input-group select:focus {
  background: #FFFFFF;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(196, 30, 36, 0.12);
}

/* Items del Carrito */
.cart-items-section {
  margin-bottom: 16px;
}

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

.cart-items-header h4 {
  font-size: 13px;
  font-weight: 800;
  color: #1F2937;
}

.btn-clear-cart {
  background: none;
  border: none;
  color: #EF4444;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-md);
  padding: 8px 12px;
}

.cart-item-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 2px;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-notes {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

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

.cart-stepper-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #D1D5DB;
  background: #FFFFFF;
  color: #1F2937;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Resumen de Costos */
.cart-pricing-summary {
  background: #F3F4F6;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #4B5563;
}

.delivery-fee-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-amber);
  background: #FEF3C7;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.pricing-row.total-row {
  font-size: 16px;
  font-weight: 800;
  color: #111827;
  border-top: 1px dashed #D1D5DB;
  padding-top: 8px;
}

.pricing-row.total-row span:last-child {
  color: var(--brand-red);
  font-size: 18px;
}

.cart-drawer-footer {
  padding: 14px 20px;
  border-top: 1px solid #F3F4F6;
  background: #FFFFFF;
}

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

.btn-whatsapp-order:active {
  transform: scale(0.98);
}

/* Toast de notificación */
.toast-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  animation: toastPop 0.25s var(--ease-spring);
}

@keyframes toastPop {
  from { opacity: 0; transform: translate(-50%, -15px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.toast-icon {
  background: #10B981;
  color: #FFFFFF;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
