.hd-malinche-page,
.hd-malinche-page * {
	box-sizing: border-box;
}

.hd-contact-page.hd-visit-page.hd-malinche-page {
	--pink-accessible: #d62a78;
}

.hd-malinche-page > .e-con-inner,
.hd-malinche-page.e-con {
	gap: 0;
}

.hd-malinche-shell {
	width: min(calc(100% - 48px), 1180px);
	margin-inline: auto;
}

.hd-malinche-page #descubre,
.hd-malinche-page #como-llegar,
.hd-malinche-page #ubicacion,
.hd-malinche-page #naturaleza,
.hd-malinche-page #historia,
.hd-malinche-page #galeria,
.hd-malinche-page #noticias-relacionadas {
	scroll-margin-top: 96px;
}

.hd-malinche-microtitle {
	margin: 0;
	color: var(--pink-accessible);
	font-size: .75rem;
	font-weight: 800;
	letter-spacing: .11em;
	text-transform: uppercase;
}

.hd-malinche-section-heading h2,
.hd-malinche-editorial h2,
.hd-malinche-route-copy h2,
.hd-malinche-nature h2,
.hd-malinche-history h2,
.hd-malinche-related-news h2 {
	margin: 6px 0 0;
	color: var(--ink);
	font-size: clamp(1.85rem, 4vw, 2.6rem);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -.045em;
}

.hd-malinche-page .hd-contact-page-index {
	margin-top: 24px;
	padding: 12px 16px;
	border-radius: 18px;
}

.hd-malinche-page .hd-contact-page-index strong {
	margin-right: 6px;
	padding: 0;
	letter-spacing: 0;
}

.hd-malinche-page .hd-contact-page-index a {
	color: var(--ink) !important;
}

.hd-malinche-quick,
.hd-malinche-gallery,
.hd-malinche-page .hd-visit-related {
	margin-top: 48px;
}

.hd-malinche-quick-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: 18px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 22px;
	background: var(--white);
}

.hd-malinche-quick-grid article {
	min-height: 128px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 16px;
	border-right: 1px solid var(--line);
	text-align: center;
}

.hd-malinche-quick-grid article:last-child {
	border-right: 0;
}

.hd-malinche-quick-grid span {
	color: var(--secondary);
	font-size: 1.2rem;
	font-weight: 700;
}

.hd-malinche-quick-grid small {
	margin-top: 5px;
	color: var(--pink-accessible);
	font-size: .75rem;
	font-weight: 800;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.hd-malinche-quick-grid strong {
	margin-top: 5px;
	color: var(--ink);
	font-size: .84rem;
	font-weight: 800;
	line-height: 1.45;
}

/* Reutilización exacta del widget editorial aprobado. */
.hd-malinche-page .hd-first-visit-split {
	grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr);
	gap: 42px;
	margin-top: 48px;
	padding: 32px;
	border-radius: 32px;
}

.hd-malinche-page .hd-first-visit-split--image-left > figure {
	grid-column: 1;
}

.hd-malinche-page .hd-first-visit-split--image-left > .hd-first-visit-split-copy {
	grid-column: 2;
}

.hd-malinche-page .hd-first-visit-split-copy > p:not(.hd-visit-microtitle) {
	max-width: 64ch;
	margin: 15px 0 0;
	color: var(--secondary);
	font-size: .95rem;
	line-height: 1.6;
}

.hd-malinche-page .hd-first-visit-split-copy > p:not(.hd-visit-microtitle) + p {
	margin-top: 10px;
}

.hd-malinche-route,
.hd-malinche-nature,
.hd-malinche-history,
.hd-malinche-related-news {
	margin-top: 48px;
}

.hd-malinche-route {
	display: grid;
	grid-template-columns: minmax(0, .82fr) minmax(380px, 1.18fr);
	gap: 12px;
}

.hd-malinche-route-copy,
.hd-malinche-map-card,
.hd-malinche-nature,
.hd-malinche-history-grid article {
	border: 1px solid var(--line);
	border-radius: 28px;
	background: var(--white);
}

.hd-malinche-route-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 32px;
}

.hd-malinche-route-copy > p:not(.hd-malinche-microtitle),
.hd-malinche-map-card > p,
.hd-malinche-nature-layout p,
.hd-malinche-history-grid p {
	color: var(--secondary);
	font-size: .9rem;
	line-height: 1.65;
}

.hd-malinche-route-copy > p:not(.hd-malinche-microtitle) {
	margin: 14px 0 0;
}

.hd-malinche-route-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 20px;
}

.hd-malinche-primary-action,
.hd-malinche-secondary-action,
.hd-malinche-gallery .hd-malinche-section-heading > a {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 18px;
	border-radius: 999px;
	font-family: inherit;
	font-size: .75rem;
	font-weight: 800;
	text-decoration: none !important;
}

