.articlePage {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow: clip;
  background: #041228;
  color: var(--color-white);
}

.articlePage::before,
.articlePage::after {
  position: absolute;
  z-index: 0;
  left: 0;
  width: 100%;
  background-repeat: no-repeat;
  background-size: 100% auto;
  content: "";
  pointer-events: none;
}

.articlePage::before {
  top: 0;
  aspect-ratio: 1672 / 941;
  background-image: url("../../articles/lectura2.webp?v=20261012-1");
  background-position: center top;
  opacity: 0.62;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 76%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 76%, transparent 100%);
}

.articlePage::after {
  bottom: 0;
  aspect-ratio: 942 / 1669;
  background-image: url("../../articles/fondodeabajo.webp?v=20261002-1");
  background-position: center bottom;
  opacity: 0.72;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 100%);
}

.articlePage .siteFooter {
  background: transparent;
}

.articlePage main {
  position: relative;
  z-index: 1;
}

.articleHero {
  position: relative;
  display: grid;
  align-items: center;
  padding: clamp(8rem, 10vw, 10.5rem) var(--container-gutter)
    clamp(4.5rem, 7vw, 7.5rem);
  min-height: 56.3vw;
}

.articleHero::after {
  position: absolute;
  right: 8%;
  bottom: 0;
  width: min(28rem, 32vw);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(255 88 214 / 70%),
    transparent
  );
  content: "";
}

.articleHero__inner {
  width: min(68rem, 100%);
  margin-right: auto;
  margin-left: 0;
}

