/* nav */

#navbar {
  position: fixed;
  width: 100%;
  height: 68px;
  transition: height 200ms ease-out;
  z-index: 999;
}

#navbar a {
  font-family: var(--ff-btn);
  /* text-transform: uppercase; */
  font-weight: 600;
  letter-spacing: 1.2px;
}

#isotipo {
  width: var(--iso);
  transition: width 200ms ease-out;
}

.logotipo {
  min-width: min-content;
  font-size: var(--logo);
  font-weight: 700;
  transition: font-size 200ms ease-out;
}

.logotipo span {
  color: #a593ff;
  font-weight: 800;
}

#navbar.nav-active {
  background: linear-gradient(to right, var(--clr-sec), var(--clr-nav));
  height: 60px;
}

.logo.nav-active #isotipo {
  width: calc(var(--iso) / 1.25);
}

.logo.nav-active .logotipo {
  font-size: calc(var(--logo) / 1.1);
}

.hambur-cont {
  display: none;
  width: 28px;
  height: 24px;
}

.menu-mobile {
  /* width: 0; */
  transform: translateX(120%);
  position: absolute;
  height: 100vh;
  top: 0;
  right: 0;
  padding: 4rem;
  background: var(--clr-sec);
  box-shadow: 0 0 18px black;
  font-size: var(--fnt-h3);
  z-index: 990;
  transition: transform 150ms ease-out;
}


@media (max-width: 580px) {
  .menu {
    display: none;
  }
  .hambur-cont {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 992;
  }
  .hambur-cont span {
    width: 100%;
    height: 4px;
    background: white;
    border-radius: 5px;
    transition: width 150ms ease-out;
  }
  .hambur-cont span:nth-of-type(odd) {
    width: 80%;
  }
  .hambur-cont.open span {
    width: 80%;
  }
  .hambur-cont.open span:nth-of-type(odd) {
    width: 100%;
  }
  .menu-mobile.open {
    width: min-content;
    transform: translateX(0);
  }
}

