/* Walthus — estilos de la biblioteca, según el diseño preliminar del 11 nov. 2026.
   Colores y tipografías del sitio: Alegreya Sans (títulos), Lato (texto), amarillo #FEE46A. */

.wl { --wl-tinta: #22262A; --wl-suave: #565C63; --wl-tenue: #9AA0A6; --wl-linea: #ECE6DC; --wl-borde: #D6CFC2;
	--wl-crema: #FDFBF7; --wl-lima: #F7F9DB; --wl-cobre: #8A4B1F; --wl-verde: #DFE773; --wl-durazno: #FFEDDB;
	--wl-titulos: 'Alegreya Sans', system-ui, sans-serif; --wl-texto: Lato, system-ui, sans-serif;
	font-family: var(--wl-texto); color: var(--wl-tinta); }

/* Contenedor de Astra: ancho completo (1200 px) y sin el margen superior del blog */
body.walthus-biblioteca .site-content > .ast-container { max-width: 1248px; padding-left: 0; padding-right: 0; display: block; }
body.walthus-biblioteca #primary { margin-top: 0 !important; margin-bottom: 0 !important; padding: 0 !important; border: 0; background: transparent; }
body.walthus-biblioteca .site-main > article, body.walthus-biblioteca .ast-article-single { padding: 0; margin: 0; background: transparent; }

/* Astra reserva ancho y margen para la barra lateral: la biblioteca ocupa todo el contenedor */
.site-content .wl.content-area { float: none; width: 100%; margin: 0 auto; padding: 0; }
.ast-separate-container .site-content .wl, .ast-plain-container .site-content .wl { padding-top: 0; }
.wl.wl-ancho { max-width: 1200px; margin: 0 auto; }

.wl a { color: var(--wl-tinta); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wl a:hover { color: #000; }
.wl h1, .wl h2, .wl h3 { font-family: var(--wl-titulos); font-weight: 800; color: var(--wl-tinta); }
.wl h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.02; letter-spacing: -1px; margin: 0; }
.wl-h2 { font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.1; letter-spacing: -.5px; margin: 0 0 1rem; }
.wl-h2-sm { font-size: 1.6rem; }
.wl-meta { color: var(--wl-suave); font-size: .9rem; }
.wl-nota { color: var(--wl-suave); font-size: .82rem; margin: .8rem 0 0; }
.wl-lead { font-size: 1.07rem; line-height: 1.65; max-width: 760px; margin: 0; }
.wl-de { font-size: 1.1rem; margin: 0; color: var(--wl-suave); }
.wl-de a { font-weight: 700; }
.wl-eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--wl-cobre); margin: 0 0 .5rem; }
.wl-seccion { padding: 64px 24px 0; }
.wl-frase { font-size: 1.05rem; max-width: 760px; margin: -.4rem 0 1.4rem; }

/* Bandas de cabecera (autor, tema, índices) */
.wl-banda { background: var(--wl-crema); box-shadow: 0 0 0 100vmax var(--wl-crema); clip-path: inset(0 -100vmax); }
.wl-banda-tema { background: var(--wl-lima); box-shadow: 0 0 0 100vmax var(--wl-lima); }
.wl-banda-in { padding: 48px 24px 56px; display: flex; flex-direction: column; gap: 14px; }
.wl-cifras { display: flex; flex-wrap: wrap; gap: 24px; font-size: .95rem; }
.wl-autor-cab { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 40px; }
.wl-autor-txt { flex: 1 1 480px; display: flex; flex-direction: column; gap: 12px; }

/* Ficha de obra: dos columnas */
.wl-obra-grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding: 32px 24px 0; }
.wl-obra-lateral { flex: 1 1 280px; max-width: 320px; display: flex; flex-direction: column; gap: 24px; }
.wl-obra { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.wl-obra-cabecera { display: flex; flex-direction: column; gap: 14px; }
.wl-portada-marco { display: flex; justify-content: center; padding: 36px 0; background: var(--wl-crema); border-radius: 14px; }
.wl-datos { margin: 0; border: 1px solid var(--wl-linea); border-radius: 12px; overflow: hidden; }
.wl-datos > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--wl-linea); font-size: .88rem; }
.wl-datos > div:last-child { border-bottom: 0; }
.wl-datos dt { color: var(--wl-suave); }
.wl-datos dd { margin: 0; text-align: right; font-weight: 700; }

/* Portada ilustrativa */
.wl-portada { position: relative; overflow: hidden; flex: none; border-radius: 4px; box-shadow: 0 10px 24px rgba(34,38,42,.16);
	display: flex; flex-direction: column; justify-content: flex-end; box-sizing: border-box; color: var(--wl-tinta); }
