/*
 * Signup closing band (data-section «Cierre: inscripción», synced pattern «Cierre: inscripción» built by
 * tmt_part_signup_cta()). Ported from base.css and mobile.css of 01-transpirenaica-en-moto with
 * docs/class-map.md: .cta-final → .signup-cta, __fechas → __dates (--color-velo → --veil,
 * --color-bosque-900 → --forest-900, --color-on-dark → --on-dark).
 *
 * - The band overrides the padding of .section (no extra bottom radius: the footer follows, flat).
 * - The buttons are the loop items of a GenerateBlocks Query (.departures-query > .signup-cta__actions >
 *   .signup-cta__action > a.btn). A departure without signup link prints its loop item without button: it is
 *   hidden so it adds no gap, and the whole row goes away when no departure has a link.
 */

.signup-cta {
	display: flex;
	align-items: center;
	min-height: 400px;
	padding: var(--space-9) 0;
	overflow: hidden;
	color: var(--on-dark);
	background: var(--forest-900);
}

.signup-cta .signup-cta__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 50% 55%;
}

.signup-cta__veil {
	position: absolute;
	inset: 0;
	background: var(--veil);
}

.signup-cta__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	text-align: center;
}

.signup-cta .signup-cta__dates {
	margin-top: var(--space-4);
	font-size: var(--fs-lead);
	font-weight: 500;
	color: var(--on-dark);
}

.signup-cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-4);
	margin-top: var(--space-6);
}

.signup-cta__action:not(:has(a)),
.signup-cta__actions:not(:has(a)) {
	display: none;
}

/* Mobile (≤767 px) */
@media (max-width: 767px) {
	.signup-cta {
		min-height: 0;
		padding: var(--space-8) 0;
	}

	.signup-cta .signup-cta__dates {
		font-size: var(--fs-body);
	}

	.signup-cta__actions {
		flex-direction: column;
		align-items: stretch;
		gap: var(--space-3);
	}

	.signup-cta__actions .btn {
		width: 100%;
		white-space: normal;
		text-align: center;
	}
}