.articleKicker,
.articleReadingTime,
.articleToc > p {
  margin: 0;
  color: #c7d2ea;
  font-size: clamp(0.72rem, 0.7rem + 0.1vw, 0.82rem);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.articleToc > p {
  font-size: 1rem;
  line-height: 1.4;
}

.articleHero h1 {
  max-width: 19ch;
  margin: clamp(1rem, 1.7vw, 1.6rem) 0 1.25rem;
  color: #fff;
  font-family: var(--font-family-site);
  font-size: clamp(2.8rem, 5.3vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.01;
  text-wrap: balance;
}

.articleHero h1 mark {
  color: var(--color-yellow-strategic);
  background: transparent;
}

.articleBody h2 mark,
.articleInstitutional h2 mark {
  color: var(--color-yellow-strategic);
  background: transparent;
}

.articleReadingTime {
  color: #ff58d6;
  letter-spacing: 0.1em;
}

.articleIntroduction {
  max-width: 47rem;
  margin: clamp(2rem, 3vw, 3rem) 0 0;
  color: #d8e0f1;
  font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.48rem);
  line-height: 1.65;
}

.articleLayout {
  display: grid;
  width: min(78rem, calc(100% - (2 * var(--container-gutter))));
  grid-template-columns: minmax(12rem, 16rem) minmax(0, 44rem);
  justify-content: center;
  gap: clamp(3rem, 6vw, 7rem);
  margin-inline: auto;
  padding-block: clamp(4rem, 7vw, 7rem);
}

.articleToc {
  position: sticky;
  top: 7rem;
  align-self: start;
  border-left: 1px solid rgb(255 255 255 / 14%);
  padding-left: 1.25rem;
}

.articleToc ol {
  display: grid;
  gap: 1rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.articleToc a {
  color: #9eabc4;
  font-size: 1rem;
  line-height: 1.5;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.articleToc a:hover,
.articleToc a:focus-visible {
  color: #ff58d6;
}

.articleBody {
  min-width: 0;
}

.articleBody section {
  scroll-margin-top: 7rem;
}

.articleBody section + section {
  margin-top: clamp(3.5rem, 6vw, 5.5rem);
}

.articleBody h2,
.articleInstitutional h2 {
  max-width: 25ch;
  margin: 0 0 1.6rem;
  color: #fff;
  font-family: var(--font-family-site);
  font-size: clamp(1.8rem, 2.4vw, 2.55rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.16;
  text-wrap: balance;
}

.articleBody p {
  margin: 0;
  color: #cbd5e8;
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.1rem);
  line-height: 1.85;
}

.articleOpening p,
.articleBody > section p {
  max-width: 68ch;
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
  line-height: 1.75;
}

.articleBody p + p {
  margin-top: 1.35rem;
}

.articleBody ul,
.articleBody ol {
  display: grid;
  gap: 0.65rem;
  padding-left: 1.4rem;
  margin-top: 1.35rem;
  color: #cbd5e8;
  line-height: 1.75;
  list-style: revert;
}

.articleBody blockquote {
  padding-left: 1.25rem;
  margin-top: 1.5rem;
  border-left: 2px solid var(--color-yellow-strategic);
  color: #e5eaf5;
}

.articleBody hr {
  margin-block: 2.5rem;
  border-top: 1px solid rgb(255 255 255 / 14%);
}

.articleBody a {
  color: var(--color-yellow-strategic);
  text-decoration: underline;
}

.articleOpening {
  margin-bottom: clamp(3.5rem, 6vw, 5.5rem);
}

.articleInstitutional {
  position: relative;
  margin-top: clamp(4.5rem, 8vw, 7rem);
  border: 1px solid rgb(196 111 220 / 26%);
  border-radius: 1rem;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: linear-gradient(135deg, rgb(36 23 72 / 72%), rgb(5 15 38 / 78%));
  box-shadow: 0 1.5rem 5rem rgb(0 0 0 / 22%);
}

.articleInstitutional .articleKicker {
  margin-bottom: 1rem;
  color: #ff58d6;
}

.articleInstitutional a {
  display: inline-flex;
  margin-top: 2rem;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  background: linear-gradient(135deg, #8d2eb2, #d044bc);
  color: #fff;
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
}

.articlePagination {
  display: grid;
  width: min(68rem, calc(100% - (2 * var(--container-gutter))));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-inline: auto;
  border-top: 1px solid rgb(255 255 255 / 12%);
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(5rem, 8vw, 8rem);
}

.articlePagination > div:last-child {
  text-align: right;
}

.articlePagination a {
  display: inline-grid;
  max-width: 30rem;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
}

.articlePagination span {
  color: #ff58d6;
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.articlePagination strong {
  font-size: clamp(1rem, 1vw + 0.7rem, 1.3rem);
  line-height: 1.4;
}

@media (max-width: 64rem) {
  .articleHero {
    padding-inline: var(--container-gutter);
  }

  .articleHero__inner {
    width: min(46rem, 100%);
    margin-right: 0;
    margin-left: 0;
  }

  .articleHero h1 {
    font-size: clamp(2.55rem, 4.8vw, 5.2rem);
  }

  .articleLayout {
    width: min(46rem, calc(100% - (2 * var(--container-gutter))));
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .articleToc {
    position: static;
    border-left: 0;
    border-bottom: 1px solid rgb(255 255 255 / 12%);
    padding: 0 0 2rem;
  }

  .articleToc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.5rem;
  }
}

@media (max-width: 47.9375rem) {
  .articleHero {
    padding-top: clamp(7.5rem, 28vw, 9rem);
  }

  .articleHero h1 {
    max-width: 100%;
    font-size: clamp(2.2rem, 10vw, 3.1rem);
    overflow-wrap: break-word;
  }

  .articleToc ol,
  .articlePagination {
    grid-template-columns: minmax(0, 1fr);
  }

  .articlePagination > div:last-child {
    text-align: left;
  }

  .articleInstitutional {
    border-radius: 0.75rem;
  }
}

.articleReaderNav {
  position: absolute;
  z-index: 2;
  top: 4.65rem;
  left: var(--container-gutter);
  width: min(78rem, calc(100% - (2 * var(--container-gutter))));
  color: #d8e0f1;
}

.articleReaderNav__desktop {
  display: flex;
  min-height: 2.4rem;
  align-items: center;
  gap: clamp(0.85rem, 1.8vw, 1.5rem);
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  scrollbar-color: rgb(255 88 214 / 45%) transparent;
  scrollbar-width: thin;
}

.articleReaderNav__desktop::-webkit-scrollbar {
  height: 3px;
}

.articleReaderNav__desktop::-webkit-scrollbar-track {
  background: transparent;
}

.articleReaderNav__desktop::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgb(255 88 214 / 45%);
}

.articleReaderNav__title {
  flex: 0 0 auto;
  color: #fff;
  font-size: 0.72rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.articleReaderNav__separator {
  width: 1px;
  height: 1rem;
  flex: 0 0 auto;
  background: rgb(255 255 255 / 22%);
}

.articleReaderNav__links {
  display: flex;
  min-width: max-content;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
}

.articleReaderNav a {
  position: relative;
  padding: 0.65rem 0 0.6rem;
  color: #cbd5e8;
  font-size: clamp(0.76rem, 0.72rem + 0.12vw, 0.86rem);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  white-space: nowrap;
}

.articleReaderNav a:hover,
.articleReaderNav a.is-active {
  color: #ff58d6;
}

.articleReaderNav a.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: #ff58d6;
  content: "";
}

.articleReaderNav__mobile {
  display: none;
}

@media (max-width: 47.9375rem) {
  .articleReaderNav {
    top: 4.5rem;
  }

  .articleReaderNav__desktop {
    display: none;
  }

  .articleReaderNav__mobile {
    display: block;
    width: min(100%, 22rem);
    border-bottom: 1px solid rgb(255 255 255 / 14%);
    background: rgb(3 10 26 / 76%);
  }

  .articleReaderNav__mobile summary {
    display: flex;
    min-height: 2.5rem;
    cursor: pointer;
    list-style: none;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #fff;
    font-size: 0.78rem;
    font-weight: var(--font-weight-semibold);
  }

  .articleReaderNav__mobile summary::-webkit-details-marker {
    display: none;
  }

  .articleReaderNav__mobile summary::after {
    color: #ff58d6;
    content: "▾";
  }

  .articleReaderNav__mobile[open] summary::after {
    content: "▴";
  }

  .articleReaderNav__mobile summary small {
    margin-left: auto;
    overflow: hidden;
    color: #cbd5e8;
    font-size: 0.72rem;
    font-weight: var(--font-weight-regular);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .articleReaderNav__mobile > div {
    display: grid;
    padding: 0.25rem 0 0.65rem;
    border-top: 1px solid rgb(255 255 255 / 10%);
  }

  .articleReaderNav__mobile a {
    padding: 0.65rem 0;
    white-space: normal;
  }
}

.visuallyHidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Match the main page title scale used by the Home hero. */
.articleHero h1 {
  font-size: var(--hero-h1);
  line-height: var(--hero-h1-line);
}

.articlesIndexHero {
  padding: clamp(8rem, 10vw, 10.5rem) var(--container-gutter)
    clamp(3rem, 5vw, 5rem);
}

.articlesIndexHero h1 {
  margin: 0.9rem 0 1rem;
  font-family: var(--font-family-site);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.articlesIndexHero > p:last-child {
  max-width: 48rem;
  margin: 0;
  color: #d8e0f1;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.3rem);
  line-height: 1.65;
}

.articlesIndex {
  display: grid;
  width: min(78rem, calc(100% - (2 * var(--container-gutter))));
  gap: 1rem;
  margin: 0 auto clamp(5rem, 9vw, 9rem);
}

.articlesIndexCard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(2rem, 5vw, 6rem);
  border: 1px solid rgb(143 116 255 / 25%);
  border-radius: 0.8rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: rgb(3 10 30 / 68%);
}

.articlesIndexCard h2 {
  max-width: 28ch;
  margin: 0.75rem 0 1rem;
  font-family: var(--font-family-site);
  font-size: clamp(1.65rem, 2.6vw, 2.6rem);
  font-weight: 500;
  line-height: 1.12;
}

.articlesIndexCard div > p:last-child {
  max-width: 68ch;
  margin: 0;
  color: #cbd5e8;
  line-height: 1.7;
}

.articlesIndexCard footer {
  display: grid;
  justify-items: end;
  gap: 1rem;
  white-space: nowrap;
}

.articlesIndexCard footer > span {
  color: #ff58d6;
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.articlesIndexCard a {
  color: #fff;
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
}

.articlesIndexCard a:hover {
  color: #ff58d6;
}

@media (max-width: 47.9375rem) {
  .articlesIndexHero {
    padding-top: clamp(7.5rem, 28vw, 9rem);
  }

  .articlesIndexCard {
    grid-template-columns: minmax(0, 1fr);
  }

  .articlesIndexCard footer {
    justify-items: start;
    white-space: normal;
  }
}


.articleHero + .articleIntroduction {
  width: min(47rem, calc(100% - (2 * var(--container-gutter))));
  margin: clamp(6.5rem, 9vw, 10rem) auto 0;
  text-align: center;
}
