#nav {
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 999;
  &.hide-logo {
    #nav-logo {
      transform: translateX(calc(-100% - 25rem)) !important;
    }
    #nav-content ul {
      transform: translateX(calc(
        (var(--nav-ul-left)) * -1 + 25rem
      ));
    }
  }
}

#nav-banner, #nav-content {
  transition: transform 1s var(--curve);
}

#nav-banner {
  display: flex;
  width: 100%;
  height: 0rem;
  font-size: 14rem;
  background: var(--green);
  position: relative;
  z-index: 9;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-transform: uppercase;
  overflow: hidden;
  cursor: pointer;
  font-weight: 500;
  transition: height 0.5s ease;
  strong {
    font-weight: 900;
  }
}
#nav-banner.open {
  height: 35rem;

}
.nav-banner-item {
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-banner-item span, .nav-banner-item svg {
  transition: transform 1s var(--in-out);
}
.nav-banner-item svg {
  width: auto;
  height: 0.9em;
  position: relative;
  top: -0.1em;
  margin-left: 10rem;
  transition-delay: 0.05s;
}
.nav-banner-item:last-child {
  position: absolute;
}
.nav-banner-item:last-child span, .nav-banner-item:last-child svg {
  transform: translateY(30rem);
}
#nav-banner:hover .nav-banner-item:last-child span, #nav-banner:hover .nav-banner-item:last-child svg {
  transform: translateY(0);
}
#nav-banner:hover .nav-banner-item:first-child span, #nav-banner:hover .nav-banner-item:first-child svg {
  transform: translateY(-30rem);
}
#nav-content {
  height: 77rem;
  position: relative;
  width: 100%;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25rem;
  background: var(--black);
  overflow: hidden;
}
#nav-logo {
  padding: 8rem 0;
  width: auto;
  height: 100%;
  transition: transform 1.5s var(--curve);
}
#nav-logo img {
  width: auto;
  height: 100%;
}
#nav-content ul {
  height: 100%;
  display: flex;
  align-items: center;
  list-style: none;
  text-transform: uppercase;
  padding: 0;
  margin: 0;
  gap: 0 24rem;
  font-size: 16rem;
  transition: transform 1.5s var(--curve);
  li {
    height: 100%;
    display: inline-flex;
    align-items: center;
    a {
      height: 100%;
      display: inline-flex;
      align-items: center;
      position: relative;
      &::before {
        content: '';
        width: 6px;
        height: 6px;
        background: var(--green);
        display: inline-block;
        position: absolute;
        left: -12px;
        top: 50%;
        transform: translateY(-50%) scale(0);
        border-radius: 50%;
        transition: transform 1s var(--curve);
      }
      &.is-active {
        color: var(--title-color);
        &::before {
          transform: translateY(-50%) scale(1);
        }
      }
    }
    svg {
      width: 10rem;
      margin-left: 10rem;
      fill: currentColor;
      transition: transform 1s var(--curve);
    }
    &:hover {
      a {
        color: var(--title-color);
      }
    }
    &.open {
      svg {
        transform: rotate(180deg);
      }
    }
  }
}
#nav-right {
  display: flex;
  align-items: center;
  gap: 0 35rem;
}
#menu-toggle {
  display: none;
  width: 18px;
  height: 24px;
  align-items: center;
  justify-content: center;
  color: inherit;
  cursor: pointer;
  svg {
    width: 100%;
    fill: currentColor;
    opacity: 0.8;
    path {
      transform-origin: center center;
      transform-box: fill-box;
      transition: transform 1s var(--curve);
    }
  }
}
#nav-profile-logo {
  display: flex;
  align-items: center;
}


#nav-profile-logo:hover {
  cursor: pointer;
}


#nav-profile-logo  {
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  svg {
    width: 100%;
    fill: currentColor;
    opacity: 0.8;
    transition: transform 1s var(--curve), opacity 1s var(--curve);
  }
  &:hover {
    svg {
      transform: scale(1.2);
      opacity: 1;
      color: var(--title-color);
    }
  }
}

#nav-profile-logo .profile-intials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  position: relative;
  line-height: 1;
  border-radius: 50%;
  &::before, &::after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    border-radius: 50%;
  }
  &::before {
    opacity: 0.2;
    background: currentColor;
  }
  &::after {
    z-index: 1;
    box-sizing: border-box;
    border: 1px solid transparent;
    transition: border 1s var(--curve);
  }
  &:hover {
    &::after {
      border: 1px solid var(--title-color);
      opacity: 0.7;
    }
  }
}

#nav-profile-logo .profile-intials span {
  font-family: 'Plexes';
  font-size: 16px;
  line-height: 18px;
  font-weight: 900;
  color: var(--title-color);
  position: relative;
  top: 0.05em;
}

