/* ==========================================================================
   HAT-TRICK BURGERS — MOBILE-FIRST STYLESHEET
   Inspirado en la estética retro-sports diner del menú original:
   Rojos vibrantes, crema pergamino, dorado atlético y tipografías de impacto.
   ========================================================================== */

:root {
  --primary-red: #C8102E;
  --primary-dark: #9E0B22;
  --primary-light: #FF334B;
  --accent-gold: #FDB913;
  --accent-gold-dark: #D99505;
  --bg-cream: #F8F5EE;
  --bg-cream-dark: #EDE7DC;
  --text-dark: #1A1A1A;
  --text-muted: #666666;
  --text-light: #FFFFFF;
  --border-color: #E2DAC8;
  --card-bg: #FFFFFF;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  --max-width: 440px;
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #121316; /* Fondo exterior en pantallas desktop */
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: #121316;
}

/* Contenedor Mobile-First */
#app-container {
  width: 100%;
  max-width: var(--max-width);
  min-height: 100vh;
  background-color: var(--bg-cream);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
  padding-bottom: 175px; /* Suficiente espacio para no tapar productos con el carrito ni la barra inferior */
}

/* Tipografía Deportiva */
.font-athletic {
  font-family: "Impact", "Arial Black", -apple-system, sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.font-script {
  font-family: "Brush Script MT", "Snell Roundhand", cursive, sans-serif;
}

/* --------------------------------------------------------------------------
   BANNER DE CONFIGURACIÓN DE WHATSAPP (SI ESTÁ PENDIENTE)
   -------------------------------------------------------------------------- */
.whatsapp-banner-notice {
  background: #FFF3CD;
  color: #856404;
  border-bottom: 1px solid #FFEEBA;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 50;
  position: sticky;
  top: 0;
}

.whatsapp-banner-notice button {
  background: #856404;
  color: #FFF;
  border: none;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   HEADER ESTILO MCDONALD'S / EL CORRAL
   - Logo oficial (Hat-Trick BURGERS en script blanco sobre rojo)
   - Selector dinámico de sede con cambio en vivo
   - Ícono oficial de Instagram y configuración
   -------------------------------------------------------------------------- */
.app-mcdonalds-header {
  background: var(--primary-red);
}

.header-official-logo-img {
  height: 38px;
  width: auto;
  max-width: 145px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35));
}

.header-location-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.22);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.header-location-picker:active {
  transform: scale(0.96);
  background: rgba(0, 0, 0, 0.35);
}

.loc-pin {
  font-size: 13px;
}

.loc-text-col {
  display: flex;
  flex-direction: column;
}

.loc-label {
  font-size: 9px;
  color: var(--accent-gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.loc-name {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.1;
}

.instagram-btn {
  color: #FFFFFF;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
}

.instagram-btn:hover,
.instagram-btn:active {
  transform: scale(0.94);
  box-shadow: 0 2px 8px rgba(220, 39, 67, 0.4);
}

/* --------------------------------------------------------------------------
   HERO BANNER: MODO MESA / DOMICILIO + ISOLOGO OFICIAL DERECHO
   Eliminado el logo texto del hero; solo el mensaje + 2 botones a la izquierda
   y el isologo a la derecha.
   -------------------------------------------------------------------------- */
.hero-table-delivery-banner {
  background: linear-gradient(135deg, #1A1A1E 0%, #2A0910 50%, #500814 100%);
  border: 1.5px solid rgba(253, 185, 19, 0.4);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 12px 14px 4px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.hero-order-choice-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-choice-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-mode-toggle-group {
  display: flex;
  gap: 8px;
}

.hero-mode-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #F3F4F6;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.hero-mode-btn .hero-mode-icon {
  font-size: 14px;
}

.hero-mode-btn.active {
  background: var(--accent-gold);
  color: #1A1A1A;
  border-color: var(--accent-gold);
  box-shadow: 0 3px 10px rgba(253, 185, 19, 0.4);
  transform: translateY(-1px);
}

.hero-mode-btn:active {
  transform: scale(0.96);
}

.hero-isologo-box {
  flex-shrink: 0;
}

.hero-isologo-img {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-gold);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}
  background: #FFFFFF;
  color: var(--primary-dark);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------------------------------
   BARRA DE NAVEGACIÓN INFERIOR ESTILO MCDONALD'S / EL CORRAL
   -------------------------------------------------------------------------- */
.mcdonalds-style-nav {
  height: 64px;
  background: #FFFFFF;
  border-top: 1px solid #EBE4D5;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px;
  z-index: 50;
}

.mcdonalds-style-nav .nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  color: #71717A;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  transition: var(--transition);
}

.mcdonalds-style-nav .nav-item.active {
  color: var(--primary-red);
}

.nav-svg-icon {
  stroke: #71717A;
  transition: stroke 0.2s ease, transform 0.2s ease;
}

.mcdonalds-style-nav .nav-item.active .nav-svg-icon {
  stroke: var(--primary-red);
  transform: translateY(-1px);
}

/* BOTÓN CENTRAL FLOTANTE (FAB ORDER) */
.nav-fab-order {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  padding-bottom: 4px;
}

.fab-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-red) 0%, #A30D23 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -24px;
  box-shadow: 0 6px 16px rgba(200, 16, 46, 0.45), 0 0 0 4px #FFFFFF;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-fab-order:active .fab-circle {
  transform: scale(0.92);
}

