/**
 * El Refugio de Lectura.
 * Todo el alcance vive bajo .mht-blog o body/html.mht-blog-reader-open.
 */

.mht-blog {
	--mht-blog-teal: #104e59;
	--mht-blog-ink: #16343a;
	--mht-blog-gold: #d4a853;
	--mht-blog-gold-deep: #c4923b;
	--mht-blog-cream: #f6f3ee;
	--mht-blog-line: rgba(16, 78, 89, 0.12);
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	overflow-x: clip;
	background: var(--mht-blog-cream);
	color: var(--mht-blog-ink);
	font-family: "Noto Sans", "Segoe UI", sans-serif;
}

.mht-blog *,
.mht-blog *::before,
.mht-blog *::after {
	box-sizing: border-box;
}

.mht-blog__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

html.mht-blog-reader-open,
html.mht-blog-reader-open body {
	overflow: hidden;
}

.mht-blog-hero {
	position: relative;
	overflow: hidden;
	padding: 4.5rem 1.5rem 3.5rem;
	color: #fff;
	background:
		radial-gradient(ellipse at 12% 20%, rgba(212, 168, 83, 0.22), transparent 42%),
		radial-gradient(ellipse at 88% 0%, rgba(255, 255, 255, 0.12), transparent 36%),
		linear-gradient(165deg, #0c3f38 0%, #1c6b56 46%, #0e4a44 100%);
}

.mht-blog-hero__glow {
	position: absolute;
	right: -8rem;
	bottom: -10rem;
	width: 28rem;
	height: 28rem;
	border-radius: 58% 42% 62% 38%;
	background: rgba(255, 255, 255, 0.06);
	pointer-events: none;
}

.mht-blog-hero__inner {
	position: relative;
	z-index: 1;
	width: min(920px, 100%);
	margin: 0 auto;
	text-align: center;
}

.mht-blog-hero__kicker {
	display: inline-flex;
	margin: 0 0 1.25rem;
	padding: 0.4rem 0.9rem;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.92);
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.mht-blog-hero__title {
	margin: 0;
	color: #fff;
	font-family: "Playfair Display", "Poly", Georgia, serif;
	font-size: clamp(2.6rem, 6vw, 4.6rem);
	font-weight: 500;
	line-height: 1.05;
}

.mht-blog-hero__lead {
	width: min(640px, 100%);
	margin: 1rem auto 0;
	color: rgba(255, 255, 255, 0.88);
	font-family: "Poly", Georgia, serif;
	font-size: 1.2rem;
	font-style: italic;
	line-height: 1.45;
}

.mht-blog-search {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	width: min(680px, 100%);
	margin: 1.8rem auto 0;
	padding: 0.35rem 0.35rem 0.35rem 1rem;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.mht-blog-search__icon {
	display: flex;
	color: var(--mht-blog-teal);
}

.mht-blog-search__icon svg {
	width: 1.15rem;
	height: 1.15rem;
}

.mht-blog-search input {
	width: 100%;
	min-width: 0;
	padding: 0.85rem 0.8rem 0.85rem 0;
	border: 0;
	background: transparent;
	color: var(--mht-blog-ink);
	font: inherit;
	font-size: 0.98rem;
}

.mht-blog-search input:focus {
	outline: none;
}

.mht-blog-search:focus-within {
	box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.55);
}

.mht-blog-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.65rem;
	width: min(860px, 100%);
	margin: 1.4rem auto 0;
}

.mht-blog button.mht-blog-filters__btn {
	padding: 0.55rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font: inherit;
	font-size: 0.92rem;
	cursor: pointer;
}

.mht-blog button.mht-blog-filters__btn:hover,
.mht-blog button.mht-blog-filters__btn:focus-visible {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.mht-blog button.mht-blog-filters__btn.is-active {
	border-color: transparent;
	background: var(--mht-blog-gold);
	color: #fff;
}

.mht-blog-list {
	width: min(1180px, calc(100% - 2rem));
	margin: 0 auto;
	padding: 2.5rem 0 4.5rem;
}

.mht-blog-empty {
	margin: 0 0 1.5rem;
	text-align: center;
	color: var(--mht-blog-teal);
}

.mht-blog-empty[hidden],
.mht-blog-card[hidden],
.mht-blog-reader[hidden],
.mht-blog-reader__panel[hidden] {
	display: none !important;
}

.mht-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.4rem;
}

.mht-blog-card {
	min-width: 0;
}

.mht-blog button.mht-blog-card__open {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: 1.4rem;
	background: #fff;
	color: inherit;
	text-align: left;
	white-space: normal;
	box-shadow: 0 14px 34px rgba(16, 78, 89, 0.08);
	cursor: pointer;
	overflow: hidden;
}

