/* =============================================
   Plataforma AP — Navegación
   ============================================= */
.nav {
  background: var(--color-nav-bg);
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo-area { display: flex; align-items: center; gap: 8px; }
.logo-chain {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  background: var(--bt);
  border-radius: 7px;
  flex-shrink: 0;
}
.logo-chain svg { width: 18px; height: 18px; }
.logo-text { color: white; font-size: 20px; font-weight: 700; }

/* Tabs */
.nav-tabs {
  display: flex;
  gap: 4px;
  padding: .5rem var(--space-lg);
  background: var(--color-tabs-bg);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 56px;
  z-index: 99;
}
.nav-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 7px 16px;
  border: none;
  background: none;
  border-radius: 7px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-sec);
  font-family: inherit;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: all .15s;
  flex-shrink: 0;
}
.tab-btn.active { background: var(--bp); color: var(--text-white); }
.tab-btn:hover:not(.active) { background: white; }

/* Menú usuario */
.nav-user-menu { position: relative; }
.nav-user-btn {
  background: rgba(255,255,255,.15);
  border: none;
  color: white;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: background .15s;
}
.nav-user-btn:hover { background: rgba(255,255,255,.25); }

.nav-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: white;
  border-radius: var(--r);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  z-index: 999;
  overflow: hidden;
}
.nav-dropdown button {
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: none;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--danger);
  font-family: inherit;
  transition: background .15s;
}
.nav-dropdown button:hover { background: var(--danger-light); }