/* ============================================================== */
/* BONKA · MENÚ DIGITAL BONKETO (ESTILO APP NATIVA)             */
/* Colores de marca: Borgoña #7A1913, Ámbar #F4A716, Verde #155734*/
/* ============================================================== */

:root {
  /* Brand Palette */
  --primary: #7A1913;
  --primary-hover: #63140F;
  --primary-light: #FBF0EF;
  --primary-surface: #FDF6F5;
  
  --accent: #F4A716;
  --accent-hover: #D99009;
  --accent-light: #FEF7E9;
  --accent-glow: rgba(244, 167, 22, 0.25);

  --keto-green: #155734;
  --keto-green-light: #EDF7F2;
  --keto-green-border: rgba(21, 87, 52, 0.2);

  /* Clean Light Theme Surfaces (NO FONDOS OSCUROS) */
  --bg-app: #FAF8F5;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-subtle: #F5F1EB;
  --bg-card: #FFFFFF;

  /* Typography Colors */
  --text-main: #1D1A18;
  --text-body: #4A443F;
  --text-muted: #7A726B;
  --text-light: #9E968F;
  --text-white: #FFFFFF;

  /* Borders & Dividers */
  --border-light: #ECE5DC;
  --border-subtle: #F0EAE1;
  --border-focus: #7A1913;

  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(122, 25, 19, 0.04);
  --shadow-md: 0 6px 18px rgba(122, 25, 19, 0.08);
  --shadow-lg: 0 12px 32px rgba(122, 25, 19, 0.12);
  --shadow-dock: 0 14px 38px rgba(122, 25, 19, 0.18), 0 2px 8px rgba(0, 0, 0, 0.04);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-app);
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-app);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand-name, .hero-title, .dock-label {
  font-family: 'Outfit', sans-serif;
}

button, input, select, textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

/* ============================================================== */
/* VISTA ESCRITORIO: CÓDIGO QR EXCLUSIVO (NO DEMO / NO MOCKUP)    */
/* ============================================================== */

.desktop-container {
  display: none; /* Por defecto oculto en móvil, activo en @media desktop */
  min-height: 100vh;
  width: 100vw;
  background: linear-gradient(135deg, #FDF9F6 0%, #F5ECE5 50%, #ECE0D6 100%);
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.desktop-card {
  max-width: 840px;
  width: 100%;
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(122, 25, 19, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(122, 25, 19, 0.08);
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  animation: fadeInDesktop 0.5s ease-out;
}

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

.desktop-brand {
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 28px;
}

.desktop-logo-wrap {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(122, 25, 19, 0.2);
  border: 3px solid var(--accent);
  flex-shrink: 0;
}

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

.desktop-brand-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.desktop-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.desktop-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
}

.desktop-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

.desktop-qr-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
}

.desktop-qr-box {
  background: var(--bg-app);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 2px dashed rgba(122, 25, 19, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.qr-canvas-wrap {
  width: 210px;
  height: 210px;
  background: #FFFFFF;
  padding: 12px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.desktop-instructions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.desktop-inst-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.desktop-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.desktop-steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step-num {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(122, 25, 19, 0.3);
}

.desktop-steps li div strong {
  display: block;
  font-size: 0.98rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.desktop-steps li div p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.desktop-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.btn-copy-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg-app);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.btn-copy-link:hover {
  background: var(--border-subtle);
  transform: translateY(-1px);
}

.btn-desktop-ws {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: #25D366;
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 700;
  transition: var(--transition-fast);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.btn-desktop-ws:hover {
  background: #1EBE5D;
  transform: translateY(-1px);
}

.desktop-footer-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
}

.df-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--primary);
}

.df-item div strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.df-item div span {
  font-size: 0.84rem;
  color: var(--text-muted);
}


/* ============================================================== */
/* VISTA MÓVIL: ESTRUCTURA PRINCIPAL DE LA APP                    */
/* ============================================================== */

.mobile-app-wrapper {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-app);
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.04);
}

