/* Actualidad ZR: extensión del sistema visual principal */
.home-news {
  position: relative;
  padding: 118px max(48px, calc((100vw - 1440px) / 2 + 48px)) 128px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 82% 5%, rgba(77, 145, 177, 0.1), transparent 34%),
    linear-gradient(150deg, #061118, #0a1c25 55%, #040d12);
}

.home-news__inner {
  width: min(1344px, 100%);
  margin: 0 auto;
}

.home-news__header {
  display: grid;
  margin-bottom: 52px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  align-items: end;
  gap: 34px 70px;
}

.home-news__header .section-kicker {
  margin: 0 0 18px;
}

.home-news__header h2 {
  margin: 0;
  color: #eef4f7;
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 430;
  letter-spacing: -0.045em;
  line-height: 1;
}

.home-news__header > p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.home-news__action {
  display: flex;
  margin-top: 42px;
  justify-content: flex-end;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.blog-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(158, 194, 210, 0.16);
  border-radius: 3px;
  background: linear-gradient(145deg, rgba(18, 44, 56, 0.78), rgba(5, 17, 24, 0.96));
  box-shadow: 0 22px 48px rgba(0, 5, 8, 0.16);
  transition: border-color 220ms ease, transform 280ms ease, box-shadow 280ms ease;
}

.blog-card:hover,
.blog-card:focus-within {
  border-color: rgba(112, 180, 211, 0.4);
  box-shadow: 0 26px 54px rgba(0, 5, 8, 0.26);
  transform: translateY(-3px);
}

.blog-card__visual {
  display: block;
  height: 205px;
  overflow: hidden;
  border-bottom: 1px solid rgba(158, 194, 210, 0.12);
  background: #07151c;
}

.blog-card__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-card__visual--contain img {
  object-fit: contain;
}

.blog-card:hover .blog-card__visual img,
.blog-card:focus-within .blog-card__visual img {
  transform: scale(1.025);
}

.blog-card__body {
  display: flex;
  min-height: 310px;
  padding: 26px;
  flex: 1;
  flex-direction: column;
}

