/* 1 a 4. Lista del blog, tarjeta destacada y miniaturas */
.et-blog-lista .elementor-post__thumbnail__link { margin-bottom: 0 !important; }
.et-blog-lista .elementor-post:first-child:nth-last-child(n+3) .elementor-post__thumbnail__link { height: 100%; }
.et-blog-lista .elementor-post:first-child:nth-last-child(n+3) .elementor-post__thumbnail { height: 100%; margin: 0; position: relative; }
.et-blog-lista .elementor-post:first-child:nth-last-child(n+3) .elementor-post__thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* 5. Cabecera del blog */
.et-blog-cab .elementor-widget-text-editor { margin-bottom: 0; }
.et-blog-cab h1 { margin: 0 0 18px !important; }
.et-blog-cab p { margin: 0 0 28px !important; }

/* 7 y 8. Cabecera de artículo, resumen y contraste de texto */
.et-art-cab .elementor-heading-title { margin: 0 0 18px !important; }
.et-art-cab .elementor-breadcrumbs, .et-art-cab .elementor-widget-breadcrumbs, .et-art-migas { margin: 0 0 16px; }
.et-art-resumen p { margin: 0 0 18px !important; }
.et-art-resumen, .et-art-resumen p, .et-art-texto td, .et-art-texto .et-nota p { color: #33415A !important; }
.et-art-texto th { color: #0B1626 !important; }

/* 9. Párrafos y botones en cajas de conversión */
.et-art-cotiza p, .et-blog-cierre p { margin: 12px 0 0 !important; }
.et-art-cotiza p:last-child, .et-blog-cierre p:last-child { margin-top: 20px !important; }

/* 10. Foco accesible */
.et-art-texto a:focus-visible, .elementor-post a:focus-visible, .elementor-pagination a:focus-visible, .elementor-post-navigation a:focus-visible, .et-del-blog a:focus-visible { outline: 3px solid #0B1626; outline-offset: 2px; }
.et-blog-cab a:focus-visible, .et-blog-cierre a:focus-visible, .et-art-cotiza a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* 11. Sección «Del blog» */
.et-del-blog { background-color: #F1F5FA; }
.et-del-blog .wp-block-latest-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; list-style: none; padding: 0; margin: 0; }
.et-del-blog .wp-block-latest-posts li { background: #fff; border-radius: 15px; box-shadow: 0 6px 18px rgba(0,0,0,.1); overflow: hidden; display: flex; flex-direction: column; margin: 0; width: auto; padding: 0 0 22px; }
.et-del-blog .wp-block-latest-posts__featured-image { margin: 0 0 18px; float: none; }
.et-del-blog .wp-block-latest-posts__featured-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; height: auto; display: block; }
.et-del-blog .wp-block-latest-posts__post-title { font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 700; font-size: 24px; line-height: 1.15; color: #0B1626; text-decoration: none; padding: 0 26px; }
.et-del-blog .wp-block-latest-posts__post-title:hover { text-decoration: underline; }
.et-del-blog .wp-block-latest-posts__post-date { padding: 0 26px; color: #33415A; font-size: 15px; margin: 10px 0 0; }
.et-del-blog .wp-block-latest-posts__post-excerpt { padding: 0 26px; color: #33415A; font-size: 17px; margin: 10px 0 0; }

/* Responsive celular y tableta */
@media (max-width: 1024px) {
  .et-blog-lista .elementor-posts-container { grid-template-columns: repeat(2, 1fr); }
  .et-blog-lista .elementor-post:first-child:nth-last-child(n+3) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .et-blog-lista .elementor-post:first-child:nth-last-child(n+3) .elementor-post__text { padding: 26px 28px; }
  .et-art-cuerpo > .elementor-container { align-items: stretch; }
  .et-art-cuerpo .et-art-texto, .et-art-cuerpo .et-art-lado { flex: none; width: 100%; }
  .et-del-blog .wp-block-latest-posts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .et-blog-lista .elementor-posts-container { grid-template-columns: 1fr; gap: 20px; }
  .et-blog-lista .elementor-post:first-child:nth-last-child(n+3) { display: flex; flex-direction: column; }
  .et-blog-lista .elementor-post:first-child:nth-last-child(n+3) .elementor-post__thumbnail { aspect-ratio: 16/9; height: auto; min-height: 0; }
  .et-blog-lista .elementor-post:first-child:nth-last-child(n+3) .elementor-post__text { padding: 22px 26px 26px; }
  .et-del-blog .wp-block-latest-posts { grid-template-columns: 1fr; gap: 20px; }
}

/* Segunda vuelta */
.et-blog-lista .elementor-post:first-child:nth-last-child(n+3) .elementor-post__thumbnail img { top: 0 !important; left: 0 !important; transform: none !important; width: 100% !important; height: 100% !important; max-width: none !important; }
.et-blog-cab .elementor-element.et-blog-temas { margin-top: 28px !important; }
.et-art-cab .elementor-element.et-art-datos { margin-top: 18px !important; }
.et-blog-cierre a.et-cotiza, .et-art-cotiza a.et-cotiza { margin-top: 20px !important; }

@media (max-width: 1024px) {
  .et-art-cuerpo .elementor-column.et-art-texto, .et-art-cuerpo .elementor-column.et-art-lado { width: 100% !important; max-width: none !important; }
  .et-art-cuerpo .et-art-texto .elementor-widget-theme-post-content { max-width: 720px; }
}

.et-seccion.et-del-blog h2 { margin: 0 0 28px !important; }
.et-del-blog > p, .et-del-blog > .wp-block-group__inner-container > p { margin: 24px 0 0 !important; }
.et-del-blog a.wp-block-latest-posts__post-title { color: #0B1626 !important; }
.et-del-blog > p a, .et-del-blog > .wp-block-group__inner-container > p a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: #09529F; }

@media (min-width: 768px) {
  .et-del-blog .wp-block-latest-posts li:only-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: 1fr auto auto 1fr; column-gap: 12px; padding: 0; }
  .et-del-blog .wp-block-latest-posts li:only-child .wp-block-latest-posts__featured-image { grid-column: 1; grid-row: 1 / -1; margin: 0; }
  .et-del-blog .wp-block-latest-posts li:only-child .wp-block-latest-posts__post-title { grid-column: 2; grid-row: 2; font-size: 30px; }
  .et-del-blog .wp-block-latest-posts li:only-child .wp-block-latest-posts__post-date { grid-column: 2; grid-row: 3; }
}
.et-del-blog .wp-block-latest-posts__featured-image a { display: block; height: 100%; }
.et-del-blog .wp-block-latest-posts li:only-child .wp-block-latest-posts__featured-image img { height: 100%; }
.et-nota-img p, p.et-nota-img { font-size: 14px !important; color: #33415A !important; margin: 18px 0 0 !important; }
.et-del-blog > p.et-nota-img { margin-top: 4px !important; }

/* Filtros del blog (Todos, IIoT y datos…): lista sin viñetas, botones sobre fondo claro. */
.et-temas { list-style: none !important; margin: 0 0 24px !important; padding: 0 !important; display: flex !important; flex-wrap: wrap; gap: 10px; }
.et-temas li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.et-temas a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border: 1px solid #0f2a44; border-radius: 8px; color: #0f2a44; text-decoration: none; font-weight: 600; background: #fff; }
.et-temas a:hover, .et-temas a[aria-current="page"] { background: #0f2a44; color: #fff; }