/* TOP APP BAR */
.app-top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-avatar-glow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  flex-shrink: 0;
}

.brand-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 1.5px solid #FFFFFF;
}

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

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

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

.brand-tag-keto {
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--keto-green);
  color: #FFFFFF;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.5px;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Order Mode Chip in Header */
.chip-order-mode {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--primary-light);
  border: 1px solid rgba(122, 25, 19, 0.15);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  transition: var(--transition-fast);
}

.chip-order-mode:active {
  transform: scale(0.96);
  background: var(--primary);
  color: #FFFFFF;
}

.chip-order-mode:active .chevron-down-icon {
  stroke: #FFFFFF;
}

.chip-icon {
  font-size: 0.9rem;
}

.chevron-down-icon {
  stroke: var(--primary);
  transition: transform var(--transition-fast);
}

/* App Search Bar */
.app-search-row {
  width: 100%;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  border: 1px solid transparent;
  transition: var(--transition-fast);
}

.search-input-wrap:focus-within {
  border-color: var(--primary);
  background: #FFFFFF;
  box-shadow: 0 2px 10px rgba(122, 25, 19, 0.08);
}

.search-lens-icon {
  stroke: var(--text-muted);
  margin-right: 8px;
  flex-shrink: 0;
}

.search-input-wrap input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 0.88rem;
  color: var(--text-main);
  outline: none;
}

.search-input-wrap input::placeholder {
  color: var(--text-light);
}

.btn-clear-search {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.08);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
}

/* Stories / Highlights Carousel (Estilo App McDonald's / BK / KFC) */
.stories-scroll-container {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 2px -16px -4px;
  padding: 4px 16px;
}

.stories-scroll-container::-webkit-scrollbar {
  display: none;
}

.stories-track {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
}

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: none;
}

.story-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-bounce);
}

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

.story-circle-inner {
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.story-item.active .story-circle {
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px var(--primary);
}

.story-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-body);
  max-width: 58px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Category Sticky Tabs */
.category-tabs-nav {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 4px -16px 0;
  padding: 4px 16px;
  border-top: 1px solid var(--border-subtle);
}

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

.tabs-scroll-track {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
}

.cat-tab-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-body);
  white-space: nowrap;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

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

.cat-tab-pill.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 3px 10px rgba(122, 25, 19, 0.25);
}

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


/* ============================================================== */
/* CONTENIDO PRINCIPAL: HERO, SECCIONES, PLATOS Y BANNERS         */
/* ============================================================== */

.app-content-scroll {
  padding: 16px 16px 120px; /* Safe padding for bottom dock */
}

/* Hero Banner */
.welcome-hero-banner {
  background: linear-gradient(135deg, #FFF9F3 0%, #FBF0E6 100%);
  border: 1px solid rgba(244, 167, 22, 0.35);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.welcome-hero-banner::after {
  content: "🥑";
  position: absolute;
  right: -10px;
  bottom: -15px;
  font-size: 5rem;
  opacity: 0.12;
  pointer-events: none;
}

.hero-pill {
  display: inline-block;
  padding: 3px 9px;
  background: var(--keto-green);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: 6px;
}

.hero-highlight {
  color: var(--accent-hover);
}

.hero-desc {
  font-size: 0.84rem;
  color: var(--text-body);
  margin-bottom: 14px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.7);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(122, 25, 19, 0.08);
}

.h-stat {
  display: flex;
  flex-direction: column;
}

.h-stat-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
}

.h-stat-lbl {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
}

.h-stat-divider {
  width: 1px;
  height: 24px;
  background: var(--border-light);
}

/* Search Feedback Bar */
.search-feedback-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary-light);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border: 1px solid rgba(122, 25, 19, 0.15);
}

.search-feedback-bar span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

