/* ==========================================================================
   GORDO'S BURGER - APP ESTILO WEBAPP MINIMALISTA PREMIUM
   Colores de marca: Rojo Gordo's (#E52B38), Crema Vintage (#FFF3DF), Blanco Puro (#FFFFFF)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Shrikhand&display=swap');

:root {
  --brand-red: #E52B38;
  --brand-red-dark: #C91D2A;
  --brand-red-soft: #FFF0F2;
  --brand-cream: #FFF5E4;
  --brand-cream-border: #F3E5D0;
  --brand-yellow: #FFB703;
  
  --bg-app: #FAF7F2;
  --bg-card: #FFFFFF;
  --bg-sheet: #FFFFFF;
  --bg-input: #F6F3EE;
  
  --text-primary: #191616;
  --text-secondary: #6B6565;
  --text-muted: #9C9494;
  --text-light: #FFFFFF;
  
  --border-light: #EFE9E0;
  --border-subtle: #F5EFEB;
  
  --font-retro: 'Shrikhand', cursive;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 4px 16px rgba(25, 22, 22, 0.05), 0 1px 3px rgba(25, 22, 22, 0.02);
  --shadow-elevated: 0 12px 28px rgba(229, 43, 56, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-nav: 0 10px 30px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  
  --safe-bottom: env(safe-area-inset-bottom, 16px);
  --safe-top: env(safe-area-inset-top, 0px);
}

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

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* ==========================================================================
   DESKTOP QR VIEW (Cuando NO se abre desde un smartphone)
   No simulador, solo landing limpia con QR para escanear
   ========================================================================== */

#desktop-screen {
  display: none;
  min-height: 100vh;
  width: 100%;
  background: radial-gradient(circle at 50% 20%, #FFF3E8 0%, #F5ECE0 100%);
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.desktop-card {
  max-width: 520px;
  width: 100%;
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(229, 43, 56, 0.08), 0 8px 24px rgba(0, 0, 0, 0.04);
  padding: 40px 36px;
  text-align: center;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.desktop-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--brand-red) 0%, #FF6B6B 100%);
}

.desktop-logo-wrap {
  width: 90px;
  height: 90px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(229, 43, 56, 0.2);
  border: 4px solid #FFFFFF;
}

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

.desktop-brand-title {
  font-family: var(--font-retro);
  font-size: 32px;
  color: var(--brand-red);
  letter-spacing: 0.5px;
  line-height: 1.1;
  margin-bottom: 6px;
}

.desktop-tagline {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 28px;
}

.desktop-qr-container {
  background: var(--bg-app);
  padding: 20px;
  border-radius: var(--radius-lg);
  display: inline-block;
  margin-bottom: 24px;
  border: 2px dashed var(--brand-cream-border);
}

.desktop-qr-canvas {
  width: 220px !important;
  height: 220px !important;
  display: block;
  border-radius: var(--radius-sm);
}

.desktop-notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-red-soft);
  color: var(--brand-red);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.desktop-instruction {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
}

.desktop-info-box {
  background: #FAFAFA;
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: left;
  line-height: 1.6;
}

.desktop-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.desktop-info-row:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   SMARTPHONE WEBAPP CONTAINER
   ========================================================================== */

#mobile-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-app);
  position: relative;
  padding-bottom: calc(90px + var(--safe-bottom));
}

/* Header de la App */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 249, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.header-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(229, 43, 56, 0.15);
  border: 2px solid var(--brand-red);
}

.header-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-title-wrap h1 {
  font-family: var(--font-retro);
  font-size: 20px;
  color: var(--brand-red);
  line-height: 1.1;
  letter-spacing: 0.3px;
}

