/* CONTENEDOR NAV */
#nav-container {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 51px;
  background-color: var(--mikros-nav);
  border-bottom: 1px solid var(--mikros-border);
  overflow-x: auto;
  scrollbar-width: auto;
  width: 100%;
  padding: 7px 0;
}

/* BARRA */
.barraP {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  width: min(100%, 720px);
}

.barraP::-webkit-scrollbar {
  display: none;
}

/* LINKS */
.barraP a {
  color: var(--mikros-text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--mikros-border);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.barraP a:hover {
  background-color: rgba(32, 199, 192, 0.16);
  border-color: var(--mikros-azul);
  color: var(--mikros-accent-teal-soft);
}

/* LINK ACTIVO (si luego lo usas) */
.barraP a.activo {
  background-color: var(--mikros-azul);
  border-color: var(--mikros-azul);
  color: white;
}

/* BOTÓN LOGOUT */
.btn-logout {
  margin-left: auto;
  background-color: transparent;
  color: var(--mikros-danger);
  border: 1px solid rgba(229, 57, 53, 0.4);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background-color: rgba(229, 57, 53, 0.15);
  border-color: var(--mikros-danger);
}

/* Forzar visibilidad visual en Chrome, Edge y Safari */
#nav-container::-webkit-scrollbar {
  width: 8px;
  display: block;
}

#nav-container::-webkit-scrollbar-thumb {
  background-color: rgba(37, 168, 255, 0.65);
  /* Color de la barra */
  border-radius: 10px;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  #nav-container {
    flex-direction: column;
    justify-content: flex-start;
    min-height: 159px;
    max-height: 170px;
    overflow-y: auto;
    padding: 5px 6px;
  }

  .barraP {
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
  }

  .btn-logout {
    width: 100%;
    margin-left: 0;
    text-align: center;
  }

  .barraP a {
    padding: 6px 10px;
    font-size: 0.8rem;
    width: 100%;
  }
}