.btn-reset-pill {
  padding: 5px 12px;
  background: var(--primary);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Favorites Banner */
.favorites-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFF1F2;
  border: 1px solid #FECDD3;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.fav-banner-icon {
  font-size: 1.8rem;
}

.fav-banner-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #BE123C;
}

.fav-banner-desc {
  font-size: 0.78rem;
  color: #881337;
}

/* Category Sections */
.category-section {
  margin-bottom: 28px;
  scroll-margin-top: 175px;
}

.category-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-subtle);
}

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

.cat-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 1px solid rgba(122, 25, 19, 0.12);
  flex-shrink: 0;
}

.category-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.category-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.cat-count-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* Dishes List / Cards */
.dishes-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dish-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.dish-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dish-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.dish-badge-pill {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.dish-badge-pill.chef {
  background: var(--accent-light);
  color: var(--accent-hover);
  border: 1px solid rgba(244, 167, 22, 0.3);
}

.dish-badge-pill.fit {
  background: var(--keto-green-light);
  color: var(--keto-green);
  border: 1px solid var(--keto-green-border);
}

.dish-badge-pill.popular {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(122, 25, 19, 0.15);
}

/* Heart Favorite Button */
.btn-favorite-dish {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-bounce);
  flex-shrink: 0;
}

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

.btn-favorite-dish.active {
  background: #FFF1F2;
  color: #E11D48;
}

.btn-favorite-dish.active svg {
  fill: #E11D48;
  stroke: #E11D48;
}

/* Dish Main Content */
.dish-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dish-name-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.dish-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.dish-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.dish-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-hover);
}

.dish-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 4px;
}

/* Tag Pills */
.dish-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.dish-tag {
  font-size: 0.68rem;
  font-weight: 600;
  background: var(--bg-subtle);
  color: var(--text-body);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
}

/* Dish Bottom Action Row */
.dish-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
}

.btn-customize-dish {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
}

.btn-add-dish {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--primary);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(122, 25, 19, 0.2);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

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

/* Quantity Control if in cart */
.dish-qty-control {
  display: flex;
  align-items: center;
  background: var(--primary-light);
  border: 1px solid rgba(122, 25, 19, 0.2);
  border-radius: var(--radius-full);
  padding: 2px;
}

.btn-qty-mini {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.qty-mini-display {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary);
  padding: 0 8px;
  min-width: 22px;
  text-align: center;
}


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

