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

:root {
  --brand-navy: #0A1244;
  --brand-navy-deep: #060B28;
  --brand-navy-card: #131E56;
  --brand-navy-light: #182874;
  --brand-cream: #FFFDE8;
  --brand-cream-card: #FFFEEA;
  --brand-gold: #F5A623;
  --brand-gold-deep: #D98207;
  --brand-gold-soft: #FEF3C7;
  --bg-page: #0A1244; /* Fondo azul de la marca */
  --bg-card: #FFFEEA;
  --text-main: #FFFFFF;
  --text-navy: #0A1244;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --border-light: rgba(255, 255, 255, 0.12);
  --radius-app: 24px;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--brand-navy); /* Fondo azul de la marca */
  color: #FFFFFF;
  line-height: 1.5;
  overflow-x: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* Tipografía de la marca */
.font-brand {
  font-family: 'Pacifico', cursive;
  letter-spacing: 0.5px;
}

.font-heading {
  font-family: 'Outfit', sans-serif;
}

/* ========================================================
   DESKTOP BLOCKER / QR REDIRECT SCREEN
   ======================================================== */
#desktop-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at 50% 20%, #15225E 0%, #0A1244 60%, #05081E 100%);
  color: #FFFFFF;
  padding: 32px 24px;
  overflow-y: auto;
  align-items: center;
  justify-content: center;
}

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

.desktop-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 36px;
  padding: 40px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.6);
  animation: floatUp 0.6s ease-out;
}

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

.qr-wrapper {
  background: #FFFFFF;
  padding: 20px;
  border-radius: 24px;
  display: inline-block;
  margin: 22px 0;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.qr-wrapper canvas, .qr-wrapper img {
  display: block;
  margin: 0 auto;
}

/* ========================================================
   MOBILE APP CONTAINER (Fondo azul de la marca)
   ======================================================== */
#app-mobile-container {
  display: block;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--brand-navy); /* Fondo azul de la marca */
  position: relative;
  padding-bottom: 110px; /* Space for bottom nav */
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.4);
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 18, 68, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 18px;
  transition: all 0.25s ease;
}

