/* ==========================================================
   INSIGHTS HUB — CSS definitivo
   Header fijo 88px → hero padding-top 136px
   Grid: repeat(3, minmax(0,1fr)) — 3 columnas exactas
   Cards: imagen → etiqueta → título → autor (sin avatar)
========================================================== */

#ins-idx-rdp {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%; z-index: 300;
  background: linear-gradient(to right, var(--blue,#5f79ee), #a78bfa);
  transition: width .1s;
}

/* ── HERO ─────────────────────────────────────────────── */
.ih-hero {
  background: var(--bg-c, #f5f5f5);
  padding: 136px 0 3rem;
}
.ih-hero-in {
  width: min(1140px, 100% - 3rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: center;
}
.ih-hero-h1 {
  font-family: var(--f, system-ui);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900; line-height: 1.0;
  letter-spacing: -.04em;
  color: var(--dark, #1a1a1c);
  margin: 0;
}
.ih-hero-desc {
  font-family: var(--f, system-ui);
  font-size: .93rem;
  color: var(--muted, #6b6b6b);
  line-height: 1.75; margin: 0;
}

/* ── ZONA BLANCA — filtros + grilla ──────────────────── */
.ih-content {
  background: #fff;
  box-shadow: inset 0 5px 16px rgba(47,47,47,.04);
}

/* ── FILTROS ─────────────────────────────────────────── */
.ih-filters {
  background: #fff;
  border-bottom: 1px solid var(--bdr, rgba(47,47,47,.09));
  position: sticky;
  top: 88px;
  z-index: 80;
}
.ih-filters-in {
  width: min(1140px, 100% - 3rem);
  margin-inline: auto;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.ih-filters-in::-webkit-scrollbar { display: none; }
.ih-filter {
  padding: .8rem 1rem;
  border: none; background: none;
  font-family: var(--f, system-ui);
  font-size: .75rem; font-weight: 600;
  color: var(--muted, #6b6b6b);
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.ih-filter:hover { color: var(--dark, #1a1a1c); }
.ih-filter.active {
  color: var(--blue, #5f79ee);
  border-bottom-color: var(--blue, #5f79ee);
  font-weight: 700;
}

/* ── CONTENEDOR ARTÍCULOS ──────────────────────────── */
.ih-main { padding: 2rem 0 5rem; }
.ih-main-in {
  width: min(1140px, 100% - 3rem);
  margin-inline: auto;
}
.ih-grid-label {
  display: block;
  font-family: var(--f, system-ui);
  font-size: .6rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(107,107,107,.5);
  margin-bottom: 1rem;
}

/* ── GRILLA 3×2 ────────────────────────────────────────
   minmax(0,1fr) es clave — sin esto los flex children
   pueden desbordar y romper las 3 columnas
────────────────────────────────────────────────────── */
.ih-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

/* ── CARD ──────────────────────────────────────────────
   <article class="ih-card"> — no es un <a>
   Imagen y título son links separados hacia la nota.
   Autor es link separado hacia LinkedIn.
────────────────────────────────────────────────────── */
.ih-card {
  display: flex;
  flex-direction: column;
  min-width: 0;                    /* crítico para grid */
  background: #f8f8fa;
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.ih-card:hover {
  box-shadow: 0 2px 12px rgba(47,47,47,.07);
  transform: translateY(-1px);
}
.ih-card:hover .ih-card-img img { transform: scale(1.02); }

/* Link que envuelve la imagen */
.ih-card-link {
  display: block;
  flex-shrink: 0;
  text-decoration: none;
}

/* Link del título */
.ih-card-title-link {
  display: block;
  text-decoration: none;
  color: var(--dark, #1a1a1c);
}
.ih-card-title-link:hover { color: var(--blue, #5f79ee); }

/* Imagen — altura fija, no aspect-ratio libre */
.ih-card-img {
  overflow: hidden;
  width: 100%;
  height: 170px;
  flex-shrink: 0;
}
.ih-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .45s ease;
}

/* Cuerpo de la card — flex column para empujar el autor al pie */
.ih-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 1.1rem 1rem;
  gap: .4rem;
  min-height: 150px;
}

/* Etiqueta — texto azul Sinergiads, fondo muy suave */
.ih-card-cat {
  display: inline-block;
  font-family: var(--f, system-ui);
  font-size: .6rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--blue, #5f79ee);
  background: rgba(95,121,238,.08);
  padding: 2px 7px;
  border-radius: 4px;
  width: fit-content;
}

/* Título */
.ih-card-title {
  font-family: var(--f, system-ui);
  font-size: 1rem; font-weight: 700;
  line-height: 1.35; letter-spacing: -.01em;
  color: var(--dark, #1a1a1c);
  margin: 0; flex: 1;
}

/* Autor — al pie, derecha. Sin avatar. */
.ih-card-author {
  margin-top: auto;
  padding-top: .6rem;
  font-family: var(--f, system-ui);
  font-size: .72rem;
  color: #777;
  text-align: right;
}
.ih-card-author a {
  color: #111;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
}
.ih-card-author a:hover { color: var(--blue, #5f79ee); }

/* ── PRIMERA CARD — jerarquía editorial leve ──────────────
   span 2 columnas desktop, imagen más alta, título mayor.
   Misma lógica de grilla, nada gigante.
────────────────────────────────────────────────────── */
.ih-grid .ih-card:first-child {
  grid-column: span 2;
}
.ih-grid .ih-card:first-child .ih-card-img {
  height: 210px;
}
.ih-grid .ih-card:first-child .ih-card-title {
  font-size: 1.12rem;
}

/* En tablet (2 col) la primera card no hace span — ocupa 1 col */

/* ── CTA FINAL ──────────────────────────────────────── */
.ih-cta {
  background: var(--dark-2, #0d0d0d);
  padding: 4.5rem 0;
  text-align: center;
  position: relative; overflow: hidden;
}
.ih-cta::before {
  content: ''; position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 480px; height: 480px;
  background: radial-gradient(circle,rgba(95,121,238,.08) 0%,transparent 70%);
  pointer-events: none;
}
.ih-cta-in {
  position: relative; z-index: 1;
  width: min(1140px, 100% - 3rem);
  margin-inline: auto;
}
.ih-cta-h {
  font-family: var(--f, system-ui);
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  font-weight: 900; color: #fafaf7;
  line-height: 1.05; letter-spacing: -.04em;
  max-width: 18ch; margin: 0 auto .7rem;
}
.ih-cta-h em { font-style: normal; color: var(--blue, #5f79ee); }
.ih-cta-sub {
  font-family: var(--f, system-ui);
  font-size: .85rem; color: rgba(255,255,255,.3);
  max-width: 44ch; margin: 0 auto 1.6rem; line-height: 1.75;
}
.ih-cta-acts { display: flex; justify-content: center; gap: .8rem; flex-wrap: wrap; }
.ih-btn-w {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 22px; background: #fafaf7;
  color: var(--dark, #1a1a1c); border-radius: 100px;
  font-family: var(--f, system-ui);
  font-size: .86rem; font-weight: 700;
  transition: all .2s ease; text-decoration: none;
}
.ih-btn-w:hover {
  background: var(--blue, #5f79ee); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(95,121,238,.3);
}
.ih-btn-o {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 20px;
  border: 1.5px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.7); border-radius: 100px;
  font-family: var(--f, system-ui);
  font-size: .86rem; font-weight: 600;
  transition: all .2s ease; text-decoration: none;
}
.ih-btn-o:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.04); }

/* ── REVEAL ─────────────────────────────────────────── */
.ih-rv { opacity: 0; transform: translateY(10px); transition: opacity .55s ease, transform .55s ease; }
.ih-rv.vis { opacity: 1; transform: none; }
.ih-d1 { transition-delay: .07s; }
.ih-d2 { transition-delay: .14s; }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 960px) {
  .ih-hero { padding: 120px 0 2.4rem; }
  .ih-hero-in { grid-template-columns: 1fr; gap: 1rem; }
  .ih-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
  /* primera card: en tablet ocupa 1 columna como el resto */
  .ih-grid .ih-card:first-child { grid-column: span 1; }
  .ih-grid .ih-card:first-child .ih-card-img { height: 170px; }
  .ih-grid .ih-card:first-child .ih-card-title { font-size: 1rem; }
}
@media (max-width: 580px) {
  .ih-hero { padding: 108px 0 2rem; }
  .ih-grid { grid-template-columns: 1fr; gap: 16px; }
  .ih-card-img { height: 190px; }
  .ih-card-author { text-align: left; }   /* en mobile, izquierda */
  .ih-cta { padding: 3.5rem 0; }
  .ih-cta-acts { flex-direction: column; align-items: center; }
}

/* Header responsive (sistema global) */
@media (max-width: 900px) {
  .nav { display: none !important; }
  .hamburger { display: flex !important; }
  .logo-wrap img { height: 36px !important; }
  .ih-filters { top: 64px; }
}
@media (max-width: 640px) {
  .logo-wrap img { height: 32px !important; }
}
