/* Junta FV | C2 | Cabecera publica alineada; sin alterar modulos.
   La portada de C1 conserva sus colores.
   <=1500px usa el menu movil existente para prevenir saltos de linea. */
@media (min-width: 1501px) {
  body.portal-ux-a4 .nav-wrap {
    max-width: 1690px;
    width: 100%;
    padding-inline: clamp(18px, 1.6vw, 30px);
    gap: clamp(8px, .75vw, 13px);
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }
  body.portal-ux-a4 .brand {
    flex: 0 1 340px;
    min-width: 0;
    max-width: 340px;
  }
  body.portal-ux-a4 .main-nav {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    gap: clamp(5px, .65vw, 12px);
    flex-wrap: nowrap !important;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
  }
  body.portal-ux-a4 .main-nav a {
    flex: 0 0 auto;
    padding-inline: 3px;
    white-space: nowrap;
  }
  body.portal-ux-a4 .header-actions {
    flex: 0 0 auto;
    margin-left: 0;
    white-space: nowrap;
  }
  body.portal-ux-a4 .mobile-menu-toggle { display: none; }
}
@media (min-width: 901px) and (max-width: 1500px) {
  body.portal-ux-a4 .nav-wrap {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }
  body.portal-ux-a4 .brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
  }
  body.portal-ux-a4 .main-nav,
  body.portal-ux-a4 .header-actions { display: none; }
  body.portal-ux-a4 .mobile-menu-toggle {
    display: inline-flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
  }
}