.hd-malinche-primary-action {
	border: 0;
	background: var(--ink);
	color: var(--white) !important;
	cursor: pointer;
}

.hd-malinche-secondary-action,
.hd-malinche-gallery .hd-malinche-section-heading > a {
	border: 1px solid #cbd3d1;
	background: var(--white);
	color: var(--ink) !important;
}

.hd-malinche-map-card {
	overflow: hidden;
	padding: 12px;
}

.hd-malinche-map-stage {
	min-height: 430px;
	position: relative;
	overflow: hidden;
	border-radius: 20px;
	background: #e7ece8;
}

.hd-malinche-map-stage > iframe {
	width: 100%;
	height: 430px;
	display: block;
	border: 0;
}

.hd-malinche-map-poster {
	width: 100%;
	max-width: none;
	height: 430px;
	min-height: 430px;
	position: relative;
	display: block;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 20px !important;
	background: #e7ece8;
	box-shadow: none !important;
	cursor: pointer;
	font-family: inherit;
	line-height: normal;
	text-align: left;
	text-transform: none;
	-webkit-appearance: none;
	appearance: none;
}

/*
 * El poster es un botón accesible, pero no debe heredar la silueta de píldora
 * que Elementor, Hello o un kit global aplican a los botones. Esta prioridad
 * conserva únicamente las esquinas de 20 px del diseño aprobado.
 */
.hd-contact-page.hd-visit-page.hd-first-visit-page.hd-malinche-page
	.hd-malinche-map-card
	.hd-malinche-map-stage > button.hd-malinche-map-poster {
	width: 100% !important;
	max-width: none !important;
	height: 430px !important;
	min-height: 430px !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	border: 0 !important;
	border-radius: 20px !important;
	background: #e7ece8 !important;
	box-shadow: none !important;
	color: inherit !important;
	line-height: normal !important;
	text-align: left !important;
	text-transform: none !important;
	transform: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.hd-malinche-map-poster > img {
	width: 100%;
	height: 100%;
	position: absolute;
	inset: 0;
	display: block;
	border-radius: 0 !important;
	object-fit: cover;
	filter: saturate(.82) contrast(.95);
}

.hd-malinche-map-poster::after {
	position: absolute;
	inset: 0;
	content: "";
	background: linear-gradient(180deg, transparent 45%, rgba(16, 35, 43, .64) 100%);
	pointer-events: none;
}

.hd-malinche-map-pin {
	width: 27px;
	height: 27px;
	position: absolute;
	top: 46%;
	left: 51%;
	z-index: 2;
	border: 6px solid var(--white);
	border-radius: 50% 50% 50% 0;
	background: var(--pink);
	box-shadow: 0 4px 14px rgba(16, 35, 43, .24);
	transform: rotate(-45deg);
}

.hd-malinche-map-poster > strong {
	position: absolute;
	right: 20px;
	bottom: 22px;
	left: 20px;
	z-index: 2;
	color: var(--white);
	font-size: 1rem;
}

.hd-malinche-map-poster > small {
	position: absolute;
	top: 10px;
	right: 12px;
	z-index: 2;
	padding: 4px 7px;
	border-radius: 6px;
	background: rgba(255, 255, 255, .88);
	color: var(--secondary);
	font-size: .75rem;
}

.hd-malinche-map-card > p {
	margin: 12px 7px 4px;
	font-size: .75rem;
}

.hd-malinche-editorial {
	display: grid;
	grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr);
	align-items: center;
	gap: 42px;
	margin-top: 48px;
	padding: 32px;
	border: 1px solid var(--line);
	border-radius: 32px;
	background: var(--white);
}

.hd-malinche-editorial--right {
	grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
}

.hd-malinche-editorial figure {
	margin: 0;
	overflow: hidden;
	border-radius: 22px;
	background: var(--paper);
	aspect-ratio: 4 / 3;
}

.hd-malinche-editorial figure img {
	width: 100%;
	height: 100%;
	display: block;
	border-radius: 0 !important;
	object-fit: cover;
}

.hd-malinche-editorial > div > p:not(.hd-malinche-microtitle) {
	max-width: 64ch;
	margin: 15px 0 0;
	color: var(--secondary);
	font-size: .95rem;
	line-height: 1.6;
}

.hd-malinche-distance-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.hd-malinche-distance-list li {
	padding: 12px;
	border-radius: 14px;
	background: var(--paper);
}

.hd-malinche-distance-list strong,
.hd-malinche-distance-list span {
	display: block;
}

.hd-malinche-distance-list strong {
	color: var(--ink);
	font-size: 1rem;
}

