/* ==========================================================================
   SALCHIPUEDES GASTROBAR - WEBAPP ESTILO MINIMALISTA PREMIUM
   Colores de Marca: Amarillo Vibrante (#FFE600), Negro Carbón (#0D0D0F), Blanco (#FFFFFF)
   Tipografía del Menú: 'Antonio' / 'Teko' (Condensada Bold) + 'Plus Jakarta Sans'
   ========================================================================== */

:root {
  --brand-yellow: #FFE600;
  --brand-yellow-glow: rgba(255, 230, 0, 0.32);
  --brand-amber: #FFB800;
  --bg-dark: #0A0A0C;
  --bg-surface: #131317;
  --bg-card: #19191F;
  --bg-elevated: #22222A;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-yellow: rgba(255, 230, 0, 0.45);
  --text-white: #FFFFFF;
  --text-muted: #A0A0AB;
  --text-dark: #0D0D0F;
  --whatsapp-green: #25D366;
  --font-display: 'Antonio', 'Teko', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-pill: 999px;
}

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

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

/* ==========================================================================
   RESTRICCIÓN DESKTOP: NO ABRE EN DESKTOP, SOLO DESDE SMARTPHONE
   ========================================================================== */
.desktop-blocker {
  display: none;
}

@media (min-width: 769px) {
  .mobile-app,
  #product-modal,
  #lightbox-modal,
  #app-toast {
    display: none !important;
  }

  .desktop-blocker {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
      radial-gradient(circle at 50% 15%, rgba(255, 230, 0, 0.16), transparent 55%),
      linear-gradient(135deg, #070709 0%, #121216 100%);
  }

  .blocker-card {
    max-width: 440px;
    width: 100%;
    background: rgba(22, 22, 28, 0.92);
    border: 1px solid var(--border-yellow);
    border-radius: 32px;
    padding: 36px 32px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75), 0 0 40px rgba(255, 230, 0, 0.12);
    backdrop-filter: blur(18px);
  }

  .blocker-logo-ring {
    width: 96px;
    height: 96px;
    margin: 0 auto 16px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--brand-yellow), var(--brand-amber));
    box-shadow: 0 8px 25px var(--brand-yellow-glow);
  }

  .blocker-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }

  .blocker-badge {
    display: inline-block;
    background: rgba(255, 230, 0, 0.14);
    color: var(--brand-yellow);
    border: 1px solid rgba(255, 230, 0, 0.35);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 12px;
  }

  .blocker-title {
    font-family: var(--font-display);
    font-size: 44px;
    line-height: 1;
    letter-spacing: 1px;
    color: var(--text-white);
  }

  .blocker-title span {
    color: var(--brand-yellow);
  }

  .blocker-subtitle {
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-top: 4px;
    margin-bottom: 16px;
    font-weight: 700;
  }

  .blocker-desc {
    font-size: 14px;
    line-height: 1.55;
    color: #D2D2DC;
    margin-bottom: 22px;
  }

  .qr-box {
    background: #FFFFFF;
    padding: 16px;
    border-radius: 22px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  }

  .qr-box img {
    width: 170px;
    height: 170px;
    display: block;
  }

  .qr-caption {
    color: #111;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
  }

  .blocker-footer {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
    padding-top: 16px;
  }
}

/* ==========================================================================
   ESTRUCTURA MÓVIL (SMARTPHONE WEBAPP)
   ========================================================================== */
.mobile-app {
  max-width: 100%;
  min-height: 100dvh;
  padding-bottom: 158px; /* Espacio para el floating cart y el bottom nav */
  position: relative;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 230, 0, 0.09), transparent 40%),
    var(--bg-dark);
}