.wl-portada-forma { position: absolute; top: 10px; left: 10px; }
.wl-portada-titulo { font-family: var(--wl-titulos); font-weight: 800; line-height: 1.05; }
.wl-portada-lg { width: 200px; height: 288px; padding: 16px; }
.wl-portada-lg .wl-portada-forma { width: 66px; height: 66px; top: 16px; left: 16px; }
.wl-portada-lg .wl-portada-autor { font-size: 1.1rem; }
.wl-portada-lg .wl-portada-titulo { font-size: 1.6rem; }
.wl-portada-sm { width: 64px; height: 92px; padding: 8px; }
.wl-portada-sm .wl-portada-forma { width: 21px; height: 21px; top: 8px; left: 8px; }
.wl-portada-sm .wl-portada-autor { font-size: 8px; line-height: 1.1; }
.wl-portada-sm .wl-portada-titulo { font-size: 10px; }

/* Pastillas y chips */
.wl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wl-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; color: var(--wl-tinta); background: var(--wl-crema);
	border: 1px solid var(--wl-linea); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.wl-puntos { letter-spacing: 2px; }
.wl .wl-chip-corriente { font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--wl-lima); text-decoration: none; }
.wl-chips-temas { display: flex; flex-wrap: wrap; gap: 10px; }
.wl .wl-chips-temas a { padding: 10px 16px; border-radius: 999px; background: var(--wl-crema); border: 1px solid var(--wl-linea); text-decoration: none; font-size: .92rem; }

