/* NAVBAR HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.8rem 5%;
  display: flex;
  justify-content: center;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-20px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background 0.45s ease,
    border-color 0.45s ease,
    box-shadow 0.45s ease;
}

header.scrolled {
  background: rgba(0, 0, 0, 0.02);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(170, 117, 12, 0.4);
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.1),
    0 4px 20px rgba(170, 117, 12, 0.25);
}

header.scrolled.menu-active {
  border-bottom-color: transparent;
  box-shadow: none;
}

.nav-container {
  width: 100%;
  max-width: 1400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 45px;
  display: flex;
  align-items: center;
  pointer-events: auto;
  overflow: hidden;
  text-decoration: none;
}

.logo img {
  height: 100%;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  color: var(--color-text);
  text-decoration: none;
  margin-left: 2.5rem;
  font-size: 0.85rem;
  font-weight: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 3px;
  transition: color 0.3s;
}

.nav-links a:not(.btn-primary) {
  position: relative;
  padding: 5px 0;
}

.nav-links a:not(.btn-primary)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background-color: var(--color-green-300);
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-links a:not(.btn-primary):hover {
  color: var(--color-oro-900);
}

.nav-links a:not(.btn-primary):hover::after {
  width: 100%;
}

.btn-primary {
  border: 1px solid var(--color-gold);
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-none);
  color: var(--color-gold);
  font-weight: var(--fw-bold);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  margin-left: 2.5rem;
  transition: all 0.3s;
}

.btn-primary:hover {
  background-color: var(--color-gold);
  color: var(--color-bg) !important;
}

/* MOBILE TOGGLE */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  pointer-events: auto;
  z-index: 101;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-gold);
  transition: all 0.3s ease;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  header {
    padding: 1.2rem 5%;
  }

  .logo {
    height: 35px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    margin: 1.5rem 0;
    font-size: 1.2rem;
  }

  .btn-primary {
    margin-left: 0;
    margin-top: 1rem;
  }

  /* Burger Animation */
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }
}
