/* =========================================================================
   AZAHAR DATA INSIGHTS — CSS de página: portada de Insights (/insights/)
   Sale del boceto A aprobado (_docs/bocetos/insights/, D-50). Lo pinta
   insights.php con el shortcode [azh_insights]. La cabecera (bandas, migas,
   H1 y entradilla) es la del listado del blog, con sus clases blog-* de
   pagina-blog.css; aquí van los bloques de casos y de blog y sus tarjetas.

   Todas las reglas llevan una clase insights-*: functions.php quita esta
   hoja de las páginas que no tienen ninguna.

   El cuerpo va dentro de .blog-pagina, cuyos enlaces son verdes y
   subrayados (.blog-pagina a): las tarjetas y el enlace de cada bloque
   llevan `body` delante para ganarle.
   ========================================================================= */

.insights-cuerpo { max-width: 1200px; margin: 0 auto; padding: 0 40px 96px; }
.insights-bloque { margin-top: 72px; }
.insights-bloque__cab { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap;
  gap: 16px 40px; margin-bottom: 32px; }
/* El eyebrow, en oxford-70: el oxford-50 del boceto se queda en 3,18:1 sobre
   blanco (CHECKLIST.md, «texto a --azahar-oxford-70»). */
.insights-bloque__eyebrow { display: block; font-size: 15px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(5, 37, 76, .7); margin: 0 0 10px; }
.insights-bloque__titulo { font-size: 34px; line-height: 1.2; font-weight: 600; color: #05254c; margin: 0; }
.insights-bloque__intro { margin: 10px 0 0; max-width: 680px; color: rgba(5, 37, 76, .7); font-size: 17px; line-height: 1.6; }
body .insights-ver { color: #4f4cc0; font-weight: 600; text-decoration: none; white-space: nowrap; }
body .insights-ver:hover { color: #05254c; }

.insights-rejilla { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
body .insights-tarjeta { display: block; color: #1e3b5e; text-decoration: none; }
body .insights-tarjeta * { text-decoration: none; }
body .insights-tarjeta:focus-visible { outline: 2px solid #05254c; outline-offset: 6px; }
.insights-tarjeta img, .insights-tarjeta__vacia { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630;
  object-fit: cover; box-shadow: 0 0 0 1px rgba(5, 37, 76, .15); }
.insights-tarjeta__vacia { background: #ecf4fe; }
.insights-tarjeta__tipo { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  line-height: 1.3; color: #445c79; margin: 18px 0 8px; }
.insights-tarjeta__titulo { font-size: 20px; line-height: 1.35; font-weight: 600; color: #05254c; margin: 0 0 8px; }
.insights-tarjeta__meta { font-size: 15px; line-height: 1.5; color: #445c79; margin: 0; }
body .insights-tarjeta:hover .insights-tarjeta__titulo { text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 4px; }

/* ---------- Tableta ---------- */
@media (max-width: 991px) {
  .insights-rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Móvil ---------- */
@media (max-width: 767px) {
  /* 20 px, como la cabecera del blog (.blog-cab), para que los bloques
     queden alineados con las migas y el H1. */
  .insights-cuerpo { padding: 0 20px 72px; }
  .insights-rejilla { grid-template-columns: minmax(0, 1fr); }
  .insights-bloque__titulo { font-size: 28px; }
}
