/* nav */

#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--navbar);
  transition: height 200ms ease-out, background 200ms ease-out, box-shadow 200ms ease-out;
  box-shadow: 0 0 10px #000000aa;
  z-index: 999;
  border-bottom: 1px white solid;
  background: #fefefeaa;
  backdrop-filter: blur(6px);
}

.menu {
  width: 100%;
  justify-content: space-evenly;
}

#navbar a, #navbar div {
  letter-spacing: 1.2px;
  font-size: clamp(1.0rem, 1.8vw, 1.4rem);
}

#navbar .menu a, #navbar .menu div {
  color: #28306e;
}

#logo {
  display: block;
  transition: width 200ms ease-out;
  width: var(--logo);
  overflow-y: hidden;
  margin-left: -1rem;
  padding-left: 1rem;
}

#logo img {
  max-width: 100%;
  height: auto;
}

#navbar.nav-active {
  height: 60px;
  box-shadow: 0 0 12px black;
}

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

.dropdown, .subdropdown {
  display: none;
  position: absolute;
  box-shadow: 0 8px 8px #00000088;
  transition: all 0.3s ease;
  /* opacity: 0; */
  /* visibility: hidden; */
}

.dropdown {
  top: 100%;
  left: 0;
  transform: translateY(18px);
}

.subdropdown {
  top: 0;
  left: 100%;
}

.dropdown.show, .subdropdown.show {
  opacity: 1;
  visibility: visible;
  display: block;
  z-index: 999;
}

.dropdown li {
  background-color: white;
  outline: solid 1px #888888aa;
}

.dropdown a {
  width: 100%;
  padding: 2rem 2rem;
  text-wrap: nowrap;
  margin-right: 3rem;
}

.dropdown img {
  width: 3rem;
  height: 3rem;
  margin: 1rem;
}

.dropdown:hover, .subdropdown:hover {
  display: block !important;
}

.dropdown li:hover, .dropdown li:active {
  background-color: var(--clr-skyblue);
  color: white;
}

.dropdown li:hover > a, .dropdown li:active > a {
  color: white !important;
}

.menu-mobile {
  transform: translateX(120%);
  position: absolute;
  height: 100vh;
  max-width: 380px;
  top: 0;
  right: 0;
  background-color: white;
  box-shadow: 0 0 18px black;
  font-size: var(--fnt-h3);
  z-index: 990;
  transition: transform 250ms ease-out;
  /* text-align: center; */
}

.menu-mobile a {
  display: block;
}

.dom, .pro, .menu-domestico, .menu-profesional {
  max-height: 0;
  display: none;
  overflow: hidden;
  transition: max-height 250ms ease-out;
}

.dom.open, .pro.open, .menu-domestico.open, .menu-profesional.open {
  max-height: 500px;
  display: block;
}

.hover-blue {
  padding: 1rem;
}

.hover-blue:hover, .hover-blue:active {
  background-color: var(--clr-blue);
  color: white;
}

.prods::after, .dom::after, .pro::after {
  content: "▼";
  margin-left: 8px;
  font-size: 12px;
}

.prods.open::after, .dom.open::after, .pro.open::after {
  content: "▲";
  transform: rotate(180deg);
}

.dom, .pro {
  padding-left: 2rem;
}

.menu-domestico, .menu-profesional {
  padding-left: 3rem;
}


@media (max-width: 1560px) {
  .menu {
    display: none;
  }
  #navbar {
    justify-content: space-between;
    background: #ffffff;
    backdrop-filter: unset;
  }
  .hambur-cont {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 992;
  }
  .hambur-cont span {
    width: 100%;
    height: 4px;
    background: var(--clr-blue);
    border-radius: 5px;
    transition: width 150ms ease-out, background 100ms ease-in;
  }
  .hambur-cont span:nth-of-type(odd) {
    width: 80%;
  }
  .hambur-cont.open span {
    width: 80%;
    /* background: white; */
  }
  .hambur-cont.open span:nth-of-type(odd) {
    width: 100%;
  }
  .menu-mobile.open {
    width: 360px;
    max-width: 80%;
    transform: translateX(0);
  }
}

