/** AutoHeaven Kit — Héroe partido. */

.ahv-hero {
	position: relative;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: var(--ahv-ink);
	min-height: 420px;
}

.ahv-hero--light {
	background: var(--ahv-white);
}

.ahv-hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	width: 100%;
	max-width: var(--ahv-container);
	margin: 0 auto;
	padding: 0 var(--ahv-gutter);
}

.ahv-hero__content {
	flex: 0 0 48%;
	padding: var(--ahv-s-16) 0;
}

.ahv-hero__breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--ahv-s-2);
	margin-bottom: var(--ahv-s-6);
	font-family: var(--ahv-font-body);
	font-size: var(--ahv-fs-xs);
	color: var(--ahv-text-3);
}

.ahv-hero--light .ahv-hero__breadcrumb {
	color: var(--ahv-text-2);
}

.ahv-hero__crumb.is-current {
	color: var(--ahv-green);
}

.ahv-hero__title {
	margin: 0 0 var(--ahv-s-5);
	font-family: var(--ahv-font-display);
	font-size: var(--ahv-fs-hero);
	line-height: var(--ahv-lh-tight);
	text-transform: uppercase;
	color: var(--ahv-white);
}

.ahv-hero--light .ahv-hero__title {
	color: var(--ahv-ink);
}

.ahv-hero__line {
	display: block;
}

.ahv-hero__line.is-accent {
	color: var(--ahv-green-light);
}

.ahv-hero--light .ahv-hero__line.is-accent {
	color: var(--ahv-green);
}

.ahv-hero__description {
	max-width: 46ch;
	margin: 0 0 var(--ahv-s-8);
	font-family: var(--ahv-font-body);
	font-size: var(--ahv-fs-body);
	line-height: var(--ahv-lh-body);
	color: rgba(255, 255, 255, 0.82);
}

.ahv-hero--light .ahv-hero__description {
	color: var(--ahv-text-2);
}

.ahv-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ahv-s-4);
}

.ahv-hero__media {
	position: relative;
	flex: 1 1 auto;
	align-self: stretch;
	min-height: inherit;
}

.ahv-hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Degradado que funde la imagen con el fondo de la sección. */
.ahv-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to right,
		var(--ahv-fade, #0A0A0B) 0%,
		rgba(0, 0, 0, 0) var(--ahv-fade-size, 45%)
	);
	pointer-events: none;
}

.ahv-hero--media-left .ahv-hero__inner {
	flex-direction: row-reverse;
}

.ahv-hero--media-left .ahv-hero__media::after {
	background: linear-gradient(
		to left,
		var(--ahv-fade, #0A0A0B) 0%,
		rgba(0, 0, 0, 0) var(--ahv-fade-size, 45%)
	);
}

.ahv-hero--media-cover .ahv-hero__media {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.ahv-hero--media-cover .ahv-hero__content {
	flex-basis: 100%;
	max-width: 640px;
}

@media (max-width: 1024px) {
	.ahv-hero__inner,
	.ahv-hero--media-left .ahv-hero__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.ahv-hero__content {
		flex-basis: auto !important;
		padding: var(--ahv-s-12) 0 var(--ahv-s-8);
	}

	.ahv-hero__media {
		position: relative;
		height: 320px;
		min-height: 0;
	}

	.ahv-hero__media::after {
		background: linear-gradient(
			to top,
			var(--ahv-fade, #0A0A0B) 0%,
			rgba(0, 0, 0, 0) 60%
		);
	}
}

@media (max-width: 767px) {
	.ahv-hero {
		min-height: 0;
	}

	.ahv-hero__actions .ahv-btn {
		flex: 1 1 100%;
	}

	.ahv-hero__media {
		height: 240px;
	}
}
