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

.hd-history-page {
	--hd-history-pink: #c2185b;
	--hd-history-gold: #d7aa63;
	--hd-history-dark: #0c252d;
	--hd-history-paper: #f2f3f3;
	min-width: 0;
	overflow-x: clip;
}

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

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

.hd-history-introduction,
.hd-history-timeline,
.hd-history-source,
.hd-history-page .hd-celebration-related-news,
.hd-history-page .hd-celebration-more {
	margin-top: 48px;
}

.hd-history-introduction {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, .55fr);
	align-items: center;
	gap: 34px;
	padding: 38px;
	border-radius: 30px;
	color: #fff;
	background: var(--hd-history-dark);
}

.hd-history-introduction .hd-history-microtitle {
	color: var(--hd-history-gold);
}

.hd-history-introduction h2 {
	max-width: 14ch;
	margin: 8px 0 0;
	color: #fff !important;
	font-size: clamp(2rem, 4vw, 3.4rem);
	line-height: 1.04;
}

.hd-history-introduction p:not(.hd-history-microtitle) {
	max-width: 68ch;
	margin: 16px 0 0;
	color: #d5dde0;
	font-size: 1rem;
	line-height: 1.65;
}

.hd-history-years {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 14px;
	padding: 28px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 22px;
}

.hd-history-years span {
	color: #fff;
	font-size: clamp(1.8rem, 4vw, 3rem);
	font-weight: 900;
}

.hd-history-years i {
	height: 2px;
	background: var(--hd-history-gold);
}

.hd-history-timeline {
	padding: 38px;
	border: 1px solid var(--line);
	border-radius: 30px;
	background: #fff;
}

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

.hd-history-section-heading h2 {
	max-width: 18ch;
	margin: 6px 0 0;
	font-size: clamp(1.85rem, 3.5vw, 2.6rem);
	line-height: 1.04;
}

.hd-history-section-heading > p {
	max-width: 48ch;
	margin: 0;
	color: var(--secondary);
	font-size: .82rem;
	line-height: 1.65;
}

.hd-history-timeline-list {
	display: grid;
	gap: 8px;
	padding: 0;
	margin: 28px 0 0;
	list-style: none;
}

.hd-history-year-row {
	display: grid;
	grid-template-columns: 86px minmax(0, 1fr);
	align-items: stretch;
	gap: 14px;
	padding: 8px 0;
	border-top: 1px solid var(--line);
}

.hd-history-year-row:last-child {
	border-bottom: 1px solid var(--line);
}

.hd-history-year-heading {
	display: flex;
	min-height: 112px;
	align-items: center;
	justify-content: center;
	margin: 0;
	border-radius: 16px;
	color: var(--hd-history-dark);
	background: var(--hd-history-paper);
	font-size: 1.28rem;
	font-weight: 900;
	line-height: 1;
}

.hd-history-year-events {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: 8px;
}

.hd-history-event {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	min-width: 0;
	min-height: 112px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: #fff;
}

.hd-history-event figure {
	min-height: 100%;
	margin: 0;
}

.hd-history-event img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 112px;
	object-fit: cover;
}

.hd-history-event-copy {
	display: flex;
	min-width: 0;
	flex-direction: column;
	justify-content: center;
	padding: 12px 14px;
}

.hd-history-event-copy small {
	display: block;
	color: var(--hd-history-pink);
	font-size: max(.75rem, 12px);
	font-weight: 900;
	text-transform: uppercase;
}

.hd-history-event-copy h4 {
	margin: 5px 0 0;
	font-size: max(.9rem, 14px);
	line-height: 1.25;
}