/* Modality Toggle (En la mesa vs Domicilio) */
.modality-toggle {
  display: flex;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 4px;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.modality-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.modality-btn.active {
  background: #FFFFFF;
  color: var(--brand-navy);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  font-weight: 700;
}

/* Hero Banner Slider */
.hero-slider-container {
  padding: 14px 18px 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  display: flex;
  gap: 14px;
  scrollbar-width: none;
}

.hero-slider-container::-webkit-scrollbar {
  display: none;
}

.hero-slide {
  flex: 0 0 calc(100% - 20px);
  scroll-snap-align: center;
  border-radius: 26px;
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 175px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-slide-1 {
  background: linear-gradient(135deg, #15225E 0%, #0D1647 100%);
}

.hero-slide-2 {
  background: linear-gradient(135deg, #1A2870 0%, #2A1744 100%);
}

.hero-slide-3 {
  background: linear-gradient(135deg, #8B5E0D 0%, #C98205 100%);
}

.hero-slide-4 {
  background: linear-gradient(135deg, #0E2A5E 0%, #0A1244 100%);
}

/* Category Icon Navigation */
.categories-nav {
  position: sticky;
  top: 110px;
  z-index: 45;
  background: rgba(10, 18, 68, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 10px 16px 12px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.cat-pill {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

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

.cat-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #FFFFFF;
  font-size: 22px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cat-pill.active .cat-icon-box {
  background: #FFFFFF;
  color: var(--brand-navy);
  border-color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.cat-pill .cat-name {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

.cat-pill.active .cat-name {
  color: #FFFFFF;
  font-weight: 700;
}

/* Category Thematic Banners (Between categories) */
.category-divider-banner {
  margin: 30px 18px 16px;
  border-radius: 24px;
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.category-divider-banner.arepas-banner {
  background: linear-gradient(135deg, rgba(255, 253, 232, 0.15) 0%, rgba(255, 253, 232, 0.06) 100%);
  border-color: rgba(245, 166, 35, 0.3);
  color: #FFFFFF;
}

.category-divider-banner.promos-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(10, 18, 68, 0.4) 100%);
  border-color: rgba(165, 180, 252, 0.3);
  color: #FFFFFF;
}

.category-divider-banner.almuerzos-banner {
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.2) 0%, rgba(10, 18, 68, 0.4) 100%);
  border-color: rgba(245, 166, 35, 0.35);
  color: #FFFFFF;
}

.category-divider-banner.bebidas-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(10, 18, 68, 0.4) 100%);
  border-color: rgba(110, 231, 183, 0.3);
  color: #FFFFFF;
}

.category-divider-banner.cafe-banner {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(10, 18, 68, 0.4) 100%);
  border-color: rgba(216, 180, 254, 0.3);
  color: #FFFFFF;
}

/* ========================================================
   DISH CARD (Estilo menú original: tarjeta crema sobre fondo azul)
   SIN IMÁGENES
   ======================================================== */
.dish-card {
  background: var(--brand-cream); /* Crema original #FFFDE8 */
  color: var(--brand-navy); /* Texto azul marino original */
  border-radius: 28px;
  padding: 20px 22px;
  margin: 0 18px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.dish-card:active {
  transform: scale(0.985);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.dish-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-right: 36px; /* Espacio para el corazón */
}

/* Tipografía de la marca para el nombre del plato */
.dish-title {
  font-family: 'Pacifico', cursive; /* Tipografía manuscrita de Wapa */
  font-size: 24px;
  color: var(--brand-navy);
  line-height: 1.25;
  letter-spacing: 0.3px;
}

.dish-desc {
  font-size: 13px;
  color: #334155;
  line-height: 1.45;
  margin: 8px 0 14px;
}

/* Barra/Píldora interior azul del menú original (ej: "1 RELLENO SENCILLO") */
.dish-pill-badge {
  display: inline-block;
  background: var(--brand-navy);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.dish-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed rgba(10, 18, 68, 0.15);
}

/* Círculo de precio estilo menú original (círculo azul marino con precio en blanco) */
.dish-price-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--brand-navy);
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(10, 18, 68, 0.25);
}

.dish-order-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--brand-navy);
  color: #FFFFFF;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(10, 18, 68, 0.2);
  transition: all 0.2s ease;
}

.dish-order-btn:active {
  transform: scale(0.95);
  background: var(--brand-gold);
}

/* Botón de Favoritos (Corazón) */
.favorite-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(10, 18, 68, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.favorite-btn.favorited {
  color: #EF4444;
  background: #FFF1F2;
  border-color: #FECDD3;
}

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

/* ========================================================
   BOTTOM APP-STYLE NAVIGATION BAR
   Requirements:
   - "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"
   ======================================================== */
.bottom-app-nav {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 450px;
  height: 70px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 35px; /* Bordes redondeados */
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  width: 64px;
  height: 100%;
  transition: all 0.25s ease;
}

/* Círculo indicador */
.nav-circle-indicator {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Al seleccionar un item, se encierra en un círculo del color azul de la marca */
.bottom-nav-item.active .nav-circle-indicator {
  background-color: var(--brand-navy); /* Círculo del color azul de la marca */
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(10, 18, 68, 0.4);
  transform: translateY(-8px) scale(1.08);
}

.bottom-nav-label {
  font-size: 10.5px;
  font-weight: 600;
  color: #64748B;
  margin-top: 2px;
  transition: all 0.2s ease;
}

.bottom-nav-item.active .bottom-nav-label {
  color: var(--brand-navy);
  font-weight: 800;
  transform: translateY(-4px);
}

/* Badge en carrito */
.cart-badge-count {
  position: absolute;
  top: 4px;
  right: 6px;
  background: var(--brand-gold);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ========================================================
   MODALS / DRAWERS
   ======================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 30, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  background: #FFFFFF;
  color: var(--brand-navy);
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.4);
  z-index: 110;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.bottom-sheet.open {
  transform: translate(-50%, 0);
}

.sheet-handle {
  width: 42px;
  height: 5px;
  background: #CBD5E1;
  border-radius: 999px;
  margin: 12px auto 6px;
}

.sheet-body {
  overflow-y: auto;
  padding: 18px 22px 24px;
  flex: 1;
}

.sheet-footer {
  padding: 16px 22px;
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Choice Chips */
.choice-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 16px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.choice-chip.selected {
  background: #EEF2FF;
  border-color: var(--brand-navy);
  color: var(--brand-navy);
  font-weight: 700;
}

.choice-chip:active {
  transform: scale(0.98);
}

/* Quantity Stepper */
.qty-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F1F5F9;
  border-radius: 14px;
  padding: 4px;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #FFFFFF;
  border: none;
  font-weight: 700;
  font-size: 16px;
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.qty-val {
  font-weight: 700;
  font-size: 16px;
  min-width: 24px;
  text-align: center;
  color: var(--brand-navy);
}

/* Botones principales */
.btn-primary {
  flex: 1;
  padding: 14px 20px;
  border-radius: 18px;
  background: var(--brand-navy);
  color: #FFFFFF;
  border: none;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(10, 18, 68, 0.3);
  transition: all 0.2s ease;
}

.btn-primary:active {
  transform: scale(0.98);
  background: var(--brand-navy-light);
}

.btn-whatsapp {
  background: #25D366;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:active {
  background: #1EBE5D;
}

/* Toast */
.toast-notice {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #FFFFFF;
  color: var(--brand-navy);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 200;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

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