.head {
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  grid-template-areas:"marca accesos" "marca navegacion";
  gap:0 1.25rem;
  padding-block:.3rem;
}

.head > .brand { grid-area:marca; justify-self:start; }
.head > .menu { grid-area:menu; justify-self:end; min-height:44px; }
#nav { grid-area:navegacion; justify-self:end; }

.header-access {
  grid-area:accesos;
  justify-self:end;
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
}

.header-access .btn {
  min-height:44px;
  padding:.4rem .65rem;
  border-color:#8fb5da;
  color:#064c91;
  background:#fff;
  font-size:.875rem;
  line-height:1.2;
  text-align:center;
}

.header-access .header-clients { background:#e9f3fd; }
.header-access .btn:hover,
.header-access .btn[aria-current="page"] { border-color:#005fbd; background:#d8e9fb; }
.foot a[aria-current="page"] { text-decoration:underline; text-underline-offset:.2em; }

@media (min-width:1051px) {
  html { scroll-padding-top:110px; }
  #nav { gap:clamp(.35rem,.9vw,1rem); }
  .nav-entry { min-height:48px; }
  .nav-panel { max-height:calc(100dvh - 110px); }
}

@media (max-width:1050px) {
  .head {
    grid-template-columns:auto minmax(0,1fr) auto;
    grid-template-areas:"marca accesos menu" "navegacion navegacion navegacion";
    column-gap:.75rem;
  }

  #nav { justify-self:stretch; }
}

@media (max-width:600px) {
  html { scroll-padding-top:118px; }
  .head {
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"marca menu" "accesos accesos" "navegacion navegacion";
    row-gap:.25rem;
    padding-block:.45rem;
  }

  .header-access { justify-self:start; }
}
