.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  height: 80px;
  box-sizing: border-box;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  font-family: 'Seasons';
}

/* ⬇️ Fijar navbar cuando el menú esté abierto */
body.menu-open .navbar {
  position: fixed;
  top: 0;
  width: 100%;
}

.logo {
  font-weight: bold;
  font-size: 18px;
}

.menu-icon {
  position: relative;
  width: 30px;
  height: 20px;
  cursor: pointer;
  display: block;
}

.menu-icon span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: #333;
  border-radius: 1px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-icon span:first-child {
  transform: translateY(-4px);
}

.menu-icon span:last-child {
  transform: translateY(4px);
}

.menu-icon.active span:first-child {
  transform: rotate(45deg);
}

.menu-icon.active span:last-child {
  transform: rotate(-45deg);
}

.desktop-links {
  display: none;
}

.desktop-links a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-weight: 800;
  transition: color 0.3s ease;
}

.desktop-links a:hover {
  color: #618EA0;
}

.mobile-menu {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background: #f9f9f9;
  max-height: 0;
  overflow: hidden;
  text-transform: uppercase;
  font-family: 'Seasons';
  opacity: 0;
  transform: translateY(-20px);
  z-index: 1002;
  transition: transform 0.3s ease, opacity 0.3s ease, max-height 0.3s ease;
}

.mobile-menu.open {
  max-height: 600px;
  opacity: 1;
  transform: translateY(0);
  text-align: center;
}

.mobile-menu a {
  display: block;
  padding: 30px 20px;
  border-bottom: 1px solid #ddd;
  text-decoration: none;
  color: #333;
  font-size: 24px;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.14s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.14s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-menu.open a.show-link {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu.open a.hide-link {
  opacity: 0;
  transform: translateX(-30px);
}

.overlay {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  z-index: 1001;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 1280px) {
  .menu-icon {
    display: none;
  }

  .desktop-links {
    display: flex;
  }

  .mobile-menu,
  .overlay {
    display: none;
  }
}

.no-scroll {
  overflow: hidden;
  height: 100vh;
  touch-action: none;
}