.mht-blog button.mht-blog-card__open:hover,
.mht-blog button.mht-blog-card__open:focus-visible {
	background: #fff;
	color: inherit;
	transform: translateY(-3px);
}

.mht-blog button.mht-blog-card__open:focus-visible {
	outline: 3px solid var(--mht-blog-gold);
	outline-offset: 3px;
}

.mht-blog-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	background: #d7e2df;
}

.mht-blog-card__media img,
.mht-blog-reader__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mht-blog-card__badge,
.mht-blog-reader__category {
	display: inline-flex;
	padding: 0.28rem 0.7rem;
	border-radius: 999px;
	background: #1f7a45;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
}

.mht-blog-card__badge {
	position: absolute;
	top: 0.8rem;
	left: 0.8rem;
}

.mht-blog-card__badge--metodo-medhealing,
.mht-blog-reader__category--metodo-medhealing,
.mht-blog-card__badge--historias-reales,
.mht-blog-reader__category--historias-reales {
	background: #c4a15a;
	color: #fff;
}

.mht-blog-card__badge--guias-consejos,
.mht-blog-reader__category--guias-consejos {
	background: #e7f6ef;
	color: #1a6b4a;
}

.mht-blog-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.1rem 1.15rem 1.2rem;
}

.mht-blog-card__title {
	display: block;
	color: var(--mht-blog-ink);
	font-family: "Poly", Georgia, serif;
	font-size: 1.28rem;
	line-height: 1.25;
	white-space: normal;
	overflow-wrap: anywhere;
}

.mht-blog-card__excerpt {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	white-space: normal;
	color: rgba(22, 52, 58, 0.78);
	font-size: 0.95rem;
	line-height: 1.45;
}

.mht-blog-card__meta,
.mht-blog-card__author,
.mht-blog-card__aside {
	display: flex;
	align-items: center;
}

.mht-blog-card__meta {
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
	min-width: 0;
}

.mht-blog-card__author {
	flex: 1 1 auto;
	gap: 0.65rem;
	min-width: 0;
	overflow: hidden;
}

.mht-blog-card__author > span {
	display: block;
	min-width: 0;
	overflow: hidden;
}

.mht-blog-card__avatar,
.mht-blog-reader__byline img {
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	object-fit: cover;
}

.mht-blog-card__name,
.mht-blog-card__date,
.mht-blog-card__reading,
.mht-blog-card__place {
	display: block;
}

.mht-blog-card__name {
	overflow: hidden;
	font-size: 0.86rem;
	font-weight: 700;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.mht-blog-card__date,
.mht-blog-card__reading,
.mht-blog-card__place {
	color: rgba(22, 52, 58, 0.62);
	font-size: 0.78rem;
}

.mht-blog-card__date {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.mht-blog-card__aside {
	flex: 0 0 auto;
	gap: 0.45rem;
	white-space: nowrap;
}

.mht-blog-card__reading {
	white-space: nowrap;
}

.mht-blog-card__go {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: #e7f3ef;
	color: var(--mht-blog-teal);
}

.mht-blog-card__go svg {
	width: 1rem;
	height: 1rem;
}

.mht-blog-reader {
	position: fixed;
	inset: 0;
	z-index: 30000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
}

.mht-blog-reader__overlay {
	position: absolute;
	inset: 0;
	background: rgba(8, 28, 26, 0.58);
}

.mht-blog-reader__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	width: min(980px, 100%);
	height: min(92vh, 920px);
	border-radius: 1.6rem;
	background: #fff;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
	overflow: hidden;
}

.mht-blog-reader__dialog:focus {
	outline: none;
}

.mht-blog-reader__panel {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 0;
}

.mht-blog-reader__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.15rem;
	border-bottom: 1px solid var(--mht-blog-line);
	background: #fff;
}

.mht-blog-reader__tags,
.mht-blog-reader__tools,
.mht-blog-reader__facts {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.mht-blog-reader__location {
	color: rgba(22, 52, 58, 0.7);
	font-size: 0.86rem;
}

.mht-blog button.mht-blog-reader__share,
.mht-blog button.mht-blog-reader__close {
	border: 1px solid var(--mht-blog-line);
	background: #fff;
	color: var(--mht-blog-teal);
	cursor: pointer;
}

.mht-blog button.mht-blog-reader__share {
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	font: inherit;
	font-size: 0.88rem;
}

.mht-blog button.mht-blog-reader__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	background: var(--mht-blog-teal);
	color: #fff;
	font-size: 1.4rem;
	line-height: 1;
}

.mht-blog button.mht-blog-reader__share:hover,
.mht-blog button.mht-blog-reader__share:focus-visible,
.mht-blog button.mht-blog-reader__close:hover,
.mht-blog button.mht-blog-reader__close:focus-visible {
	background: var(--mht-blog-teal);
	color: #fff;
}

