/* Cabecera común: estas reglas mantienen idéntico el menú en todas las páginas. */
html {
  scrollbar-gutter: stable;
}

header .nav {
  height: 58px !important;
  min-height: 58px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: "Nunito", system-ui, sans-serif;
}

header .logo-img {
  width: auto !important;
  height: 34px !important;
  max-width: none;
  display: block;
}

header .menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .2rem;
}

header .menu a {
  padding: .5rem .85rem;
  border-radius: 8px;
  color: #6b747c;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  white-space: nowrap;
}

header .menu a:hover,
header .menu a.active {
  color: #2f3841;
  background: #edeff1;
  font-weight: 700;
}

header .menu svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

header #nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

header .burger {
  display: none;
}

@media (min-width: 901px) and (max-width: 1180px) {
  header .menu a {
    padding-inline: .48rem;
    font-size: .86rem;
    gap: .3rem;
  }
}

@media (max-width: 900px) {
  header .nav {
    position: relative;
    gap: .35rem;
    padding-inline: .75rem;
  }

  header .menu {
    display: none;
  }

  header .burger {
    width: 38px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #2f3841;
  }

  header #nav-toggle:checked ~ .menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    padding: .85rem;
    background: #fff;
    border-top: 1px solid rgba(47, 56, 65, .08);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 18px 42px rgba(47, 56, 65, .14);
  }

  header #nav-toggle:checked ~ .menu a {
    width: 100%;
    min-height: 42px;
    padding: .5rem .85rem;
    justify-content: flex-start;
    font-size: .92rem;
  }
}

@media (max-width: 520px) {
  header .logo-img {
    height: 29px !important;
  }
}
