/* @import url("../assets/css/root.css"); */

body {
  background-image: url(../assets/logos/back.jpg);
  background-color: var(--bg2-color);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: "Inter", sans-serif;
}

/* HEAD */
ul {
  list-style: none;
}

a {
  text-decoration: none;
}

.container {
  width: 100%;
  margin: 0;
}

/* TOP HEADER */
.top-header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 5rem;
  background-color: var(--clr);
  z-index: 1;
}

/* HEADER */
.header {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--gradient4-color);
  box-shadow: 0 2px 16px hsla(220, 32%, 8%, 0.3);
  z-index: 1;
}

/* NAV */
.nav {
  height: 3.5rem;
}

.nav__logo,
.nav__burger,
.nav__close {
  color: var(--bg-color);
}

.nav__data {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  padding: 0 1.3rem 0 1.3rem;
  justify-content: center;
  text-align: center;
}

.nav__logo img {
  width: 100px;
}

.nav__toggle {
  position: relative;
  width: 32px;
  height: 32px;
  margin: 1rem;
}

.nav__burger,
.nav__close {
  position: absolute;
  width: max-content;
  height: max-content;
  inset: 0;
  margin: auto;
  font-size: 2rem;
  cursor: pointer;
  transition: opacity 0.6s, transform 0.4s;
}

.nav__close {
  opacity: 0;
}

.nav__list {
  padding-top: 0;
}

.nav__list .nav__link {
  position: relative;
  color: var(--bg-color);
  margin-bottom: 1rem;
  text-decoration: none;
  text-align: center;
}

.nav__list .nav__link:hover {
  color: #ffcc00;
}

.nav__list .nav__link:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #ffcc00;
  transform: scaleX(0);
  transition: transform 0.6s ease;
  transform-origin: right;
}

.nav__list .nav__link:hover:after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__link {
  color: var(--bg-color);
  background-color: var(--gradient4-color);
  font-weight: 500;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.6s;
}

@media screen and (max-width: 1350px) {
  .nav__menu {
    width: 100%;
    height: calc(100vh - 3.5rem);
    overflow: auto;
    pointer-events: none;
    opacity: 0;
    transition: top 0.6s, opacity 0.3s;
  }

  .nav__menu::-webkit-scrollbar {
    width: 0;
  }

  .nav__list {
    background-color: var(--gradient4-color);
    padding-top: 0rem;
    margin-right: 1rem;
    margin-left: 1rem;
  }

  .show-menu {
    pointer-events: auto;
    opacity: 1;
    top: 3.5rem;
  }

  .nav__link {
    margin-bottom: 0 !important;
  }
}

.nav__link i {
  margin-left: 1rem;
}

.nav__link:hover {
  background-color: var(--gradient3-color);
}

.show-icon .nav__burger {
  opacity: 0;
  transform: rotate(90deg);
}

.show-icon .nav__close {
  opacity: 1;
  transform: rotate(90deg);
}

/* DROPDOWN */
.dropdown__item {
  cursor: pointer;
}

.dropdown__arrow {
  font-size: 1.25rem;
  font-weight: initial;
  transition: transform 0.6s;
}

.dropdown__link {
  padding: 1.25rem 1.25rem 1.25rem 1.25rem;
  color: var(--bg-color);
  background-color: var(--gradient5-color);
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.5rem;
  font-weight: 500;
  transition: background-color 0.6s;
}

.dropdown__link i {
  font-size: 1.25rem;
  font-weight: initial;
}

.dropdown__link:hover {
  background-color: var(--gradient3-color);
}

.dropdown__menu {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease-out;
}

.dropdown__item:hover .dropdown__menu {
  max-height: 1000px;
  transition: max-height 0.6s ease-in;
}

.dropdown__item:hover .dropdown__arrow {
  transform: rotate(180deg);
}

/* BOTON ARRIBA */

#scrollToTopBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: var(--gradient5-color);
  color: var(--bg-color);
  cursor: pointer;
  border-radius: 10px;
  font-size: 17px;
  padding: 1rem;
  transition: 0.6s;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px,
    rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px,
    rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

#scrollToTopBtn i {
  display: flex;
  align-items: center;
  justify-content: center;
}

#scrollToTopBtn:hover {
  background-color: var(--gradient4-color);
  transform: rotate(-45deg);
}

/* SCROLL BAR */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--dark-color);
}

::-webkit-scrollbar-thumb {
  background: var(--low-old-color);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:active {
  background: var(--low-new-color);
}

/* MEDIA QUERIES */
@media screen and (max-width: 425px) {
  .container {
    margin-inline: 1rem;
  }
}

@media screen and (min-width: 1350px) {
  .container {
    margin-inline: auto;
  }

  .nav {
    height: 5.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .nav__toggle {
    display: none;
    margin: 1rem;
  }

  .nav__list {
    height: 100%;
    display: flex;
    column-gap: 3rem;
  }

  .nav__link {
    height: 100%;
    padding: 0;
    justify-content: initial;
    column-gap: 0.25rem;
  }

  .nav__link:hover {
    background-color: transparent;
  }

  .dropdown__item {
    position: relative;
  }

  .dropdown__menu {
    max-height: initial;
    overflow: initial;
    position: absolute;
    left: 0;
    top: 2rem;
    opacity: 0;
    pointer-events: none;
  }

  .dropdown__item:hover .dropdown__menu {
    opacity: 1;
    top: 2.4rem;
    pointer-events: initial;
    transition: top 0.6s;
  }

  .nav__logo {
    padding: 0 2.5rem 0 2.5rem;
  }
}

@media (max-width: 768px) {
    .top-header {
        height: auto;
        display: grid;
        grid-template-areas: 
            "logo1 logo1"
            "logo2 logo3"
            "logo4 logo5";
        gap: 10px; 
        align-items: center; 
    }

    .nav__logo {
        margin: 5px; 
    }

  .logohea1 {
    grid-area: logo1;
  }

  .logohea2 {
    grid-area: logo2;
  }

  .logohea3 {
    grid-area: logo3;
  }

  .logohea4 {
    grid-area: logo4;
  }

  .logohea5 {
    grid-area: logo5;
  }
}

@media (max-width: 425px) {
  .top-header {
    gap: 0px;
  }

  .nav__logo {
    margin: 10px;
    padding: 10px;
    padding: 0;
  }

  .nav__logo img {
    width: 80px;
  }
}