.mht-blog-reader__scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	padding: 1.4rem 1.6rem 2rem;
}

.mht-blog-reader__title {
	margin: 0;
	color: var(--mht-blog-ink);
	font-family: "Playfair Display", "Poly", Georgia, serif;
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	font-weight: 500;
	line-height: 1.15;
}

.mht-blog-reader__subtitle {
	margin: 0.8rem 0 0;
	color: rgba(22, 52, 58, 0.75);
	font-family: "Poly", Georgia, serif;
	font-size: 1.15rem;
	font-style: italic;
}

.mht-blog-reader__byline {
	display: flex;
	gap: 0.85rem;
	align-items: center;
	margin-top: 1.2rem;
}

.mht-blog-reader__byline img {
	width: 3.4rem;
	height: 3.4rem;
}

.mht-blog-reader__author,
.mht-blog-reader__role,
.mht-blog-reader__facts {
	margin: 0;
}

.mht-blog-reader__author {
	font-weight: 700;
}

.mht-blog-reader__role,
.mht-blog-reader__facts {
	color: rgba(22, 52, 58, 0.7);
	font-size: 0.9rem;
}

.mht-blog-reader__role {
	color: var(--mht-blog-gold-deep);
}

.mht-blog-reader__cover {
	margin: 1.3rem 0 0;
	border-radius: 1.2rem;
	overflow: hidden;
}

.mht-blog-reader__cover img {
	height: auto;
	max-height: 460px;
}

.mht-blog-reader__quote {
	margin: 1.4rem 0 0;
	padding: 1rem 1.1rem;
	border-left: 3px solid var(--mht-blog-gold);
	background: #f8f4ea;
}

.mht-blog-reader__quote p {
	margin: 0;
	font-family: "Poly", Georgia, serif;
	font-size: 1.15rem;
	line-height: 1.45;
}

.mht-blog-reader__quote footer {
	margin-top: 0.55rem;
	color: var(--mht-blog-teal);
	font-size: 0.88rem;
}

.mht-blog-reader__prose h3 {
	margin: 1.5rem 0 0.45rem;
	color: var(--mht-blog-teal);
	font-family: "Poly", Georgia, serif;
	font-size: 1.35rem;
	font-weight: 500;
}

.mht-blog-reader__prose p {
	margin: 0 0 0.85rem;
	font-size: 1.05rem;
	line-height: 1.7;
}

.mht-blog-reader__topics {
	margin-top: 1.2rem;
}

.mht-blog-reader__topics p {
	margin: 0 0 0.55rem;
	color: rgba(22, 52, 58, 0.62);
	font-size: 0.82rem;
}

.mht-blog-reader__topics ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mht-blog-reader__topics li {
	padding: 0.3rem 0.65rem;
	border: 1px solid var(--mht-blog-line);
	border-radius: 999px;
	color: var(--mht-blog-teal);
	font-size: 0.8rem;
}

.mht-blog-reader__cta {
	margin-top: 1.6rem;
	padding: 1.5rem 1.2rem 1.4rem;
	border-radius: 1.2rem;
	text-align: center;
	color: #fff;
	background: linear-gradient(160deg, #146b4a 0%, #0e4e44 100%);
}

.mht-blog-reader__cta p {
	width: min(520px, 100%);
	margin: 0 auto 0.45rem;
}

.mht-blog-reader__cta p:first-child {
	font-family: "Playfair Display", "Poly", Georgia, serif;
	font-size: 1.55rem;
}

.mht-blog button.mht-blog-reader__agenda {
	margin-top: 0.8rem;
	padding: 0.8rem 1.3rem;
	border: 0;
	border-radius: 999px;
	background: var(--mht-blog-gold);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.mht-blog button.mht-blog-reader__agenda:hover,
.mht-blog button.mht-blog-reader__agenda:focus-visible {
	background: var(--mht-blog-gold-deep);
	color: #fff;
}

@media (max-width: 980px) {
	.mht-blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	.mht-blog-hero {
		padding: 2.4rem 1rem 2rem;
	}

	.mht-blog-grid {
		grid-template-columns: 1fr;
	}

	.mht-blog-reader {
		padding: 0;
	}

	.mht-blog-reader__dialog {
		width: 100%;
		height: 100%;
		max-height: 100%;
		border-radius: 0;
	}

	.mht-blog-reader__bar {
		align-items: flex-start;
	}

	.mht-blog-reader__scroll {
		padding: 1rem 1rem 1.5rem;
	}

	.mht-blog-card__meta {
		align-items: flex-start;
	}
}
