/* ==========================================================================
   FOURTEEN BURGER - WEBAPP MENÚ DIGITAL INTERACTIVO
   Design System: Minimalist Premium Native App (Light Theme, Brand Deep Red)
   ========================================================================== */

:root {
  /* Brand Colors */
  --brand-red: #8c0f14;
  --brand-red-dark: #660a0e;
  --brand-red-light: #ab1920;
  --brand-red-soft: rgba(140, 15, 20, 0.08);
  --brand-red-glow: rgba(140, 15, 20, 0.28);
  
  /* Brand Accents */
  --brand-cream: #faf7f0;
  --brand-cream-card: #ffffff;
  --brand-cream-border: #eee7dc;
  --brand-gold: #e5a823;
  --brand-gold-soft: rgba(229, 168, 35, 0.15);

  /* Neutrals (Light Clean Theme) */
  --bg-app: #fbf8f2;
  --bg-card: #ffffff;
  --text-primary: #191817;
  --text-secondary: #5e5b56;
  --text-muted: #8c8880;
  --border-light: #ede7dd;
  --border-focus: #8c0f14;

  /* Typography */
  --font-heading: 'Montserrat', -apple-system, sans-serif;
  --font-script: 'Pacifico', cursive;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;

  /* Geometry & Shadows */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --radius-bottom-bar: 28px;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 16px rgba(40, 20, 10, 0.06);
  --shadow-floating: 0 8px 30px rgba(140, 15, 20, 0.16);
  --shadow-modal: 0 -8px 35px rgba(0, 0, 0, 0.18);
  --shadow-btn: 0 4px 14px rgba(140, 15, 20, 0.3);

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-bounce: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & GLOBAL BASICS
   ========================================================================== */
*, *::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-app);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

input, textarea {
  font-family: inherit;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   DESKTOP VIEW (SOLO QR CODE REDIRECCIÓN, NO SIMULADOR)
   ========================================================================== */
.desktop-screen {
  display: none;
  min-height: 100vh;
  width: 100%;
  background: radial-gradient(circle at 50% 10%, #fffbf2 0%, #f5eee1 100%);
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

@media (min-width: 769px) {
  .desktop-screen {
    display: flex;
  }
  .mobile-app-container {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .desktop-screen {
    display: none !important;
  }
  .mobile-app-container {
    display: flex !important;
  }
}

.desktop-card {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 32px;
  padding: 48px 40px;
  box-shadow: 0 20px 60px rgba(100, 20, 20, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--brand-cream-border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.desktop-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-red-soft);
  color: var(--brand-red);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(140, 15, 20, 0.2);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.desktop-brand {
  margin-bottom: 28px;
}

.desktop-logo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(140, 15, 20, 0.15);
  border: 3px solid #ffffff;
}

.desktop-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--brand-red);
  margin-bottom: 6px;
}

.desktop-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.desktop-qr-wrapper {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 0 auto 28px;
  padding: 16px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.desktop-qr {
  display: flex;
  align-items: center;
  justify-content: center;
}

.desktop-qr canvas, .desktop-qr img {
  width: 218px !important;
  height: 218px !important;
  border-radius: 12px;
}

.qr-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--brand-red);
  border-style: solid;
}

.qr-corner.top-left { top: 8px; left: 8px; border-width: 3px 0 0 3px; border-top-left-radius: 8px; }
.qr-corner.top-right { top: 8px; right: 8px; border-width: 3px 3px 0 0; border-top-right-radius: 8px; }
.qr-corner.bottom-left { bottom: 8px; left: 8px; border-width: 0 0 3px 3px; border-bottom-left-radius: 8px; }
.qr-corner.bottom-right { bottom: 8px; right: 8px; border-width: 0 3px 3px 0; border-bottom-right-radius: 8px; }

.desktop-instructions h2 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.desktop-instructions p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto 24px;
}

.desktop-features {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.feat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-app);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.desktop-footer-info {
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
}

.info-row {
  display: flex;
  justify-content: space-around;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.desktop-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-secondary-desktop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-app);
  border: 1px solid var(--border-light);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.btn-secondary-desktop:hover {
  background: #f0ece3;
}

.btn-whatsapp-desktop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: #25d366;
  color: #ffffff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
  transition: var(--transition-fast);
}

.btn-whatsapp-desktop:hover {
  background: #20ba59;
}

/* ==========================================================================
   MOBILE WEBAPP CONTAINER
   ========================================================================== */
.mobile-app-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  position: relative;
  background-color: var(--bg-app);
  overflow: hidden;
}

