/* Editorial preview on the home page. */
.blog-preview {
  padding: clamp(74px, 9vw, 118px) 24px;
  border-top: 1px solid rgba(166, 207, 246, .14);
  background: linear-gradient(180deg, rgba(10, 25, 42, .26), transparent 58%);
}

.blog-preview-inner {
  width: min(100%, 1320px);
  margin-inline: auto;
}

.blog-preview-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr);
  align-items: end;
  gap: 28px;
  margin-bottom: 34px;
}

.blog-preview-heading .eyebrow {
  margin-bottom: 14px;
}

.blog-preview-heading h2 {
  margin: 0;
  color: #f1f6ff;
  font-family: var(--font-head, "DM Sans", Arial, sans-serif);
  font-size: clamp(38px, 5.1vw, 68px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.06em;
  text-wrap: balance;
}

.blog-preview-heading h2 span { color: #9eb7d1; }

.blog-preview-heading > p {
  max-width: 43ch;
  margin: 0 0 4px auto;
  color: #b3c5d8;
  font-size: 15px;
  line-height: 1.7;
}

.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(166, 207, 246, .2);
  border-bottom: 1px solid rgba(166, 207, 246, .2);
}

.blog-teaser {
  display: flex;
  min-width: 0;
  min-height: 250px;
  flex-direction: column;
  align-items: flex-start;
  padding: 23px 25px 22px 0;
  color: inherit;
  text-decoration: none;
}

.blog-teaser + .blog-teaser {
  padding-left: 25px;
  border-left: 1px solid rgba(166, 207, 246, .16);
}

.blog-teaser-category {
  color: #7fcaff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
}

.blog-teaser-date {
  margin-top: 7px;
  color: #91a9c2;
  font-size: 11px;
  line-height: 1.4;
}

.blog-teaser h3 {
  margin: 21px 0 9px;
  color: #f0f6ff;
  font-family: var(--font-head, "DM Sans", Arial, sans-serif);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.035em;
  text-wrap: balance;
  transition: color .18s ease;
}

.blog-teaser p {
  margin: 0 0 18px;
  color: #aebfd2;
  font-size: 13px;
  line-height: 1.6;
}

.blog-teaser-action,
.blog-preview-all {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  color: #91d8ff;
  font-size: 13px;
  font-weight: 700;
}

.blog-teaser-action { margin-top: auto; }

.blog-teaser-action > span,
.blog-preview-all > span { transition: transform .18s ease; }

.blog-teaser:hover h3,
.blog-teaser:focus-visible h3 { color: #82d7ff; }

.blog-teaser:hover .blog-teaser-action > span,
.blog-teaser:focus-visible .blog-teaser-action > span,
.blog-preview-all:hover > span,
.blog-preview-all:focus-visible > span { transform: translateX(4px); }

.blog-preview-all {
  margin-top: 15px;
  text-decoration: none;
}

.blog-preview :where(a):focus-visible {
  outline: 2px solid #8cdaff;
  outline-offset: 4px;
}

/* Shared editorial pages. */
.blog-page {
  min-height: 100vh;
  margin: 0;
  background: #081322;
  color: #edf5ff;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.blog-page *,
.blog-page *::before,
.blog-page *::after { box-sizing: border-box; }

.blog-page a { color: inherit; }

.blog-page a:focus-visible {
  outline: 2px solid #8cdaff;
  outline-offset: 4px;
}

.blog-skip-link {
  position: fixed;
  z-index: 100;
  top: -64px;
  left: 16px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: #081322 !important;
}

.blog-skip-link:focus { top: 12px; }

.blog-topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(196, 223, 255, .12);
  background: rgba(8, 19, 34, .88);
  backdrop-filter: blur(18px);
}

.blog-topbar-inner {
  display: flex;
  width: min(100% - 48px, 1200px);
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-inline: auto;
}

.blog-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: #edf5ff;
  font-family: "Plus Jakarta Sans", "DM Sans", Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.055em;
  text-decoration: none;
  white-space: nowrap;
}

.blog-brand strong { font-weight: 700; }
.blog-brand .blog-brand-dot { color: #37c6ff; }

.blog-brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 13px;
  background: #091a2d url("assets/mi-pagina-cr-logo.svg") center / 100% 100% no-repeat;
  box-shadow: 0 4px 18px rgba(2, 136, 255, .2);
}

.blog-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
}

