/* ====================================================================
   LIBERATI · NAVBAR + MOBILE MENU (compartido)
   ==================================================================== */

.nav-wrap {
  position: sticky;
  top: 12px;
  z-index: 50;
  padding: 0 12px;
  margin-top: 14px;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border: 1px solid rgba(20, 20, 43, .06);
  box-shadow: 0 6px 24px rgba(20, 20, 43, .06);
  border-radius: 999px;
  padding: 10px 14px 10px 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-900);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.01em;
}

.brand svg {
  width: 26px;
  height: 26px
}

.nav-links {
  display: none;
  gap: 28px;
  align-items: center;
  font-size: 15px;
  color: var(--brand-900)
}

.nav-links a {
  font-weight: 500
}

.nav-links a:first-child {
  font-weight: 600
}

.nav-links a.active {
  font-weight: 700;
  color: var(--brand-500)
}

.nav-links a:hover {
  color: var(--brand-500)
}

.nav-cta {
  border-radius: 999px;
  background: linear-gradient(90deg, #A8A7F0 0%, #5B58C8 100%);
  box-shadow: 0 8px 24px 0 rgba(124, 123, 232, 0.50);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 999px;
}

.nav-cta:hover {
  background: #5a64d6
}

.nav-cta.active {
  background: var(--brand-700)
}

.menu-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(20, 20, 43, .06);
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--brand-900);
  position: relative;
  border-radius: 2px
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: inherit;
  border-radius: 2px
}

.menu-btn span::before {
  top: -6px
}

.menu-btn span::after {
  top: 6px
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 43, .55);
  backdrop-filter: blur(6px);
  z-index: 60;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 90px 18px 20px;
}

.mobile-menu.open {
  display: flex
}

.mobile-menu .panel {
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lift);
}

.mobile-menu a {
  display: block;
  padding: 14px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--brand-900)
}

.mobile-menu a+a {
  margin-top: 4px
}

.mobile-menu a:hover {
  background: #f3f3fb
}

.mobile-menu .close {
  margin-left: auto;
  display: block;
  font-size: 14px;
  color: var(--muted);
  padding: 6px 10px
}

@media (min-width:1000px) {
  .nav-wrap {
    margin-top: 18px;
    top: 18px
  }

  .nav-links {
    display: flex
  }

  .menu-btn {
    display: none
  }
}