/**
 * Pattern: MWM Historia
 * Misma rejilla que mwm-por-que: columna fija 416px + columna fluida (Figma 6501:21153, gap 24px / 100px).
 */

.mwm-historia .historia-row + .historia-row {
	margin-top: 100px;
}

.mwm-historia .historia-row.wp-block-columns {
	gap: 24px;
	align-items: flex-start;
}

.mwm-historia .historia-row > .wp-block-column:first-child {
	flex-basis: 416px;
	flex-grow: 0;
	flex-shrink: 0;
	max-width: 100%;
	box-sizing: border-box;
}

.mwm-historia .historia-row > .wp-block-column:last-child {
	flex: 1 1 auto;
	min-width: 0;
}

.mwm-historia .historia-row--2.wp-block-columns {
	align-items: center;
}

.mwm-historia .historia-row--2 > .wp-block-column:last-child {
	padding-right: clamp(0px, 12vw, 220px);
}

.mwm-historia h2.historia__kicker,
.editor-styles-wrapper .mwm-historia h2.historia__kicker {
	margin: 0;
	padding: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--normal);
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: uppercase;
}

.mwm-historia.has-quaternary-background-color h2.historia__kicker,
.editor-styles-wrapper .mwm-historia.has-quaternary-background-color h2.historia__kicker {
	color: var(--wp--preset--color--tertiary);
}

.mwm-historia.has-tertiary-background-color h2.historia__kicker,
.editor-styles-wrapper .mwm-historia.has-tertiary-background-color h2.historia__kicker {
	color: var(--wp--preset--color--foreground);
}

.mwm-historia p.historia__lead,
.editor-styles-wrapper .mwm-historia p.historia__lead {
	margin: 0;
	padding: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--heading-2);
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.mwm-historia.has-quaternary-background-color p.historia__lead,
.editor-styles-wrapper .mwm-historia.has-quaternary-background-color p.historia__lead {
	color: var(--wp--preset--color--tertiary);
}

.mwm-historia.has-tertiary-background-color p.historia__lead,
.editor-styles-wrapper .mwm-historia.has-tertiary-background-color p.historia__lead {
	color: var(--wp--preset--color--foreground);
}

.mwm-historia p.historia__lead em {
	font-style: italic;
	font-family: var(--wp--preset--font-family--heading);
}

.mwm-historia .historia-image--big img {
	max-width: 636px;
	width: 100%;
	height: auto;
}

.mwm-historia .historia-image--small img {
	max-width: 306px;
	width: 100%;
	height: auto;
}

@media (max-width: 782px) {
	.mwm-historia {
		padding-top: 60px !important;
		padding-bottom: 60px !important;
		padding-left: 20px !important;
		padding-right: 20px !important;
	}

	.mwm-historia .historia-row + .historia-row {
		margin-top: 60px;
	}

	.mwm-historia .historia-row > .wp-block-column:first-child {
		flex-basis: 100%;
		padding-top: 0 !important;
		padding-right: 0 !important;
	}

	.mwm-historia .historia-row--2 .historia-row__spacer {
		display: none;
	}

	.mwm-historia .historia-row--2 > .wp-block-column:last-child {
		padding-right: 0 !important;
	}

	.mwm-historia .historia-image--big img,
	.mwm-historia .historia-image--small img {
		max-width: 100%;
	}
}