.hd-malinche-distance-list span {
	margin-top: 2px;
	color: var(--secondary);
	font-size: .75rem;
}

.hd-malinche-nature {
	padding: 32px;
}

.hd-malinche-nature-layout {
	display: grid;
	grid-template-columns: minmax(320px, .85fr) minmax(0, 1.15fr);
	align-items: center;
	gap: 36px;
	margin-top: 24px;
}

.hd-malinche-nature-layout figure {
	margin: 0;
	overflow: hidden;
	border-radius: 22px;
	aspect-ratio: 4 / 3;
}

.hd-malinche-nature-layout img {
	width: 100%;
	height: 100%;
	display: block;
	border-radius: 0 !important;
	object-fit: cover;
}

.hd-malinche-nature-layout p {
	margin: 0;
}

.hd-malinche-nature-layout p + p {
	margin-top: 10px;
}

.hd-malinche-nature-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin-top: 18px;
}

.hd-malinche-nature-facts span {
	padding: 12px;
	border-radius: 14px;
	background: var(--paper);
	color: var(--secondary);
	font-size: .75rem;
	line-height: 1.45;
}

.hd-malinche-nature-facts strong {
	display: block;
	color: var(--ink);
	font-size: 1.15rem;
}

.hd-malinche-history-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 18px;
}

.hd-malinche-history-grid article {
	min-width: 0;
	padding: 24px;
}

.hd-malinche-history-grid article > span {
	color: var(--secondary);
	font-size: .75rem;
	font-weight: 800;
}

.hd-malinche-history-grid h3 {
	margin: 18px 0 0;
	color: var(--ink);
	font-size: 1.05rem;
}

.hd-malinche-history-grid p {
	margin: 10px 0 0;
	font-size: .82rem;
}

.hd-malinche-history-grid .hd-malinche-history-highlight {
	background: var(--ink);
}

.hd-malinche-history-highlight > span {
	color: var(--white);
}

/* 5.0.8: Elementor puede imponer el color global de encabezados sobre h3.
 * La variante oscura debe conservar contraste legible en editor y front. */
.hd-malinche-history-grid .hd-malinche-history-highlight h3 {
	color: var(--white) !important;
}

.hd-malinche-history-highlight p {
	color: #c7d0d2;
}

.hd-malinche-history-highlight strong {
	display: block;
	margin-top: 18px;
	color: var(--gold);
	font-size: .9rem;
	line-height: 1.5;
}

.hd-malinche-section-heading--row {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 20px;
}

.hd-malinche-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin-top: 18px;
}

.hd-malinche-gallery-grid figure {
	min-width: 0;
	margin: 0;
}

.hd-malinche-gallery-media {
	overflow: hidden;
	border-radius: 22px;
	background: var(--line);
	aspect-ratio: 4 / 3;
}

.hd-malinche-gallery-media img {
	width: 100%;
	height: 100%;
	display: block;
	border-radius: 0 !important;
	object-fit: cover;
}

.hd-malinche-gallery-grid figcaption {
	min-height: 1.5em;
	margin: 9px 0 0;
	color: var(--secondary);
	font-size: .75rem;
	line-height: 1.5;
}

.hd-malinche-related-news {
	padding: clamp(24px, 4vw, 40px);
	border: 1px solid var(--line);
	border-radius: 30px;
	background: var(--white);
}

.hd-malinche-related-news > header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 20px;
}

.hd-malinche-topic-source {
	min-height: 40px;
	display: inline-flex;
	align-items: center;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--paper);
	color: var(--secondary);
	font-size: .75rem;
	font-weight: 800;
}

.hd-malinche-related-news-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
}

.hd-malinche-related-news-card {
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--paper);
}

.hd-malinche-related-news-card figure {
	margin: 0;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.hd-malinche-related-news-card img {
	width: 100%;
	height: 100%;
	display: block;
	border-radius: 0 !important;
	object-fit: cover;
}

.hd-malinche-related-news-card > div {
	padding: 14px;
}

.hd-malinche-related-news-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 0;
	color: var(--secondary);
	font-size: .75rem;
	font-weight: 750;
}

.hd-malinche-related-news-views {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.hd-malinche-related-news-views svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
}

.hd-malinche-related-news-card h3 {
	margin: 9px 0 0;
	color: var(--ink);
	font-size: 1rem;
	line-height: 1.22;
	letter-spacing: -.025em;
}

.hd-malinche-related-news-card h3 + p {
	margin: 9px 0 0;
	color: var(--secondary);
	font-size: .82rem;
	line-height: 1.5;
}