.category-interleaved-banner {
  margin: 28px 0;
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.c-banner-1 {
  background: linear-gradient(135deg, #FFF6E5 0%, #FEECC8 100%);
  border: 1px solid rgba(244, 167, 22, 0.4);
}

.c-banner-2 {
  background: linear-gradient(135deg, #FBF0EF 0%, #F6DDD9 100%);
  border: 1px solid rgba(122, 25, 19, 0.2);
}

.c-banner-3 {
  background: linear-gradient(135deg, #EDF7F2 0%, #DBEFE4 100%);
  border: 1px solid rgba(21, 87, 52, 0.25);
}

.c-banner-4 {
  background: linear-gradient(135deg, #FAF4EB 0%, #F2E4D0 100%);
  border: 1px solid rgba(184, 134, 11, 0.3);
}

.c-banner-5 {
  background: linear-gradient(135deg, #FFF9F3 0%, #FBEBDD 100%);
  border: 1px solid rgba(218, 112, 214, 0.25);
}

.banner-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.c-banner-1 .banner-badge { background: var(--accent); color: #FFFFFF; }
.c-banner-2 .banner-badge { background: var(--primary); color: #FFFFFF; }
.c-banner-3 .banner-badge { background: var(--keto-green); color: #FFFFFF; }
.c-banner-4 .banner-badge { background: #8B5E3C; color: #FFFFFF; }
.c-banner-5 .banner-badge { background: #B91C1C; color: #FFFFFF; }

.banner-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.2;
}

.banner-desc {
  font-size: 0.8rem;
  color: var(--text-body);
  line-height: 1.35;
}

.banner-btn-action {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: underline;
}


/* ============================================================== */
/* FOOTER DE LA APLICACIÓN                                        */
/* ============================================================== */

.app-footer-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  box-shadow: var(--shadow-sm);
}

.footer-brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 12px rgba(122, 25, 19, 0.15);
}

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

.footer-brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-badges-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.footer-pill {
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--bg-subtle);
  color: var(--text-body);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.footer-contact-box {
  width: 100%;
  background: var(--bg-app);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  font-size: 0.78rem;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-body);
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.footer-social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--bg-subtle);
  color: var(--text-main);
}

.footer-social-btn.highlight {
  background: #25D366;
  color: #FFFFFF;
}

.footer-legal {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 6px;
}

.bottom-spacer-dock {
  height: 90px;
}


/* ============================================================== */
/* FLOATING BOTTOM NAVIGATION BAR (APP STYLE MCDONALD'S / BK / KFC) */
/* ============================================================== */

.floating-app-dock {
  position: fixed;
  bottom: 14px;
  left: 0;
  right: 0;
  max-width: 440px;
  margin: 0 auto;
  padding: 0 16px;
  z-index: 999;
  pointer-events: none; /* Allows click through on sides */
}

.dock-inner {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border: 1.5px solid rgba(122, 25, 19, 0.12);
  box-shadow: var(--shadow-dock);
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: all var(--transition-fast);
  position: relative;
  min-width: 58px;
}

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

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

.dock-item.active {
  color: var(--primary);
}

.dock-item.active .dock-label {
  font-weight: 800;
  color: var(--primary);
}

.dock-item.active .dock-icon-wrap svg {
  stroke: var(--primary);
  filter: drop-shadow(0 2px 4px rgba(122, 25, 19, 0.25));
}

.dock-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: -0.1px;
}

/* Badge for Cart and Favorites */
.dock-badge {
  position: absolute;
  top: -6px;
  right: -9px;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 0.65rem;
  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 6px rgba(122, 25, 19, 0.35);
  border: 1.5px solid #FFFFFF;
}

.pulse-badge {
  background: var(--accent);
  color: #1D1A18;
}

/* Special center cart button enhancement */
.dock-item-cart .cart-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.dock-item-cart.has-items .cart-icon-box {
  background: var(--primary);
  color: #FFFFFF;
}

.dock-item-cart.has-items .cart-icon-box svg {
  stroke: #FFFFFF;
}


/* ============================================================== */
/* MODALES / BOTTOM SHEETS                                        */
/* ============================================================== */

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

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

.modal-sheet {
  background: #FFFFFF;
  width: 100%;
  max-width: 480px;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  animation: slideUpSheet 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

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

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

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

.sheet-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.sheet-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sheet-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sheet-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Order Mode Options (Mesa / Domicilio) */
.order-mode-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mode-card {
  display: block;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--bg-app);
}

.mode-card input {
  display: none;
}

.mode-card:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 3px 12px rgba(122, 25, 19, 0.1);
}

.mode-card-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

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

.mode-details {
  display: flex;
  flex-direction: column;
}

.mode-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
}

.mode-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.mode-fields-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-app);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

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

.input-form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
}

.required {
  color: #DC2626;
}

.input-with-icon {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.input-leading-icon {
  margin-right: 8px;
  font-size: 1rem;
}

.input-form-group input {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.88rem;
  color: var(--text-main);
  background: #FFFFFF;
  outline: none;
  width: 100%;
}

.input-with-icon input {
  border: none;
  padding: 0;
}

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

/* Dish Detail Modal */
.dish-sheet-header {
  border: none;
  padding-bottom: 0;
}

.dish-detail-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.2;
}

.dish-detail-subtitle {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-hover);
  margin-top: 2px;
}

.dish-detail-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 8px 0;
}

.dish-detail-description {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.5;
}

.dish-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.dish-custom-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
}

