/* Blog and newsletter on the agency landing. Articles come from blog/feed.php. */
.blog-strip {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 110px) 0;
  /* Flat ivory, no glows: the landing uses flat colours and textures only. Ivory since 2026-10-02, so it
     alternates with the navy Laboratorio above and the navy Club banner below. */
  background: var(--ivory, #f4edd9);
  color: var(--ink, #0f0f1a);
}

/* Heading and newsletter pitch share the same container as the article grid. */
.blog-strip__head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px clamp(32px, 5vw, 80px);
  align-items: end;
}

.blog-strip__head .eyebrow {
  margin: 0;
  color: rgba(15, 15, 26, 0.6);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.blog-strip__head h3 {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink, #0f0f1a);
}

.blog-strip__head .lede {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(15, 15, 26, 0.72);
}

/* Secondary to the newsletter CTA, and it belongs to the section rather than to the
   newsletter, so it sits under the title instead of beside the pink button. Same 52px and
   12px radius as that one; outlined, so the two never compete. */
/* Pegado a la lista y alineado a la derecha: cierra la fila de artículos en vez de abrir
   una propia. Antes se llevaba un renglón de 1200px para 268px de contenido. */
.blog-strip__more {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

/* Enlace, no botón. Medido: con el tratamiento anterior tenía exactamente la misma altura,
   tipografía y peso que el CTA del boletín —y 27px más de ancho—, así que un enlace de
   navegación terciario competía de igual a igual con la acción principal de la sección.
   Este es el mismo lenguaje que «Leer la nota →» en el índice del blog. */
.blog-strip__all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pink, #ff2a6f);
  font: 700 0.95rem/1 var(--font-display, "Poppins", sans-serif);
  text-decoration: none;
  transition: gap 0.24s ease, opacity 0.24s ease;
}

.blog-strip__all span { transition: transform 0.24s ease; }

.blog-strip__all:hover span,
.blog-strip__all:focus-visible span { transform: translateX(3px); }

.blog-strip__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 24px;
}

.blog-strip__cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 22px;
  border-radius: 12px;
  background: var(--pink, #ff2a6f);
  color: #ffffff;
  font: 700 0.9rem/1 var(--font-body, "Roboto", sans-serif);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.28s ease;
}

.blog-strip__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--navy, #0b0b1c);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
}

.blog-strip__cta:hover,
.blog-strip__cta:focus-visible { color: #ffffff; transform: translateY(-1px); }

.blog-strip__cta:hover::before,
.blog-strip__cta:focus-visible::before { transform: scaleX(1); }

.blog-strip__note {
  margin: 0;
  font: 400 0.85rem/1.4 var(--font-body, "Roboto", sans-serif);
  color: rgba(15, 15, 26, 0.6);
}

/* Article cards own their layout; case-study tile styles do not apply here. */
.blog-strip__viewport {
  position: relative;
  margin-top: clamp(32px, 4vw, 52px);
}
.blog-strip__marquee {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  padding-bottom: 20px;
}
.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--navy, #0b0b1c);
  color: #fff;
  text-decoration: none;
}
/* A shared edge remains visible on both light artwork and dark photography. */
.blog-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(15, 15, 26, .16);
  border-radius: inherit;
  pointer-events: none;
}
.blog-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #12142a;
}
.blog-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.blog-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--navy, #0b0b1c);
  color: var(--ivory, #f4edd9);
  border: 1px solid rgba(244, 237, 217, .35);
  font: 600 12px/1.2 var(--font-body, "Roboto", sans-serif);
}
.blog-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(22px, 2.4vw, 32px);
}
.blog-card__title {
  margin: 0;
  color: #fff;
  font: 600 clamp(22px, 2.1vw, 28px)/1.22 var(--font-display, "Poppins", sans-serif);
  letter-spacing: -0.025em;
  text-transform: none;
  text-wrap: pretty;
}
.blog-card__copy {
  margin: 14px 0 24px;
  color: #c9c9d2;
  font: 400 16px/1.55 var(--font-body, "Roboto", sans-serif);
}
.blog-card__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: stretch;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.16);
  color: #fff;
  font: 600 14px/1.4 var(--font-display, "Poppins", sans-serif);
}
.blog-card__action span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pink, #ff2a6f);
  flex-shrink: 0;
  transition: background-color 180ms ease, color 180ms ease;
}
.blog-card__action svg { width: 20px; height: 20px; }
.blog-card:focus-visible {
  outline: 3px solid var(--pink, #ff2a6f);
  outline-offset: 5px;
}
/* Interaction stays inside the CTA, so neighboring cards keep their alignment. */
.blog-card:focus-visible .blog-card__action span {
  background: var(--ivory, #f4edd9);
  color: var(--navy, #0b0b1c);
}
@media (hover: hover) {
  .blog-card:hover .blog-card__action span {
    background: var(--ivory, #f4edd9);
    color: var(--navy, #0b0b1c);
  }
}
@media (min-width: 720px) {
  .blog-card:only-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
  }
  .blog-card:only-child .blog-card__media { aspect-ratio: auto; min-height: 320px; }
}
@media (max-width: 900px) {
  .blog-strip__head { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 719px) {
  .blog-strip__marquee { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .blog-card, .blog-card__media img, .blog-card__action span { transition: none; }
}
