.menu {
  list-style: none;
  display: flex;
  gap: 30px;
  padding: 0;
  margin: 0;
}

.menu li {
  display: inline;
}

.menu a {
  font-size: 12pt;
  font-weight: 400;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.menu a:hover {
  opacity: 0.8;
}
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  background-color: transparent !important;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 2px 0;
  transition: 0.4s;
}
.navbar {
  background-color: #1d9d6f;
  padding: 15px 0;
  transition: top 0.8s ease-in-out;
  top: -200px;
}

.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  /*animation: smoothScroll 1s forwards;*/
  transition: top 0.8s ease-in-out;
}

@keyframes smoothScroll {
  0% {
    transform: translateY(-40px);
  }
  100% {
    transform: translateY(0px);
  }
}
/* Estilos para dispositivos móviles */
@media (max-width: 1199px) {
  .menu a {
    font-size: 12pt;
  }
}
@media (max-width: 960px) {
  .hamburger {
    display: flex;
    margin: 0;
  }

  .menu {
    position: absolute;
    flex-direction: column;
    background-color: #1d9d6f;
    top: 70px; /* Posiciona el menú justo debajo del nav */
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    z-index: 100;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    gap: 5px;
  }

  .menu.active {
    max-height: 500px; /* Altura máxima cuando está activo */
  }

  .menu li {
    margin: 0;
    padding: 0.6rem;
    border: none;
    text-align: center;
  }

  /* Transformación a X cuando está activo */
  .hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-4px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  /* Ajuste para que el menú no flote sobre el contenido */
  nav {
    margin-bottom: 0;
  }

  main {
    padding-top: 1rem;
  }
}
