/* ========================================================
   SIPRIANIS FOOD TRUCK - STYLESHEET (LIGHT THEME & APP BANNERS)
   Sabor Ahumado, Hecho con Pasión
   ======================================================== */

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

:root {
  /* Fondo Claro / Gourmet Light App Style */
  --bg-main: #f7f6f2;
  --bg-card: #ffffff;
  --bg-card-hover: #fcfbf9;
  --bg-surface: #ece9e1;
  --bg-surface-subtle: #f2efe8;
  --bg-glass: rgba(255, 255, 255, 0.94);

  /* Colores Oficiales de la Marca */
  --brand-orange: #ff5500;
  --brand-orange-light: #ff751a;
  --brand-orange-dark: #d64700;
  --brand-gold: #d97706;
  --brand-red: #e11d48;
  --brand-green: #10b981;
  --brand-whatsapp: #25d366;

  /* Tipografía de Alto Contraste para Fondo Claro */
  --text-main: #141416;
  --text-muted: #52525b;
  --text-subtle: #71717a;
  --border-color: #e5e2da;
  --border-highlight: rgba(255, 85, 0, 0.35);

  --font-brand: 'Rye', serif;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 18px -2px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03);
  --shadow-float: 0 12px 30px -4px rgba(255, 85, 0, 0.38);

  --safe-bottom: env(safe-area-inset-bottom, 16px);
  --safe-top: env(safe-area-inset-top, 0px);
}

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

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

body.no-scroll {
  overflow: hidden;
}

/* ========================================================
   DESKTOP GATEKEEPER SCREEN (Móvil Exclusivo - Light)
   ======================================================== */
.desktop-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at 50% 30%, #fff7ed 0%, #f3efe6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.desktop-gate.hidden {
  display: none !important;
}

.gate-card {
  max-width: 480px;
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 25px 60px -15px rgba(214, 71, 0, 0.18), 0 2px 10px rgba(0, 0, 0, 0.04);
  animation: fadeInGate 0.4s ease-out;
}

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

.gate-logo-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.gate-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--brand-orange);
  box-shadow: 0 8px 25px rgba(255, 85, 0, 0.25);
}

.gate-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 85, 0, 0.08);
  color: var(--brand-orange-dark);
  border: 1px solid rgba(255, 85, 0, 0.25);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.gate-title {
  font-family: var(--font-brand);
  font-size: 1.85rem;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  color: var(--text-main);
}

.gate-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.qr-box-wrapper {
  background: #f7f6f2;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  display: inline-block;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  margin-bottom: 20px;
}

.qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.qr-image {
  width: 180px;
  height: 180px;
  display: block;
  border-radius: 8px;
}

.qr-caption {
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.8rem;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gate-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-open-simulator {
  background: linear-gradient(135deg, var(--brand-orange), #ea580c);
  color: #fff;
  border: none;
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(255, 85, 0, 0.25);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-open-simulator:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 85, 0, 0.35);
}

.gate-footer-note {
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-top: 14px;
}

/* ========================================================
   SIMULADOR DE IPHONE EN DESKTOP
   ======================================================== */
.hidden-on-desktop {
  display: none !important;
}

.simulator-frame {
  max-width: 430px;
  margin: 30px auto;
  min-height: 920px;
  border: 12px solid #1a1a1e;
  border-radius: 52px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25), 0 0 0 2px #d1cfc7, 0 0 40px rgba(255, 85, 0, 0.1);
  position: relative;
  overflow: hidden;
  background-color: var(--bg-main);
}

.simulator-topbar {
  display: none;
}

.simulator-frame .simulator-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px 6px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.sim-island {
  width: 96px;
  height: 24px;
  background: #000;
  border-radius: 20px;
  margin: 0 auto;
}

.btn-exit-simulator {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  display: none;
}

.simulator-frame ~ .btn-exit-simulator {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ========================================================
   APP CONTAINER & LAYOUT (Light)
   ======================================================== */
.app-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  padding-bottom: 150px;
  background-color: var(--bg-main);
}

/* Header de la App */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: calc(var(--safe-top) + 12px) 16px 12px;
}

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

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

.brand-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-orange);
  box-shadow: 0 2px 10px rgba(255, 85, 0, 0.2);
}

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

