/* Cabecera infoANALÍTICA: conserva el azul actual del sitio. */
.ia-brand-header,
.ia-brand-header * { box-sizing: border-box; }

.ia-brand-header {
  width: 100%;
  color: #fff;
  background: #33465a;
  border-bottom: 4px solid #00a6a6;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.ia-brand-header__utility {
  min-height: 42px;
  background: rgba(0, 0, 0, .12);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.ia-brand-header__utility-inner,
.ia-brand-header__inner {
  display: flex;
  width: 100%;
  padding-right: clamp(18px, 4vw, 64px);
  padding-left: clamp(18px, 4vw, 64px);
}

.ia-brand-header__utility-inner {
  min-height: 42px;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.ia-language,
.ia-login {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: rgba(255, 255, 255, .94);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.ia-language { gap: 7px; padding-right: 16px; border-right: 1px solid rgba(255,255,255,.38); }
.ia-language select { border: 0; color: inherit; background: transparent; font: inherit; cursor: pointer; }
.ia-language select option { color: #243642; background: #fff; }
.ia-login:hover, .ia-login:focus, .ia-language:focus-within { color: #fff; text-decoration: underline; }
.ia-login[hidden] { display: none !important; }

/* El menú de cuenta de OJS se traslada a esta franja mediante JavaScript. */
.ia-brand-header #navigationUser.ia-user-navigation {
  display: flex;
  float: none !important;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ia-brand-header #navigationUser.ia-user-navigation > li { float: none; margin: 0; }
.ia-brand-header #navigationUser.ia-user-navigation > li > a {
  display: block;
  padding: 6px 8px;
  color: rgba(255,255,255,.94);
  font-size: 14px;
  font-weight: 650;
  line-height: 18px;
  text-decoration: none;
}
.ia-brand-header #navigationUser.ia-user-navigation > li > a:hover,
.ia-brand-header #navigationUser.ia-user-navigation > li > a:focus { color: #fff; text-decoration: underline; }
.ia-brand-header #navigationUser.ia-user-navigation .dropdown-menu { right: 0; left: auto; }

/* Aprovecha todo el ancho de la barra y reserva el extremo derecho al buscador. */
#headerNavigationContainer,
#headerNavigationContainer .navbar,
#headerNavigationContainer .container { width: 100%; max-width: none; }
#headerNavigationContainer .navbar { min-height: 0; margin-bottom: 0; border-radius: 0; }
#headerNavigationContainer .container {
  padding-right: clamp(18px, 4vw, 64px);
  padding-left: clamp(18px, 4vw, 64px);
}
#headerNavigationContainer #nav-menu { padding-right: 0; padding-left: 0; }
#headerNavigationContainer #main-navigation { margin-left: 0; }
#headerNavigationContainer .navbar-form { margin-right: 0; }

.ia-brand-header__inner {
  position: relative;
  /* 83 px del logo principal más un margen vertical compacto. */
  min-height: 108px;
  align-items: center;
  justify-content: flex-start;
}

.ia-brand-header__journal { display: block; line-height: 0; }
.ia-brand-header__journal img { display: block; width: clamp(250px, 30vw, 430px); height: auto; }

.ia-brand-header__puce {
  position: absolute;
  left: 50%;
  display: block;
  line-height: 0;
  text-decoration: none;
  transform: translateX(-50%);
}

.ia-brand-header__puce img { display: block; width: clamp(110px, 11.5vw, 150px); height: auto; }
.ia-brand-header__puce:hover, .ia-brand-header__puce:focus { opacity: .84; }

.ia-brand-header__metadata {
  position: absolute;
  right: clamp(18px, 4vw, 64px);
  bottom: 20px;
  margin: 0;
  color: rgba(255,255,255,.94);
  font-size: clamp(12px, 1.15vw, 15px);
  line-height: 1.45;
  text-align: right;
}
.ia-brand-header__metadata p { margin: 0; font-weight: 700; }
.ia-brand-header__metadata span { font-weight: 400; }

/* Oculta la cabecera nativa después de insertar el HTML anterior. */
#headerNavigationContainer .navbar-header { display: none !important; }

@media (max-width: 767px) {
  .ia-brand-header__utility-inner { justify-content: center; }
  .ia-brand-header #navigationUser.ia-user-navigation { gap: 0; }
  .ia-brand-header #navigationUser.ia-user-navigation > li > a { padding: 6px; font-size: 12px; }
  .ia-brand-header__inner { min-height: auto; justify-content: center; padding-top: 22px; padding-bottom: 22px; }
  .ia-brand-header__journal img { width: min(78vw, 390px) !important; }
  .ia-brand-header__puce, .ia-brand-header__metadata { display: none; }
}
