/* Blog: jerarquía editorial basada en evidencia de campo SINBIO. */
.blog {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 7vw, 96px) 0 clamp(68px, 8vw, 112px) !important;
}

.blog::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 85% 0%, rgba(0, 180, 212, .16), transparent 28%);
}

.blog .blog-shell {
  position: relative;
  max-width: 1120px;
  gap: clamp(30px, 4vw, 48px) !important;
}

.blog .blog-head {
  max-width: 800px;
  padding: 0 0 24px;
  border-bottom: 1px solid rgba(0, 132, 194, .22);
}

.blog .blog-head h1 {
  max-width: 13ch;
  margin: 10px 0 16px !important;
  font-size: clamp(2.45rem, 5.4vw, 4.9rem) !important;
  line-height: .98 !important;
  letter-spacing: -.045em;
}

.blog .blog-head > p:not(.eyebrow) {
  max-width: 66ch;
  margin: 0 !important;
  font-size: clamp(1rem, 1.4vw, 1.13rem) !important;
  line-height: 1.65 !important;
}

body .blog .posts {
  display: grid !important;
  gap: 18px !important;
}

body .blog .post {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 32%);
  grid-template-rows: auto auto 1fr auto;
  column-gap: clamp(24px, 3.2vw, 42px);
  align-items: center;
  min-height: 242px;
  padding: 26px 30px !important;
  overflow: hidden;
  border: 1px solid rgba(0, 125, 185, .2) !important;
  border-top: 3px solid #20b68a !important;
  border-radius: 16px !important;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

body .blog .post:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 145, 208, .55) !important;
}

body .blog .post > :not(.post-media) { grid-column: 1; }

body .blog .post > span {
  align-self: end;
  margin-bottom: 9px !important;
}

body .blog .post h2 {
  max-width: 28ch;
  margin: 0 0 10px !important;
  font-size: clamp(1.28rem, 2vw, 1.7rem) !important;
  line-height: 1.13 !important;
}

body .blog .post p {
  max-width: 56ch;
  margin: 0 0 15px !important;
  line-height: 1.55 !important;
}

body .blog .post small {
  align-self: start;
  font-weight: 750;
}

.post-media {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  margin: 0;
  height: 184px;
  min-height: 0;
  overflow: hidden;
  border-radius: 11px;
  background: #0b3554;
}

.post-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.post:hover .post-media img { transform: scale(1.045); }

/* Artículos: introducción más clara, fotografía contextual y lectura cómoda. */
.article-wrap {
  padding: clamp(48px, 7vw, 84px) 0 clamp(66px, 8vw, 104px) !important;
}

body .article-wrap .article {
  max-width: 940px;
  padding: clamp(28px, 5vw, 58px) !important;
  border: 1px solid rgba(0, 125, 185, .18);
  border-radius: 18px;
}

body .article-wrap .article h1 {
  max-width: 18ch;
  margin: 14px 0 16px !important;
  font-size: clamp(2.2rem, 5vw, 4.1rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -.04em;
}

body .article-wrap .article .dek {
  max-width: 62ch;
  font-size: clamp(1.04rem, 1.6vw, 1.2rem) !important;
  line-height: 1.62 !important;
}

.article-feature-image {
  margin: clamp(25px, 4vw, 40px) 0;
  overflow: hidden;
  border: 1px solid rgba(0, 125, 185, .22);
  border-radius: 14px;
  background: #0a324f;
  box-shadow: 0 16px 34px rgba(5, 49, 82, .13);
}

.article-feature-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
}

.article-feature-image figcaption {
  padding: 10px 14px 11px;
  font-size: .83rem;
  font-weight: 700;
  letter-spacing: .015em;
}

html:not([data-theme="dark"]) .blog,
html:not([data-theme="dark"]) .article-wrap {
  background: linear-gradient(135deg, #eefaff 0%, #f9fdff 49%, #e6f8f3 100%) !important;
}

html:not([data-theme="dark"]) .blog .blog-head h1,
html:not([data-theme="dark"]) .article-wrap .article h1,
html:not([data-theme="dark"]) .blog .post h2 { color: #082d4d !important; }

html:not([data-theme="dark"]) body .blog .post,
html:not([data-theme="dark"]) body .article-wrap .article {
  background: rgba(255, 255, 255, .9) !important;
  box-shadow: 0 13px 28px rgba(14, 64, 96, .09) !important;
}

html:not([data-theme="dark"]) .blog .blog-head > p:not(.eyebrow),
html:not([data-theme="dark"]) .blog .post p,
html:not([data-theme="dark"]) .article-wrap .article .dek,
html:not([data-theme="dark"]) .article-wrap .article > p { color: #375d76 !important; }

html:not([data-theme="dark"]) .article-feature-image figcaption { color: #dff6ff; background: #073553; }

html[data-theme="dark"] .blog,
html[data-theme="dark"] .article-wrap {
  background: linear-gradient(135deg, #031a2b 0%, #062943 55%, #062c40 100%) !important;
}

html[data-theme="dark"] body .blog .post,
html[data-theme="dark"] body .article-wrap .article {
  background: rgba(7, 39, 62, .92) !important;
  box-shadow: 0 18px 34px rgba(0, 0, 0, .2) !important;
}

html[data-theme="dark"] .blog .blog-head h1,
html[data-theme="dark"] .article-wrap .article h1,
html[data-theme="dark"] .blog .post h2 { color: #f2fbff !important; }

html[data-theme="dark"] .blog .blog-head > p:not(.eyebrow),
html[data-theme="dark"] .blog .post p,
html[data-theme="dark"] .article-wrap .article .dek,
html[data-theme="dark"] .article-wrap .article > p { color: #b9d2e1 !important; }

html[data-theme="dark"] .article-feature-image figcaption { color: #bdebf3; background: #051e31; }

@media (max-width: 760px) {
  .blog { padding: 38px 0 54px !important; }

  .blog .blog-head { padding: 0 0 19px; }

  .blog .blog-head h1 {
    max-width: 11.5ch;
    font-size: clamp(2.18rem, 11.2vw, 3.2rem) !important;
    line-height: 1.02 !important;
  }

  body .blog .post {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0;
    min-height: 0;
    padding: 0 0 22px !important;
    border-radius: 14px !important;
  }

  .post-media {
    grid-column: 1;
    grid-row: auto;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    margin: 0 0 18px;
    border-radius: 10px 10px 0 0;
  }

  body .blog .post > :not(.post-media) { margin-inline: 20px !important; }
  body .blog .post > span { margin-bottom: 8px !important; }
  body .blog .post h2 { margin-bottom: 9px !important; }
  body .blog .post p { margin-bottom: 13px !important; }

  .article-wrap { padding: 36px 0 54px !important; }
  body .article-wrap .article { padding: 25px 20px 30px !important; border-radius: 15px; }
  body .article-wrap .article h1 { max-width: 13ch; font-size: clamp(2rem, 10.5vw, 2.8rem) !important; }
  .article-feature-image { margin: 23px 0 27px; border-radius: 11px; }
  .article-feature-image img { aspect-ratio: 4 / 3; }
  .article-feature-image figcaption { padding: 9px 11px 10px; font-size: .78rem; }
}