body.s-blog {
  font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  color: #071b46;
  line-height: 1.56;
  background:
    radial-gradient(circle at 88% 10%, rgba(0, 109, 255, 0.1), transparent 24rem),
    linear-gradient(180deg, #f9fcff 0%, #eef6ff 100%);
}

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

.s-blog-hero {
  position: relative;
  padding: clamp(4.5rem, 8vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.94) 0%, rgba(237, 246, 255, 0.84) 100%),
    radial-gradient(circle at 82% 24%, rgba(0, 109, 255, 0.13), transparent 22rem);
}

.s-blog-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: min(58vw, 42rem);
  height: 100%;
  pointer-events: none;
  opacity: 0.58;
  background:
    radial-gradient(circle at 22% 42%, rgba(255, 255, 255, 0.95) 0 0.24rem, transparent 0.26rem),
    radial-gradient(circle at 64% 28%, rgba(255, 255, 255, 0.9) 0 0.3rem, transparent 0.32rem),
    radial-gradient(circle at 86% 66%, rgba(255, 255, 255, 0.95) 0 0.25rem, transparent 0.27rem),
    linear-gradient(130deg, transparent 18%, rgba(255, 255, 255, 0.72) 18.2%, transparent 18.8%),
    linear-gradient(160deg, transparent 42%, rgba(255, 255, 255, 0.66) 42.2%, transparent 42.8%),
    linear-gradient(25deg, transparent 57%, rgba(255, 255, 255, 0.62) 57.2%, transparent 57.8%);
}

.s-blog-hero .l-container {
  position: relative;
  z-index: 1;
}

.c-eyebrow {
  display: inline-block;
  margin: 0 0 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: #006dff;
  font-weight: 900;
}

.s-blog-hero h1 {
  max-width: 24ch;
  margin: 0;
  color: #071b46;
  font-size: clamp(2.25rem, 4.4vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.c-lead {
  max-width: 44rem;
  margin: 1.3rem 0 0;
  color: #425b79;
  font-size: 1rem;
}

.c-blog-search {
  width: min(100%, 24rem);
  min-height: 3.2rem;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0 1rem;
  border: 1px solid rgba(25, 99, 176, 0.12);
  border-radius: 8px;
  color: #006dff;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(32, 82, 145, 0.1);
}

.c-blog-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #153762;
  background: transparent;
  font: inherit;
}

.s-blog-list {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(circle at 14% 18%, rgba(0, 109, 255, 0.045), transparent 20rem),
    radial-gradient(circle at 82% 30%, rgba(20, 217, 255, 0.06), transparent 24rem),
    linear-gradient(180deg, #f7fbff 0%, #edf5fc 100%);
}

.l-blog-shell {
  display: grid;
  gap: 2rem;
}

.c-blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.c-blog-filters a,
.c-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0 1.1rem;
  border: 1px solid rgba(25, 99, 176, 0.13);
  border-radius: 999px;
  color: #0b579d;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(32, 82, 145, 0.06);
}

.c-blog-filters a.is-active,
.c-pagination a.is-active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #0054e9, #087bff);
  box-shadow: 0 10px 22px rgba(0, 109, 255, 0.24);
}

.l-blog-content {
  display: grid;
  gap: 2rem;
}

.l-grid--posts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.c-post-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.9));
  box-shadow: 0 18px 38px rgba(32, 82, 145, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.c-post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(105, 178, 255, 0.42);
  box-shadow: 0 22px 42px rgba(32, 82, 145, 0.14), 0 0 30px rgba(20, 217, 255, 0.12);
}

.c-post-card__media {
  display: block;
}

.c-post-card__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.c-post-card__body {
  display: grid;
  gap: 0.85rem;
  padding: 1.15rem 1.05rem 1rem;
}

.c-post-card__category {
  width: max-content;
  margin: 0;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  color: #006dff;
  background: rgba(0, 109, 255, 0.08);
  font-size: 0.68rem;
  font-weight: 900;
}

.c-post-card h2 {
  margin: 0;
  color: #071b46;
  font-size: 1.08rem;
  line-height: 1.34;
  letter-spacing: -0.02em;
}

.c-post-card p {
  margin: 0;
  color: #445a78;
  font-size: 0.9rem;
}

.c-post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin-top: 0.55rem;
  color: #5c7190;
  font-size: 0.76rem;
}

.c-post-card__meta span + span {
  padding-left: 0.75rem;
  border-left: 1px solid rgba(25, 99, 176, 0.16);
}

.c-post-card__meta a {
  margin-left: auto;
  color: #006dff;
  font-size: 1.2rem;
  line-height: 1;
}

.c-post-card--empty {
  grid-column: 1 / -1;
}