#nav-profile-logo .profile-dropdown {
  position: fixed;
  right: 0;
  top: 62px;
  width: 300px;
  height: fit-content;
  border-radius: 5px;
  background-color: #101010;
  z-index: 1;
  padding-left: 20px;
  padding-right: 20px;
  display: none;
}

#nav-profile-logo .profile-dropdown.show {
  display: block;
}

#nav-profile-logo .profile-dropdown-options {
  display: flex;
  gap: 10px;
  flex-direction: column;
  padding-bottom: 10px;
  padding-top: 30px;

}
#nav-profile-logo .profile-dropdown .user-name {
  padding-top: 24px;
  font-size: 24px;
  color: var(--title-color);
}
#nav-profile-logo .profile-dropdown .dropdown-item {
  font-size: 16px;
  font-style: 500;
  transition: opacity 1s var(--curve);
  &:hover span {
    opacity: 1;
  }
}

#nav-profile-logo .profile-dropdown .dropdown-item:last-child {
  border-top: 1px solid #303030;
  padding-top: 12px;
}
#nav-profile-logo .profile-dropdown .dropdown-item span {
  text-transform: uppercase;
  color: var(--title-color);
  opacity: 0.6;
}

#nav-search {
  width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  background: transparent;
  border: none;
  outline: none;
  color: inherit;
  cursor: pointer;
  svg {
    width: 100%;
    fill: currentColor;
    opacity: 0.8;
    transition: transform 1s var(--curve), opacity 1s var(--curve);
  }
  &:hover {
    color: var(--title-color);
    svg {
      transform: scale(1.2);
      opacity: 1;
    }
  }
}
#nav {
  .main-menu-dropdown {
    width: 100%;
    position: absolute;
    justify-content: center;
    left: 0;
    top: 100%;
    z-index: 0;
    background: var(--black);
    display: flex;
    gap: var(--gap);
    padding: 60rem var(--margin);
    transition: transform 1s var(--curve);
    .menu-card {
      width: calc(var(--column) * 4 + var(--gap) * 3);
      .menu-card-media {
        width: 100%;
        aspect-ratio: 424 / 247;
        margin-bottom: 28rem;
        display: flex;
        flex-shrink: 0;
        border-radius: 16rem;
        overflow: hidden;
        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          transition: transform 1s var(--curve);
        }
      }
      .menu-card-header {
        display: flex;
        align-items: center;
        strong {
          font-size: 32rem;
          color: var(--white);
        }
      }
      .menu-card-icon {
        width: 18rem;
        height: 18rem;
        background: var(--green);
        display: inline-block;
        margin-right: 20rem;
        position: relative;
        top: -0.12em;
      }
      p {
        max-width: 410rem;
        font-size: 18rem;
        line-height: 1.44444444;
        margin: 0;
        margin-top: 10rem;
      }
      &[data-icon="trangle"] {
        .menu-card-icon {
          clip-path: polygon(0 0, 80% 50%, 0% 100%);
        }
      }
      &[data-icon="circle"] {
        .menu-card-icon {
          border-radius: 50%;
        }
      }
      &:hover {
        .menu-card-media {
          img, video {
            transform: scale(1.1);
          }
        }
        .menu-card-icon {
          animation: blink 0.75s infinite;
        }
      }
    }

    &:not(.visible) {
      transform: translateY(-100%);
      pointer-events: none;
    }
  }
}
.top-bar-btn {
  padding: 11rem 24rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-size: 16rem;
  position: relative;
  color: var(--title-color);
  &::before {
    content: '';
    width: 100%;
    height: 100%;
    background: currentColor;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0.12;
    border-radius: 8rem;
    transition: opacity 1s var(--curve);
  }
  img, svg {
    width: auto !important;
    height: 1.2em !important;
  }
  span {
    margin: 0 12rem;
  }
  svg {
    height: 0.8em;
    fill: currentColor;
  }
  &:hover {
    &::before {
      opacity: 0.3; 
    }
  }
}
html[data-theme="light"] {
  #nav:not(.dark) {
    #nav-content {
      background: var(--white);
    }
    #nav-profile-logo .profile-intials {
      &::before {
        opacity: 0.1;
      }
    }
    .main-menu-dropdown {
      background: var(--white);
      .menu-card {
        .menu-card-header strong {
          color: var(--black);
        }
      }
    }
    .profile-dropdown {
      background-color: #F0F0F0;
      .dropdown-item {
        &:last-child {
          border-top: 1px solid #C0C0C0;
        }
      }
    }
  }
}
#nav.dark {
  color: var(--gray);
  --title-color: var(--white);
}
#menu {
  width: 100%;
  height: 100dvh;
  position: fixed;
  z-index: 998;
  top: 0;
  left: 0;
  background: var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 16px;
  padding-top: calc(48px + var(--nav-height));
  box-sizing: border-box;
  transition: opacity 1s var(--curve);
  #menu-items {
    ul {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      font-size: 24px;
      line-height: 1;
      padding: 0;
      margin: 0;
      li {
        width: 100%;
        list-style: none;
        a {
          width: 100%;
          display: flex;
          align-items: center;
          justify-content: space-between;
          svg {
            width: 20px;
            fill: currentColor;
          }
        }
        &:not(:last-child) {
          margin-bottom: 30px;
        }
      }
    }
  }
  #menu-bottom {
    .menu-button {
      width: 100%;
      height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
      font-size: 16px;
      font-weight: 500;
      text-transform: uppercase;
      cursor: pointer;
      background: transparent;
    }
    .login, .profile {
      background: white;
      color: black;
      margin-bottom: 16px;
    }
    #menu-gatorade {
      background: #303030;
      justify-content: center;
      img, svg {
        width: auto;
        height: 1.2em;
      }
      span {
        margin: 0 12rem;
      }
      svg {
        height: 0.8em;
        fill: currentColor;
      }
    }
    #menu-socials {
      display: flex;
      gap: 0 24px;
      margin-top: 32px;
      a {
        width: 21px;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        svg {
          width: 100%;
          height: auto;
          fill: currentColor;
        }
      }
    }
  }
  &:not(.show) {
    opacity: 0;
    pointer-events: none;
  }
}
#menu-education {
  width: 100%;
  height: 100dvh;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  background: var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 120rem 16px;
  padding-top: 0;
  padding-bottom: 40px;
  box-sizing: border-box;
  transition: opacity 1s var(--curve);
  .top {
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    #menu-education-back, #menu-education-close {
      width: 24px;
      height: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      position: relative;
      svg {
        width: auto;
        height: 16px;
        fill: currentColor;
      }
    }
    & #menu-education-back {
      left: -4px;
    }
    & #menu-education-close {
      right: -4px;
      opacity: 0.8;
    }
  }
  .items {
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    font-size: 24px;
    line-height: 1;
    a {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      position: relative;
      i {
        width: 9px;
        height: 9px;
        background: var(--green);
        display: inline-block;
        margin-right: 11px;
        position: relative;
        top: -0.12em;
      }
      svg {
        height: 0.75em;
        fill: currentColor;
        position: absolute;
        right: 0;
      }
      &[data-icon="trangle"] {
        i {
          clip-path: polygon(0 0, 80% 50%, 0% 100%);
        }
      }
      &[data-icon="circle"] {
        i {
          border-radius: 50%;
        }
      }
      &:not(:last-child) {
        margin-bottom: 24px;
      }
    }
  }
  .continue-btn {
    width: 100%;
    margin-top: auto;
    color: inherit;
  }
  &:not(.show) {
    opacity: 0;
    pointer-events: none;
  }
}
html.menu-open {
  &, body {
    overflow: hidden !important;
  }
  #nav-banner, #nav-content {
    transform: translateY(-35px);
  }
  #menu-toggle {
    svg {
      path {
        &:nth-child(1) {
          transform: translateY(6px) rotate(45deg);
        }
        &:nth-child(2) {
          opacity: 0;
        }
        &:nth-child(3) {
          transform: translateY(-6px) rotate(-45deg);
        }
      }
    }
  }
}
html.logged {
  #menu {
    .login {
      display: none !important;
    }
  }
}
html:not(.logged) {
  #menu {
    .profile {
      display: none !important;
    }
  }
}
#nav-gatorade svg.arrow-latam-btn {
  height: 0.8em !important;
}
#nav-gatorade > span {
  min-width: fit-content;
}
@media (max-width: 1024px) {
  #nav-banner {
    height: 35px;
    font-size: 12px;
  }
  #nav-content {
    padding: 0 16px;
  }
  #menu-toggle {
    display: inline-flex;
  }
  #nav-content ul, #nav-gatorade {
    display: none;
  }
}
@media (max-width: 740px) {
  #nav-banner {
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    .nav-banner-item {
      width: auto;
      margin: 0 0.5em;
      position: static !important;
      opacity: 1;
      span, svg {
        transform: none;
      }
    }
  }
}
@media (min-width: 581px) {
  #nav .show-on-mobile {
    display: none !important;
  }
}
@media (max-width: 580px) {
  #nav {
    .hide-on-mobile {
      display: none !important;
    }
    #nav-content {
      height: 64px;
    }
    #nav-logo {
      width: auto;
      height: 32px;
      padding: 0;
      position: relative;
      top: -2px;
    }
    #nav-profile-logo {
      display: none;
    }
  }
}
@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}