/* Cajas */
.wl-caja { background: var(--wl-crema); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.wl-caja h2 { margin: 0; font-size: 1.5rem; }
.wl-caja p { margin: 0; font-size: 1.05rem; line-height: 1.65; }
.wl-caja-libre { background: var(--wl-lima); }
.wl .wl-boton { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 6px; background: var(--wl-tinta); color: #fff; font-weight: 700; text-decoration: none; }
.wl .wl-boton:hover { color: #fff; opacity: .9; }

/* Ediciones */
.wl-ed { border: 1px solid var(--wl-linea); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.wl-ed-cab { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; }
.wl-ed-cab > div { display: flex; flex-direction: column; gap: 4px; }
.wl-ed-cab strong { font-size: 1.1rem; }
.wl-ed p { margin: 0; }
.wl-tag { font-size: .75rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.wl-tag-rec { background: var(--wl-verde); }
.wl-tag-alt { background: var(--wl-durazno); }
.wl-tag-desc { background: var(--wl-linea); }
.wl .wl-fuente { font-size: .82rem; color: var(--wl-suave); }
.wl-compras { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.wl-compras span { font-size: .9rem; color: var(--wl-suave); margin-right: 4px; }
.wl .wl-compra { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 6px; border: 1px solid var(--wl-borde); background: #fff; font-weight: 700; font-size: .82rem; text-decoration: none; }

/* Tarjetas de obra */
.wl-tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.wl .wl-tarjeta { display: flex; gap: 14px; padding: 14px; border: 1px solid var(--wl-linea); border-radius: 10px; text-decoration: none; background: #fff; }
.wl-tarjeta-txt { display: flex; flex-direction: column; gap: 4px; }
.wl-tarjeta-txt strong { font-family: var(--wl-titulos); font-size: 1.1rem; line-height: 1.15; }
.wl-por-que { font-size: .88rem; line-height: 1.45; }
.wl-paso { font-size: .8rem; font-weight: 700; color: var(--wl-cobre); }
.wl-tarjetas-ruta .wl-tarjeta { background: var(--wl-crema); border-color: transparent; }

/* Ruta del autor */
.wl-ruta { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.wl-ruta li { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--wl-linea); border-radius: 12px; }
.wl-ruta-top { display: flex; align-items: flex-start; gap: 14px; }
.wl-num { width: 36px; height: 36px; border-radius: 18px; background: var(--wl-tinta); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.wl-ruta h3 { margin: 0; font-size: 1.3rem; line-height: 1.15; }
.wl-ruta h3 a { text-decoration: none; }
.wl-ruta p { margin: 0; font-size: .92rem; line-height: 1.5; }
.wl-ruta-pie { margin-top: auto; }

/* Tabla con filtro */
.wl-filtro { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.wl-filtro button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--wl-borde); background: #fff; color: var(--wl-tinta); font-weight: 700; font-size: .82rem; cursor: pointer; }
.wl-filtro button[aria-pressed="true"] { background: var(--wl-tinta); border-color: var(--wl-tinta); color: #fff; }
.wl-tabla-wrap { overflow-x: auto; border: 1px solid var(--wl-linea); border-radius: 12px; }
.wl-tabla { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 620px; margin: 0; border: 0; }
.wl-tabla th { background: var(--wl-crema); text-align: left; padding: 14px 18px; border: 0; }
.wl-tabla td { padding: 13px 18px; border: 0; border-top: 1px solid var(--wl-linea); vertical-align: middle; }
.wl-col-obra a { font-weight: 700; text-decoration: none; }

/* Autores */
.wl-circulo { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--wl-titulos); font-weight: 800; flex: none; }
.wl-circulo-lg { width: 160px; height: 160px; font-size: 3.4rem; }
.wl-autores-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.wl .wl-autores-mini > a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; background: var(--wl-crema); text-decoration: none; font-weight: 700; font-size: .9rem; }
.wl-autores-indice { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.wl-autores-indice a > span { display: flex; flex-direction: column; }
.wl-autores-indice .wl-meta { font-weight: 400; font-size: .8rem; }
.wl-dos-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; }

/* Preguntas de un cluster */
.wl-preguntas { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.wl .wl-preguntas a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--wl-linea); border-radius: 10px; text-decoration: none; }

/* Preguntas frecuentes */
.wl-faq { border-bottom: 1px solid var(--wl-linea); padding: 16px 0; }
.wl-faq summary { font-weight: 700; font-size: 1.05rem; cursor: pointer; }
.wl-faq p { margin: 10px 0 0; line-height: 1.6; color: #3B4046; }

@media (max-width: 700px) {
	.wl-obra-grid { gap: 32px; padding-top: 8px; }
	.wl-obra-lateral { max-width: none; }
	.wl-seccion { padding-top: 48px; }
	.wl-banda-in { padding: 32px 20px 40px; }
	.wl-circulo-lg { width: 96px; height: 96px; font-size: 2rem; }
	.wl-autor-cab { gap: 20px; }
}

/* ---------- Portada (front-page.php) y página de método ---------- */
.wl .wl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 6px; background: var(--wl-verde); color: #22262A; font-weight: 700; text-decoration: none; border: 0; }
.wl .wl-btn-claro { background: #fff; border: 1px solid #D6CFC2; }
.wl-home-hero { position: relative; overflow: hidden; }
.wl-home-forma { position: absolute; right: -60px; top: -40px; width: 420px; height: 420px; }
.wl-home-hero .wl-banda-in { position: relative; padding-top: 72px; padding-bottom: 72px; }
.wl-home-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.04; max-width: 820px; }
.wl-home-buscar { display: flex; flex-wrap: wrap; gap: 10px; max-width: 720px; }
.wl-home-buscar input { flex: 1 1 320px; min-height: 56px; padding: 0 20px; font-size: 1.05rem; border: 1px solid #D6CFC2; border-radius: 8px; background: #fff; }
.wl-home-buscar .wl-btn { min-height: 56px; padding: 0 26px; }
.wl-home-clusters { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.wl .wl-home-cluster { display: flex; flex-direction: column; gap: 12px; padding: 24px; min-height: 230px; border-radius: 12px; text-decoration: none; color: #22262A; }
.wl-home-cluster strong { font-family: var(--wl-titulos); font-size: 1.5rem; line-height: 1.1; }
.wl-home-cluster .wl-meta { margin-top: auto; font-weight: 700; }
.wl-home-libros { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.wl-home-libros article { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.wl-home-libros .wl-portada-marco { align-self: stretch; }
.wl-home-libros h3 { margin: 6px 0 0; font-family: var(--wl-titulos); font-size: 1.4rem; line-height: 1.15; }
.wl-home-libros h3 a { text-decoration: none; }
.wl-home-libros p { margin: 0; }
.wl-home-trad { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: start; }
.wl-home-metodo { background: #22262A; color: #fff; border-radius: 16px; padding: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.wl-home-metodo .wl-h2 { color: #fff; }
.wl-home-metodo .wl-eyebrow { color: var(--wl-verde); }
.wl-home-metodo ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 18px; line-height: 1.55; }
.wl-home-metodo li strong { color: #FEE46A; }
.wl-home-quien { max-width: 760px; }
.wl-prosa { max-width: 760px; line-height: 1.7; }
.wl-prosa h2 { font-family: var(--wl-titulos); font-weight: 800; font-size: 1.9rem; line-height: 1.15; margin: 2.2em 0 .5em; }
.wl-prosa h2:first-child { margin-top: 0; }
.wl-prosa table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.wl-prosa th, .wl-prosa td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--wl-linea); }
@media (max-width: 640px) { .wl-home-metodo { padding: 28px; } .wl-home-forma { width: 240px; height: 240px; } }

/* Migas de pan (Rank Math / Astra): contraste suficiente (WCAG AA) */
.rank-math-breadcrumb a, .rank-math-breadcrumb .separator, .ast-breadcrumbs a, .ast-breadcrumbs .separator { color: #565C63 !important; }
.rank-math-breadcrumb .last, .ast-breadcrumbs .trail-end { color: #22262A !important; }

/* Tipografía del diseño en elementos de Astra que traían fuentes del blog viejo (Nunito, Lexend) */
.wl .wl-btn, .ast-header-search, .ast-header-search *, .ast-search-menu-icon *, .rank-math-breadcrumb, .rank-math-breadcrumb *, .ast-breadcrumbs, .ast-breadcrumbs * { font-family: Lato, system-ui, sans-serif !important; }
