/*
 * Home hero (data-section «Hero», pattern transpirenaica/home-hero). Ported from base.css and mobile.css of
 * 01-transpirenaica-en-moto with docs/class-map.md (--color-on-dark → --on-dark, --color-blanco → --white,
 * --color-mostaza → --mustard, --color-bosque-900 → --forest-900). Font sizes come from the tokens of
 * global.css (--fs-h1 78/56/38, --fs-lead 21/18), which change at the same breakpoints.
 *
 * The merged header (Header Element «Cabecera fusionada») sits over the photo: the 180 px (120 px on mobile)
 * top padding leaves room for it. The bottom padding includes the radius of the next band, which climbs over
 * the hero (.section--rounded).
 */

.hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 85vh;
	padding: 180px 0 calc(var(--space-9) + var(--radius-section));
	overflow: hidden;
	background: var(--forest-900);
	color: var(--on-dark);
}

.hero__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 50% 40%;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(13, 26, 17, .6) 0%, rgba(13, 26, 17, 0) 24%),
		linear-gradient(90deg, rgba(13, 26, 17, .9) 0%, rgba(13, 26, 17, .72) 40%, rgba(13, 26, 17, .42) 62%, rgba(13, 26, 17, .1) 82%, rgba(13, 26, 17, 0) 100%),
		linear-gradient(0deg, rgba(13, 26, 17, .55) 0%, rgba(13, 26, 17, 0) 40%);
}

.hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
}

.hero__content {
	max-width: 1040px;
}

.hero__title {
	margin-bottom: var(--space-5);
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: var(--fs-h1);
	line-height: .96;
	letter-spacing: .01em;
	text-transform: uppercase;
	color: var(--white);
}

.hero__title-accent {
	display: block;
	color: var(--mustard);
	white-space: nowrap;
}

.hero__lead {
	max-width: 620px;
	margin-bottom: var(--space-6);
	font-size: var(--fs-lead);
	font-weight: 500;
	line-height: 1.5;
	color: var(--on-dark);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-5);
}

/* Months of the departures, with the calendar icon of the design (20 px, mustard) as a mask. */
.hero__meta {
	--icon-size: 20px;
	--icon-color: var(--mustard);
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	font-size: var(--fs-small);
	font-weight: 600;
	color: var(--on-dark);
}

/* Mobile (≤767 px) */
@media (max-width: 767px) {
	.hero {
		min-height: 80vh;
		padding: 120px 0 calc(var(--space-7) + var(--radius-section));
	}

	.hero__media {
		object-position: 55% 35%;
	}

	.hero__overlay {
		background: linear-gradient(180deg, rgba(13, 26, 17, .62) 0%, rgba(13, 26, 17, 0) 18%, rgba(13, 26, 17, .2) 38%, rgba(13, 26, 17, .86) 62%, rgba(13, 26, 17, .95) 100%);
	}

	.hero__title {
		margin-bottom: var(--space-4);
		line-height: 1;
	}

	.hero__title-accent {
		white-space: normal;
	}

	.hero__lead {
		margin-bottom: var(--space-5);
	}

	.hero__actions {
		flex-direction: column;
		align-items: stretch;
		gap: var(--space-4);
	}

	.hero__actions .btn {
		width: 100%;
	}

	.hero__meta {
		justify-content: center;
	}
}
