/* =====================================================================
   Visible · somosvisible.es — estilos propios de WordPress
   Lo que la web estática no tenía: enlaces de categorías, paginación,
   imagen destacada, contenido escrito en el editor de WordPress y el
   campo trampa del formulario. Se carga después de pages.css.
   ===================================================================== */

/* Campo trampa del formulario: invisible para las personas */
.vw-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Accesibilidad: textos solo para lectores de pantalla (clase de WordPress) */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Categorías del blog como enlaces */
.blog-cats li { padding: 0; transition: background-color 0.25s, color 0.25s; }
.blog-cats li > a { display: inline-flex; align-items: center; height: 100%; padding: 0 12px; color: inherit; text-decoration: none; }
.blog-cats li:not(:has(a)) { padding: 0 12px; }
.blog-cats li:hover, .blog-cats li.is-current { background: var(--black); color: var(--white); }

.blog-empty { font-size: 18px; line-height: 1.5; color: var(--grey); max-width: 640px; }
.blog-empty a { color: var(--black); text-decoration: underline; text-underline-offset: 3px; }

/* Paginación */
.vw-pagination { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 56px; padding-top: 24px; border-top: 0.5px solid var(--line-light); font-size: 14px; }
.vw-pagination .link-arrow .arr { margin: 0 8px; }
.vw-pagination-count { color: var(--grey); }

/* Imagen destacada del artículo */
.post-figure { max-width: var(--max-width); margin: 48px auto 0; padding-left: var(--gl); padding-right: var(--gr); }
.post-figure img { display: block; width: 100%; height: auto; border-radius: 12px; }

/* Contenido escrito en el editor de WordPress */
.post-body img { max-width: 100%; height: auto; border-radius: 8px; }
.post-body figure { margin: 32px 0; }
.post-body figcaption, .post-body .wp-caption-text { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--grey); }
.post-body .wp-caption { max-width: 100%; }
.post-body .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.post-body .alignleft { float: left; margin: 6px 24px 16px 0; max-width: 50%; }
.post-body .alignright { float: right; margin: 6px 0 16px 24px; max-width: 50%; }
.post-body .alignwide, .post-body .alignfull { width: 100%; }
.post-body blockquote { margin: 32px 0; padding-left: 20px; border-left: 2px solid var(--black); font-size: 1.1em; }
.post-body table { width: 100%; border-collapse: collapse; margin: 32px 0; font-size: 15px; }
.post-body th, .post-body td { text-align: left; padding: 10px 12px; border-bottom: 0.5px solid var(--line-light); vertical-align: top; }
.post-body th { font-weight: 600; }
.post-body .wp-block-table { overflow-x: auto; }
.post-body pre { overflow-x: auto; padding: 16px; background: rgba(7, 7, 7, 0.05); border-radius: 8px; font-size: 14px; }
.post-body iframe, .post-body video { max-width: 100%; }
.post-body h2[id], .post-body h3[id] { scroll-margin-top: calc(var(--strip-h, 69px) + 24px); }
.post-body::after { content: ''; display: table; clear: both; }

@media (max-width: 700px) {
  .post-body .alignleft, .post-body .alignright { float: none; margin: 24px 0; max-width: 100%; }
  .post-figure { margin-top: 32px; }
  .vw-pagination { flex-wrap: wrap; }
}