/* ==========================================================================
   HEADER & MODALITY SWITCHER
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 242, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 16px 10px;
}

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

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

.brand-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(140, 15, 20, 0.15);
  border: 2px solid #ffffff;
}

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

.brand-name {
  font-family: var(--font-script);
  font-size: 24px;
  line-height: 1.1;
  color: var(--brand-red);
  letter-spacing: -0.5px;
}

.star-accent {
  font-family: var(--font-heading);
  font-size: 13px;
  margin-left: 2px;
  color: var(--brand-gold);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 1px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #27ae60;
}

.status-divider {
  color: var(--text-muted);
  font-size: 10px;
}

.brand-type {
  color: var(--brand-red);
  font-weight: 700;
}

.header-cart-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-red);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

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

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

.cart-badge-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--brand-red);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(140, 15, 20, 0.4);
}

/* Modality Quick Switcher (En la Mesa / A Domicilio) */
.modality-switcher-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #ebe5da;
  padding: 3px;
  border-radius: var(--radius-full);
}

.mode-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.mode-toggle-btn.active {
  background: #ffffff;
  color: var(--brand-red);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mode-icon-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-red-soft);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.mode-toggle-btn.active .mode-icon-circle {
  background: var(--brand-red);
  color: #ffffff;
}

/* ==========================================================================
   SCROLL BODY
   ========================================================================== */
.app-scroll-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 20px;
}

/* ==========================================================================
   BANNER INICIAL (HERO CAROUSEL)
   ========================================================================== */
.hero-banner-section {
  padding: 14px 16px 8px;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(60, 20, 10, 0.08);
}

.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  width: 300%;
}

.carousel-slide {
  width: 33.3333%;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  padding: 20px 18px 24px;
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-light);
  min-height: 185px;
}

.slide-fourteen {
  background: linear-gradient(135deg, #ffffff 0%, #fdf6ec 100%);
}

.slide-oklahoma {
  background: linear-gradient(135deg, #ffffff 0%, #fcf5ee 100%);
}

.slide-sides {
  background: linear-gradient(135deg, #ffffff 0%, #fff7ea 100%);
}

.slide-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 900;
  color: var(--brand-red);
  background: var(--brand-red-soft);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.slide-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: 0.3px;
  margin-bottom: 5px;
}

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

.slide-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.btn-slide-order {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--brand-red);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 3px 8px rgba(140, 15, 20, 0.25);
  transition: transform var(--transition-fast);
}

.btn-slide-order:active {
  transform: scale(0.94);
}

.slide-image-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.slide-img {
  width: 100%;
  max-height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.1));
}

.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.carousel-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(140, 15, 20, 0.25);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.carousel-dots .dot.active {
  width: 18px;
  border-radius: var(--radius-full);
  background: var(--brand-red);
}

/* ==========================================================================
   BARRA DE CATEGORÍAS CON ICONOS (POSICIÓN INICIAL ESTÁTICA)
   "las categorias deben ser a traves de iconos"
   "a medida que voy seleccionando un item del menu debe encerrarse en un circulo del color de la marca"
   ========================================================================== */
.categories-nav-sticky {
  position: relative;
  background: transparent;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-light);
}

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

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

.category-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

/* Circulo del color de la marca al seleccionar categoria */
.cat-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.category-chip .emoji-icon {
  font-size: 22px;
  line-height: 1;
}

.cat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

/* Estado activo: encerrado en círculo del color de la marca */
.category-chip.active .cat-icon-circle {
  background: var(--brand-red);
  color: #ffffff;
  border-color: var(--brand-red);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(140, 15, 20, 0.35);
}

.category-chip.active .cat-label {
  color: var(--brand-red);
  font-weight: 800;
}

/* ==========================================================================
   BANNERS ENTRE CATEGORÍAS
   "usa un banner entre cada categoria que haga referencia a esa categoria"
   ========================================================================== */
.category-header-banner {
  position: relative;
  margin: 22px 16px 14px;
  border-radius: 20px;
  padding: 24px 20px;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(140, 15, 20, 0.15);
}

.banner-burgers {
  background: linear-gradient(135deg, #7a0a0e 0%, #9e141a 60%, #b81b22 100%);
}

.banner-sides {
  background: linear-gradient(135deg, #61080b 0%, #8c0f14 60%, #a6171d 100%);
}

.cat-banner-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.5;
}

.cat-banner-content {
  position: relative;
  z-index: 2;
}

.cat-banner-stars {
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--brand-gold);
  margin-bottom: 4px;
}

.cat-banner-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cat-banner-subtitle {
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.5px;
  font-weight: 600;
  max-width: 340px;
  margin: 0 auto 12px;
  opacity: 0.95;
}