.fab-circle.has-items {
  animation: pulseFab 2s infinite ease-in-out;
}

@keyframes pulseFab {
  0% {
    box-shadow: 0 6px 16px rgba(200, 16, 46, 0.45), 0 0 0 4px #FFFFFF;
  }
  50% {
    box-shadow: 0 8px 24px rgba(200, 16, 46, 0.7), 0 0 0 4px #FFFFFF, 0 0 15px rgba(253, 185, 19, 0.6);
  }
  100% {
    box-shadow: 0 6px 16px rgba(200, 16, 46, 0.45), 0 0 0 4px #FFFFFF;
  }
}

.fab-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent-gold);
  color: #1A1A1A;
  font-size: 11px;
  font-weight: 900;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #FFFFFF;
}

.fab-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary-red);
  margin-top: 32px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--primary-red);
  color: var(--text-light);
  box-shadow: var(--shadow-md);
  border-bottom: 3px solid var(--accent-gold);
}

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

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

.brand-logo-horizontal {
  height: 44px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  color: #FFFFFF;
  letter-spacing: 1px;
  text-shadow: 1px 1px 0 #6B0617;
}

.brand-subtitle {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

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

.header-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFF;
  border-radius: var(--radius-full);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.header-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.3);
}

/* Buscador */
.search-container {
  padding: 0 16px 12px 16px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  font-size: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 10px 36px 10px 36px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: #FFFFFF;
  color: var(--text-dark);
  font-size: 14px;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(253, 185, 19, 0.3);
}

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

.search-clear-btn.visible {
  display: block;
}

/* --------------------------------------------------------------------------
   NAVEGACIÓN POR CATEGORÍAS (PILL TABS CON SCROLL HORIZONTAL)
   -------------------------------------------------------------------------- */
.category-nav-wrapper {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 98px; /* Bajo el header */
  z-index: 30;
  box-shadow: var(--shadow-sm);
}

