/*///////NAVBAR///////*/
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1vw 16vw;
  position: fixed;
  top: 0;
  left: 0;
  width: 68vw;
  background: rgb(102, 204, 204);
  background: linear-gradient(180deg, rgb(43 100 100) 0%, rgb(102 204 204 / 0%) 100%);
  z-index: 999;
  transition: background-color 0.5s ease-in-out;
}

.navbar a {
  text-decoration: none;
  color: var(--white-color);
  margin: 0 15px;
  font-size: 24px;
  position: relative;
}

.navbar a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -2px;
  left: 0;
  background-color: var(--white-color);
  transition: width 0.3s;
}

.navbar a:hover::after {
  width: 100%;
}

.navbar a:visited::after,
.navbar a:active::after {
  width: 100%;
}

.navbar img {
  height: 75px;
}

.menu-toggle {
  display: none;
}

@media (max-width: 767px) {
  .navbar {
    width: 96vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1vw 2vw;
    position: fixed;
    top: 0;
    left: 0;
    background: rgb(102, 204, 204);
    background: linear-gradient(180deg, rgb(43 100 100) 0%, rgb(102 204 204 / 0%) 100%);
    z-index: 999;
    transition: background-color 0.5s ease-in-out;
  }

  .navbar.active {
    background-color: rgba(102, 204, 204, 0.83); /* Cambiar color con transparencia */
    opacity: 1;
  }

  .navbar img {
    height: 65px;
    margin: 2vw 8vw;
  }

  .navbar-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(102, 204, 204, 0.83);
    width: 100%;
    padding: 10px 0;
    transition: background-color 0.5s ease-in-out; /* Transición de color */
  }

  .navbar-links.active {
    display: flex;
  }

  .navbar-links a {
    margin: 10px 0;
    text-align: center;
    text-decoration: none;
    color: white;
    font-size: 24px;
    position: relative;
  }

  .menu-toggle {
    display: block;
    cursor: pointer;
  }

  .menu-toggle .hamburger {
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: transform 0.4s;
  }

  .menu-toggle.active .hamburger {
    transform: rotate(45deg);
  }

  .menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }
}
