
/* === VISIBILIDAD Y ESTRUCTURA GENERAL === */


/* Mostrar menú escritorio por defecto */
#menu-principal {
  display: flex;
}


/* Ocultar menú móvil por defecto */
#menu-mobile {
  display: none!important;
}

.hamburger-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  width:24px;
  background-color: #fff;
}

@media (max-width: 980px) {
  .hamburger-toggle {
    display: flex;
    position: absolute;
    top: 70px;
    right: 20px;
  }

  .mobile-navigation {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: #fff;
    width: 100%;
    z-index: 1000;
  }

  .mobile-navigation.active {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    padding: 1em;
  }
}


/* === MENÚ DE ESCRITORIO (ET-MENU) === */
.et-menu.nav {
  list-style: none;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  background-color: transparent;
}
.et-menu.nav > li {
  position: relative;
}
.et-menu.nav a {
  display: block;
  padding: 0 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 400;
  transition: color 0.3s ease;
  font-size: 16px;
}
.et-menu.nav a:hover {
  color: #EBBF02;
}

/* Submenús escritorio */
.et-menu .sub-menu {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 100%;
  left: auto;
right: 0 !important;
  background-color: #006FBA;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  z-index: 1000;
  list-style: none;
  transform: translateY(10px);
  transition: all 0.3s ease;
}
.et-menu .sub-menu li {
  position: relative;
}
.et-menu .sub-menu a {
  padding: 10px;
  white-space: nowrap;
}
.et-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Sub-submenús */
.et-menu .sub-menu .sub-menu {
  left: 100%;
  right:auto!important;
  top: 0;
  transform: translateX(10px);
}
.et-menu .sub-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Flecha indicadora */
.menu-item-has-children > a::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.7em;
  margin-left: 6px;
  vertical-align: middle;
  transition: transform 0.3s ease;
}
.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}
.menu-container.inferior .menu-item-has-children > a::after {
	content: "\f077";
}


/* Iconos sociales */
.social-icon::before {
  font-family: "Font Awesome 6 Brands";
  font-weight: 400;
  font-size: 1rem;
  display: inline-block;
  color: white;
  transition: color 0.3s;
}
.social-icon.youtube::before { content: "\f167"; }
.social-icon.facebook::before { content: "\f39e"; }
.social-icon.twitter::before { content: "\e61b"; }
.social-icon.instagram::before { content: "\f16d"; }
.social-icon.tiktok::before { content: "\e07b"; }
.social-icon.whatsapp::before { content: "\f232"; }
.social-icon.flickr::before { content: "\f16e"; }
.social-icon.email::before {
  content: "\f0e0";
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
}
.social-icon:hover::before {
  color: #d4d4d4;
}

/* Menú inferior */
.menu-container.inferior {
  top: -168px;
  position: relative;
  z-index: 99;
}
.inferior .main-navigation {
  justify-content: center;
}
.inferior .main-navigation .sub-menu {
  bottom: 100%;
  top: auto;
  left:-25%!important;
  width: fit-content;
  min-width: 100%;
}
.inferior .et-menu.nav {
  gap: 30px;
}
.inferior .et-menu.nav a {
  text-align: center;
}
.inferior .et-menu .sub-menu a {
  text-align: left!important;
}
.inferior .et-menu.nav img {
  margin-bottom: 12px;
  max-height: 82px;
  border: solid 2px #fff;
}


/*Sticky header*/
.site-header.sticky {
  background-color: #006FBA;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding-bottom: 10px;
}

.top-bar {
  color: #fff;
  font-size: 0.9rem;
  padding: 0;
}

.top-bar-content {
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left span {
  font-weight: 600;
}

.top-bar-right a {
  color: #fff;
  margin-left: 6px;
  text-decoration: none;
  transition: color 0.3s;
    font-size: 20px;
}

.top-bar-right a:hover {
  color: #d4d4d4;
}

.menu-container {
  max-width: 98%;
  margin: 0 auto;
  padding: 0px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar-left.menu-container.superior {
  margin: 0 12px 0 auto;
}

.logo img {
  height: 54px;
  width: auto;
  display: block;
}

.main-navigation {
  flex-grow: 1;
  display: flex!important;
  justify-content: flex-end;
}

@media (max-width: 1024px) {
  #menu-mobile .menu-item-has-children > a {
    position: relative;
    padding-right: 35px;
  }

  #menu-mobile .menu-item-has-children > a::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7em;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    pointer-events: none;
  }

  #menu-mobile .menu-item.open > a::after {
    transform: translateY(-50%) rotate(180deg);
  }

  #menu-mobile .sub-menu {
    display: none;
    padding-left: 15px;
    margin-top: 0.5em;
  }

  #menu-mobile .menu-item.open > .sub-menu {
    display: block;
    position: relative;
    z-index: 1;
  }
  #menu-mobile .menu-item.open > .sub-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  position: relative;
  z-index: 1;
  box-shadow: none;
  background-color: #eee !important;
  margin-top: 0;
  left: 0!important;
  }
  .et-menu .sub-menu a {
    white-space: break-spaces;
  }
  nav.main-navigation:not(#menu-mobile) {
    display: none !important;
  }

  #menu-principal {
    display: none!important;
  }

  .hamburger-toggle {
    display: flex;
    position: absolute;
    top: 62px;
    right: 20px;
  }

  #menu-mobile {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: #fff;
    width: 100%;
    z-index: 1000;
  }

  #menu-mobile.active {
    display: block!important;
    margin-top: 60px;
    max-height: 80vh;
    overflow: scroll;
  }

  #menu-mobile ul {
    flex-direction: column;
    padding: 1em;
  }

  #menu-mobile .et-menu.nav a {
  color: #1a1a1a!important;
  }

  .menu-container.inferior {
    display:none;
  }
}