.c-blog-sidebar {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.c-sidebar-card,
.c-sidebar-newsletter {
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(32, 82, 145, 0.09);
  padding: 1.35rem;
}

.c-sidebar-card h2,
.c-sidebar-newsletter h2 {
  margin: 0 0 1rem;
  color: #071b46;
  font-size: 1.1rem;
  line-height: 1.2;
}

.c-category-list,
.c-popular-list {
  display: grid;
  gap: 0.8rem;
}

.c-category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #425b79;
  font-size: 0.86rem;
  font-weight: 700;
}

.c-category-list strong {
  min-width: 1.75rem;
  min-height: 1.75rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #657792;
  background: #eef5ff;
  font-size: 0.78rem;
}

.c-sidebar-newsletter {
  color: #ffffff;
  background:
    radial-gradient(circle at 14% 0%, rgba(0, 109, 255, 0.55), transparent 12rem),
    linear-gradient(135deg, #041d4f 0%, #020b27 100%);
  box-shadow: 0 0 0 2px rgba(0, 109, 255, 0.78), 0 22px 42px rgba(0, 64, 168, 0.22);
}

.c-sidebar-newsletter h2 {
  color: #ffffff;
}

.c-sidebar-newsletter p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.c-sidebar-newsletter form {
  display: grid;
  gap: 0.75rem;
}

.c-sidebar-newsletter input,
.c-sidebar-newsletter button {
  min-height: 2.8rem;
  border-radius: 999px;
  font: inherit;
}

.c-sidebar-newsletter input {
  min-width: 0;
  padding: 0 1rem;
  border: 1px solid rgba(130, 181, 255, 0.28);
  color: #ffffff;
  background: rgba(3, 19, 52, 0.68);
}

.c-sidebar-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.c-sidebar-newsletter button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #0054e9, #087bff);
  font-weight: 900;
}

.c-popular-list a {
  display: grid;
  grid-template-columns: 4rem 1fr;
  align-items: center;
  gap: 0.75rem;
  color: #273f60;
  font-size: 0.82rem;
  font-weight: 800;
}

.c-popular-list img {
  width: 4rem;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 7px;
}

.c-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.7rem;
}

.c-pagination a {
  width: 2.45rem;
  padding: 0;
  border-radius: 8px;
}

.c-pagination a.is-disabled {
  pointer-events: none;
  opacity: 0.42;
}

.c-blog-cta {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1rem;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  border: 1px solid rgba(83, 169, 255, 0.22);
  border-radius: 8px;
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 50%, rgba(0, 109, 255, 0.44), transparent 12rem),
    linear-gradient(135deg, #05255d 0%, #031c42 100%);
  box-shadow: 0 22px 48px rgba(0, 64, 168, 0.22), 0 0 38px rgba(0, 109, 255, 0.24);
}

.c-blog-cta h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.2;
}