.category-nav {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 8px;
  padding: 10px 14px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

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

.cat-pill {
  flex-shrink: 0;
  background: var(--bg-cream);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.cat-pill.active {
  background: var(--primary-red);
  color: #FFFFFF;
  border-color: var(--primary-red);
  box-shadow: 0 2px 8px rgba(200, 16, 46, 0.35);
  transform: translateY(-1px);
}

.cat-pill:active {
  transform: scale(0.95);
}

/* --------------------------------------------------------------------------
   HERO / BANNER DE BIENVENIDA
   -------------------------------------------------------------------------- */
.hero-banner {
  margin: 14px 14px 6px 14px;
  background: linear-gradient(135deg, #1C1D21 0%, #2A2D35 100%);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border: 2px dashed rgba(253, 185, 19, 0.4);
}

.hero-banner::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  flex: 1;
  z-index: 2;
}

.hero-badge-tag {
  background: var(--primary-red);
  color: #FFF;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
  color: #FFFFFF;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 11px;
  color: #D1D5DB;
  margin-top: 4px;
}

.hero-mascot-img {
  height: 65px;
  width: auto;
  object-fit: contain;
  margin-left: 10px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  z-index: 2;
}

/* --------------------------------------------------------------------------
   BANNERS GRÁFICOS ENTRE SECCIONES
   -------------------------------------------------------------------------- */
.category-banner-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 22px 0 6px 0;
  padding: 6px 0;
  position: relative;
}

.category-banner-img {
  max-width: 250px;
  max-height: 85px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}

.section-header.has-banner {
  border-top: none;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   LISTADO Y SECCIONES DE PRODUCTOS
   -------------------------------------------------------------------------- */
.menu-feed {
  padding: 10px 14px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.category-section {
  scroll-margin-top: 150px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

.section-header::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--primary-red);
}

.section-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--primary-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Cuadrícula o lista de productos */
.products-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   SECCIÓN DE ADICIONALES: 2 COLUMNAS (4 Y 4)
   -------------------------------------------------------------------------- */
.products-grid.adiciones-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.adiciones-grid-2col .product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 12px;
  min-height: 98px;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.adiciones-grid-2col .product-card:active {
  transform: scale(0.97);
  border-color: var(--accent-gold);
}

.adiciones-grid-2col .product-image-container {
  display: none;
}

.adiciones-grid-2col .product-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 6px;
}

.adiciones-grid-2col .product-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 0;
  text-transform: uppercase;
}

.adiciones-grid-2col .product-desc {
  display: none;
}

.adiciones-grid-2col .product-pricing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.adiciones-grid-2col .price-single {
  font-size: 14.5px;
  font-weight: 900;
  color: var(--primary-red);
}

.adiciones-grid-2col .card-fav-btn {
  font-size: 14px;
}

.adiciones-grid-2col .product-card::after {
  content: "+";
  position: absolute;
  bottom: 8px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #1A1A1A;
  font-size: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

/* Tarjeta de Producto */
.product-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 12px;
  display: flex;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.product-card:active {
  transform: scale(0.98);
  border-color: var(--primary-red);
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-badge {
  background: var(--accent-gold);
  color: #1A1A1A;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.product-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.product-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
}

.price-single {
  font-size: 17px;
  font-weight: 900;
  color: var(--primary-red);
}

.price-combo {
  font-size: 11px;
  font-weight: 700;
  color: #4B5563;
  background: #F3F4F6;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px dashed #CBD5E1;
}

.price-combo span {
  color: var(--primary-dark);
  font-weight: 800;
}

/* Imagen del producto en tarjeta */
.product-image-container {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle, #F9F7F2 40%, #EFEBE0 100%);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  padding: 4px;
}

.product-thumb {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
  transition: transform 0.2s ease;
}

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

.quick-add-btn {
  position: absolute;
  bottom: -6px;
  right: -6px;
  background: var(--primary-red);
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  border-radius: var(--radius-full);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition);
}

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

/* --------------------------------------------------------------------------
   MODAL / BOTTOM SHEET DE DETALLE DE PRODUCTO
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-bottom-sheet {
  width: 100%;
  max-width: var(--max-width);
  max-height: 90vh;
  background: #FFFFFF;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-bottom-sheet {
  transform: translateY(0);
}

.modal-handle-bar {
  width: 44px;
  height: 5px;
  background: #D1D5DB;
  border-radius: var(--radius-full);
  margin: 10px auto 4px auto;
  flex-shrink: 0;
}

.modal-header-actions {
  display: flex;
  justify-content: flex-end;
  padding: 6px 16px;
}

.modal-close-btn {
  background: #F3F4F6;
  border: none;
  border-radius: var(--radius-full);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-dark);
  cursor: pointer;
  font-weight: 700;
}

.modal-scroll-body {
  overflow-y: auto;
  padding: 0 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-hero-image-box {
  width: 100%;
  height: 180px;
  background: radial-gradient(circle, #F8F5EE 30%, #E8E0D2 100%);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.modal-hero-image {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

.modal-product-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-dark);
  text-transform: uppercase;
  line-height: 1.2;
}

.modal-product-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  background: var(--bg-cream);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary-red);
}

/* Opciones de presentación (Solo vs Combo) */
.options-group-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.options-group-title .tag-required {
  font-size: 10px;
  background: var(--primary-red);
  color: #FFF;
  padding: 2px 6px;
  border-radius: 4px;
}

.variant-selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.variant-card {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: #FFFFFF;
}

.variant-card.selected {
  border-color: var(--primary-red);
  background: #FFF5F6;
  box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.15);
}