.hd-malinche-related-news-card a,
.hd-malinche-related-news-all {
	min-height: 40px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--ink) !important;
	font-size: .75rem;
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.hd-malinche-related-news-card a {
	margin-top: 11px;
}

.hd-malinche-related-news-all {
	margin-top: 16px;
}

.hd-malinche-related-news-empty {
	margin: 0;
	padding: 18px;
	border-radius: 16px;
	background: var(--paper);
	color: var(--secondary);
	font-size: .9rem;
}

/* Reutilización exacta del bloque Descubre Huamantla. */
.hd-malinche-page .hd-visit-related .hd-visit-section-heading h2 {
	font-size: clamp(1.85rem, 4vw, 2.6rem);
}

.hd-malinche-page a:focus-visible,
.hd-malinche-page button:focus-visible {
	outline: 3px solid var(--pink);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.hd-malinche-page,
	.hd-malinche-page * {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}

@media (max-width: 900px) {
	.hd-malinche-page .hd-contact-hero,
	.hd-malinche-page .hd-first-visit-split,
	.hd-malinche-editorial,
	.hd-malinche-editorial--right,
	.hd-malinche-route,
	.hd-malinche-nature-layout {
		grid-template-columns: 1fr;
	}

	.hd-malinche-page .hd-contact-hero-image {
		aspect-ratio: 16 / 10;
	}

	.hd-malinche-page .hd-first-visit-split--image-left > figure {
		grid-column: 1;
		grid-row: 1;
		order: 0;
	}

	.hd-malinche-page .hd-first-visit-split--image-left > .hd-first-visit-split-copy {
		grid-column: 1;
		grid-row: 2;
		order: 0;
	}

	.hd-malinche-editorial--right figure {
		grid-row: 1;
	}

	.hd-malinche-history-grid {
		grid-template-columns: 1fr;
	}

	.hd-malinche-related-news-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.hd-malinche-map-stage,
	.hd-malinche-map-poster {
		min-height: 360px;
	}

	.hd-contact-page.hd-visit-page.hd-first-visit-page.hd-malinche-page
		.hd-malinche-map-card
		.hd-malinche-map-stage > button.hd-malinche-map-poster {
		height: 360px !important;
		min-height: 360px !important;
	}

	.hd-malinche-map-stage > iframe {
		height: 360px;
	}
}

@media (max-width: 620px) {
	.hd-malinche-shell,
	.hd-malinche-page .hd-contact-shell,
	.hd-malinche-page .hd-visit-shell {
		width: calc(100% - 32px);
	}


	.hd-malinche-quick,
	.hd-malinche-page .hd-first-visit-split,
	.hd-malinche-route,
	.hd-malinche-editorial,
	.hd-malinche-nature,
	.hd-malinche-history,
	.hd-malinche-gallery,
	.hd-malinche-related-news,
	.hd-malinche-page .hd-visit-related {
		margin-top: 32px;
	}

	.hd-malinche-quick-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hd-malinche-quick-grid article {
		min-height: 112px;
	}

	.hd-malinche-quick-grid article:nth-child(2) {
		border-right: 0;
	}

	.hd-malinche-quick-grid article:nth-child(-n+2) {
		border-bottom: 1px solid var(--line);
	}

	.hd-malinche-route-copy,
	.hd-malinche-nature,
	.hd-malinche-history-grid article {
		padding: 20px 18px;
		border-radius: 22px;
	}

	.hd-malinche-page .hd-first-visit-split,
	.hd-malinche-editorial {
		gap: 22px;
		padding: 18px;
		border-radius: 24px;
	}

	.hd-malinche-map-stage,
	.hd-malinche-map-poster {
		min-height: 300px;
	}

	.hd-contact-page.hd-visit-page.hd-first-visit-page.hd-malinche-page
		.hd-malinche-map-card
		.hd-malinche-map-stage > button.hd-malinche-map-poster {
		height: 300px !important;
		min-height: 300px !important;
	}

	.hd-malinche-map-stage > iframe {
		height: 300px;
	}

	.hd-malinche-route-actions > *,
	.hd-malinche-section-heading--row > a {
		width: 100%;
	}

	.hd-malinche-distance-list,
	.hd-malinche-nature-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hd-malinche-nature-layout {
		gap: 20px;
	}

	.hd-malinche-history-grid {
		gap: 10px;
	}

	.hd-malinche-section-heading--row,
	.hd-malinche-related-news > header {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
	}

	.hd-malinche-gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 12px;
		row-gap: 24px;
	}

	.hd-malinche-related-news {
		padding: 20px 16px;
		border-radius: 24px;
	}

	.hd-malinche-related-news-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.hd-malinche-related-news-card > div {
		padding: 12px;
	}

	.hd-malinche-related-news-card h3 + p {
		display: none;
	}
}