/* HEADER SUPERIOR ESTILO REFERENCIA (TARJETA HERO CON PATRÓN DE PUNTOS) */
.app-header {
  position: relative;
  z-index: 35;
  background-color: #111114;
  background-image:
    radial-gradient(rgba(255, 230, 0, 0.14) 1.35px, transparent 1.35px),
    radial-gradient(circle at 85% 12%, rgba(255, 230, 0, 0.16), transparent 48%),
    linear-gradient(165deg, #1A1808 0%, #0E0E12 58%, #161407 100%);
  background-size: 18px 18px, 100% 100%, 100% 100%;
  padding: 20px 16px 18px;
  border-radius: 0 0 28px 28px;
  border-bottom: 1.5px solid rgba(255, 230, 0, 0.25);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}

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

.header-logo-badge-wrap {
  position: relative;
  width: 76px;
  height: 76px;
}

.header-logo-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #FFFFFF;
  padding: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(255, 230, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.verified-badge {
  position: absolute;
  bottom: 0;
  right: -2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #F59E0B;
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.verified-badge svg {
  width: 13px;
  height: 13px;
}

.open-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
}

.open-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 10px #34D399;
  animation: pulseDot 2s infinite;
}

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

.header-identity {
  margin-bottom: 14px;
}

.header-brand-title {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  letter-spacing: 1px;
  color: var(--text-white);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.header-brand-title span {
  color: var(--brand-yellow);
}

.header-brand-title sup {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  margin-left: 4px;
  vertical-align: super;
}

.header-brand-subtitle {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 6px;
}

.header-brand-address {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.header-brand-address svg {
  width: 15px;
  height: 15px;
  color: var(--brand-yellow);
  flex-shrink: 0;
}

/* FILA DE 3 PILLS DE METADATOS (4.9 / TIEMPO / DOMICILIO) */
.header-meta-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 14px;
  padding-bottom: 2px;
}

.header-meta-pills::-webkit-scrollbar {
  display: none;
}

.meta-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  padding: 7px 12px;
  font-size: 12px;
  color: var(--text-white);
  white-space: nowrap;
}

.meta-pill svg {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.star-icon {
  color: #FACC15;
  font-size: 13px;
}

.meta-muted {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

.meta-pill.highlight-pill {
  background: rgba(255, 230, 0, 0.18);
  border: 1px solid rgba(255, 230, 0, 0.55);
  color: var(--brand-yellow);
  font-weight: 700;
  cursor: pointer;
}

.meta-pill.highlight-pill svg {
  color: var(--brand-yellow);
}

/* FILA DE 3 BOTONES DE ACCIÓN (WHATSAPP / INSTAGRAM / INFO) */
.header-cta-row {
  display: grid;
  grid-template-columns: 1.15fr 1.25fr 0.8fr;
  gap: 8px;
  margin-bottom: 14px;
}

.header-btn-whatsapp,
.header-btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.header-btn-whatsapp:active,
.header-btn-glass:active {
  transform: scale(0.97);
}

.header-btn-whatsapp {
  background: #22C55E;
  color: #06210E;
  border: 1px solid #34D399;
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.32);
}

.header-btn-whatsapp svg {
  width: 17px;
  height: 17px;
  stroke: #06210E;
  flex-shrink: 0;
}

.header-btn-glass {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-btn-glass svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* CONMUTADOR DE MODALIDAD CORREGIDO: EN LA MESA / A DOMICILIO */
.mode-switcher-wrap {
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 6px;
}

.mode-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.mode-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 10px;
  border: 1.5px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-family: var(--font-body);
  border-radius: 15px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  min-width: 0;
  transition: all 0.22s ease;
}

.mode-btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.22s ease;
}

.mode-btn-icon svg {
  width: 16px;
  height: 16px;
}

.mode-btn-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mode-btn-text strong {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.mode-btn-text small {
  font-size: 10.5px;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mode-btn.active {
  background: var(--brand-yellow);
  color: var(--text-dark);
  border-color: var(--brand-yellow);
  box-shadow: 0 6px 18px var(--brand-yellow-glow);
}

.mode-btn.active .mode-btn-icon {
  background: rgba(13, 13, 15, 0.14);
  color: var(--text-dark);
}

.mode-btn.active .mode-btn-text small {
  color: rgba(13, 13, 15, 0.78);
  font-weight: 600;
}

.mode-config-strip {
  width: 100%;
  margin-top: 6px;
  padding: 7px 12px 3px;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #D4D4DF;
  font-family: var(--font-body);
  font-size: 11.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.mode-config-link {
  color: var(--brand-yellow);
  font-weight: 700;
}

/* ==========================================================================
   VISTAS Y TRANSICIONES
   ========================================================================== */
.app-view {
  display: none;
  padding: 14px 16px 10px;
  animation: fadeInView 0.22s ease-out;
}

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

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

/* HERO CARD */
.hero-card {
  position: relative;
  background: linear-gradient(125deg, #1B1B22 0%, #101014 60%, #262105 100%);
  border: 1px solid rgba(255, 230, 0, 0.28);
  border-radius: var(--radius-xl);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.hero-content {
  flex: 1;
  z-index: 2;
}

.hero-chip {
  display: inline-block;
  background: var(--brand-yellow);
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
  font-weight: 700;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: 0.6px;
  color: var(--text-white);
  margin-bottom: 6px;
}

.hero-sub {
  font-size: 11.5px;
  line-height: 1.4;
  color: #C7C7D1;
}

.hero-img {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid var(--brand-yellow);
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
}

/* ==========================================================================
   CATEGORÍAS A TRAVÉS DE ICONOS (ESTILO APP DE FOOD)
   ========================================================================== */
.categories-sticky {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  margin: 0 -16px 14px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

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

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

.cat-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  min-width: 68px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.cat-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--text-white);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cat-icon-box svg {
  width: 24px;
  height: 24px;
}

.cat-label {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
}

.cat-item.active .cat-icon-box,
.cat-item:hover .cat-icon-box,
.cat-item:focus-visible .cat-icon-box {
  background: var(--brand-yellow);
  color: var(--text-dark);
  border-color: var(--brand-yellow);
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 6px 18px var(--brand-yellow-glow);
}

.cat-item.active .cat-label {
  color: var(--brand-yellow);
}

/* BANNER DE CATEGORÍA */
.category-banner {
  background: var(--bg-surface);
  border-left: 4px solid var(--brand-yellow);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cat-banner-title {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.8px;
  color: var(--brand-yellow);
  text-transform: uppercase;
}

.cat-banner-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.cat-banner-badge {
  background: rgba(255, 230, 0, 0.14);
  color: var(--brand-yellow);
  border: 1px solid rgba(255, 230, 0, 0.35);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* ==========================================================================
   TARJETAS DE PLATOS DEL MENÚ
   ========================================================================== */
.menu-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dish-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
  transition: border-color 0.2s ease, transform 0.18s ease;
  cursor: pointer;
}

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

.dish-card.featured-mega {
  border: 1.5px solid var(--brand-yellow);
  background: linear-gradient(135deg, #1E1C11 0%, #17171D 100%);
}

.dish-thumb-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: #25252E;
}

.dish-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dish-vibe-tag {
  position: absolute;
  top: 5px;
  left: 5px;
  background: rgba(10, 10, 12, 0.86);
  color: var(--brand-yellow);
  border: 1px solid rgba(255, 230, 0, 0.45);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.7px;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
}

.dish-info {
  flex: 1;
  min-width: 0;
}

.dish-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.dish-title {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.08;
  letter-spacing: 0.6px;
  color: var(--text-white);
  text-transform: uppercase;
}

.dish-servings {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  background: var(--brand-yellow);
  color: var(--text-dark);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.dish-desc {
  font-size: 12px;
  line-height: 1.38;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.dish-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dish-price-pill {
  display: inline-block;
  background: var(--brand-yellow);
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 10px;
  border-radius: 8px;
}

.dish-add-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--brand-yellow);
  background: rgba(255, 230, 0, 0.12);
  color: var(--brand-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dish-add-btn:hover,
.dish-add-btn:active {
  background: var(--brand-yellow);
  color: var(--text-dark);
}

/* ==========================================================================
   BUSCADOR Y ETIQUETAS RÁPIDAS
   ========================================================================== */
.view-header-block {
  margin-bottom: 16px;
}

.section-display-title {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 0.8px;
  line-height: 1.05;
  text-transform: uppercase;
}

.section-display-title span {
  color: var(--brand-yellow);
}

.section-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.search-input-wrap {
  position: relative;
  margin-top: 14px;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border-yellow);
  border-radius: var(--radius-pill);
  padding: 0 14px;
}

.search-input-wrap svg {
  width: 18px;
  height: 18px;
  color: var(--brand-yellow);
  flex-shrink: 0;
}

.search-input-wrap input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 13px 10px;
  outline: none;
}

.clear-search-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.quick-tag {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.quick-tag:active {
  background: var(--brand-yellow);
  color: var(--text-dark);
}

/* ==========================================================================
   VISTA MODALIDAD (MESA Y DOMICILIO)
   ========================================================================== */
.modality-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 16px;
}

.modality-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.mod-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-white);
  text-align: left;
  cursor: pointer;
  transition: all 0.22s ease;
}

.mod-tab.active {
  border-color: var(--brand-yellow);
  background: var(--brand-yellow);
  color: var(--text-dark);
  box-shadow: 0 6px 18px var(--brand-yellow-glow);
}

.mod-tab.active small {
  color: rgba(13, 13, 15, 0.78);
  font-weight: 600;
}

.mod-tab-icon {
  font-size: 22px;
}

.mod-tab strong {
  display: block;
  font-size: 13px;
}

.mod-tab small {
  font-size: 10.5px;
  color: var(--text-muted);
}

.field-group {
  margin-bottom: 14px;
}

.field-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #D8D8E2;
  margin-bottom: 7px;
}

.app-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
}

.app-input:focus {
  border-color: var(--brand-yellow);
}

.mesa-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.mesa-chip,
.pay-pill,
.flavor-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  padding: 10px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.mesa-chip.active,
.pay-pill.active,
.flavor-chip.active {
  background: var(--brand-yellow);
  color: var(--text-dark);
  border-color: var(--brand-yellow);
}

.payment-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.btn-primary-gold {
  background: var(--brand-yellow);
  color: var(--text-dark);
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 20px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--brand-yellow-glow);
}

.full-w {
  width: 100%;
}

/* ==========================================================================
   VISTA CARRITO Y CONFIRMACIÓN A WHATSAPP
   ========================================================================== */
.cart-empty-state {
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px 20px;
  text-align: center;
}

.empty-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 230, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 14px;
}

.cart-empty-state h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 6px;
}

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

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.cart-item-row {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cart-item-info h4 {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.5px;
  color: var(--text-white);
}

.cart-item-meta {
  font-size: 11.5px;
  color: var(--brand-yellow);
  margin-top: 2px;
}

.cart-item-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 3px;
}

.cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border-radius: var(--radius-pill);
  padding: 4px 8px;
  border: 1px solid var(--border-subtle);
}

.cart-qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--bg-elevated);
  color: var(--text-white);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.cart-qty-btn.plus {
  background: var(--brand-yellow);
  color: var(--text-dark);
}

/* UPSELL ADICIONALES EN EL CARRITO */
.upsell-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px;
  margin-bottom: 16px;
}

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

.upsell-header span {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.6px;
  color: var(--brand-yellow);
}

.upsell-header small {
  font-size: 11px;
  color: var(--text-muted);
}

.upsell-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.upsell-chip {
  flex: 0 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 8px 12px;
  color: var(--text-white);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.upsell-chip strong {
  color: var(--brand-yellow);
  font-family: var(--font-display);
  font-size: 14px;
}

.order-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-yellow);
  border-radius: var(--radius-xl);
  padding: 16px;
}

.summary-mode-banner {
  background: var(--bg-surface);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.summary-mode-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: var(--brand-yellow);
  letter-spacing: 1px;
}

.btn-edit-mode {
  background: rgba(255, 230, 0, 0.15);
  color: var(--brand-yellow);
  border: 1px solid var(--border-yellow);
  border-radius: var(--radius-pill);
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.summary-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.sum-row.total {
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
  font-size: 16px;
  color: var(--text-white);
  font-weight: 800;
}

.sum-row.total strong {
  color: var(--brand-yellow);
  font-family: var(--font-display);
  font-size: 24px;
}

.btn-whatsapp-confirm {
  width: 100%;
  background: linear-gradient(135deg, #25D366 0%, #16A34A 100%);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-pill);
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.8px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
}

/* ==========================================================================
   VISTA INFO / SEDE / CARTA IMPRESA
   ========================================================================== */
.info-hero {
  text-align: center;
  padding: 16px 0;
}

.info-logo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px solid var(--brand-yellow);
  margin-bottom: 8px;
}

.info-tagline {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--brand-yellow);
  font-weight: 700;
}