.dish-custom-box input {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--text-main);
  outline: none;
}

.dish-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.stepper-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  padding: 4px;
}

.stepper-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.stepper-btn:active {
  background: var(--primary);
  color: #FFFFFF;
}

.stepper-val {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  min-width: 36px;
  text-align: center;
}

.btn-primary-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--primary);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(122, 25, 19, 0.25);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.btn-primary-action:active {
  transform: scale(0.97);
  background: var(--primary-hover);
}

.btn-primary-action.small {
  padding: 10px 18px;
  font-size: 0.85rem;
  flex: initial;
}

.btn-add-modal {
  justify-content: space-between;
}

/* ============================================================== */
/* CARRITO & CHECKOUT                                             */
/* ============================================================== */

.cart-items-pill {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-left: 8px;
}

.cart-mode-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-app);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

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

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

.cmb-left strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-main);
}

.cmb-left span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.btn-cmb-change {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: underline;
}

.cart-items-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.cart-item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.cir-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cir-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
}

.cir-note {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-style: italic;
}

.cir-unit-price {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  margin-top: 2px;
}

.cir-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.cir-total {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.cir-stepper {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  padding: 2px;
}

.btn-cir-step {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cir-step-val {
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0 6px;
  min-width: 20px;
  text-align: center;
}

/* Cart Empty State */
.cart-empty-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  text-align: center;
  gap: 10px;
}

.empty-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.cart-empty-box h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

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

/* Cart Summary & WhatsApp Checkout */
.cart-summary-box {
  background: var(--bg-app);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--border-light);
}

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

.summary-total-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--border-light);
  padding-top: 10px;
  margin-top: 4px;
}

.summary-total-line strong {
  font-size: 1.05rem;
  color: var(--text-main);
}

.tax-hint {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.total-highlight {
  font-size: 1.35rem !important;
  color: var(--primary) !important;
  font-weight: 900;
}

.payment-method-selector {
  margin: 6px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.payment-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-body);
}

.payment-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pay-pill {
  flex: 1;
  min-width: 110px;
  padding: 6px 10px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pay-pill input {
  display: none;
}

.pay-pill:has(input:checked) {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 800;
}

/* WhatsApp Confirm Button */
.btn-whatsapp-confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: #25D366;
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-size: 0.98rem;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: all var(--transition-fast);
}

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

.ws-guarantee-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: -2px;
}

/* Modal Info Sheet */
.info-sheet-body {
  gap: 20px;
}

.info-hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.info-logo-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 16px rgba(122, 25, 19, 0.15);
}

.info-hero-brand h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.info-hero-brand p {
  font-size: 0.85rem;
  color: var(--text-body);
  max-width: 320px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-app);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

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

.iri-icon {
  font-size: 1.2rem;
}

.info-row-item strong {
  display: block;
  font-size: 0.86rem;
  color: var(--text-main);
}

.info-row-item p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Toast Notification */
.app-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: rgba(29, 26, 24, 0.92);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(15px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}


/* ============================================================== */
/* REGLAS RESPONSIVE & CONDICIÓN MÓVIL ESTRICTA                   */
/* "debe funcionar solamente en version movil, la version de      */
/* escritorio debe tener un codigo QR para escanear y dirigir al  */
/* menu, no debes crear un demo en la version desktop solo movile"*/
/* ============================================================== */

@media (min-width: 769px) {
  /* En Desktop: Muestra únicamente el contenedor con el código QR */
  .desktop-container {
    display: flex !important;
  }
  
  /* En Desktop: La app móvil está estrictamente oculta */
  .mobile-app-wrapper {
    display: none !important;
  }
}

@media (max-width: 768px) {
  /* En Móvil: Oculta la vista desktop */
  .desktop-container {
    display: none !important;
  }

  /* En Móvil: Muestra la WebApp interactiva completa */
  .mobile-app-wrapper {
    display: block !important;
  }
}