.blog-topbar-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-inline: 9px;
  color: #c0d0e1;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.blog-topbar-link:hover { color: #fff; }

.blog-topbar-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 13px;
  background: linear-gradient(135deg, #19a8ff, #075be8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: filter .18s ease, transform .18s ease;
}

.blog-topbar-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

.blog-main {
  width: min(100% - 48px, 1080px);
  min-height: 65vh;
  margin-inline: auto;
  padding-block: 32px 96px;
}

.blog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: #91a8c0;
  font-size: 12px;
}

.blog-breadcrumb a { color: #b8ccdf; text-decoration: none; }
.blog-breadcrumb a:hover { color: #fff; }

.blog-eyebrow {
  margin: 0 0 12px;
  color: #85cffb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.blog-index-intro {
  max-width: 820px;
  margin: 54px 0 48px;
}

.blog-index-intro h1,
.blog-post-heading h1 {
  margin: 0;
  color: #f2f7ff;
  font-family: "Plus Jakarta Sans", "DM Sans", Arial, sans-serif;
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 600;
  line-height: .99;
  letter-spacing: -.075em;
  text-wrap: balance;
}

.blog-index-intro > p:last-child {
  max-width: 60ch;
  margin: 20px 0 0;
  color: #b3c5d8;
  font-size: 17px;
  line-height: 1.7;
}

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

.blog-card {
  display: flex;
  min-width: 0;
  min-height: 255px;
  flex-direction: column;
  align-items: flex-start;
  padding: 23px 24px 18px;
  border: 1px solid rgba(166, 207, 246, .16);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(16, 37, 59, .78), rgba(9, 23, 39, .78));
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.blog-card-image {
  display: block;
  width: calc(100% + 48px);
  height: auto;
  aspect-ratio: 16 / 9;
  margin: -23px -24px 18px;
  border-bottom: 1px solid rgba(166, 207, 246, .16);
  border-radius: 16px 16px 0 0;
  background: #102238;
  object-fit: cover;
  object-position: center;
}

.blog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(100, 191, 249, .48);
  background-color: rgba(19, 46, 72, .8);
}

.blog-card-category {
  color: #85cffb;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.blog-card-date {
  margin-top: 7px;
  color: #91a9c2;
  font-size: 12px;
  line-height: 1.4;
}

.blog-card h2 {
  margin: 19px 0 8px;
  color: #f0f6ff;
  font-family: "Plus Jakarta Sans", "DM Sans", Arial, sans-serif;
  font-size: clamp(22px, 2.5vw, 29px);
  font-weight: 600;
  line-height: 1.17;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.blog-card p {
  margin: 0 0 18px;
  color: #b2c4d8;
  font-size: 14px;
  line-height: 1.6;
}

.blog-card-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  color: #91d8ff;
  font-size: 13px;
  font-weight: 700;
}

.blog-card-action span { transition: transform .18s ease; }
.blog-card:hover .blog-card-action span { transform: translateX(4px); }

.blog-post {
  width: min(100% - 48px, 850px);
  padding-top: 32px;
}

.blog-post-heading {
  margin: 52px 0 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(166, 207, 246, .17);
}

.blog-post-date {
  margin: 14px 0 0;
  color: #91a9c2;
  font-size: 13px;
  line-height: 1.5;
}

.blog-post-heading h1 { max-width: 14ch; font-size: clamp(40px, 6vw, 68px); }

.blog-post-image {
  overflow: hidden;
  margin: -12px 0 36px;
  border: 1px solid rgba(166, 207, 246, .16);
  border-radius: 18px;
  background: #102238;
}

.blog-post-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.blog-post-lead {
  max-width: 65ch;
  margin: 20px 0 0;
  color: #bed0e2;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.65;
}

.blog-article-body {
  color: #d1dfed;
  font-size: 17px;
  line-height: 1.78;
}

.blog-article-body h2 {
  margin: 40px 0 12px;
  color: #f2f7ff;
  font-family: "Plus Jakarta Sans", "DM Sans", Arial, sans-serif;
  font-size: clamp(24px, 3.3vw, 32px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.blog-article-body h3 {
  margin: 27px 0 8px;
  color: #eef5ff;
  font-size: 19px;
  line-height: 1.35;
}

.blog-article-body p { margin: 0 0 18px; }

.blog-article-body a {
  color: #8bd7ff;
  text-decoration: underline;
  text-decoration-color: rgba(139, 215, 255, .48);
  text-underline-offset: 3px;
}

.blog-article-body a:hover { color: #fff; text-decoration-color: currentColor; }

.blog-article-body ul,
.blog-article-body ol {
  display: grid;
  gap: 9px;
  margin: 0 0 22px;
  padding-left: 23px;
}

.blog-article-body li { padding-left: 3px; }

.blog-takeaway {
  margin: 26px 0;
  padding: 17px 20px;
  border-left: 2px solid #45bbff;
  border-radius: 0 12px 12px 0;
  background: rgba(49, 132, 195, .1);
  color: #e1f1ff;
}

.blog-sources {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(166, 207, 246, .16);
  color: #aebfd2;
  font-size: 14px;
  line-height: 1.6;
}

.blog-sources strong { color: #dceafa; }
.blog-sources ul { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 10px 0 0; padding-left: 18px; }

.blog-contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin-top: 56px;
  padding: 23px 24px;
  border: 1px solid rgba(117, 190, 246, .2);
  border-radius: 17px;
  background: rgba(13, 33, 54, .8);
}

.blog-contact-panel h2 {
  margin: 0 0 5px;
  color: #f2f7ff;
  font-family: "Plus Jakarta Sans", "DM Sans", Arial, sans-serif;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -.03em;
}

.blog-contact-panel p { margin: 0; color: #b4c6d9; font-size: 14px; line-height: 1.5; }

.blog-contact-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 12px;
  background: linear-gradient(135deg, #19a8ff, #075be8);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
}

.blog-post-nav { margin-top: 24px; }
.blog-post-nav a { color: #9bdcff; font-size: 14px; font-weight: 700; text-decoration: none; }
.blog-post-nav a:hover { color: #fff; }

.blog-footer {
  border-top: 1px solid rgba(166, 207, 246, .14);
  background: rgba(5, 14, 25, .55);
}

.blog-footer-inner {
  display: flex;
  width: min(100% - 48px, 1080px);
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-inline: auto;
  color: #91a7be;
  font-size: 12px;
}

.blog-footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.blog-footer a { color: #bfd0e1; text-decoration: none; }
.blog-footer a:hover { color: #fff; }

@media (max-width: 760px) {
  .blog-preview-heading { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .blog-preview-heading > p { margin: 0; }
  .blog-preview-grid { grid-template-columns: minmax(0, 1fr); }
  .blog-teaser { min-height: 0; padding: 20px 0; }
  .blog-teaser + .blog-teaser { padding-left: 0; border-top: 1px solid rgba(166, 207, 246, .16); border-left: 0; }
  .blog-teaser h3 { margin-top: 12px; font-size: 24px; }
  .blog-card-grid { grid-template-columns: minmax(0, 1fr); }
  .blog-card { min-height: 220px; }
  .blog-contact-panel { grid-template-columns: minmax(0, 1fr); }
  .blog-contact-button { justify-self: start; }
}

@media (max-width: 520px) {
  .blog-preview { padding: 70px 18px; }
  .blog-preview-heading h2 { font-size: clamp(38px, 10vw, 52px); }
  .blog-topbar-inner { width: calc(100% - 28px); min-height: 68px; gap: 8px; }
  .blog-brand { gap: 8px; font-size: 15px; }
  .blog-brand-mark { width: 38px; height: 38px; }
  .blog-topbar-actions { gap: 4px; }
  .blog-topbar-link { padding-inline: 7px; font-size: 12px; }
  .blog-topbar-cta { min-height: 42px; padding-inline: 11px; font-size: 11px; }
  .blog-main,
  .blog-post { width: calc(100% - 36px); }
  .blog-index-intro { margin: 42px 0 32px; }
  .blog-index-intro h1 { font-size: clamp(41px, 11vw, 58px); }
  .blog-index-intro > p:last-child { font-size: 16px; }
  .blog-post-heading { margin: 38px 0 29px; padding-bottom: 24px; }
  .blog-post-heading h1 { font-size: clamp(39px, 10vw, 55px); }
  .blog-article-body { font-size: 16px; line-height: 1.72; }
  .blog-contact-panel { padding: 20px 18px; }
  .blog-footer-inner { width: calc(100% - 36px); align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .blog-teaser,
  .blog-teaser h3,
  .blog-teaser-action > span,
  .blog-preview-all > span,
  .blog-topbar-cta,
  .blog-card,
  .blog-card-action span { transition: none; }
  .blog-card:hover { transform: none; }
}
