/* .btn-country */
.btn-country {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background-color: rgba(66, 20, 95, 0.05);
  border: 1px solid rgba(66, 20, 95, 0.3);
  border-radius: 8px;
  cursor: pointer;
}

.btn-country:hover {
  border: 1px solid rgba(66, 20, 95, 0.7);
}

header.scrollY .btn-country {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

header.scrollY .btn-country:hover {
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.btn-country svg{
  color: rgba(66, 20, 95, 0.7);
}

.btn-country:hover svg {
  color: rgba(66, 20, 95, 1);
}

header.scrollY .btn-country svg{
  color: rgba(255, 255, 255, 0.7);
}

header.scrollY .btn-country:hover svg {
  color: rgba(255, 255, 255, 1);
}

/* betwen .btn-country, .list-country */
.btn-country + .list-country {
  display: none;
  position: absolute;
  background-color: #fff;
  border-radius: 8px;
  z-index: 999;
  padding: 0.5rem;
  gap: 1rem;
  opacity: 0;
  height: 0;
  transition: opacity 0.3s;
}

.btn-country + .list-country ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-country.active + .list-country {
  display: flex;
  opacity: 1;
  height: min-content;
  margin-top: 0.25rem;
  border: 1px solid rgba(66, 20, 95, 0.7);
  animation: fadeIn 0.3s;
}

.btn-country + .list-country ul li{
  cursor: pointer;
}




#menu-principal nav  ul > li > a:not(.btn){
  position: relative;
  display: flex;
  align-items: center;
}

#menu-principal nav > ul > li.menu-item-has-children.active > a > span + svg {
  rotate: 180deg;
}

#menu-principal nav > ul > li.menu-item-has-children > ul {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #c6b9cf;
  z-index: -1;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  height: 0;
}

#menu-principal nav > ul > li.menu-item-has-children.active > ul{
  top: 100%;
  z-index: 999;
  padding: 0.5rem;
  transition: opacity 0.3s;
  opacity: 1;
  height: min-content;
}

#menu-principal nav > ul > li.menu-item-has-children > ul > li > a {
  color: #42145F;
  font-size: 1.225rem;
  font-weight: 400;
}

#menu-principal nav > ul > li.menu-item-has-children > ul > li.active > a{
  font-weight: 600;
}

#menu-principal nav > ul > li.menu-item-has-children > ul > li.active > a > span + svg{
  color: #FF5800;
  rotate: 180deg;
}

#menu-principal nav > ul > li.menu-item-has-children > ul > li.active > a + .menu-tabs {
  display: flex;
}

#menu-principal nav .menu-tabs{
  display: none;
  position: absolute;
  background-color: white;
  color: #222;
  width: 100%;
  left: 0;
  right: 0;
  top: 100%;
  flex-direction: row;
  justify-content: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

#menu-principal nav .menu-tabs.active{
  display: flex;
}

#menu-principal nav .menu-tabs > div{
  display: flex;
  flex-direction: row;
  align-items: start;
  gap: 5rem;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
}

#menu-principal nav .menu-tabs > div > .menu-tabs-items{
  display: inline-flex;
  flex-direction: column;
  gap: 0.5rem;
}
#menu-principal nav .menu-tabs >  div > .menu-tabs-items > ul{
  display: flex;
  flex-direction: column;
  gap: 0.25rem; 
}
#menu-principal nav .menu-tabs >  div > .menu-tabs-items > ul > li.active {
  color: #42145F;
  font-weight: 600;
}
#menu-principal nav .menu-tabs >  div > .menu-tabs-items > ul > li > div{
  display: inline-flex;
  flex-direction: row-reverse;
  font-size: 1rem;
  cursor: pointer;
}
#menu-principal nav .menu-tabs >  div > .menu-tabs-items > ul > li > div > svg{
  transform: rotate(0deg);
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.25rem;
  color: #42145F;
}
#menu-principal nav .menu-tabs >  div > .menu-tabs-items > ul > li.active > div > svg{
  transform: rotate(-90deg);
  color: #FF5800
  
}


#menu-principal nav .menu-tabs >  div > .menu-tabs-contents{
  width: 100%;
  background-color: white;
}
#menu-principal nav .menu-tabs > div > .menu-tabs-contents > div{
  display: none;
}
#menu-principal nav .menu-tabs > div > .menu-tabs-contents > div.active{
  display: block;
}
#menu-principal nav .menu-tabs > div > .menu-tabs-contents > div > ul{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 2rem;
  row-gap: 0.5rem;
  /* grid-template-rows: auto auto auto;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-auto-flow:column; */
  list-style: disc;
  list-style-position: inside;
}

#menu-principal nav .menu-tabs > div > .menu-tabs-contents > div > ul a{
  display: inline-flex;
}
#menu-principal nav .menu-tabs > div > .menu-tabs-contents > div > ul a:hover{
  text-shadow:0px 0px 1px black;
}

/* menu responsive */
#menu-principal .menu-responsive{
  display: none;
}

#menu-principal .menu-responsive.active{
  display: flex;
}
