/* HEADER */

.page-user .header-custom-style:not(.is-sticky),
.page-not-found .header-custom-style:not(.is-sticky),
.page-node .header-custom-style:not(.is-sticky) {
  background: linear-gradient(90deg, #0157A1 0%, #217C7D 50%, #83D654 100%);
  padding-bottom: 20px;
}

.custom-extracted-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

header.header-custom-style {
  z-index: 999;
  transition: .3s ease all;
}

header.header-custom-style.is-sticky {
  background-color: #fff;
  box-shadow: 0 4px 18px 0 rgba(0, 0, 0, 0.10);
}

header.header-custom-style .header-region {
  width: 100%;
  margin: auto;
  padding-top: 32px;
  padding-left: 105px;
  padding-right: 105px;
}

header.header-custom-style.is-sticky .header-region {
  padding-top: 0;
  height: 80px;
}

header.header-custom-style.is-sticky .site-branding__logo {
  position: relative;
}

header.header-custom-style.is-sticky .site-branding__logo::before {
  content: "";
  background: url("/sites/default/files/2026-03/logo-innova-horizontal%201.svg") center no-repeat;
  background-size: contain;
  display: block;
  width: 180px;
  height: 45px;
}

header.header-custom-style.is-sticky .site-branding__logo img {
  display: none;
}

header.header-custom-style .header-region .menu__link--link {
  font-family: Montserrat;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px;
  transition: all .3s ease;
}

header.header-custom-style .menu__link--level-1 {
  height: 50px;
  gap: 5px;
}

header.header-custom-style.is-sticky .menu__link--level-1 {
  color: #0065A1;
  height: 80px;
}

header.header-custom-style.is-sticky .menu__item--has-children i svg path {
  stroke: #0065A1;
}

header.header-custom-style.is-sticky .menu__item--has-children:hover i svg path {
  stroke: #FF9800;
}

header.header-custom-style.is-sticky .custom-navigation-style .navbar-toggler-icon path,
header.header-custom-style.is-sticky .custom-navigation-style .navbar-toggler-icon rect {
  stroke: #FF9800;
}

@media (max-width: 1024px) {
  header.header-custom-style.is-sticky {
    position: initial;
    background: none;
    box-shadow: none;
  }

  header.header-custom-style .header-region {
    padding-top: 20px;
    padding-left: 17px;
    padding-right: 17px;
  }

  header.header-custom-style.is-sticky .header-region {
    padding: 15px 10px;
  }

  header.header-custom-style .menu__link--level-1 {
    height: initial;
  }

  header.header-custom-style .header-region .menu__link--link {
    font-size: 24px;
    color: #0065A1;
    font-weight: 500;
    line-height: 100%;
    justify-content: space-between;
    height: initial;
  }
}

.menu__item--has-children .dropdown-menu .menu__item--link:after {
  content: "";
  display: block;
  width: 15px;
  height: 15px;
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  left: 10px;
}

.menu__item--has-children .dropdown-menu .menu__item--link:nth-child(1):after {
  background: url(/sites/default/files/2026-03/Icono-Inicial.svg) center no-repeat;
}

.menu__item--has-children .dropdown-menu .menu__item--link:nth-child(2):after {
  background: url(/sites/default/files/2026-03/Icono-Primaria.svg) center no-repeat;
}

.menu__item--has-children .dropdown-menu .menu__item--link:nth-child(3):after {
  background: url(/sites/default/files/2026-03/Icono-secundaria.svg) center no-repeat;
}

.menu__item--has-children .dropdown-menu .menu__item--link .custom-nav-link {
  padding-left: 30px !important;
}

/* Menu dropdown item desktop */

@media (min-width: 1025px) {
  .menu--level-1 {
    flex-direction: row;
    gap: 2.5rem;
  }

  .menu__item--has-children .dropdown-menu {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.10);
    opacity: 0;
    transition: all .3s ease;
    min-width: 225px;
    box-shadow: 0 25px 40px -12px rgba(0, 30, 50, 0.25), inset 0 -2px 0 rgba(0, 0, 0, 0.05), inset 0 2px 3px rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    visibility: hidden;
    opacity: 0;
    position: absolute;
    margin-top: 50px;
  }

  .menu__item--has-children .dropdown-menu .menu__item--link:hover:after {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7483%) hue-rotate(123deg) brightness(100%) contrast(100%);
  }

  .menu__item--has-children .dropdown-menu .menu--level-2 {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
  }

  .menu__item--has-children .menu__item--level-2 {
    width: 100%;
  }

  .menu__item--has-children .menu__link--level-2 {
    padding: 11px 12px;
    border-radius: 8px;
    background: var(--white-color, #FFFFFF);
    font-size: 16px;
    color: #FF9800;
  }

  .menu__item--has-children .menu__link--level-2:hover {
    color: #ffffff;
    background-color: #FF9800;
  }

  .menu__item--has-children .menu--level-2 li:nth-child(2) a {
    color: #8CC63F;
  }

  .menu__item--has-children .menu--level-2 li:nth-child(3) a {
    color: #0065A1;
  }

  .menu__item--has-children .menu--level-2 li:nth-child(2) a:hover {
    color: #ffffff;
    background-color: #8CC63F;
  }

  .menu__item--has-children .menu--level-2 li:nth-child(3) a:hover {
    color: #ffffff;
    background-color: #0065A1;
  }

  .menu__item--has-children:hover>.dropdown-menu {
    visibility: visible;
    opacity: 1;
    margin-top: 0px;
    z-index: 99;
  }

  .menu__item--has-children:hover .menu__link--has-children {
    color: #FF9800
  }

  .menu__item--has-children:hover i svg path {
    stroke: #FF9800;
  }

}

/* Menu dropdown item mobile */

@media (max-width: 1024px) {
  .offcanvas-wrapper .offcanvas-body {
    padding-top: 35px;
  }

  .menu__item.dropdown .dropdown-menu {
    position: relative;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    display: block;
    opacity: 1;
  }

  .menu__item.dropdown .dropdown-menu .main-menu-list {
    gap: 24px;
    padding-top: 24px;
    padding-bottom: 20px;
    width: 94%;
    margin-inline-start: inherit;
  }

  .menu__item.dropdown .dropdown-menu .menu__item--link {
    padding: 0 3px;
  }

  .menu__item.dropdown .dropdown-menu .menu__link--link {
    padding: 18px 20px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    border-radius: 8px;
    box-shadow: 0px 0px 9px 0 rgba(23, 164, 204, 0.14);
    font-size: 18px;
    font-weight: 600;
  }

  .menu__item--has-children i svg path {
    stroke: #0065A1;
  }

  .menu__item--has-children.accordion-open i svg path {
    stroke: #FF9800;
  }

  .site-branding__logo {
    display: block;
    width: 180px;
  }

}

