/* ═══════════════════════════════════════════════
   navbar.css – Barra de navegación
   ═══════════════════════════════════════════════ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background .3s ease, box-shadow .3s ease;
}

.navbar.scrolled {
  background: rgba(11,31,58,.97);
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
  backdrop-filter: blur(12px);
}

.navbar__container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ─── BRAND ──────────────────────────────────── */
.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navbar__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37,99,235,.4);
}

.navbar__brand-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.01em;
}

/* ─── MENU ───────────────────────────────────── */
.navbar__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.navbar__link {
  display: inline-block;
  padding: 6px 14px;
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.navbar__link:hover {
  color: var(--white);
  background: rgba(255,255,255,.08);
}

.navbar__link.active {
  color: var(--orange);
}

.navbar__link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

/* ─── HAMBURGER ──────────────────────────────── */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar__toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__toggle.open span:nth-child(2) {
  opacity: 0;
}
.navbar__toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 768px) {
  .navbar__toggle {
    display: flex;
  }

  .navbar__menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 4px;
    border-top: 1px solid rgba(255,255,255,.08);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }

  .navbar__menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .navbar__link {
    padding: 10px 12px;
    font-size: .95rem;
  }

  .navbar__link.active::after {
    display: none;
  }
}