.variant-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-dark);
}

.variant-price {
  font-size: 15px;
  font-weight: 900;
  color: var(--primary-red);
  margin-top: 4px;
}

.variant-note {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Selección de salsa o bebida */
.chip-selector-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-option {
  padding: 7px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.chip-option.selected {
  background: var(--text-dark);
  color: #FFFFFF;
  border-color: var(--text-dark);
}

/* Adicionales */
.additions-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.addition-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  cursor: pointer;
  transition: var(--transition);
}

.addition-row.selected {
  border-color: var(--accent-gold-dark);
  background: #FFFDF7;
}

.addition-checkbox {
  margin-right: 10px;
  accent-color: var(--primary-red);
  width: 16px;
  height: 16px;
}

.addition-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
}

.addition-price {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-red);
}

/* Instrucciones especiales */
.modal-notes-input {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 13px;
  font-family: inherit;
  resize: none;
  height: 60px;
  outline: none;
}

.modal-notes-input:focus {
  border-color: var(--primary-red);
}

/* Footer del modal con selector de cantidad y botón agregar */
.modal-footer {
  padding: 14px 18px calc(16px + env(safe-area-inset-bottom, 14px)) 18px;
  background: #FFFFFF;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  position: sticky;
  bottom: 0;
  z-index: 25;
}

/* REGLA CRÍTICA: OCULTAR NAVEGACIÓN Y CARRITO FLOTANTE CUANDO HAY UN MODAL ABIERTO */
body.modal-open .bottom-nav,
body.modal-open .floating-cart-bar {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

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

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: none;
  background: #FFFFFF;
  color: var(--text-dark);
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.qty-value {
  width: 30px;
  text-align: center;
  font-weight: 800;
  font-size: 15px;
}

.btn-add-to-cart {
  flex: 1;
  background: var(--primary-red);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
  transition: var(--transition);
}

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

/* --------------------------------------------------------------------------
   BARRA FLOTANTE DEL CARRITO ("VER PEDIDO")
   Elevada claramente sobre la barra inferior de 4 items para no taparla
   -------------------------------------------------------------------------- */
.floating-cart-bar {
  position: fixed;
  bottom: calc(96px + env(safe-area-inset-bottom, 16px)); /* Elevado para flotar con holgura y nunca superponerse con el menú inferior */
  left: 50%;
  transform: translateX(-50%) translateY(160%);
  width: calc(100% - 28px);
  max-width: calc(var(--max-width) - 28px);
  background: var(--primary-red);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(200, 16, 46, 0.45);
  z-index: 45;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid var(--accent-gold);
}

.floating-cart-bar.visible {
  transform: translateX(-50%) translateY(0);
}

.floating-cart-bar:active {
  transform: translateX(-50%) scale(0.98);
}

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

.cart-bar-badge {
  background: #FFFFFF;
  color: var(--primary-red);
  font-weight: 900;
  font-size: 13px;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-bar-label {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cart-bar-total {
  font-size: 16px;
  font-weight: 900;
  color: var(--accent-gold);
}

/* --------------------------------------------------------------------------
   BARRA DE NAVEGACIÓN INFERIOR DE 4 ITEMS (HOME, SEDES, FAVORITOS, CARRITO)
   -------------------------------------------------------------------------- */
.four-items-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  height: 64px;
  background: #FFFFFF;
  border-top: 1px solid var(--border-color);
  border-radius: 18px 18px 0 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 40;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.four-items-nav .nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #6B7280;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  font-size: 11px;
  font-weight: 700;
  transition: var(--transition);
}

.four-items-nav .nav-item.active {
  color: var(--primary-red);
}

.four-items-nav .nav-item.active .nav-svg-icon {
  stroke: var(--primary-red);
  transform: translateY(-2px);
}

.card-fav-btn {
  background: none;
  border: none;
  font-size: 15px;
  cursor: pointer;
  padding: 2px 4px;
  transition: transform 0.2s ease;
  line-height: 1;
}

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

.category-banner-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 22px 0 8px 0;
  padding: 6px 0;
}

.category-banner-img {
  max-width: 280px;
  max-height: 95px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}

/* --------------------------------------------------------------------------
   BARRA DE NAVEGACIÓN INFERIOR (BOTTOM NAV — FLOATING PILL)
   Estilo exacto según imagen de referencia del usuario:
   Píldora flotante blanca, 4 ítems: cuando una sección está activa,
   su ícono se coloca dentro de un círculo rojo con ícono blanco y texto rojo.
   -------------------------------------------------------------------------- */
.bottom-nav {
  position: fixed;
  bottom: calc(12px + env(safe-area-inset-bottom, 8px));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: calc(var(--max-width) - 28px);
  height: 66px;
  background: #FFFFFF;
  border-radius: var(--radius-full);
  display: flex !important;
  justify-content: space-around;
  align-items: center;
  z-index: 100 !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15), 0 1px 4px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0 6px;
  visibility: visible !important;
  opacity: 1 !important;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #4B5563;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  flex: 1;
  padding: 4px 0;
  transition: all 0.2s ease;
}

