header {
  margin: 0 auto;
  padding: 30px;
  position: fixed;
  top: 0px;
  left: 0px;
  right: 0px;
  z-index: 102;
  background: transparent !important;
}

body.page-id-14 header,
body.page-id-43 header,
body.page-id-23 header,
body.page-id-191 header,
body.page-id-192 header,
body.page-id-193 header,
body.search.search-results header {
  background: white !important;
}
/* Less padding of header */
body.page-id-23 header {
  padding-bottom: 10px;
}
body.page-id-14 header.white,
body.page-id-43 header.white,
body.page-id-23 header.white,
body.page-id-191 header.white,
body.page-id-192 header.white,
body.page-id-193 header.white,
body.search.search-results header.white {
  background: transparent !important;
}
header.white .box img {
  filter: brightness(0) invert(1);
}
body.page-id-8 header .box img,
body.page-id-11 header .box img,
body.page-id-12 header .box img{
  filter: brightness(0) invert(1);
}
body.page-id-8 header.active .box img {
  filter: brightness(1) invert(0);
}
header > a img {
  width: 186px;
  height: auto;
}
header .box {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header .right {
  display: flex;
  align-items: center;
  gap: 40px;
}

header .menu {
  margin: 0px;
  padding: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  list-style: none;
}
header .menu li {
  position: relative;
}
header .menu li a {
  color: var(--texto);
  position: relative;
  display: inline-block;
}
body.page-id-8 header .menu li a:not(.current-menu-item) {
  color: white;
}
header .menu li a::after {
  position: absolute;
  content: attr(data-text);
  top: 50%;
  left: 50%;
  width: 100%;
  transform: translate(-50%, -50%);
  text-align: center;
  white-space: nowrap;
}
header .menu li a:hover,
body.page-id-8 header .menu li a:hover {
  color: transparent;
}
header .menu li a[data-text="Contáctanos"]:hover::after,
header .menu li a[data-text="Noticias"]:hover::after {
  letter-spacing: -1.5px;
}
header .menu li a:hover::after,
header .menu .current-menu-item a {
  opacity: 1 !important;
  color: var(--primary);
  font-family: var(--font-secondary);
  font-size: 24px;
  z-index: 5;
}
header .menu li a:hover::after,
header .menu .current-menu-item a {
  opacity: 1 !important;
  color: var(--primary);
  font-family: var(--font-secondary);
  font-size: 24px;
  z-index: 5;
}
header #menu-item-46 a,
header #menu-item-47 a {
  font-size: 0px !important;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("../img/smile-off.svg") no-repeat center center;
  background-size: contain;
  cursor: pointer;
  transition: all 0.3s;
}
header #menu-item-46 a:hover,
header #menu-item-47 a:hover {
  background: url("../img/smile.svg") no-repeat center center;
  background-size: contain;
}
header #menu-item-46 a:hover::after,
header #menu-item-47 a:hover::after {
  color: transparent;
}

header .menu-mobile {
  display: none;
}

#mobileMenu {
  position: fixed;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  background: white;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
#mobileMenu.open {
  display: flex;
}
#mobileMenu .menu {
  flex-direction: column;
  gap: 10px;
}
#mobileMenu .menu li a {
  font-size: 3rem;
}
#mobileMenu .menu li a:hover::after,
#mobileMenu .menu .current-menu-item a {
  font-size: 4rem;
}

#hamburger {
  width: 32px;
  height: 32px;
  position: relative;
  margin: 8px 0 0 0;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: 0.5s ease-in-out;
  -moz-transition: 0.5s ease-in-out;
  -o-transition: 0.5s ease-in-out;
  transition: 0.5s ease-in-out;
  cursor: pointer;
  z-index: 4;
}
#hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--primary);
  border-radius: 10px;
  opacity: 1;
  left: 0;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: 0.25s ease-in-out;
  -moz-transition: 0.25s ease-in-out;
  -o-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
}
#header.white #hamburger:not(.open) span {
  background: white;
}
#header.white #hamburger.open span {
  background: black;
}
#hamburger span:nth-child(1) {
  top: 0px;
}
#hamburger span:nth-child(2),
#nav-icon3 span:nth-child(3) {
  top: 10px;
}
#hamburger span:nth-child(4) {
  top: 20px;
}

#hamburger.open span:nth-child(1) {
  top: 10px;
  width: 0%;
  left: 50%;
}

#hamburger.open span:nth-child(2) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
  top: 10px;
}
#hamburger.open span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
  top: 10px;
}
#hamburger.open span:nth-child(4) {
  top: 18px;
  width: 0%;
  left: 50%;
}

