/* ==========================================================================
   Boletines: listado y página de lectura.
   La lectura va primero: columna de ~68 caracteres, letra grande y texto casi negro.
   ========================================================================== */

:root {
	--rt-ink: #1f2636;
	--rt-muted: #646b7a;
	--rt-read: 680px;
	--rt-read-fs: clamp(17.5px, 16px + .35vw, 19.5px);
}

/* ---------- Migas de pan ---------- */
.rt-crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--rt-muted); }
.rt-crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.rt-crumbs li + li::before { content: ""; width: 6px; height: 6px; margin: 0 10px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); opacity: .55; }
.rt-crumbs a { color: inherit; text-decoration: none; }
.rt-crumbs a:hover { color: var(--rt-marino); text-decoration: underline; }
.rt-crumbs [aria-current] { max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-crumbs--dark ol { color: rgba(255, 255, 255, .62); }
.rt-crumbs--dark a:hover { color: #fff; }

/* ---------- Portada del listado ---------- */
.rt-banner__tools { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.rt-banner__search { margin: 0; flex: 1 1 320px; max-width: 460px; }
.rt-cats ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rt-cats a {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
	color: #fff; text-decoration: none; font-size: 15px; font-weight: 600;
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); transition: background .2s, box-shadow .2s;
}
.rt-cats a:hover { box-shadow: inset 0 0 0 1.5px var(--rt-dorado); }
.rt-cats a[aria-current] { background: var(--rt-dorado); color: var(--rt-marino); box-shadow: none; }

/* ---------- Boletín destacado ---------- */
.rt-lead {
	display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); background: #fff;
	border-radius: 22px; overflow: hidden; box-shadow: var(--rt-shadow); margin-bottom: clamp(36px, 5vw, 56px);
}
.rt-lead__img { display: block; min-height: 340px; background: #e9ecf2; position: relative; overflow: hidden; }
.rt-lead__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--rt-ease); }
.rt-lead:hover .rt-lead__img img { transform: scale(1.03); }
.rt-lead__img .rt-card__ph { position: absolute; inset: 0; font-size: 120px; }
.rt-lead__body { padding: clamp(26px, 3.4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.rt-lead__new { color: var(--rt-marino); background: var(--rt-dorado); padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.rt-lead__title { margin: 0; font-family: var(--wp--preset--font-family--outfit, Outfit, sans-serif); font-weight: 500; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
.rt-lead__title a { color: var(--rt-marino); text-decoration: none; }
.rt-lead__title a:hover { text-decoration: underline; text-decoration-color: var(--rt-dorado); text-decoration-thickness: 3px; text-underline-offset: .12em; }
.rt-lead__excerpt { margin: 0; font-size: 17px; line-height: 1.65; color: var(--rt-ink); max-width: 52ch; }
.rt-lead__foot { margin: 8px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.rt-lead__time { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--rt-muted); }
.rt-lead__time .rt-icon { width: 18px; height: 18px; }
.rt-btn--sm { font-size: 14px; padding: 14px 24px; }
.rt-listing__k { font-size: 22px; margin: 0 0 18px; color: var(--rt-marino); }
@media (max-width: 860px) {
	.rt-lead { grid-template-columns: minmax(0, 1fr); }
	.rt-lead__img { min-height: 0; aspect-ratio: 16 / 9.5; }
}

/* Cards: readable meta and a hover that does not rely on gold text. */
.rt-card__meta { color: var(--rt-muted); }
.rt-card__excerpt { color: var(--rt-ink); }
.rt-card__title a:hover { color: var(--rt-marino); text-decoration: underline; text-decoration-color: var(--rt-dorado); text-decoration-thickness: 2px; }
.rt-card__foot { margin: auto 0 0; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rt-card__foot .rt-card__more { margin: 0; padding: 0; }
.rt-card__time { font-size: 13px; color: var(--rt-muted); white-space: nowrap; }

/* ---------- Página de lectura ---------- */
body.rt-reading .rt-main { background: #fff; }
.rt-progress { position: fixed; inset: 0 0 auto; height: 4px; z-index: 70; pointer-events: none; }
.admin-bar .rt-progress { top: 32px; }
.rt-progress span { display: block; height: 100%; width: 100%; background: var(--rt-dorado); transform-origin: 0 50%; transform: scaleX(0); }

.rt-post { padding: clamp(28px, 5vw, 64px) 0 0; }
.rt-post__head, .rt-post__foot, .rt-post__comments { width: min(var(--rt-read), 100% - 2 * var(--rt-gutter)); margin-inline: auto; }
.rt-post__head .rt-chip { display: inline-block; margin-bottom: 14px; font-size: 13px; padding: 4px 12px; }
.rt-post__title {
	margin: 0; color: var(--rt-marino); font-family: var(--wp--preset--font-family--outfit, Outfit, sans-serif);
	font-weight: 500; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -.015em; text-wrap: balance;
}
.rt-post__dek { margin: 18px 0 0; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; color: #3d4455; text-wrap: pretty; }
.rt-post__byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 26px; padding: 14px 0; border-top: 1px solid var(--rt-linea); border-bottom: 1px solid var(--rt-linea); }
.rt-post__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; color: var(--rt-muted); }
.rt-post__meta span { display: inline-flex; align-items: center; gap: 7px; }
.rt-post__meta .rt-icon { width: 18px; height: 18px; color: var(--rt-dorado-2); }
.rt-post__tools { display: flex; gap: 8px; }
.rt-pill {
	display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer;
	background: #f2f3f7; color: var(--rt-marino); font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; transition: background .2s;
}
.rt-pill:hover { background: #e7e9f0; }
.rt-pill .rt-icon { width: 18px; height: 18px; }
.rt-pill[aria-pressed="true"] { background: var(--rt-marino); color: #fff; }

.rt-post__img { width: min(1080px, 100% - 2 * var(--rt-gutter)); margin: clamp(28px, 4vw, 44px) auto 0; }
.rt-post__img img { display: block; width: 100%; max-height: 620px; object-fit: cover; border-radius: 22px; background: #e9ecf2; }
.rt-post__img figcaption { width: min(var(--rt-read), 100%); margin: 10px auto 0; text-align: left; }

.rt-post__layout { width: min(var(--rt-read), 100% - 2 * var(--rt-gutter)); margin: clamp(30px, 4vw, 48px) auto 0; }
@media (min-width: 1240px) {
	.rt-post.has-toc .rt-post__layout {
		width: min(1240px, 100% - 2 * var(--rt-gutter));
		display: grid; grid-template-columns: minmax(0, 1fr) var(--rt-read) minmax(0, 1fr); column-gap: 40px; align-items: start;
	}
	.rt-post.has-toc .rt-toc { grid-column: 1; position: sticky; top: 28px; }
	.rt-sticky-header .rt-post.has-toc .rt-toc { top: calc(var(--rt-header-h) + 20px); }
	.rt-post.has-toc .rt-prose { grid-column: 2; }
	.rt-toc__box summary { pointer-events: none; }
	.rt-toc__box summary::after { display: none; }
}

/* Índice */
.rt-toc { margin-bottom: 28px; }
.rt-toc__box { background: #f6f7fa; border-radius: 16px; padding: 4px 18px; }
.rt-toc__box summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 48px; cursor: pointer; font-weight: 700; color: var(--rt-marino); font-size: 15px; }
.rt-toc__box summary::-webkit-details-marker { display: none; }
.rt-toc__box summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.rt-toc__box[open] summary::after { transform: rotate(-135deg); }
.rt-toc__box summary .rt-icon { width: 18px; height: 18px; color: var(--rt-dorado-2); }
.rt-toc ol { list-style: none; margin: 0 0 12px; padding: 0; border-left: 2px solid var(--rt-linea); }
.rt-toc li a { display: block; padding: 7px 0 7px 14px; margin-left: -2px; border-left: 2px solid transparent; color: #4a5162; text-decoration: none; font-size: 15px; line-height: 1.4; }
.rt-toc li.rt-toc__l3 a { padding-left: 28px; font-size: 14px; }
.rt-toc li a:hover { color: var(--rt-marino); }
.rt-toc li a.is-here { color: var(--rt-marino); font-weight: 600; border-left-color: var(--rt-dorado); }

/* Texto del boletín */
.rt-prose { font-size: var(--rt-read-fs); line-height: 1.75; color: var(--rt-ink); }
.rt-prose > * { max-width: 100%; margin-left: 0; margin-right: 0; }
.rt-prose > p, .rt-prose > ul, .rt-prose > ol { margin: 0 0 1.15em; }
.rt-prose > p:first-child { font-size: 1.1em; line-height: 1.65; color: var(--rt-marino); }
.rt-prose h2, .rt-prose h3, .rt-prose h4 { color: var(--rt-marino); scroll-margin-top: 24px; text-wrap: balance; }
.rt-sticky-header .rt-prose h2, .rt-sticky-header .rt-prose h3 { scroll-margin-top: calc(var(--rt-header-h) + 20px); }
.rt-prose > h2 { font-family: var(--wp--preset--font-family--outfit, Outfit, sans-serif); font-weight: 500; font-size: 1.6em; line-height: 1.2; margin: 1.8em 0 .55em; letter-spacing: -.01em; }
.rt-prose > h3 { font-size: 1.22em; font-weight: 700; line-height: 1.3; margin: 1.6em 0 .5em; }
.rt-prose > h4 { font-size: 1.05em; font-weight: 700; margin: 1.4em 0 .4em; }
.rt-prose a:where(:not(.wp-element-button):not(.wp-block-button__link):not([class*="uagb"])) {
	color: var(--rt-marino); text-decoration: underline; text-decoration-color: var(--rt-dorado); text-decoration-thickness: 2px; text-underline-offset: .18em;
}
.rt-prose a:where(:not(.wp-element-button):not(.wp-block-button__link)):hover { text-decoration-color: var(--rt-marino); }
.rt-prose ul, .rt-prose ol { padding-left: 1.3em; }
.rt-prose li { margin: 0 0 .45em; padding-left: .2em; }
.rt-prose li::marker { color: var(--rt-dorado-2); font-weight: 700; }
.rt-prose > blockquote, .rt-prose .wp-block-quote {
	margin: 1.6em 0; padding: .2em 0 .2em 1.1em; border-left: 4px solid var(--rt-dorado);
	font-family: var(--wp--preset--font-family--outfit, Outfit, sans-serif); font-size: 1.3em; line-height: 1.45; color: var(--rt-marino);
}
.rt-prose blockquote p { margin: 0 0 .4em; }
.rt-prose blockquote cite { display: block; margin-top: .6em; font-family: var(--wp--preset--font-family--inter, Inter, sans-serif); font-size: .62em; font-style: normal; color: var(--rt-muted); }
.rt-prose img { border-radius: 14px; }
.rt-prose figure { margin: 1.8em 0; }
.rt-prose figcaption { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--rt-muted); }
.rt-prose > .alignwide, .rt-prose > .alignfull { width: auto; }
@media (min-width: 900px) {
	.rt-post:not(.has-toc) .rt-prose > .alignwide { margin-left: -120px; margin-right: -120px; max-width: none; }
}
.rt-prose hr { border: 0; height: 1px; background: var(--rt-linea); margin: 2.4em 0; }
.rt-prose table { font-size: .88em; }
.rt-prose .is-reading { background: #fff3d2; box-shadow: 0 0 0 6px #fff3d2; border-radius: 4px; }

/* Pie del boletín */
.rt-post__foot { padding: 36px 0 0; }
.rt-share { margin: 30px 0 0; padding: 22px 0; border-top: 1px solid var(--rt-linea); border-bottom: 1px solid var(--rt-linea); }
#compartir { outline: 0; scroll-margin-top: 24px; }
.rt-share__k { margin: 0 0 12px; font-weight: 700; color: var(--rt-marino); }
.rt-share__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rt-share__btn {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer;
	background: #f2f3f7; color: var(--rt-marino); text-decoration: none; font: inherit; font-size: 15px; font-weight: 600; transition: background .2s, color .2s;
}
.rt-share__btn .rt-icon { width: 18px; height: 18px; }
.rt-share__btn:hover { background: var(--rt-marino); color: #fff; }
.rt-share__btn--whatsapp { background: #e7f8ee; color: #10602f; }
.rt-share__btn--whatsapp:hover { background: #1c8a46; color: #fff; }
.rt-post .rt-postnav { margin-top: 28px; padding-top: 0; border: 0; }
.rt-post .rt-postnav a { padding: 18px 20px; border-radius: 16px; background: #f6f7fa; height: 100%; transition: background .2s; }
.rt-post .rt-postnav a:hover { background: #eef0f5; }
.rt-postnav__k { color: #8a5a00; }
.rt-post__comments { margin-top: 40px; }
.rt-post__comments .rt-comments { padding: 28px 0 0; border-top: 1px solid var(--rt-linea); }
.rt-reading .rt-related { margin-top: clamp(48px, 7vw, 80px); padding-top: clamp(40px, 6vw, 64px); background: var(--rt-gris); }

@media (max-width: 760px) {
	.rt-crumbs li:last-child { display: none; }
	.rt-post__byline { align-items: flex-start; }
	.rt-post__tools { width: 100%; }
	.rt-pill { flex: 1; justify-content: center; }
	.rt-post__img { width: 100%; }
	.rt-post__img img { border-radius: 0; max-height: 420px; }
	.rt-post__img figcaption { padding: 0 var(--rt-gutter); }
	.rt-share__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.rt-share__btn { width: 48px; height: 48px; padding: 0; justify-content: center; }
	.rt-share__btn .rt-icon { width: 21px; height: 21px; }
	.rt-banner__tools { flex-direction: column; align-items: stretch; }
	.rt-banner__search { max-width: none; flex: none; width: 100%; min-width: 0; }
	.rt-banner__search .rt-search { width: 100%; }
	.rt-cats { width: 100%; min-width: 0; }
	.rt-cats ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--rt-gutter)); padding: 2px var(--rt-gutter); }
	.rt-cats a { white-space: nowrap; }
}

/* ---------- Impresión ---------- */
@media print {
	.rt-header, .rt-footer, .rt-top, .rt-progress, .rt-crumbs, .rt-post__tools, .rt-toc, .rt-share, .rt-postnav, .rt-post__comments, .rt-related, .rt-a11y, .rt-a11y-guide, #compartir { display: none !important; }
	body, body.rt-reading .rt-main { background: #fff !important; }
	.rt-post { padding: 0; }
	.rt-post__head, .rt-post__layout, .rt-post__foot { width: 100% !important; display: block !important; }
	.rt-post__title { font-size: 26pt; }
	.rt-prose { font-size: 12pt; line-height: 1.55; color: #000; }
	.rt-post__img img { max-height: 9cm; border-radius: 0; }
	.rt-prose a { color: #000; }
	.rt-prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; word-break: break-all; }
}