.c-blog-cta p {
  margin: 0.55rem 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.c-blog-cta .c-btn {
  justify-self: start;
}

@media (min-width: 760px) {
  .l-grid--posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 1120px) {
  .l-blog-content {
    grid-template-columns: minmax(0, 1fr) 16.5rem;
    align-items: start;
  }

  .l-grid--posts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .c-post-card__meta a {
    width: 100%;
    margin-left: 0;
  }
}

/* Visual coherence pass: align blog cards, sidebar and CTA with HOME */
body.s-blog {
  color: #071b46;
}

.s-blog h1,
.s-blog h2,
.s-blog h3 {
  letter-spacing: 0;
}

.s-blog .c-eyebrow {
  color: #006dff;
  letter-spacing: 0.18em;
}

.s-blog-hero {
  background:
    linear-gradient(90deg, rgba(2, 10, 29, 0.94) 0%, rgba(2, 12, 34, 0.86) 45%, rgba(2, 12, 34, 0.42) 72%, rgba(2, 12, 34, 0.2) 100%),
    radial-gradient(circle at 18% 35%, rgba(31, 116, 255, 0.28), transparent 22rem),
    radial-gradient(circle at 82% 45%, rgba(20, 217, 255, 0.16), transparent 28rem),
    linear-gradient(135deg, #01081d 0%, #021136 48%, #041646 100%);
}

.s-blog-hero::after {
  opacity: 0.22;
}

.s-blog-hero .c-eyebrow {
  color: #8fd4ff;
}

.s-blog-hero h1 {
  color: #f3f8ff;
  text-shadow: 0 2px 16px rgba(1, 8, 29, 0.88);
}

.s-blog-hero .c-lead {
  color: #c9dcf8;
}

.s-blog .c-blog-search,
.s-blog .c-post-card,
.s-blog .c-sidebar-card,
.s-blog .c-sidebar-newsletter,
.s-blog .c-blog-cta,
.s-blog .c-pagination a,
.s-blog .c-popular-list img {
  border-radius: 8px;
}

.s-blog .c-post-card,
.s-blog .c-sidebar-card,
.s-blog .c-blog-search {
  border-color: rgba(20, 81, 142, 0.13);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.9));
  box-shadow: 0 18px 38px rgba(32, 82, 145, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.s-blog .c-sidebar-newsletter,
.s-blog .c-blog-cta {
  border-color: rgba(83, 169, 255, 0.24);
  background:
    radial-gradient(circle at 12% 50%, rgba(0, 109, 255, 0.44), transparent 12rem),
    linear-gradient(135deg, #05255d 0%, #031c42 100%);
  box-shadow: 0 22px 48px rgba(0, 64, 168, 0.22), 0 0 38px rgba(0, 109, 255, 0.24);
}

.s-blog .c-btn--primary,
.s-blog .c-sidebar-newsletter button {
  color: #ffffff;
  background: linear-gradient(135deg, #0054e9 0%, #087bff 100%);
  box-shadow: 0 12px 24px rgba(8, 92, 223, 0.34);
}

/* Restore internal banner to the previous light treatment. */
.s-blog-hero {
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.94) 0%, rgba(237, 246, 255, 0.84) 100%),
    radial-gradient(circle at 82% 24%, rgba(0, 109, 255, 0.13), transparent 22rem);
}

.s-blog-hero::after {
  opacity: 0.58;
}

.s-blog-hero .c-eyebrow {
  color: #006dff;
  letter-spacing: 0.14em;
}

.s-blog-hero h1 {
  color: #071b46;
  letter-spacing: -0.04em;
  text-shadow: none;
}

.s-blog-hero .c-lead {
  color: #425b79;
}

/* Mobile/content QA: imported posts and CTAs should never overflow narrow screens. */
.s-blog h1,
.s-blog h2,
.s-blog h3,
.c-post-card h2,
.c-post-card h2 a {
  overflow-wrap: anywhere;
  hyphens: auto;
}

.c-post-card__category {
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .s-blog-hero {
    padding: 3.6rem 0 2.6rem;
  }

  .s-blog-hero h1 {
    max-width: 20ch;
    font-size: clamp(1.85rem, 9vw, 2.35rem);
    line-height: 1.16;
    letter-spacing: 0;
  }

  .s-blog-hero .c-lead {
    font-size: 1rem;
    line-height: 1.6;
  }

  .c-blog-search {
    width: 100%;
  }

  .c-blog-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .c-blog-filters::-webkit-scrollbar {
    display: none;
  }

  .c-blog-filters a {
    flex: 0 0 auto;
  }

  .c-post-card__body {
    padding: 1rem;
  }

  .c-blog-cta {
    grid-template-columns: 1fr;
    padding: 1.35rem;
  }

  .c-blog-cta .c-btn {
    width: 100%;
    justify-self: stretch;
    white-space: normal;
    line-height: 1.25;
    text-align: center;
  }
}

/* Final type normalization against the HOME scale. */
.s-blog-hero .c-eyebrow {
  margin: 0 0 1.25rem;
  color: #005fcf;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.18em;
}

.s-blog-hero h1 {
  max-width: 22ch;
  font-size: clamp(2.15rem, 4.1vw, 3.45rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0;
}

.s-blog-hero .c-lead {
  color: #253a5d;
  font-size: 1.06rem;
  line-height: 1.65;
}

@media (max-width: 640px) {
  .s-blog-hero .c-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .s-blog-hero h1 {
    max-width: 20ch;
    font-size: clamp(1.85rem, 9vw, 2.35rem);
  }

  .s-blog-hero .c-lead {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* Page harmony pass: match Sobre nosotros hero, image and type scale. */
.s-blog-hero {
  min-height: clamp(32rem, 62vh, 43rem);
  display: grid;
  align-items: center;
  padding: clamp(5.5rem, 8vw, 7.6rem) 0 clamp(5rem, 8vw, 6.8rem);
  background:
    linear-gradient(90deg, rgba(248, 251, 255, 0.99) 0%, rgba(248, 251, 255, 0.95) 39%, rgba(248, 251, 255, 0.48) 66%, rgba(248, 251, 255, 0.08) 100%),
    url("/assets/img/blog-hero-insights-light-v1.png") center / cover no-repeat,
    linear-gradient(112deg, #f8fbff 0%, #edf7ff 52%, #dff2ff 100%);
}

.s-blog-hero::after {
  inset: auto 0 0;
  width: auto;
  height: 7.8rem;
  opacity: 1;
  background:
    radial-gradient(ellipse at 18% 100%, rgba(0, 109, 255, 0.18), transparent 28rem),
    linear-gradient(180deg, transparent, rgba(248, 251, 255, 0.98));
}

body.s-blog .s-blog-hero h1 {
  max-width: 32ch;
  color: #071b46;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.33;
  letter-spacing: 0;
  text-shadow: none;
}

body.s-blog .s-blog-hero .c-lead {
  max-width: 50rem;
  margin-top: 1rem;
  color: #253a5d;
  font-size: 1.1rem;
  line-height: 1.65;
}

body.s-blog .c-blog-search {
  margin-top: 2rem;
}

body.s-blog .c-blog-search span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.4rem;
  height: 1.4rem;
}

body.s-blog .c-blog-search img {
  width: 1.1rem;
  height: 1.1rem;
  object-fit: contain;
}

body.s-blog .c-post-card h2,
body.s-blog .c-sidebar-card h2,
body.s-blog .c-sidebar-newsletter h2 {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
}

body.s-blog .c-post-card p,
body.s-blog .c-sidebar-card,
body.s-blog .c-sidebar-newsletter p,
body.s-blog .c-blog-cta p {
  font-size: 0.92rem;
  line-height: 1.62;
}

body.s-blog .c-blog-cta h2 {
  font-size: clamp(1.55rem, 2.45vw, 2.05rem);
  font-weight: 900;
  line-height: 1.16;
}

@media (max-width: 640px) {
  .s-blog-hero {
    min-height: auto;
    padding: 4.8rem 0 5.2rem;
    background:
      linear-gradient(180deg, rgba(248, 251, 255, 0.99) 0%, rgba(248, 251, 255, 0.9) 56%, rgba(248, 251, 255, 0.46) 100%),
      url("/assets/img/blog-hero-insights-light-v1.png") 66% center / cover no-repeat,
      linear-gradient(112deg, #f8fbff 0%, #edf7ff 52%, #dff2ff 100%);
  }

  body.s-blog .s-blog-hero h1 {
    max-width: 19ch;
    font-size: clamp(1.7rem, 9vw, 2.2rem);
  }

  body.s-blog .s-blog-hero .c-lead {
    font-size: 1rem;
  }
}

/* Review pass: final CTA follows the centered title treatment used across the site. */
body.s-blog .c-blog-cta {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

body.s-blog .c-blog-cta > div {
  max-width: 48rem;
  text-align: center;
}

body.s-blog .c-blog-cta h2 {
  margin-inline: auto;
  text-align: center;
}

body.s-blog .c-blog-cta p {
  max-width: 48rem;
  margin-inline: auto;
}

body.s-blog .c-blog-cta .c-btn {
  justify-self: center;
}

body.s-blog .s-blog-hero .c-eyebrow {
  position: relative;
  padding-right: 3.9rem;
}

body.s-blog .s-blog-hero .c-eyebrow::before,
body.s-blog .s-blog-hero .c-eyebrow::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

body.s-blog .s-blog-hero .c-eyebrow::before {
  right: 3.32rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #19d8ff;
  box-shadow: 0 0 13px rgba(25, 216, 255, 0.78);
}

body.s-blog .s-blog-hero .c-eyebrow::after {
  right: 0;
  width: 3rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(25, 216, 255, 0.92), rgba(25, 216, 255, 0));
}

/* Final blog hero and CTA fixes. Keep these below previous review passes. */
body.s-blog .s-blog-hero .c-blog-hero-intro {
  display: block;
  max-width: 42rem;
  margin: 1.05rem 0 0;
  padding: 0;
  border: 0;
  color: #2a4264;
  background: transparent;
  box-shadow: none;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.6;
}

body.s-blog .s-blog-hero h1 span {
  color: #006dff;
}

body.s-blog .c-blog-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: stretch;
  gap: 1.5rem;
  text-align: left;
}

body.s-blog .c-blog-cta > div,
body.s-blog .c-blog-cta h2,
body.s-blog .c-blog-cta p {
  max-width: none;
  margin-inline: 0;
  text-align: left;
}

body.s-blog .c-blog-cta .c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  min-width: 12.5rem;
  min-height: 3.1rem;
  padding: 0.78rem 1.35rem;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #0054e9 0%, #087bff 100%);
  box-shadow: 0 12px 24px rgba(8, 92, 223, 0.34);
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
}

@media (max-width: 760px) {
  body.s-blog .s-blog-hero .c-blog-hero-intro {
    font-size: 0.98rem;
  }

  body.s-blog .c-blog-cta {
    grid-template-columns: 1fr;
    text-align: center;
  }

  body.s-blog .c-blog-cta > div,
  body.s-blog .c-blog-cta h2,
  body.s-blog .c-blog-cta p {
    text-align: center;
  }

  body.s-blog .c-blog-cta .c-btn {
    width: 100%;
    justify-self: stretch;
    white-space: normal;
  }
}
