/* ============================================================
   QUINDES APP — nav.css
   Bottom navigation bar
   ============================================================ */

/* ══ BOTTOM NAV ══ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  height: 64px;
  display: flex;
  align-items: stretch;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--header-bg);
  backdrop-filter: blur(100px);
  -webkit-backdrop-filter: blur(20px);
}
html.theme-dark  .bottom-nav { background: var(--header-bg); }
html.theme-light .bottom-nav { background: var(--header-bg); }

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  color: var(--text3);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease;
  padding-top: 6px;
  padding-bottom: 2px;
}
.nav-item::before {
  content: '';
  position: absolute;
  top: 6px;
  width: 56px; height: 30px;
  background: var(--chip-bg);
  border-radius: 15px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.nav-item.nav-active { color: var(--accent); }
.nav-item.nav-active::before {
  opacity: 1;
  animation: nav-pill-in 0.35s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes nav-pill-in {
  0%   { clip-path: circle(0% at 50% 50%); opacity: 0; }
  100% { clip-path: circle(100% at 50% 50%); opacity: 1; }
}
.nav-item .material-icons {
  font-size: 22px !important;
  position: relative; z-index: 1;
}
.nav-item-label {
  font-size: 9px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.07em !important;
  position: relative; z-index: 1;
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

/* Padding para que el contenido no quede tapado por la nav */
.app-scroll {
  padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important;
}