.header-title-wrap p {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

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

/* Modalidad Switcher (En la Mesa / Domicilio) */
.order-mode-toggle {
  background: var(--bg-input);
  border-radius: var(--radius-pill);
  padding: 3px;
  display: flex;
  gap: 2px;
  border: 1px solid var(--border-light);
}

.mode-pill {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 5px;
}

.mode-pill.active {
  background: var(--brand-red);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(229, 43, 56, 0.3);
}

/* ==========================================================================
   HERO BANNER AL INICIO DEL MENÚ
   ========================================================================== */

.hero-banner-section {
  padding: 16px 18px 8px;
}

.hero-banner-card {
  background: linear-gradient(135deg, #FF3B47 0%, #D81827 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(229, 43, 56, 0.25);
}

.hero-banner-card::after {
  content: '';
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.hero-banner-title {
  font-family: var(--font-retro);
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.hero-banner-desc {
  font-size: 12.5px;
  line-height: 1.45;
  opacity: 0.95;
  margin-bottom: 14px;
  max-width: 85%;
}

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

.hero-feature-item {
  background: #FFFFFF;
  color: var(--brand-red);
  font-size: 10.5px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   CATEGORÍAS A TRAVÉS DE ICONOS
   ========================================================================== */

.categories-section {
  padding: 12px 18px 4px;
}

.categories-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.category-tab-btn {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  min-width: 78px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  color: var(--text-secondary);
}

.category-tab-btn .cat-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  margin-bottom: 6px;
  transition: all 0.25s ease;
  color: var(--text-primary);
}

.category-tab-btn .cat-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* Categoría activa */
.category-tab-btn.active {
  border-color: var(--brand-red);
  background: #FFFFFF;
  box-shadow: 0 6px 16px rgba(229, 43, 56, 0.12);
  color: var(--brand-red);
}

.category-tab-btn.active .cat-icon {
  background: var(--brand-red);
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(229, 43, 56, 0.35);
  transform: scale(1.05);
}

/* ==========================================================================
   BANNERS ENTRE CADA CATEGORÍA
   ========================================================================== */

.category-divider-banner {
  margin: 22px 18px 14px;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: linear-gradient(135deg, #FFF6EC 0%, #FFEFE0 100%);
  border: 1px solid var(--brand-cream-border);
  position: relative;
}

.banner-tag {
  font-size: 10px;
  font-weight: 800;
  color: var(--brand-red);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.banner-title {
  font-family: var(--font-retro);
  font-size: 17px;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 4px;
}

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

/* Banner específico para Papitas */
.category-divider-banner.papas-banner {
  background: linear-gradient(135deg, #FFF9EB 0%, #FFF0D4 100%);
  border-color: #F7DFB0;
}

/* Banner específico para Bebidas */
.category-divider-banner.bebidas-banner {
  background: linear-gradient(135deg, #EFF6FF 0%, #E0EEFF 100%);
  border-color: #BFDBFE;
}
.category-divider-banner.bebidas-banner .banner-tag {
  color: #2563EB;
}

/* ==========================================================================
   LISTA DE PLATOS Y TARJETAS MINIMALISTAS PREMIUM
   ========================================================================== */

.menu-list-container {
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

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

/* Contenedor de Imagen de Hamburguesa con Fondo Blanco Limpio */
.card-image-wrap {
  width: 100%;
  height: 200px;
  background: #FFFFFF;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.card-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.08));
  transition: transform 0.3s ease;
}

.product-card:hover .card-image-wrap img {
  transform: scale(1.03);
}

/* Botón de Favoritos (Corazón) */
.favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.favorite-btn.active {
  color: var(--brand-red);
  background: #FFFFFF;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(229, 43, 56, 0.25);
}

.favorite-btn svg {
  transition: transform 0.2s ease;
}

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

/* Badge de Plato */
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  background: var(--brand-cream);
  color: var(--brand-red-dark);
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--brand-cream-border);
  letter-spacing: 0.3px;
}

/* Detalles del Plato */
.card-body {
  padding: 16px;
}

.card-title {
  font-family: var(--font-retro);
  font-size: 19px;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 6px;
}

.card-description {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.48;
  margin-bottom: 14px;
}

/* Precios Sola / Combo */
.card-pricing-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed var(--border-light);
  margin-top: 6px;
}

.price-item {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-value {
  font-family: var(--font-retro);
  font-size: 20px;
  color: var(--brand-red);
  letter-spacing: 0.5px;
}

.price-value.combo-value {
  color: #18181B;
}

.card-add-btn {
  background: var(--brand-red);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(229, 43, 56, 0.25);
  transition: all 0.2s ease;
}

.card-add-btn:active {
  transform: scale(0.95);
  background: var(--brand-red-dark);
}

/* Tarjeta Minimalista para Items sin Imagen (Papas / Bebidas) */
.product-card.no-image {
  padding: 16px;
}

.product-card.no-image .card-body {
  padding: 0;
}

.no-image-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.no-image-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--brand-cream);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   BARRA DE MENÚ INFERIOR ESTILO APP (REDONDEADA & CIRCULO DE MARCA EN ACTIVO)
   "la barra de menu inferior debe tener bordes redondeados, a medida que voy
   seleccionando un item del menu debe encerrarse en un circulo del color de la marca"
   ========================================================================== */

.app-bottom-nav-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 16px calc(10px + var(--safe-bottom));
  pointer-events: none;
}

.app-bottom-nav {
  pointer-events: auto;
  max-width: 440px;
  width: 100%;
  background: #FFFFFF;
  border-radius: var(--radius-xl); /* Bordes redondeados */
  box-shadow: var(--shadow-nav);
  border: 1px solid rgba(229, 43, 56, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 12px;
  position: relative;
}

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

/* Icono del Tab */
.nav-tab-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  color: var(--text-secondary);
}

.nav-tab-label {
  font-size: 10px;
  font-weight: 700;
  margin-top: 2px;
  letter-spacing: 0.2px;
  transition: color 0.2s ease;
}

/* ESTADO SELECCIONADO / ACTIVO:
   "debe encerrarse en un circulo del color de la marca" */
.nav-tab-item.active .nav-tab-icon-wrap {
  background-color: var(--brand-red); /* Círculo del color de la marca */
  color: #FFFFFF;                     /* Icono blanco adentro */
  box-shadow: 0 6px 16px rgba(229, 43, 56, 0.4);
  transform: translateY(-8px) scale(1.1);
}

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

/* Badge de conteo de carrito en la barra */
.nav-badge-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--brand-red);
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.nav-tab-item.active .nav-badge-count {
  background: #18181B;
}

/* ==========================================================================
   MODAL DE DETALLES Y CONFIGURACIÓN DE PLATO (Sola / Combo / Enchulada)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease forwards;
}

.modal-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  background: var(--bg-sheet);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.modal-drag-pill {
  width: 40px;
  height: 4px;
  background: #D1D5DB;
  border-radius: var(--radius-pill);
  margin: 0 auto;
}

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

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

.modal-dish-img {
  width: 100%;
  height: 180px;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.modal-dish-img img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.08));
}

.modal-dish-title {
  font-family: var(--font-retro);
  font-size: 22px;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 6px;
}

.modal-dish-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Selector Modalidad: Sola vs Combo */
.option-group-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.option-group-badge {
  font-size: 10px;
  background: var(--brand-red-soft);
  color: var(--brand-red);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.choice-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.choice-card-option {
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: #FFFFFF;
  transition: all 0.2s ease;
}

.choice-card-option.selected {
  border-color: var(--brand-red);
  background: var(--brand-red-soft);
}

.choice-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.radio-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.choice-card-option.selected .radio-circle {
  border-color: var(--brand-red);
  background: var(--brand-red);
}

.choice-card-option.selected .radio-circle::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FFFFFF;
}

.choice-title {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-primary);
}

.choice-subtitle {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.choice-price {
  font-family: var(--font-retro);
  font-size: 16px;
  color: var(--brand-red);
}

/* Upgrade Enchulada */
.upgrade-box {
  background: #FFFDF5;
  border: 1.5px dashed var(--brand-yellow);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.upgrade-box.selected {
  background: #FFF7DC;
  border-style: solid;
}

.checkbox-custom {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #E5C365;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: all 0.2s ease;
}

.upgrade-box.selected .checkbox-custom {
  background: #D97706;
  border-color: #D97706;
}

/* Selector de Bebida para Combo */
.drink-selector-container {
  margin-bottom: 20px;
  display: none;
}

.drink-selector-container.visible {
  display: block;
}

.drink-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.drink-chip {
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.drink-chip.selected {
  background: var(--brand-red);
  color: #FFFFFF;
  border-color: var(--brand-red);
}

/* Notas / Instrucciones */
.notes-input {
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  font-family: var(--font-sans);
  background: var(--bg-input);
  outline: none;
  resize: none;
  margin-bottom: 16px;
}

.notes-input:focus {
  border-color: var(--brand-red);
  background: #FFFFFF;
}

/* Footer del modal con botón de agregar */
.modal-footer {
  padding: 14px 20px calc(14px + var(--safe-bottom));
  border-top: 1px solid var(--border-light);
  background: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 12px;
}

.qty-control {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border-radius: var(--radius-pill);
  padding: 4px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

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

.modal-submit-btn {
  flex: 1;
  background: var(--brand-red);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(229, 43, 56, 0.35);
  transition: all 0.2s ease;
}

.modal-submit-btn:active {
  transform: scale(0.98);
  background: var(--brand-red-dark);
}

/* ==========================================================================
   VISTAS DEL CARRITO / MI PEDIDO & CHECKOUT A WHATSAPP
   ========================================================================== */

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

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

.view-header-title {
  font-family: var(--font-retro);
  font-size: 24px;
  color: var(--brand-red);
  margin-bottom: 4px;
}

.view-header-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

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

.cart-item-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

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

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

.cart-item-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.cart-item-price {
  font-family: var(--font-retro);
  font-size: 15px;
  color: var(--brand-red);
  margin-top: 4px;
}

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

.cart-item-remove {
  background: var(--brand-red-soft);
  color: var(--brand-red);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modalidad de Pedido Card en Checkout */
.checkout-mode-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.checkout-mode-tabs {
  display: flex;
  gap: 8px;
  background: var(--bg-input);
  padding: 4px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.checkout-mode-tab {
  flex: 1;
  padding: 9px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.checkout-mode-tab.active {
  background: var(--brand-red);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(229, 43, 56, 0.3);
}

.checkout-form-group {
  margin-bottom: 12px;
}

.checkout-form-group label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.checkout-input {
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13.5px;
  font-family: var(--font-sans);
  background: var(--bg-input);
  outline: none;
}

.checkout-input:focus {
  border-color: var(--brand-red);
  background: #FFFFFF;
}

/* Desglose de Totales */
.cart-summary-box {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

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

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

.total-value-red {
  font-family: var(--font-retro);
  font-size: 22px;
  color: var(--brand-red);
}

/* Botón Grande Confirmar a WhatsApp */
.confirm-whatsapp-btn {
  width: 100%;
  background: #25D366;
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-pill);
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
}

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

/* Estado de Carrito Vacío */
.empty-cart-state {
  text-align: center;
  padding: 40px 20px;
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 1px dashed var(--border-light);
}

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

.empty-title {
  font-family: var(--font-retro);
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

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

.empty-btn {
  background: var(--brand-red);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

/* ==========================================================================
   VISTA DE FAVORITOS
   ========================================================================== */

.favorites-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ==========================================================================
   VISTA DE UBICACIÓN & NEGOCIO
   ========================================================================== */

.location-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}

.location-map-mock {
  height: 140px;
  background: linear-gradient(135deg, #FFE5D9 0%, #FFCAD4 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-pin-pulse {
  width: 48px;
  height: 48px;
  background: var(--brand-red);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 10px rgba(229, 43, 56, 0.25);
  animation: pulse 2s infinite;
}

.location-info-body {
  padding: 20px;
}

.loc-title {
  font-family: var(--font-retro);
  font-size: 22px;
  color: var(--brand-red);
  margin-bottom: 14px;
}

.loc-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.loc-row-icon {
  color: var(--brand-red);
  flex-shrink: 0;
  margin-top: 2px;
}

.loc-row strong {
  color: var(--text-primary);
  display: block;
  font-size: 13px;
  margin-bottom: 1px;
}

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

.loc-action-btn {
  padding: 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: var(--bg-input);
  font-weight: 700;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.loc-action-btn.primary {
  background: var(--brand-red);
  color: #FFFFFF;
  border-color: var(--brand-red);
}

/* Toast Notifications */
.toast-msg {
  position: fixed;
  bottom: calc(85px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #18181B;
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(229, 43, 56, 0.4); }
  70% { box-shadow: 0 0 0 16px rgba(229, 43, 56, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 43, 56, 0); }
}

/* Media Query Responsive Desktop vs Smartphone */
@media (min-width: 768px) {
  #mobile-app {
    display: none !important;
  }
  #desktop-screen {
    display: flex !important;
  }
}
