/* Header compartido. Las reglas están acotadas para no cambiar estilos de página. */
.novanot-header,
.novanot-header * {
  box-sizing: border-box;
}

.novanot-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: #fff;
  color: #0d141a;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: normal;
}

.novanot-header__inner {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 1240px;
  min-height: 93px;
  align-items: center;
  gap: 39px;
  margin: 0 auto;
  padding: 21px 16px;
}

.novanot-header__brand {
  display: inline-flex;
  width: 233px;
  height: 51px;
  flex: 0 0 233px;
  align-items: center;
}

.novanot-header__brand img {
  display: block;
  width: 233px;
  height: 51px;
  max-width: none;
  object-fit: contain;
}

.novanot-header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.novanot-header__link {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #0d141a;
  font: inherit;
  line-height: 24px;
  letter-spacing: normal;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.novanot-header__link:hover {
  color: #282e68;
}

.novanot-header__link.is-active {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.novanot-header__link:focus-visible,
.novanot-header__menu-toggle:focus-visible,
.novanot-header__dropdown a:focus-visible {
  outline: 2px solid #774990;
  outline-offset: 4px;
}

.novanot-header__services {
  position: relative;
}

.novanot-header__services-toggle {
  gap: 7px;
}

.novanot-header__chevron {
  display: inline-block;
  color: currentColor;
  font-size: 13px;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform .18s ease;
}

.novanot-header__services.is-open .novanot-header__chevron {
  transform: rotate(180deg);
}

.novanot-header__dropdown {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  z-index: 1001;
  width: 355px;
  padding: 11px;
  border: 1px solid #e5e8f7;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(46, 40, 108, .12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.novanot-header__services.is-open .novanot-header__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.novanot-header__dropdown a {
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 13px;
  padding: 15px 12px;
  border-radius: 13px;
  color: #222743;
  text-decoration: none;
}

.novanot-header__dropdown a:hover {
  background: #f5f3ff;
}

.novanot-header__service-logo {
  display: block;
  width: 92px;
  height: 42px;
  flex: none;
  object-fit: contain;
}

.novanot-header__dropdown strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.novanot-header__dropdown small {
  display: block;
  margin-top: 3px;
  color: #555d76;
  font-size: 12px;
  line-height: 18px;
}

.novanot-header__external {
  margin-left: auto;
  color: #6a43c8;
}

.novanot-header__menu-toggle {
  display: none;
}

@media (max-width: 1100px) and (min-width: 921px) {
  .novanot-header__inner { gap: 20px; }
  .novanot-header__nav { gap: 22px; }
  .novanot-header__brand,
  .novanot-header__brand img { width: 210px; }
  .novanot-header__brand { flex-basis: 210px; }
}

@media (max-width: 920px) {
  .novanot-header__inner {
    min-height: 78px;
    justify-content: space-between;
    gap: 15px;
    padding: 24px 16px;
  }

  .novanot-header__brand,
  .novanot-header__brand img {
    width: 135px;
    height: 30px;
  }

  .novanot-header__brand { flex-basis: 135px; }

  .novanot-header__menu-toggle {
    display: flex;
    width: 43px;
    height: 43px;
    flex: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    border: 1px solid #e0e2f1;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
  }

  .novanot-header__menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #22254c;
  }

  .novanot-header__nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 1000;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 24px 34px 30px;
    background: #fff;
    box-shadow: 0 22px 40px rgba(23, 21, 70, .1);
  }

  .novanot-header__nav.is-open { display: flex; }

  .novanot-header__services-toggle {
    justify-content: space-between;
    width: 100%;
  }

  .novanot-header__dropdown {
    position: static;
    display: none;
    width: 100%;
    margin-top: 13px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
  }

  .novanot-header__services.is-open .novanot-header__dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

@media (max-width: 600px) {
  .novanot-header__dropdown { max-width: 100%; }
  .novanot-header__dropdown a { gap: 10px; padding-right: 8px; padding-left: 8px; }
  .novanot-header__service-logo { width: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  .novanot-header__chevron,
  .novanot-header__dropdown { transition: none; }
}