.blog-card__category,
.article-category {
  margin: 0 0 14px;
  color: #77b4d0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.blog-card h3 {
  margin: 0;
  color: #eef4f7;
  font-size: 21px;
  font-weight: 490;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.blog-card h3 a:hover,
.blog-card h3 a:focus-visible {
  color: #b9ddeb;
}

.blog-card__description {
  margin: 17px 0 24px;
  color: #afbec5;
  font-size: 14px;
  line-height: 1.65;
}

.blog-card__meta {
  display: flex;
  min-height: 42px;
  margin-top: auto;
  padding-top: 18px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(158, 194, 210, 0.1);
}

.blog-card time {
  color: #7e949e;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.blog-card__link {
  color: #dbeaf0;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.blog-page {
  min-height: 100vh;
  padding-top: var(--header-height);
  background:
    radial-gradient(ellipse at 78% 5%, rgba(66, 137, 170, 0.13), transparent 34%),
    linear-gradient(145deg, #03090d, #0a1b24 50%, #040d12);
}

.blog-page__hero {
  width: min(1344px, calc(100% - 96px));
  margin: 0 auto;
  padding: 110px 0 68px;
  border-bottom: 1px solid var(--line);
}

.blog-page__hero .section-kicker {
  margin: 0 0 22px;
}

.blog-page__hero h1 {
  max-width: 820px;
  margin: 0;
  color: #f1f6f8;
  font-size: clamp(52px, 8vw, 92px);
  font-weight: 410;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.blog-page__intro {
  max-width: 700px;
  margin: 30px 0 0;
  color: #c0cdd3;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.blog-page__content {
  width: min(1344px, calc(100% - 96px));
  margin: 0 auto;
  padding: 58px 0 126px;
}

.blog-filters {
  display: flex;
  margin: 0 0 44px;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-filter {
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid rgba(145, 185, 203, 0.2);
  border-radius: 999px;
  color: #aebdc4;
  background: rgba(140, 184, 203, 0.035);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.055em;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.blog-filter:hover,
.blog-filter:focus-visible,
.blog-filter.is-active {
  border-color: rgba(102, 174, 207, 0.58);
  color: #eef7fa;
  background: rgba(77, 145, 177, 0.16);
}

.blog-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 48px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.article-page {
  padding-top: var(--header-height);
  background:
    radial-gradient(ellipse at 75% 4%, rgba(67, 143, 178, 0.12), transparent 32%),
    #03090d;
}

.article-header {
  width: min(1040px, calc(100% - 96px));
  margin: 0 auto;
  padding: 96px 0 58px;
  text-align: center;
}

.article-header .article-category {
  margin-bottom: 22px;
}

.article-header h1 {
  max-width: 980px;
  margin: 0 auto;
  color: #f2f6f8;
  font-size: clamp(40px, 5.3vw, 64px);
  font-weight: 420;
  letter-spacing: -0.052em;
  line-height: 1.02;
}

.article-header__intro {
  max-width: 760px;
  margin: 28px auto 0;
  color: #c3d0d6;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.68;
}

.article-header time {
  display: block;
  margin-top: 23px;
  color: #8498a1;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.article-hero {
  width: min(1180px, calc(100% - 96px));
  margin: 0 auto 72px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #07151c;
}

.article-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 2.65;
  object-fit: cover;
}

.article-hero--contain {
  aspect-ratio: 1672 / 941;
}

.article-hero--contain img {
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}

.article-layout {
  display: grid;
  width: min(1040px, calc(100% - 96px));
  margin: 0 auto;
  padding-bottom: 112px;
  grid-template-columns: minmax(0, 720px) 210px;
  align-items: start;
  justify-content: space-between;
  gap: 70px;
}

.article-content {
  color: #bdcbd1;
  font-size: 17px;
  line-height: 1.82;
}

.article-content > *:first-child {
  margin-top: 0;
}

.article-content h2 {
  margin: 64px 0 20px;
  color: #eff4f6;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 480;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.article-content h3 {
  margin: 40px 0 15px;
  color: #e3ecef;
  font-size: 23px;
  font-weight: 520;
  letter-spacing: -0.02em;
}

.article-content p {
  margin: 0 0 24px;
}

.article-content a {
  color: #91c9e0;
  text-decoration: underline;
  text-decoration-color: rgba(145, 201, 224, 0.4);
  text-underline-offset: 0.22em;
}

.article-content ul,
.article-content ol {
  margin: 0 0 30px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 10px;
  padding-left: 6px;
}

.article-inline-image {
  margin: 42px 0;
}

.article-inline-image img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
}

.article-inline-image figcaption {
  margin-top: 11px;
  color: #7f949d;
  font-size: 11px;
  line-height: 1.5;
}

.article-table-wrap {
  margin: 38px 0;
  overflow-x: auto;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
}

.article-content th,
.article-content td {
  padding: 16px;
  border: 1px solid rgba(158, 194, 210, 0.16);
  text-align: left;
  vertical-align: top;
}

.article-content th {
  color: #e6eff2;
  background: rgba(77, 145, 177, 0.12);
  font-weight: 650;
}

.article-video {
  position: relative;
  margin: 42px 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #07151c;
}

.article-video iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 0;
  inset: 0;
}

.article-aside {
  position: sticky;
  top: 32px;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.article-aside p {
  margin: 0 0 10px;
  color: #758b94;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-aside a {
  display: inline-block;
  padding: 8px 0;
  color: #b8c6cc;
  font-size: 12px;
  line-height: 1.45;
}

.article-aside a:hover,
.article-aside a:focus-visible {
  color: #8bc3dc;
}

.article-cta {
  margin-top: 68px;
  padding: 34px;
  border: 1px solid rgba(112, 180, 211, 0.3);
  background: linear-gradient(140deg, rgba(77, 145, 177, 0.16), rgba(6, 20, 27, 0.65));
}

.article-cta h2,
.article-cta h3 {
  margin: 0 0 14px;
  font-size: 29px;
}

.article-cta p {
  margin-bottom: 24px;
}

.article-cta .button {
  text-decoration: none;
}

.article-back {
  display: inline-flex;
  margin-top: 36px;
  color: #a8c8d5 !important;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-decoration: none !important;
  text-transform: uppercase;
}

.related-posts {
  padding: 92px max(48px, calc((100vw - 1440px) / 2 + 48px)) 112px;
  border-top: 1px solid var(--line);
  background: #061118;
}

.related-posts__inner {
  width: min(1344px, 100%);
  margin: 0 auto;
}

.related-posts h2 {
  margin: 0 0 38px;
  color: #edf4f6;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 450;
  letter-spacing: -0.035em;
}

@media (max-width: 980px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: minmax(0, 720px);
    justify-content: center;
  }

  .article-aside {
    display: none;
  }
}

@media (max-width: 900px) {
  .home-news__header {
    grid-template-columns: 1fr;
  }

  .blog-page__hero,
  .blog-page__content,
  .article-header,
  .article-hero,
  .article-layout {
    width: calc(100% - 56px);
  }

  .blog-page__hero {
    padding-top: 82px;
  }

  .article-header h1 {
    font-size: clamp(37px, 6.5vw, 53px);
  }
}

@media (max-width: 640px) {
  .home-news,
  .related-posts {
    padding: 82px 20px 92px;
  }

  .home-news__header {
    margin-bottom: 38px;
  }

  .home-news__action {
    justify-content: stretch;
  }

  .home-news__action .button {
    width: 100%;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card__visual {
    height: 190px;
  }

  .blog-card__body {
    min-height: 285px;
    padding: 23px;
  }

  .blog-page__hero,
  .blog-page__content,
  .article-header,
  .article-hero,
  .article-layout {
    width: calc(100% - 40px);
  }

  .blog-page__hero {
    padding: 64px 0 48px;
  }

  .blog-page__content {
    padding: 40px 0 90px;
  }

  .blog-filters {
    margin-bottom: 34px;
  }

  .blog-filter {
    min-height: 44px;
  }

  .article-header {
    padding: 66px 0 42px;
    text-align: left;
  }

  .article-header h1 {
    font-size: clamp(34px, 9.5vw, 43px);
  }

  .article-header__intro {
    margin-left: 0;
  }

  .article-hero {
    margin-bottom: 48px;
  }

  .article-hero img {
    aspect-ratio: 4 / 3;
  }

  .article-hero--contain {
    aspect-ratio: 1672 / 941;
  }

  .article-hero--contain img {
    aspect-ratio: auto;
  }

  .article-layout {
    padding-bottom: 82px;
  }

  .article-content {
    font-size: 16px;
    line-height: 1.75;
  }

  .article-content h2 {
    margin-top: 50px;
  }

  .article-table-wrap {
    margin-right: -20px;
  }

  .article-cta {
    padding: 27px 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-card,
  .blog-card__visual img {
    transition: none;
  }
}