.brand-title {
  font-family: var(--font-brand);
  font-size: 1.3rem;
  line-height: 1.1;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--brand-orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

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

.btn-icon-pill {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.btn-icon-pill:active {
  transform: scale(0.92);
  background: var(--bg-surface);
}

/* Banner de Estado de Cocina */
.status-bar-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 8px 12px;
  margin-top: 10px;
  box-shadow: var(--shadow-sm);
}

.status-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.status-hours {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ========================================================
   SELECTOR DE MODALIDAD (Mesa vs Domicilio)
   ======================================================== */
.modality-bar {
  padding: 12px 16px 4px;
}

.mode-toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-surface);
  padding: 4px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  gap: 4px;
}

.btn-mode {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
}

.btn-mode.active {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid rgba(255, 85, 0, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

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

.mode-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.15;
}

.mode-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.btn-mode.active .mode-sub {
  color: var(--brand-orange);
  font-weight: 600;
}

/* ========================================================
   BARRA DE BÚSQUEDA (Light)
   ======================================================== */
.search-container {
  padding: 10px 16px 6px;
}

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

.search-icon-svg {
  position: absolute;
  left: 14px;
  color: var(--text-subtle);
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px 40px 12px 42px;
  color: var(--text-main);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.15);
}

.btn-clear-search-input {
  position: absolute;
  right: 12px;
  background: var(--bg-surface);
  border: none;
  color: var(--text-main);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-clear-search-input.hidden {
  display: none;
}

/* ========================================================
   CATEGORÍAS CON ICONOS (Scroll horizontal táctil)
   ======================================================== */
.category-scroll-wrapper {
  padding: 10px 16px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.category-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
}

.cat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 9px 16px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

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

.cat-pill.active {
  background: linear-gradient(135deg, var(--brand-orange), #ea580c);
  border-color: var(--brand-orange);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 85, 0, 0.28);
}

.cat-icon {
  display: flex;
  align-items: center;
  color: inherit;
}

.cat-pill.active .cat-icon {
  color: #ffffff;
}

.cat-badge-mini {
  background: var(--brand-gold);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.cat-pill.active .cat-badge-mini {
  background: #ffffff;
  color: var(--brand-orange-dark);
}

/* ========================================================
   BANNERS DE CATEGORÍA DISEÑADOS (ENTRE CADA SECCIÓN)
   ======================================================== */
.menu-section {
  margin-bottom: 28px;
}

.category-banner {
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 14px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease;
}

/* 1. Banner Sándwiches: Fuego, brasas y ahumado */
.banner-sandwiches {
  background: linear-gradient(135deg, #1c140e 0%, #3a1c0d 50%, #c2410c 100%);
  border: 1px solid rgba(255, 107, 0, 0.3);
}

/* 2. Banner Bebidas: Línea fría refrescante, hielo y azul zafiro */
.banner-bebidas {
  background: linear-gradient(135deg, #075985 0%, #0284c7 50%, #38bdf8 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

/* 3. Banner Combo Bondiola: Rojo fuego y brasa intensa con destaque $23.000 */
.banner-combo {
  background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 50%, #ea580c 100%);
  border: 1px solid rgba(234, 88, 12, 0.4);
}

/* 4. Banner Combos Plancha: Dorado sartén y bife 300g */
.banner-plancha {
  background: linear-gradient(135deg, #78350f 0%, #d97706 50%, #f59e0b 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.banner-badge-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.banner-supertitle {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.92;
  background: rgba(0, 0, 0, 0.25);
  padding: 3px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.banner-price-tag {
  font-family: var(--font-display);
  font-size: 1.35rem;
  background: #ffffff;
  color: #991b1b;
  padding: 2px 10px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  letter-spacing: 0.5px;
}

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

.banner-text-col {
  flex: 1;
}

.banner-title {
  font-family: var(--font-brand);
  font-size: 1.6rem;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.banner-tagline {
  font-size: 0.84rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
}

.banner-icon-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-emblem {
  font-size: 2.4rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

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

.banner-pill {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 10px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  color: #ffffff;
}

.banner-note-box {
  background: rgba(0, 0, 0, 0.22);
  border-left: 3px solid #ffffff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.74rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.95);
}

/* ========================================================
   CARDS DE PRODUCTOS (LIGHT THEME)
   ======================================================== */
.menu-list {
  padding: 6px 16px;
}

.items-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.item-card:hover {
  border-color: rgba(255, 85, 0, 0.3);
  box-shadow: 0 6px 20px -2px rgba(0, 0, 0, 0.08);
}

.item-card-highlight {
  border-color: rgba(217, 119, 6, 0.35);
  background: linear-gradient(180deg, #fffcf5 0%, #ffffff 100%);
}

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

.item-tag-fav-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-fav-card {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

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

.btn-fav-card.is-favorite {
  background: #fff1f2;
  border-color: rgba(225, 29, 72, 0.35);
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.22);
}

.btn-fav-card.is-favorite svg {
  transform: scale(1.08);
}

.empty-favorites {
  text-align: center;
  padding: 40px 14px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

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

.item-category-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--brand-orange-dark);
  background: rgba(255, 85, 0, 0.08);
  border: 1px solid rgba(255, 85, 0, 0.18);
  padding: 3px 8px;
  border-radius: 8px;
}

.item-category-tag.tag-cash {
  color: var(--brand-gold);
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.item-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--brand-orange-dark);
  letter-spacing: 0.5px;
}

.item-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 4px;
}

.item-subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-orange-dark);
  margin-bottom: 6px;
}

.item-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.item-callout {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fff8f1;
  border-left: 3px solid var(--brand-orange);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  color: #9a3412;
  margin-top: 8px;
  line-height: 1.35;
}

.item-footer-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

.btn-add-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 85, 0, 0.08);
  color: var(--brand-orange-dark);
  border: 1px solid rgba(255, 85, 0, 0.3);
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-item:active {
  transform: scale(0.93);
  background: var(--brand-orange);
  color: #fff;
}

.qty-pill-control {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--brand-orange);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.btn-qty-mini {
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-qty-mini:active {
  background: var(--bg-surface);
}

.qty-count-label {
  padding: 0 10px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--brand-orange);
}

/* Estado de búsqueda vacía */
.empty-search {
  text-align: center;
  padding: 48px 20px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

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

.empty-search h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.empty-search p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.btn-clear-search {
  background: var(--brand-orange);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

/* ========================================================
   BARRA FLOTANTE DE CARRITO
   ======================================================== */
.floating-cart-bar {
  position: fixed;
  bottom: calc(var(--safe-bottom) + 82px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 468px;
  background: linear-gradient(135deg, #ff5500, #ea580c);
  color: #ffffff;
  border-radius: 20px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-float);
  z-index: 45;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-cart-bar.hidden {
  display: none !important;
}

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

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

.cart-icon-circle {
  width: 38px;
  height: 38px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-bar-details {
  display: flex;
  flex-direction: column;
}

.cart-bar-count {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.95;
}

.cart-bar-total {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 0.5px;
}

.cart-bar-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 800;
  background: #ffffff;
  color: #000;
  padding: 8px 14px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ========================================================
   BOTTOM NAVIGATION BAR ESTILO APP (REDONDEADO & CÍRCULO NARANJA)
   ======================================================== */
.bottom-nav-bar {
  position: fixed;
  bottom: calc(var(--safe-bottom) + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 440px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(229, 226, 218, 0.9);
  border-radius: 36px;
  box-shadow: 0 14px 35px -5px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px 8px 7px;
  z-index: 40;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  padding: 2px 4px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
}

/* Contenedor circular del icono */
.nav-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #71717a;
  position: relative;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-icon-circle svg {
  color: inherit;
  stroke: currentColor;
  transition: all 0.25s ease;
}

/* Efecto hover suave */
.nav-item:hover:not(.active) .nav-icon-circle {
  background: rgba(255, 85, 0, 0.08);
  color: var(--brand-orange);
}

/* Ítem Activo: Círculo con relleno naranja */
.nav-item.active .nav-icon-circle {
  background: linear-gradient(135deg, #ff5500 0%, #ea580c 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(255, 85, 0, 0.45);
  transform: translateY(-3px) scale(1.08);
}

.nav-item.active .nav-icon-circle svg {
  color: #ffffff;
  stroke: #ffffff;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.nav-label {
  font-size: 0.67rem;
  font-weight: 700;
  color: #71717a;
  transition: color 0.2s ease, font-weight 0.2s ease;
  line-height: 1;
}

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

/* Badge del carrito sobre el círculo */
.nav-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--brand-red);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.45);
  border: 2px solid #ffffff;
  z-index: 2;
}

.nav-badge.hidden {
  display: none;
}

.nav-badge.hidden {
  display: none;
}

/* ========================================================
   MODALES Y BOTTOM SHEETS (Light)
   ======================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeInOverlay 0.2s ease-out;
}

.modal-overlay.hidden {
  display: none !important;
}

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

.bottom-sheet {
  width: 100%;
  max-width: 500px;
  background: #ffffff;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: slideUpSheet 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

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

.sheet-handle {
  width: 44px;
  height: 4px;
  background: #d4d0c7;
  border-radius: 4px;
  margin: 12px auto 6px;
}

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

.sheet-title-group {
  display: flex;
  flex-direction: column;
}

.sheet-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

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

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

.sheet-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
  background: var(--bg-main);
}

.sheet-footer {
  padding: 16px 20px calc(var(--safe-bottom) + 12px);
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ========================================================
   CARRITO Y CHECKOUT
   ======================================================== */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

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

.cart-item-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.cart-item-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
}

.tag-cash-mini {
  background: rgba(217, 119, 6, 0.12);
  color: var(--brand-gold);
  border: 1px solid rgba(217, 119, 6, 0.3);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 6px;
  text-transform: uppercase;
}

.cart-item-options {
  font-size: 0.74rem;
  color: var(--brand-orange-dark);
  font-weight: 600;
  margin-bottom: 2px;
}

.cart-item-notes {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.cart-item-price-unit {
  font-size: 0.74rem;
  color: var(--text-subtle);
  margin-top: 4px;
}

.cart-item-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-stepper {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.btn-step {
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.step-value {
  padding: 0 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-main);
}

.cart-item-subtotal {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--brand-orange-dark);
  min-width: 65px;
  text-align: right;
}

.btn-remove-item {
  background: transparent;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 4px;
}

.btn-remove-item:hover {
  color: var(--brand-red);
}

/* Card de Checkout y Formulario */
.checkout-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.checkout-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-main);
}

.form-row {
  margin-bottom: 14px;
}

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

.input-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.input-label .required {
  color: var(--brand-orange);
}

.app-input, .app-select, .app-textarea {
  width: 100%;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text-main);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.app-input:focus, .app-select:focus, .app-textarea:focus {
  border-color: var(--brand-orange);
  background: #ffffff;
}

.app-textarea {
  min-height: 70px;
  resize: vertical;
}

/* Pills para selector de mesa */
.table-quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.table-pill {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.table-pill.active {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
}

/* Selector de método de pago */
.payment-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
}

.payment-option input {
  display: none;
}

.payment-box {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-option input:checked + .payment-box {
  background: #fff8f1;
  border-color: var(--brand-orange);
  color: var(--brand-orange-dark);
}

.disabled-option {
  opacity: 0.4;
  pointer-events: none;
}

.payment-warning {
  font-size: 0.74rem;
  color: var(--brand-gold);
  margin-top: 8px;
  line-height: 1.35;
  font-weight: 600;
}

/* Botón de Confirmación por WhatsApp */
.total-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.total-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}

.total-amount-large {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--brand-orange-dark);
}

.btn-whatsapp-confirm {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff;
  border: none;
  padding: 16px 20px;
  border-radius: 16px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
  width: 100%;
}

.btn-whatsapp-confirm:active {
  transform: scale(0.97);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* Estado de carrito vacío */
.cart-empty-state {
  text-align: center;
  padding: 40px 10px;
}

.cart-empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.cart-empty-state h4 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.cart-empty-state p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.btn-explore-menu {
  background: var(--brand-orange);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

/* ========================================================
   MODAL DE OPCIONES / COMBOS
   ======================================================== */
.option-group {
  margin-bottom: 18px;
}

.option-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-card input {
  display: none;
}

.radio-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radio-card input:checked + .radio-box {
  background: #fff8f1;
  border-color: var(--brand-orange);
}

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

.radio-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cash-only-warning {
  background: #fff8f1;
  border: 1px solid rgba(217, 119, 6, 0.35);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.8rem;
  color: #9a3412;
  line-height: 1.4;
  margin-top: 14px;
}

.btn-confirm-combo {
  background: linear-gradient(135deg, var(--brand-orange), #ea580c);
  color: #fff;
  border: none;
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
}

/* ========================================================
   HISTORIAL DE PEDIDOS & INFO
   ======================================================== */
.history-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

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

.history-id {
  font-weight: 800;
  color: var(--brand-orange-dark);
}

.history-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.history-mode-pill {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.history-items {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 8px;
}

.history-total {
  font-size: 0.92rem;
  text-align: right;
  color: var(--brand-orange-dark);
  border-top: 1px solid var(--border-color);
  padding-top: 6px;
}

.empty-history {
  text-align: center;
  padding: 40px 10px;
}

/* Toast flotante */
.app-toast {
  position: fixed;
  top: calc(var(--safe-top) + 24px);
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #ffffff;
  border: 1px solid var(--brand-orange);
  color: var(--text-main);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  backdrop-filter: blur(10px);
  z-index: 9999;
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
}

.app-toast.hidden {
  display: none;
}

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