.info-bio {
  font-size: 13px;
  color: #E0E0E8;
  margin-top: 6px;
}

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

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 230, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.info-card h4 {
  font-size: 13px;
  color: var(--brand-yellow);
  margin-bottom: 2px;
}

.info-card p {
  font-size: 12.5px;
  color: #D2D2DC;
}

.socials-card,
.original-menu-showcase {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  text-align: center;
}

.socials-card h4,
.original-menu-showcase h4 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.8px;
  color: var(--brand-yellow);
  margin-bottom: 8px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.social-btn {
  text-decoration: none;
  background: var(--bg-surface);
  color: var(--text-white);
  border: 1px solid var(--border-subtle);
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
}

.social-btn.gold {
  background: var(--brand-yellow);
  color: var(--text-dark);
  border-color: var(--brand-yellow);
}

.original-menu-showcase p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.menu-pages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.menu-page-thumb {
  width: 100%;
  border-radius: 12px;
  border: 1.5px solid var(--border-yellow);
  cursor: pointer;
}

/* ==========================================================================
   FLOATING MINI CART BAR
   ========================================================================== */
.floating-cart-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 92px;
  z-index: 45;
  background: linear-gradient(135deg, #1E1E26 0%, #141419 100%);
  border: 1.5px solid var(--brand-yellow);
  border-radius: var(--radius-pill);
  padding: 8px 10px 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.75);
}

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