.nav-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #374151;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-svg-icon {
  width: 20px;
  height: 20px;
  transition: all 0.2s ease;
}

.nav-label {
  font-size: 11px;
  font-weight: 600;
  color: #4B5563;
  transition: color 0.2s ease;
  line-height: 1.1;
}

/* ESTADO ACTIVO: ÍCONO EN CÍRCULO ROJO SÓLIDO + ÍCONO BLANCO + TEXTO ROJO */
.nav-item.active .nav-icon-circle {
  background: #C8102E !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.4) !important;
  transform: translateY(-1px);
}

.nav-item.active .nav-icon-circle svg {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

#nav-btn-home.active .nav-icon-circle svg {
  fill: #FFFFFF !important;
  stroke: none !important;
}

.nav-item.active .nav-label {
  color: #C8102E !important;
  font-weight: 800 !important;
}

/* Badge del carrito sobre el ícono */
.nav-cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent-gold);
  color: #1A1A1A;
  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;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border: 1.5px solid #FFFFFF;
}

.nav-item.active .nav-cart-badge {
  background: #FFFFFF;
  color: var(--primary-red);
  border: 1.5px solid var(--primary-red);
}

/* --------------------------------------------------------------------------
   VISTA / SLIDEOVER DEL CARRITO
   -------------------------------------------------------------------------- */
.cart-items-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0;
}

.cart-item-row {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  gap: 12px;
  position: relative;
}

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

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

.cart-item-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dark);
  text-transform: uppercase;
}

.cart-item-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.3;
}

.cart-item-subtotal {
  font-size: 14px;
  font-weight: 900;
  color: var(--primary-red);
  margin-top: 6px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.cart-remove-btn {
  background: none;
  border: none;
  color: #DC2626;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px;
}

/* Resumen del carrito */
.cart-summary-box {
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--border-color);
  margin-top: 8px;
}

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

.summary-row.total-row {
  font-size: 17px;
  font-weight: 900;
  color: var(--text-dark);
  border-top: 1px dashed var(--border-color);
  padding-top: 8px;
  margin-top: 8px;
  margin-bottom: 0;
}

.summary-row.total-row span:last-child {
  color: var(--primary-red);
}

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

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

