@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* ----------------------menu horizontal--------------------------- */
.header{
  position: fixed;
  top: 45px;
  width: 100%;
  z-index: 10;
  transition: 0.6s;
  /* display: flex; */
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.2); 
  font-weight: 600; 
}
/* .header .container{
  align-items: center;
  justify-content: space-between; 
} */
/* efecto de la barra de navegación al desplazarse */
header.down{
  top: 0px;
  background: linear-gradient(to right, #141e30, #243b55); 
}
.logo img{ 
  height: 80px;  
}
.menu{
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.header .menu .head{
  display: none;  
}
.header .menu ul{
  list-style: none;  
}
.header .menu > ul >li{
  display: inline-block;
}
.header .menu > ul >li:not(:last-child){
  margin-right: 40px;
}
.header .menu .dropdown{
  position: relative;
}
.header .menu a{
  text-decoration: none;
  text-transform: capitalize;
  font-size: 16px;
  color: hsl(0, 0%, 100%);
  line-height: 1.5;
  display: block;
}
.header .menu > ul > li > a{
  padding: 24px 0;
}
.header .menu > ul > .dropdown > a{
  padding-right: 15px;
}
.header .menu i{
  font-size: 10px;
  pointer-events: none;
  user-select: none;
  position: absolute;
  color: hsl(0, 0%, 100%);
  top: calc(50% - 5px);
}
.header .menu > ul > li > i{
  right: 0;
}
.header .menu .sub-menu{
  position: absolute;
  top: 100%;
  left: 0;
  width: 300px;
  padding: 15px 0;
  background-color: hsl(229, 54%, 51%);
  box-shadow: 0 0 5px hsla(0, 0%, 0%, 0.5);
  z-index: 1;
  transform-origin: top;
  transform: scaleY(0);
  visibility: hidden;
  opacity: 0;
}
.header .menu .sub-menu-right{
  left: 100%;
  top: 0;
}
.header .menu li:hover > .sub-menu{
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: all 0.5s ease;
}
.header .menu .sub-menu a{
  padding: 6px 24px;
}
.header .menu .sub-menu .dropdown > a{
  padding-right: 34px;
}
.header .menu .sub-menu span{
  background-image: linear-gradient(hsl(0, 0%, 100%),hsl(0, 0%, 100%));
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.5s ease;
}
.header .menu .sub-menu li:hover > a > span{
  background-size: 100% 1px;
}
.header .menu .sub-menu i{
  transform: rotate(-90deg);
  right: 24px;
}
.header-right{
  display: flex;
}
.header-right > *{
  margin-left: 25px;
}
.header-right .open-menu-btn{
  display: none;
}
#sidebarmenu{
  display: none;
  color: #fff;
  font-size: 30px;
}

/* responsive */
@media (max-width: 900px) {
  .header{    
    top: 65px; 
    border-bottom: 1px solid hsla(0, 0%, 0%, 0);     
  }
  #sidebarmenu{
    display: initial;
    margin-left: 12px;
  }
  .logo img{ 
    display: none;  
  } 
  header.down{
    top: 15px;
    background: rgba(255, 255, 255, 0.2);     
  }
  .menu{
    display: none;
  } 
  .menu.active{
    display: block;
  }
  .header .menu{    
    right: 0;
    top: 0;
    width: 320px;
    height: 100%;
    background-color: hsl(229, 54%, 51%);
    padding: 15px 30px 30px;
    overflow-y: auto;
    z-index: 1;    
  }
  .header .menu.open{
    transform: none;
  }
  .header .menu .head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
  }
  .header .menu > ul > li{
    display: block;
  }
  .header .menu > ul > li:not(:last-child){
    margin-right: 0;
  }
  .header .menu li{
    border-bottom: 1px solid hsla(0, 0%, 100%, 0.25);
  }
  .header .menu li:first-child{
    border-top: 1px solid hsla(0, 0%, 100%, 0.25);
  }
  .header .menu > ul > li > a{
    padding: 12px 0;
  }
  .header .menu > ul > .dropdown > a{
    padding-right: 34px;
  }
  .header .menu i{
    height: 34px;
    width: 34px;
    border: 1px solid hsla(0, 0%, 100%, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: pointer;
    top: 7px;
  }
  .header .menu .dropdown.active > i{
    background-color: hsla(0, 0%, 100%, 0.25);
    transform: rotate(180deg);
  }
  .header .menu .sub-menu{
    position: static;
    opacity: 1;
    transform: none;
    visibility: visible;
    padding: 0;
    transition: none;
    box-shadow: none;
    width: 100%;
    display: none;
  }
  .header .menu .dropdown.active > .sub-menu{
    display: block;
  }
  .header .menu .sub-menu li:last-child{
    border: none;
  }
  .header .menu .sub-menu a{
    padding: 12px 0 12px 15px;
  }
  .header .menu .sub-menu .sub-menu a{
    padding-left: 30px;
  }
  .header .menu .sub-menu .sub-menu .sub-menu a{
    padding-left: 45px;
  }
  .header .menu .sub-menu span{
    background-image: none;
  }
  .header .menu .sub-menu{
    transform: none;
    right: 0;
  } 

}