.floating-cart-count {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-yellow);
  color: var(--text-dark);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-cart-label {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
}

.floating-cart-total {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--brand-yellow);
  letter-spacing: 0.5px;
}

.floating-cart-cta {
  background: var(--brand-yellow);
  color: var(--text-dark);
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-weight: 800;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

/* ==========================================================================
   MENÚ INFERIOR ESTILO APP DE FOOD (BORDES REDONDEADOS + CÍRCULO AMARILLO)
   "el menu inferior debe ser estilo app de food con bordes redondeados y cuando
    se paren en cada item poder se resalta en un circulo con relleno amarillo"
   ========================================================================== */
.bottom-app-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  height: 70px;
  background: rgba(20, 20, 26, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 230, 0, 0.35);
  border-radius: 36px; /* Bordes súper redondeados estilo App de Food */
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(255, 230, 0, 0.12);
}

.bottom-nav-item {
  position: relative;
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  height: 100%;
  cursor: pointer;
  transition: color 0.25s ease;
}

.nav-icon-circle {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%; /* Círculo perfecto */
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-muted);
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-icon-circle svg {
  width: 21px;
  height: 21px;
}

.nav-item-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: color 0.2s ease, transform 0.2s ease;
}

/* Resaltado en círculo con relleno amarillo al pararse (hover/focus/active) */
.bottom-nav-item:hover .nav-icon-circle,
.bottom-nav-item:focus-visible .nav-icon-circle,
.bottom-nav-item:active .nav-icon-circle,
.bottom-nav-item.active .nav-icon-circle {
  background: var(--brand-yellow);
  color: var(--text-dark);
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 8px 20px var(--brand-yellow-glow);
}

.bottom-nav-item:hover .nav-item-label,
.bottom-nav-item:focus-visible .nav-item-label,
.bottom-nav-item.active .nav-item-label {
  color: var(--brand-yellow);
  font-weight: 800;
}

.nav-cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-dark);
}

/* ==========================================================================
   MODAL DE PRODUCTO Y PERSONALIZACIÓN
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-sheet {
  width: 100%;
  max-height: 90dvh;
  background: var(--bg-card);
  border-top: 2px solid var(--brand-yellow);
  border-radius: 28px 28px 0 0;
  overflow-y: auto;
  position: relative;
  animation: slideUpModal 0.25s ease-out;
}

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

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 10, 12, 0.8);
  color: var(--text-white);
  font-size: 22px;
  cursor: pointer;
}

.modal-img-wrap {
  position: relative;
  height: 210px;
  width: 100%;
  background: #101014;
}

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

.modal-vibe-tag {
  position: absolute;
  bottom: 12px;
  left: 14px;
  background: var(--brand-yellow);
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 8px;
  font-weight: 700;
}

.modal-servings-badge {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(10, 10, 12, 0.88);
  color: var(--brand-yellow);
  border: 1px solid var(--brand-yellow);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.modal-body {
  padding: 18px 16px 26px;
}

.modal-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.modal-title-row h3 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.05;
  color: var(--text-white);
}

.modal-price {
  background: var(--brand-yellow);
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 10px;
  white-space: nowrap;
}

.modal-desc {
  font-size: 13.5px;
  line-height: 1.45;
  color: #D0D0DA;
  margin-bottom: 12px;
}

.modal-base-note {
  background: rgba(255, 230, 0, 0.1);
  border: 1px solid rgba(255, 230, 0, 0.35);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  color: #F4F4F6;
  margin-bottom: 14px;
}

.modal-option-section {
  margin-bottom: 14px;
}

.modal-option-section h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-yellow);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.flavor-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.modal-footer-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.qty-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-elevated);
  color: var(--text-white);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

#modal-qty-val {
  font-weight: 800;
  font-size: 16px;
}

.flex-1 {
  flex: 1;
}

/* LIGHTBOX CARTA OFICIAL */
#lightbox-modal {
  align-items: center;
  padding: 16px;
}

#lightbox-img {
  max-width: 100%;
  max-height: 88dvh;
  border-radius: 14px;
  border: 2px solid var(--brand-yellow);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--brand-yellow);
  color: var(--text-dark);
  font-size: 26px;
  font-weight: 800;
  cursor: pointer;
}

/* TOAST */
.app-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  z-index: 100;
  background: var(--brand-yellow);
  color: var(--text-dark);
  font-weight: 800;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  white-space: nowrap;
}

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

.hidden {
  display: none !important;
}