.hd-history-event-copy p {
	display: -webkit-box;
	overflow: hidden;
	margin: 5px 0 0;
	color: var(--secondary);
	font-size: max(.875rem, 14px);
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.hd-history-event-copy a {
	display: inline-flex;
	width: max-content;
	min-height: 44px;
	align-items: center;
	gap: 8px;
	margin-top: 3px;
	color: var(--ink) !important;
	font-size: max(.78rem, 13px);
	font-weight: 900;
	text-decoration: none;
}

.hd-history-event-copy a:hover,
.hd-history-event-copy a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.hd-history-source {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 28px 34px;
	border: 1px solid var(--line);
	border-radius: 26px;
	background: var(--hd-history-paper);
}

.hd-history-source h2 {
	margin: 8px 0 0;
	font-size: clamp(1.6rem, 2.8vw, 2.4rem);
}

.hd-history-source p:not(.hd-history-microtitle) {
	max-width: 68ch;
	margin: 12px 0 0;
	color: var(--secondary);
	font-size: max(.875rem, 14px);
	line-height: 1.55;
}

.hd-history-source .hd-celebration-button {
	flex: 0 0 auto;
}

@media (max-width: 980px) {
	.hd-history-introduction {
		grid-template-columns: 1fr;
	}

	.hd-history-years {
		max-width: 520px;
	}
}

@media (max-width: 720px) {
	.hd-history-shell {
		width: min(calc(100% - 28px), 1180px);
	}

	.hd-history-introduction,
	.hd-history-timeline,
	.hd-history-source {
		margin-top: 24px;
		padding: 18px;
		border-radius: 22px;
	}

	.hd-history-section-heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
	}

	.hd-history-timeline-list {
		gap: 4px;
	}

	.hd-history-year-row {
		grid-template-columns: 56px minmax(0, 1fr);
		gap: 8px;
		padding: 8px 0;
	}

	.hd-history-year-heading {
		min-height: 102px;
		border-radius: 14px;
		font-size: 1rem;
	}

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

	.hd-history-event {
		grid-template-columns: 104px minmax(0, 1fr);
		min-height: 102px;
		border-radius: 14px;
	}

	.hd-history-event img {
		min-height: 102px;
	}

	.hd-history-event-copy {
		padding: 10px 12px;
	}

	.hd-history-event-copy p {
		display: none;
	}

	.hd-history-page .hd-celebration-related-news,
	.hd-history-page .hd-celebration-more {
		margin-top: 32px;
	}

	.hd-history-source {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 360px) {
	.hd-history-shell {
		width: calc(100% - 20px);
	}
}

/* Huamantla Core 5.0.15 — reflow móvil de Acontecimientos.
 * El H1 es una palabra larga y con la escala general de Celebraciones podía
 * superar el ancho útil de la tarjeta. La corrección reduce la escala en móvil
 * y garantiza que el contenido real sea quien determine el ancho, no el min-content.
 */
@media (max-width: 700px) {
	.hd-history-page .hd-celebration-hero,
	.hd-history-page .hd-celebration-hero > div,
	.hd-history-page .hd-celebration-hero-image,
	.hd-history-page .hd-celebration-short-answer,
	.hd-history-page .hd-celebration-intro,
	.hd-history-page .hd-celebration-hero-actions {
		min-width: 0;
		width: 100%;
		max-width: 100%;
	}

	.hd-history-page .hd-celebration-hero h1 {
		max-width: 100%;
		font-size: clamp(1.75rem, 8.5vw, 2.35rem);
		line-height: 1;
		letter-spacing: -.045em;
		text-wrap: wrap;
		overflow-wrap: anywhere;
		word-break: normal;
	}

	.hd-history-page .hd-celebration-microtitle {
		max-width: 100%;
		line-height: 1.35;
		overflow-wrap: break-word;
	}

	.hd-history-page .hd-contact-breadcrumb {
		max-width: 100%;
		flex-wrap: wrap;
		row-gap: 6px;
	}
}

@media (max-width: 430px) {
	.hd-history-page .hd-celebration-hero {
		padding: 20px 18px;
	}

	.hd-history-page .hd-celebration-short-answer {
		padding: 14px;
	}

	.hd-history-page .hd-celebration-hero-actions {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	.hd-history-page .hd-celebration-hero-actions .hd-celebration-button {
		width: 100%;
		max-width: 100%;
		white-space: normal;
		text-align: center;
	}
}
