/* ==========================================================================
   Blog — `/blog` y `/blog/<slug>` (`cid.blog`)
   --------------------------------------------------------------------------
   El original no tiene blog: se arma con sus piezas. La banda azul de
   encabezado, tarjetas blancas con la sombra suave de las de Elementor,
   títulos en Helvetica azul y el rojo solo para «Leer más».
   ========================================================================== */
.cid-blog { padding: 6% 4% 8%; }

.cid-blog-vacio { text-align: center; color: var(--gris); font-weight: 300; }

.cid-blog-rejilla {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
  max-width: var(--ancho);
  margin: 0 auto;
}

.cid-blog-tarjeta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: var(--blanco);
  box-shadow: 0 10px 30px rgba(30, 50, 92, .1);
  color: inherit;
  transition: transform .3s, box-shadow .3s;
}

.cid-blog-tarjeta:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(30, 50, 92, .18); }

.cid-blog-portada { aspect-ratio: 16 / 9; background: var(--azul); overflow: hidden; }

.cid-blog-portada img { width: 100%; height: 100%; object-fit: cover; }

.cid-blog-portada-vacia {
  display: grid;
  place-items: center;
  height: 100%;
  color: rgba(255, 255, 255, .25);
  font-family: var(--titular);
  font-size: 64px;
  font-weight: 700;
}

.cid-blog-tarjeta-texto { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 28px; }

.cid-blog-meta { color: var(--gris); font-size: 14px; font-weight: 300; }

.cid-blog-tarjeta h3 { color: var(--azul); font-size: 22px; font-weight: 600; line-height: 1.2; }

.cid-blog-tarjeta p { color: var(--gris); font-weight: 300; line-height: 1.5; }

.cid-blog-leer { margin-top: 4px; color: var(--rojo); font-family: var(--titular); font-weight: 600; }

/* La entrada */
.cid-entrada { max-width: 780px; margin: 0 auto; padding: 60px 24px 100px; }

.cid-entrada-resumen { margin: 18px 0 28px; color: var(--azul); font-size: 21px; line-height: 1.5; }

.cid-entrada-portada { width: 100%; margin-bottom: 36px; border-radius: 12px; }

.cid-entrada-cuerpo { color: #444; font-size: 18px; font-weight: 300; line-height: 1.75; }

.cid-entrada-cuerpo > * + * { margin-top: 1.1em; }

.cid-entrada-cuerpo h2,
.cid-entrada-cuerpo h3 { margin-top: 1.6em; color: var(--azul); font-weight: 600; line-height: 1.25; }

.cid-entrada-cuerpo h2 { font-size: 28px; }

.cid-entrada-cuerpo h3 { font-size: 22px; }

.cid-entrada-cuerpo ul { list-style: disc; padding-left: 1.4em; }

.cid-entrada-cuerpo blockquote {
  padding-left: 20px;
  border-left: 4px solid var(--rojo);
  color: var(--azul);
  font-size: 21px;
  font-style: italic;
}

.cid-entrada-cuerpo img { border-radius: 8px; }

.cid-entrada-cuerpo a { text-decoration: underline; }

.cid-entrada-volver { display: inline-block; margin-top: 48px; font-weight: 600; }

.cid-borrador {
  margin-left: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #fff1d6;
  color: #8a5a00;
  font-size: 12px;
  font-weight: 600;
}

/* El bloque de video de El Impreso (`cid.blog/montar-videos!`): primero el
   póster que trae el artículo, luego el reproductor en su lugar. */
.cid-entrada-cuerpo .eid-video-clip { margin-left: 0; margin-right: 0; }

.cid-entrada-cuerpo .eid-video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #000;
}

.cid-entrada-cuerpo .eid-video-frame iframe { width: 100%; height: 100%; border: 0; }

.cid-entrada-cuerpo .eid-video-poster {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-decoration: none;
}

.cid-entrada-cuerpo .eid-video-play-badge {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--rojo);
  font-size: 24px;
}

.cid-entrada-cuerpo .eid-video-poster-txt { text-shadow: 0 1px 4px rgba(0, 0, 0, .7); font-size: 15px; }

.cid-entrada-cuerpo .eid-video-clip figcaption { margin-top: 8px; color: #777; font-size: 15px; }