.empty-state-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-dark);
  text-transform: uppercase;
}

.empty-state-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   FORMULARIO DE CHECKOUT Y BOTÓN DE WHATSAPP
   -------------------------------------------------------------------------- */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-dark);
  text-transform: uppercase;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #FFFFFF;
}

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

.delivery-selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.delivery-option-btn {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px;
  background: #FFFFFF;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.delivery-option-btn.selected {
  border-color: var(--primary-red);
  background: #FFF5F6;
}

.delivery-option-btn .opt-icon {
  font-size: 20px;
  display: block;
  margin-bottom: 2px;
}

.delivery-option-btn .opt-title {
  font-size: 12px;
  font-weight: 800;
}

/* Botón Maestro de WhatsApp */
.btn-whatsapp-confirm {
  background: #25D366;
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  text-decoration: none;
}

.btn-whatsapp-confirm:active {
  transform: scale(0.98);
  background: #1DA851;
}

.btn-whatsapp-confirm.disabled {
  background: #9CA3AF;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.whatsapp-warning-note {
  font-size: 11px;
  color: #6B7280;
  text-align: center;
  line-height: 1.4;
  margin-top: 6px;
  background: #F3F4F6;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   TOAST / NOTIFICACIONES FLOTANTES
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  pointer-events: none;
  width: calc(100% - 32px);
  max-width: calc(var(--max-width) - 32px);
}

.toast {
  background: #1F2937;
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 8px;
  border-left: 4px solid var(--accent-gold);
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* --------------------------------------------------------------------------
   INFORMACIÓN Y DIÁLOGOS
   -------------------------------------------------------------------------- */
.info-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-color);
  margin-bottom: 12px;
}

.info-card-title {
  font-size: 15px;
  font-weight: 900;
  color: var(--primary-red);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 6px;
}

/* --------------------------------------------------------------------------
   ANIMACIÓN SPLASH SCREEN DE APERTURA CON LOGO
   -------------------------------------------------------------------------- */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #111216 radial-gradient(circle at center, #23252E 0%, #0E0F12 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.splash-screen.fade-out {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: splashPopIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.splash-logo-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--accent-gold) 100%);
  box-shadow: 0 10px 30px rgba(200, 16, 46, 0.5), 0 0 40px rgba(253, 185, 19, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  animation: splashPulse 2s infinite alternate ease-in-out;
}

.splash-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.splash-title {
  font-size: 32px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 2px;
  margin: 0;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.splash-subtitle {
  font-size: 14px;
  color: var(--accent-gold);
  letter-spacing: 1px;
  margin-top: 4px;
  text-transform: uppercase;
}

.splash-loader-bar {
  width: 120px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  margin-top: 24px;
  overflow: hidden;
  position: relative;
}

.splash-loader-progress {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-red), var(--accent-gold));
  border-radius: var(--radius-full);
  animation: splashLoad 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes splashPopIn {
  0% {
    opacity: 0;
    transform: scale(0.6) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes splashPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(200, 16, 46, 0.5);
  }
  100% {
    transform: scale(1.04);
    box-shadow: 0 14px 40px rgba(200, 16, 46, 0.8), 0 0 50px rgba(253, 185, 19, 0.4);
  }
}

@keyframes splashLoad {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}

/* --------------------------------------------------------------------------
   ESTILOS DE QR REAL Y SEDES EN LA BARRERA DESKTOP
   -------------------------------------------------------------------------- */
.real-qr-card {
  background: #FFFFFF;
  padding: 14px 14px 10px 14px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 3px solid var(--accent-gold);
}

.scannable-qr-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  image-rendering: pixelated;
}

.qr-scan-label {
  font-size: 10px;
  font-weight: 800;
  color: #1A1A1A;
  margin-top: 8px;
  letter-spacing: 0.5px;
}

.barrier-locations-box {
  width: 100%;
  background: #18191E;
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid #374151;
  text-align: left;
}