.cat-badge-pill {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  backdrop-filter: blur(4px);
}

/* ==========================================================================
   ITEMS GRID & CARDS (FONDO BLANCO LIMPIO)
   "las imagenes de cada plato deben quedar en fondo blanco limpio"
   "no inventes platos, usa la tipografia del menu"
   ========================================================================== */
.items-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 16px;
}

.item-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
}

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

.item-card-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
  border-bottom: 1px solid #f6f3ee;
}

.item-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.item-card:hover .item-card-img {
  transform: scale(1.03);
}

/* Favorite heart icon */
.btn-fav-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a09a90;
  box-shadow: var(--shadow-sm);
  z-index: 5;
  transition: all var(--transition-bounce);
}

.btn-fav-toggle.is-fav {
  color: var(--brand-red);
  background: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 3px 10px rgba(140, 15, 20, 0.25);
}

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

.item-badge-corner {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brand-red);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 8px rgba(140, 15, 20, 0.3);
  z-index: 5;
}

.item-card-content {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.item-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}

.item-card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--brand-red);
  text-transform: uppercase;
}

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

/* Variant Selector: Simple vs Doble */
/* "a medida que voy seleccionando un item del menu debe encerrarse en un circulo del color de la marca" */
.item-variants-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  background: var(--bg-app);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.variant-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.variant-circle-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
  transition: all var(--transition-bounce);
  position: relative;
}

.variant-btn.selected {
  background: #ffffff;
  color: var(--brand-red);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.variant-btn.selected .variant-circle-check {
  border-color: var(--brand-red);
  background: var(--brand-red);
  box-shadow: 0 0 0 2px rgba(140, 15, 20, 0.2);
}

.variant-btn.selected .variant-circle-check::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
}

.item-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--border-light);
}

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

.price-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.price-value {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 900;
  color: var(--text-primary);
}

.btn-add-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-red);
  color: #ffffff;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: var(--shadow-btn);
  transition: all var(--transition-bounce);
}

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

/* ==========================================================================
   EMPTY STATE (FAVORITOS)
   ========================================================================== */
.empty-state-view {
  padding: 40px 24px;
  text-align: center;
  background: #ffffff;
  margin: 20px 16px;
  border-radius: 24px;
  border: 1px solid var(--border-light);
}

.empty-heart-circle {
  width: 72px;
  height: 72px;
  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-state-view h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state-view p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 300px;
  margin: 0 auto 20px;
}

.btn-show-all-menu {
  padding: 10px 20px;
  background: var(--brand-red);
  color: #ffffff;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 700;
}

/* ==========================================================================
   RESTAURANT INFO CARD (EN EL MENÚ)
   ========================================================================== */
.restaurant-info-card {
  margin: 30px 16px 20px;
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid var(--border-light);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.info-brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--brand-red);
}

.info-card-header h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 900;
  color: var(--brand-red);
}

.info-card-header p {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.info-icon {
  font-size: 18px;
}

.info-texts strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.info-texts p {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.bottom-nav-spacer {
  height: 110px;
}

/* ==========================================================================
   BARRA DE MENÚ INFERIOR ESTILO APP (BORDES REDONDEADOS & CÍRCULO ACTIVO)
   "añade un menu estilo app que vaya de acuerdo a los colores de la marca en la parte inferior"
   "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 {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 0 16px calc(14px + env(safe-area-inset-bottom, 12px));
  pointer-events: none;
}

.bottom-nav-bar {
  pointer-events: auto;
  max-width: 440px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-bottom-bar);
  padding: 8px 12px;
  box-shadow: 0 10px 35px rgba(40, 20, 10, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  padding: 4px 0;
  transition: all var(--transition-bounce);
  position: relative;
}

/* Icon container standard */
.nav-icon-container {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7d7870;
  background: transparent;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.nav-text {
  font-size: 11px;
  font-weight: 700;
  color: #7d7870;
  transition: color var(--transition-fast);
}

/* Ítem activo: ENCERRADO EN UN CÍRCULO DEL COLOR DE LA MARCA */
.nav-item.active .nav-icon-container {
  background: var(--brand-red);
  color: #ffffff;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 6px 18px rgba(140, 15, 20, 0.45);
}

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

/* Cart badge on bottom bar */
.nav-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--brand-gold);
  color: #191817;
  font-size: 10px;
  font-weight: 900;
  min-width: 17px;
  height: 17px;
  padding: 0 3px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.nav-item.active .nav-badge {
  border-color: var(--brand-red);
}

/* ==========================================================================
   FLOATING ORDER SUMMARY PILL
   ========================================================================== */
.floating-order-bar {
  position: fixed;
  bottom: calc(78px + env(safe-area-inset-bottom, 12px));
  left: 0;
  right: 0;
  z-index: 55;
  padding: 0 16px;
  pointer-events: none;
}

.floating-pill-content {
  pointer-events: auto;
  max-width: 440px;
  margin: 0 auto;
  background: var(--brand-red);
  color: #ffffff;
  border-radius: var(--radius-full);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-floating);
  cursor: pointer;
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

.floating-count {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--brand-red);
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.floating-pill-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.floating-total {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 900;
}

/* ==========================================================================
   MODALS (SHEET DIALOGS)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 10, 10, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-sheet-dialog {
  width: 100%;
  max-width: 500px;
  max-height: 88vh;
  max-height: 88dvh;
  background: #ffffff;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-modal);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-sheet-dialog {
  transform: translateY(0);
}

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

.modal-close-icon {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f4ede3;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  z-index: 10;
}

.modal-close-icon.relative {
  position: static;
}

/* Dish Detail Modal */
.modal-dish-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-bottom: 1px solid var(--border-light);
}

.modal-dish-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-fav-btn {
  position: absolute;
  top: 14px;
  left: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a09a90;
  box-shadow: var(--shadow-sm);
}

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

.modal-dish-body {
  padding: 20px;
}

.modal-dish-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.modal-dish-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  color: var(--brand-red);
  text-transform: uppercase;
}

