.aportes-header {
  position: sticky;
  top: 0;
  z-index: 55;
  background: #14171b;
  color: #fff;
  font-family: system-ui, sans-serif;
}

.aportes-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, #744184, #d10058, #ff642e, #ffc526, #c8df36);
  pointer-events: none;
}

.aportes-marca {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  min-height: 64px;
  margin: auto;
  padding: 0 24px;
}

.aportes-marca a {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.aportes-marca img {
  display: block;
  width: 105px;
  max-width: none;
  height: auto;
}

.aportes-marca .aportes-cta {
  padding: 0 16px;
  border-radius: 24px;
  background: #bc005a;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.aportes-marca .aportes-cta:hover {
  background: #a0004e;
}

.aportes-nav {
  border-top: 1px solid #ffffff22;
  padding: 0 12px 4px;
  font: 650 14px/1.2 system-ui, sans-serif;
}

.aportes-nav > div {
  display: flex;
  justify-content: center;
  max-width: 1120px;
  margin: auto;
}

.aportes-nav a {
  display: grid;
  min-height: 44px;
  min-width: 0;
  padding: 0 18px;
  place-items: center;
  color: #dde0e4;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.aportes-nav a:hover {
  color: #fff;
  background: #ffffff10;
}

.aportes-nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: #ff6bae;
}

.aportes-nav a.aportes-nav-principal {
  color: #ffd0e5;
  background: #ff6bae18;
  font-weight: 800;
}

.aportes-nav a.aportes-nav-principal:hover {
  background: #ff6bae2b;
}

.aportes-header a:focus-visible {
  outline: 2px solid #ffd0e5;
  outline-offset: -3px;
}

.aportes-header [lang="en"],
html[lang|="en"] .aportes-header [lang="es"] {
  display: none;
}

html[lang|="en"] .aportes-header [lang="en"] {
  display: inline;
}

body.aportes-sticky {
  overflow-x: clip;
}

/* Los enlaces y controles específicos de cada campaña van debajo del encabezado común. */
.aportes-sticky .aportes-controles {
  position: static;
  max-width: none;
  padding: 8px max(16px, calc((100% - 1120px) / 2));
  color: white;
  background: #20242a;
  backdrop-filter: none;
}

.aportes-sticky .aportes-controles.barra {
  justify-content: flex-end;
}

.aportes-sticky .aportes-controles .nav-inner {
  justify-content: flex-end;
}

.aportes-sticky .aportes-controles .nav-links {
  margin-right: auto;
}

body.aportes-sticky > .skip:focus { z-index: 56; }

html.aportes-offset {
  scroll-padding-top: 123px;
}

.aportes-offset :is(.planes, .donar, .resumen, #museo, #club) {
  scroll-margin-top: 0;
}

@media (min-width: 960px) {
  .aportes-offset :is(.planes, .donar) { top: 126px; }
}

@media (min-width: 900px) {
  .aportes-offset .resumen { top: 126px; }
}

@media (max-width: 600px) {
  .aportes-marca { min-height: 61px; padding-inline: 16px; }
  .aportes-marca img { width: 96px; }

  .aportes-nav {
    padding-inline: 5px;
    font-size: 12px;
  }

  .aportes-nav > div {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .aportes-nav a {
    padding: 0 2px;
    white-space: normal;
  }
}