#header.white #mobileMenu li a {
  color: inherit;
}
#header.white #mobileMenu li a:hover {
  color: white !important;
}
#header.white .menu li a {
  color: white;
}
#header.white .menu li a:hover {
  color: transparent;
}
#header.white .menu li a:hover::after,
#header.white .menu .current-menu-item a {
  color: white;
}
#header.white #menu-item-46 a:hover::after,
#header.white #menu-item-47 a:hover::after {
  color: transparent;
}
#header.white #mobileMenu.open a:hover::after {
  color: var(--primary);
}
#header.white .wpml-ls ul {
  border-color: white;
}
#header.white .wpml-ls ul li a {
  color: white;
}
#header.white .wpml-ls ul li.wpml-ls-current-language {
  background: white;
}
#header.white .wpml-ls ul li.wpml-ls-current-language a {
  color: var(--primary);
}
body.page-id-8 header #menu-item-46 a,
#header.white #menu-item-46 a,
#header.white #menu-item-47 a {
  filter: brightness(0) saturate(0) invert(1);
}
#header.white > .container > .box > a > img {
  filter: brightness(0) saturate(0) invert(1);
}

@media (max-width: 1200px) {	
  header .box img {
	position: relative;
    z-index: 10;
  }
  header .menu-mobile {
    display: flex;
  }
  header .menu-desktop {
    display: none;
  }
  #mobileMenu .menu li a {
    transition: none;
 }
}

@media (max-width: 992px) {
  body.blog header .box img,
  body.page-id-11 header .box img,
  body.page-id-12 header .box img {
	filter: brightness(0) invert(1);
  }
  body.blog header.active .box img,
  body.page-id-11 header.active .box img,
  body.page-id-12 header.active .box img {
	filter: brightness(1) invert(0);
  }
  body.blog header,
  body.page-id-8 header,
  body.page-id-12 header,
  body.page-id-11 header {
	  #menu-item-46 a {
		  filter: none !important;
	  }
	  .menu li:not(.current-menu-item) a {
		  color: var(--texto);
	  }
	  #hamburger span {
		  background: white;
	  }
	  #hamburger.open span {
		  background: var(--primary);
	  }
  }
  header .menu li a:hover::after {
    opacity: 0 !important;
  }
  header .menu li a:hover,
  body.page-id-8 header .menu li a:hover {
    color: var(--texto);
  }
  #mobileMenu .menu li a {
    font-size: 2rem;
  }
  #mobileMenu .menu li a:hover::after,
  #mobileMenu .menu .current-menu-item a {
    font-size: 3rem;
  }
  header .menu li a[data-text="Contáctanos"]:hover::after,
  header .menu li a[data-text="Noticias"]:hover::after {
    letter-spacing: -2.5px;
  }
}

@media (max-width: 767px) {
  header .box img {
    max-width: 150px;
  }

  body.page-id-16 header,
  body.page-id-191 header,
  body.page-id-192 header,
  body.page-id-193 header,
  body.page-id-15 header {
    background: white !important;
  }

  body.page-id-23 header.white {
    background: transparent !important;
  }
  body.page-id-23 header {
    background: white !important;
  }
}


/* 
- - - - - - - - - - - - - - - - - - - - -
START FIXED COLORS 
- - - - - - - - - - - - - - - - - - - - -
Agregadas classes temporales para cambiar el color del layout.
*/
body.page-id-16,
body.page-id-23 {
  background: black!important;
}
body.page-id-16 header,
body.page-id-23 header {
  background: black!important;
}
body.page-id-16 header .menu li a:not(.current-menu-item),
body.page-id-23 header .menu li a:not(.current-menu-item) {
  color: #fff;
}
body.page-id-16 header .box img,
body.page-id-23 header .box img {
    filter: brightness(0) invert(1);
}
body.page-id-16 header .menu li a:hover,
body.page-id-23 header .menu li a:hover {
  color: transparent;
}
body.page-id-16 .dihola--contacto,
body.page-id-16 .dihola--contacto .box,
body.page-id-23 .dihola--contacto,
body.page-id-23 .dihola--contacto .box {
  background: black;
  color: #fff;
}
body.page-id-16 .dihola--contacto .box h2,
body.page-id-16 .dihola--contacto .box > p,
body.page-id-23 .dihola--contacto .box h2,
body.page-id-23 .dihola--contacto .box > p {
  color: #fff;
}
.dihola--contacto a {
  color: #fff; text-decoration: underline;
}
.dihola--contacto form input::placeholder {
  color: #333;
}
/* 
- - - - - - - - - - - - - - - - - - - - -
END FIXED COLORS 
- - - - - - - - - - - - - - - - - - - - -
*/