.locations-header {
  font-size: 12px;
  font-weight: 900;
  color: var(--accent-gold);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.locations-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.loc-item {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  border-left: 2px solid var(--primary-red);
  padding-left: 8px;
}

.loc-item strong {
  color: #FFFFFF;
  font-size: 11px;
}

.loc-item span {
  color: #9CA3AF;
  font-size: 11px;
}

.instagram-link-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  color: #F43F5E;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  background: rgba(244, 63, 94, 0.1);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(244, 63, 94, 0.3);
  transition: var(--transition);
}

.instagram-link-badge:hover {
  background: rgba(244, 63, 94, 0.2);
}

/* --------------------------------------------------------------------------
   BARRERA EXCLUSIVA PARA DISPOSITIVOS MÓVILES (DESKTOP BARRIER)
   -------------------------------------------------------------------------- */
#desktop-barrier {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #121316 radial-gradient(circle at center, #23252B 0%, #0F1012 100%);
  color: #FFFFFF;
  padding: 24px;
  overflow-y: auto;
  align-items: center;
  justify-content: center;
}

.desktop-barrier-card {
  max-width: 520px;
  background: #1C1E24;
  border: 2px solid var(--primary-red);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.barrier-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 4px;
}

.barrier-logo {
  height: 55px;
  object-fit: contain;
}

.barrier-mascot {
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.barrier-badge {
  background: var(--primary-red);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.barrier-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--accent-gold);
  line-height: 1.2;
  margin-top: 4px;
}

.barrier-text {
  font-size: 14px;
  color: #D1D5DB;
  line-height: 1.5;
  max-width: 440px;
}

.barrier-qr-wrapper {
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.barrier-url-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.url-label {
  font-size: 12px;
  color: #9CA3AF;
  font-weight: 600;
}

.url-pill {
  background: #2A2D36;
  border: 1px solid #4B5563;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: monospace;
  font-size: 13px;
  color: #FBBF24;
}

.url-pill button {
  background: var(--primary-red);
  color: #FFFFFF;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.url-pill button:active {
  transform: scale(0.95);
}

.url-subtext {
  font-size: 11px;
  color: #6B7280;
}

.barrier-dev-options {
  width: 100%;
  background: #252830;
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px dashed #4B5563;
  margin-top: 6px;
}

.dev-title {
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.dev-desc {
  font-size: 12px;
  color: #9CA3AF;
  line-height: 1.4;
  margin-bottom: 10px;
}

.btn-simulate-mobile {
  background: #2563EB;
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: var(--transition);
  width: 100%;
}

.btn-simulate-mobile:hover {
  background: #1D4ED8;
}

.btn-simulate-mobile:active {
  transform: scale(0.98);
}

/* Botón flotante para salir del simulador móvil */
.btn-exit-sim {
  position: fixed;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.85);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  z-index: 100000;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-exit-sim:hover {
  background: #DC2626;
}

/* --------------------------------------------------------------------------
   VISUALIZACIÓN MOBILE-FIRST UNIVERSAL
   El menú se muestra SIEMPRE visible y centrado en pantallas de escritorio,
   sin pantallas de bloqueo ni elementos ocultos.
   -------------------------------------------------------------------------- */
#desktop-barrier {
  display: none !important;
}

@media (min-width: 501px) {
  body {
    background-color: #0F1014;
    padding: 18px 0;
    align-items: center;
  }

  #app-container {
    display: flex !important;
    max-width: 440px;
    min-height: 92vh;
    border-radius: 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 0 6px #24262E;
    overflow-x: hidden;
    position: relative;
  }

  .bottom-nav {
    display: flex !important;
    max-width: 400px;
    border-radius: var(--radius-full);
    left: 50%;
    transform: translateX(-50%);
    bottom: 24px;
    z-index: 100 !important;
  }

  .floating-cart-bar {
    max-width: 390px;
    bottom: 104px;
  }
}

/* Ajustes Responsive para Pantallas Muy Pequeñas (<340px) */
@media (max-width: 340px) {
  .product-image-container {
    width: 85px;
    height: 85px;
  }
  .product-name {
    font-size: 14px;
  }
  .price-single {
    font-size: 15px;
  }
}
