/* Insights — maquetación según mockup PDF Insights_Telling */

body.page-insights {
  background: #fff;
  color: var(--text);
}

.page-insights .site-header {
  background: #fff;
}

.page-insights .site-footer {
  margin-top: 0;
}

.insights-mark {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.insights-mark::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: var(--stroke-gap);
  width: 100%;
  height: var(--stroke-h);
  background: var(--yellow);
  z-index: -1;
  border-radius: 2px;
  transform-origin: left center;
  transform: scaleX(0);
}

.insights-mark--dark::after {
  background: var(--text);
}

.reveal.is-visible .insights-mark::after {
  animation: yellow-stroke-in 0.75s var(--ease-out) 0.2s forwards;
}

/* ── Hero ─────────────────────────────────────────────────── */
.insights-hero {
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
}

.insights-hero__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 960px) {
  .insights-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
    gap: clamp(1.5rem, 3vw, 3rem);
  }
}

.insights-eyebrow {
  margin: 0 0 1.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.insights-eyebrow span {
  color: var(--text);
  margin-right: 0.35rem;
}

.insights-hero__title {
  margin: 0 0 1.35rem;
  max-width: 12ch;
  font-size: clamp(2.35rem, 1.75rem + 2.8vw, 3.4375rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.insights-hero__lead {
  margin: 0;
  max-width: 40ch;
  color: var(--muted);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  font-weight: 500;
}

.insights-hero__media {
  position: relative;
  margin: 0;
  overflow: visible;
}

.insights-hero__blob {
  position: absolute;
  z-index: 0;
  left: -18%;
  top: 6%;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--yellow);
  transform: translateX(-24px);
  opacity: 0;
  transition: transform 0.7s var(--ease-out);
}

.insights-hero__media-frame {
  position: relative;
  z-index: 1;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
}

.insights-hero__media-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1.15;
  object-fit: contain;
  transition: transform 0.65s var(--ease-out), filter 0.45s var(--ease-out);
}

.insights-hero__media:not(.has-no-grayscale) .insights-hero__media-frame img {
  filter: grayscale(1) contrast(1.04);
}

.insights-hero__media.has-no-grayscale .insights-hero__media-frame img {
  filter: none;
}

@media (hover: hover) {
  .insights-hero__media:not(.has-no-hover):hover .insights-hero__media-frame img {
    transform: scale(1.04);
  }

  .insights-hero__media:not(.has-no-hover):not(.has-no-grayscale):hover .insights-hero__media-frame img {
    filter: grayscale(0.82) contrast(1.05);
  }

  .insights-hero__media:not(.has-no-hover):hover .insights-hero__blob {
    transform: translateX(0) scale(1.03);
  }
}

.insights-hero__media.has-no-hover .insights-hero__media-frame img,
.insights-hero__media.has-no-hover .insights-hero__blob {
  transition: none;
}

.reveal.is-visible .insights-hero__blob {
  animation: insights-blob-in 1.05s var(--ease-out) 0.15s forwards;
}

@keyframes insights-blob-in {
  from {
    opacity: 0;
    transform: translateX(-48px) scale(0.88);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* ── Filtros ──────────────────────────────────────────────── */
.insights-filters {
  padding-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

.insights-posts__filters {
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.insights-filters__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.insights-filter {
  display: inline-flex;
  align-items: center;
  height: 2.35rem;
  padding-inline: 1rem;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  background: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}

.insights-filter:hover {
  border-color: var(--text);
}

.insights-filter.is-active {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

/* ── Destacado ────────────────────────────────────────────── */
.insights-featured {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.insights-featured__card {
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
}

@media (min-width: 900px) {
  .insights-featured__card {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.insights-featured__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 22rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 30%, rgb(255 255 255 / 6%) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgb(255 255 255 / 5%) 0 1px, transparent 1px),
    linear-gradient(145deg, #121212 0%, #1d1d1d 100%);
  background-size:
    28px 28px,
    34px 34px,
    auto;
  color: #fff;
}

.insights-featured__visual.has-image {
  background: #121212;
}

.insights-featured__visual-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.insights-featured__visual-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.insights-featured__visual-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgb(10 12 18 / 78%) 0%, rgb(10 12 18 / 28%) 52%, transparent 100%),
    linear-gradient(to right, rgb(10 12 18 / 72%) 0%, rgb(10 12 18 / 32%) 42%, transparent 100%);
  pointer-events: none;
}

.insights-featured__visual.has-image .insights-featured__badge,
.insights-featured__visual.has-image h2,
.insights-featured__visual.has-image p,
.insights-featured__visual.has-image .insights-featured__btn {
  position: relative;
  z-index: 2;
}

.insights-featured__visual.has-image p {
  color: rgb(255 255 255 / 92%);
}

.insights-featured__badge {
  position: relative;
  z-index: 1;
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
}

.insights-featured__visual h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 0.85rem;
  max-width: 18ch;
  font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

.insights-featured__visual p {
  position: relative;
  z-index: 1;
  margin: 0 0 1.35rem;
  max-width: 38ch;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgb(255 255 255 / 72%);
}

.insights-featured__btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  height: 2.75rem;
  padding-inline: 1.15rem;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: var(--font-min);
  font-weight: 700;
  transition: transform 0.25s var(--ease-out);
}

.insights-featured__btn:hover {
  transform: translateY(-2px);
}

.insights-featured__aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.insights-featured__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.insights-featured__points li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text);
  font-weight: 500;
}

.insights-featured__points svg {
  margin-top: 0.15rem;
  color: var(--muted);
}

.insights-featured__meta {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 500;
}

/* ── Grid posts ───────────────────────────────────────────── */
.insights-posts {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.insights-posts__title {
  margin: 0 0 clamp(1.5rem, 3vw, 2rem);
  font-size: clamp(1.85rem, 1.4rem + 1.8vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.insights-posts__grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
}

@media (min-width: 768px) {
  .insights-posts__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .insights-posts__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.insights-post-card {
  display: flex;
  flex-direction: column;
}

.insights-post-card.is-hidden {
  display: none;
}

.insights-post-card__media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 0.9rem;
}

.insights-post-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

@media (hover: hover) {
  .insights-post-card:hover .insights-post-card__media img {
    transform: scale(1.04);
  }
}

.insights-post-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.insights-post-card__cat {
  color: #c4a800;
}

.insights-post-card__date {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.8125rem;
}

.insights-post-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.28;
}

.insights-post-card h3 a:hover {
  opacity: 0.72;
}

.insights-post-card__excerpt {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.45;
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.insights-post-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--font-min);
  font-weight: 700;
  transition: gap 0.25s var(--ease-out);
}

.insights-post-card__link:hover {
  gap: 0.55rem;
}

/* ── Newsletter ───────────────────────────────────────────── */
.insights-newsletter {
  background: var(--bg);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.insights-newsletter__grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
  align-items: center;
}

@media (min-width: 960px) {
  .insights-newsletter__grid {
    grid-template-columns: auto minmax(0, 1fr) minmax(260px, 0.95fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }
}

.insights-newsletter__visual {
  position: relative;
  width: 6.5rem;
  height: 6.5rem;
  flex-shrink: 0;
}

.insights-newsletter__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--yellow);
}

.insights-newsletter__envelope {
  position: absolute;
  inset: 18%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.insights-newsletter__envelope svg {
  width: 100%;
  height: 100%;
}

.insights-newsletter__copy h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 24ch;
}

.insights-newsletter__copy p {
  margin: 0;
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.6;
  max-width: 38ch;
}

.insights-newsletter__form {
  display: grid;
  gap: 0.55rem;
}

.insights-newsletter__row {
  display: flex;
  gap: 0.55rem;
}

.insights-newsletter__row input {
  flex: 1;
  min-width: 0;
  height: 3rem;
  padding-inline: 1rem;
  border: 1px solid #dcdcdc;
  border-radius: 999px;
  background: #fff;
  font-size: var(--font-min);
}

.insights-newsletter__row input:focus {
  outline: none;
  border-color: #aaa;
}

.insights-newsletter__row .btn {
  flex-shrink: 0;
  height: 3rem;
  padding-inline: 1.25rem;
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.insights-newsletter__row .btn:hover {
  background: #222;
  border-color: #222;
}

.insights-newsletter__note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ── CTA amarillo ─────────────────────────────────────────── */
.insights-cta {
  background: var(--yellow);
  padding-block: clamp(2.25rem, 5vw, 3.25rem);
}

.insights-cta__grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: center;
}

@media (min-width: 960px) {
  .insights-cta__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }
}

.insights-cta__title {
  margin: 0;
  font-size: clamp(1.85rem, 1.4rem + 1.8vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 12ch;
}

.insights-cta__text {
  margin: 0;
  color: rgb(0 0 0 / 62%);
  font-size: var(--font-min);
  line-height: 1.6;
  font-weight: 500;
  max-width: 34ch;
}

.insights-cta__btn {
  height: 3rem;
  padding-inline: 1.5rem;
  border-color: var(--text);
  background: transparent;
  white-space: nowrap;
}

.insights-cta__btn:hover {
  background: rgb(0 0 0 / 6%);
}

@media (max-width: 959px) {
  .page-insights #main {
    overflow-x: hidden;
    overflow-x: clip;
  }

  .insights-hero__grid,
  .insights-hero__copy,
  .insights-hero__media,
  .insights-featured__card,
  .insights-posts__grid,
  .insights-newsletter__grid,
  .insights-cta__grid {
    min-width: 0;
  }

  .insights-hero__media {
    overflow: hidden;
  }

  .insights-mark {
    white-space: normal;
  }

  .insights-post-card__meta {
    flex-wrap: wrap;
  }

  .insights-post-card__cat,
  .insights-post-card__date {
    min-width: 0;
  }

  .insights-newsletter__row {
    flex-direction: column;
    align-items: stretch;
  }

  .insights-newsletter__row .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .insights-mark::after {
    transform: scaleX(1);
    animation: none;
  }

  .insights-hero__blob {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