.modal-dish-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--brand-red);
  background: var(--brand-red-soft);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

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

.modal-section-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.variant-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.modal-variant-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  background: var(--bg-app);
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

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

.modal-variant-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-bounce);
}

.modal-variant-card.selected .modal-variant-circle {
  border-color: var(--brand-red);
  background: var(--brand-red);
}

.modal-variant-card.selected .modal-variant-circle::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
}

.modal-variant-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-variant-price {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 900;
  color: var(--brand-red);
}

.modal-notes-section {
  margin-bottom: 24px;
}

.modal-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-app);
  font-size: 13.5px;
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
}

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

.modal-footer-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 10px;
}

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

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

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

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

.btn-confirm-add {
  flex: 1;
  background: var(--brand-red);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-btn);
  transition: transform var(--transition-bounce);
}

.btn-confirm-add:active {
  transform: scale(0.96);
}

/* ==========================================================================
   CART & CHECKOUT MODAL
   ========================================================================== */
.cart-dialog {
  max-height: 90vh;
  max-height: 90dvh;
}

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

.cart-title-meta h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  color: var(--brand-red);
}

.cart-items-count-text {
  font-size: 12px;
  color: var(--text-secondary);
}

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

.btn-clear-cart {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-red);
}

/* Modality selector in cart */
.cart-mode-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 10px 20px;
  background: var(--bg-app);
  gap: 10px;
  border-bottom: 1px solid var(--border-light);
}

.cart-mode-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-light);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.cart-mode-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-red-soft);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-mode-tab.active {
  background: var(--brand-red);
  color: #ffffff;
  border-color: var(--brand-red);
  box-shadow: 0 4px 12px rgba(140, 15, 20, 0.25);
}

.cart-mode-tab.active .cart-mode-circle {
  background: #ffffff;
  color: var(--brand-red);
}

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

/* Cart Items List */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--bg-app);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.cart-item-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  object-fit: contain;
  padding: 2px;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
}

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

.cart-item-variant {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--brand-red);
}

.cart-item-notes {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}

.cart-item-price {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 2px;
}

.cart-item-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  padding: 2px;
}

.cart-qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-app);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-qty-num {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  min-width: 16px;
  text-align: center;
}

/* Order Form Container */
.order-form-container {
  border-top: 1px solid var(--border-light);
  padding-top: 18px;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.form-fields-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

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

.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-group label .req {
  color: var(--brand-red);
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-app);
  font-size: 13.5px;
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  border-color: var(--border-focus);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Resumen de Pago */
.order-summary-box {
  background: var(--bg-app);
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--border-light);
}

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

.delivery-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: #27ae60;
  background: rgba(39, 174, 96, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

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

.summary-total-amount {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  color: var(--brand-red);
}

.cart-footer-bar {
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 8px));
  border-top: 1px solid var(--border-light);
  background: #ffffff;
}

.btn-send-whatsapp {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: #ffffff;
  padding: 15px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: all var(--transition-bounce);
}

.btn-send-whatsapp:active {
  transform: scale(0.96);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-bubble {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-60px);
  background: rgba(25, 24, 23, 0.94);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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