/**
 * Home — viewport completo en carga; footer solo tras scrollear el hero
 */

.site-main--home {
	--home-header-height: max(200px, 40vh);
	--home-header-spacer: 70px;
	--home-hero-pad: clamp(1.25rem, 2vw, 2rem);
	padding-top: 0;
	padding-bottom: 0;
	min-height: 0;
}

@media (max-width: 768px) {
	.site-main--home {
		--home-header-height: 30svh;
		--home-header-spacer: 30svh;
	}
}

.home-stack {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	padding-bottom: 3rem;
}

.home-hero-viewport {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: content-box;
	width: 100%;
	min-height: calc(100svh - var(--home-header-height, 70px));
	padding-top: calc(var(--home-header-height, 70px) - var(--home-header-spacer, 70px));
}

.home-hero {
	width: 100%;
	align-self: stretch;
	/* Ligero desplazamiento hacia abajo en todos los viewports */
	margin-top: clamp(1.25rem, 4.5vh, 3.25rem);
	padding: 0;
	overflow: hidden;
	box-sizing: border-box;
}

@media (min-width: 769px) {
	.home-hero {
		/* 80% de 532px (antes 70% de 760px) */
		height: 425.6px;
		max-height: min(425.6px, calc(100svh - var(--home-header-height, 70px) - 1.5rem));
	}
}

.home-hero__content {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); /* 40% / 60% */
	align-items: stretch;
	height: 100%;
	min-height: 0;
}

.home-hero__text-col {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	min-width: 0;
	max-width: 100%;
	height: 100%;
	padding: var(--home-hero-pad);
	box-sizing: border-box;
	overflow: auto;
}

.home-hero__eyebrow {
	font-family: var(--font-display);
	font-weight: 600;
	font-style: normal;
	font-size: clamp(1.105rem, 0.975rem + 0.715vw, 1.495rem);
	line-height: 1.25;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 0 0 0.85rem;
	color: var(--color-offwhite);
	width: 100%;
	max-width: 100%;
	text-align: left;
	text-wrap: balance;
	overflow-wrap: break-word;
	word-break: break-word;
	box-sizing: border-box;
}

.home-hero__text {
	font-family: var(--font-display-cilati);
	font-weight: 500;
	font-style: normal;
	font-size: clamp(1.15rem, 1.3rem + 1.6vw, 3.25rem);
	line-height: 1.15;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	margin: 0;
	color: var(--color-offwhite);
	width: 100%;
	max-width: 100%;
	text-align: left;
	text-wrap: balance;
	overflow-wrap: break-word;
	word-break: break-word;
	box-sizing: border-box;
}

.home-hero--text-only .home-hero__content {
	grid-template-columns: minmax(0, 4fr);
}

.home-hero__btn {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	margin-top: 1.25rem;
	padding: 0.65rem 1.25rem;
	font-family: var(--font-body);
	font-size: 0.95rem;
	line-height: 1.2;
	color: var(--color-offwhite);
	text-decoration: none;
	border: 1px solid var(--color-stroke);
	background: rgba(255, 255, 255, 0.06);
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.home-hero__btn:hover {
	background: rgba(255, 255, 255, 0.14);
	text-decoration: none;
}

.home-hero__slideshow {
	position: relative;
	z-index: 0;
	min-width: 0;
	height: 100%;
	overflow: hidden;
}

.home-hero__slides {
	position: absolute;
	inset: 0;
}

.home-hero__slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	opacity: 0;
	transition: opacity 0.8s ease;
}

.home-hero__slide.is-active {
	opacity: 1;
}

.home-card {
	align-self: flex-start;
	width: fit-content;
	max-width: min(40rem, 100%);
}

.home-card .ves-heading {
	color: var(--color-offwhite);
	font-weight: 500;
}

.home-card .ves-prose {
	color: var(--color-offwhite);
}

@media (max-width: 768px) {
	.home-hero {
		/* Evita estirar la tarjeta a todo el viewport (align-self: stretch en fila) */
		align-self: center;
		width: 100%;
		height: auto;
		max-height: none;
	}

	.home-hero__content {
		grid-template-columns: minmax(0, 1fr);
		height: auto;
		align-items: start;
	}

	.home-hero__text-col {
		height: auto;
		overflow: visible;
	}

	.home-hero__eyebrow {
		font-size: clamp(1.04rem, 0.91rem + 1.56vw, 1.3rem);
	}

	.home-hero__text {
		font-size: clamp(1.35rem, 0.9rem + 4vw, 2rem);
	}

	.home-hero__slideshow {
		width: 100%;
		height: clamp(14rem, 55vw, 22rem);
	}

	.home-hero--text-only .home-hero__content {
		grid-template-columns: minmax(0, 1fr);
	}

	.home-card {
		max-width: 100%;
		width: 100%;
	}
}
