/* ==========================================================================
   Portada de agencia. Solo se carga en la pagina que usa esa plantilla.
   ========================================================================== */

/* ---------- Portada principal ---------- */
.home-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	/* Pantalla completa menos la cabecera. La variable --sh-h la mide el
	   JavaScript del tema; el valor de respaldo cubre el primer pintado. */
	min-height: calc(100vh - var(--sh-h, 190px));
	min-height: calc(100svh - var(--sh-h, 190px));
	padding-block: 90px 56px;
	background: var(--tc-primary-dark, #15291F);
	overflow: hidden;
}

.home-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transform: scale(1.02);
}

/* Video de fondo. Se muestra también en celular: el script de la plantilla
   carga ahí un archivo más liviano. La imagen de fondo queda debajo y es lo
   que se ve mientras el video descarga. */
.home-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
	pointer-events: none;
}

/* Si el visitante pidió reducir el movimiento, el script quita el video.
   Esta regla es el respaldo por si el script no llegó a ejecutarse. */
@media (prefers-reduced-motion: reduce) {
	.home-hero__video { display: none; }
}

/* Un solo degradado para los dos casos: imagen sola o imagen con video. */
/* En móvil el texto ocupa todo el ancho, así que el velo es parejo. */
.home-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(21, 41, 31, .50) 0%, rgba(21, 41, 31, .35) 40%, rgba(21, 41, 31, .78) 100%);
}

/* En escritorio el velo se concentra a la izquierda, debajo del texto, y
   deja ver el video en el lado derecho. */
@media (min-width: 1025px) {
	.home-hero::after {
		background:
			linear-gradient(100deg,
				rgba(21, 41, 31, .90) 0%,
				rgba(21, 41, 31, .72) 30%,
				rgba(21, 41, 31, .32) 56%,
				rgba(21, 41, 31, .10) 78%,
				rgba(21, 41, 31, .04) 100%),
			linear-gradient(180deg, rgba(21, 41, 31, .34) 0%, rgba(21, 41, 31, 0) 32%, rgba(21, 41, 31, .42) 100%);
	}

	/* El texto se queda en la mitad izquierda: no se monta sobre el video. */
	.home-hero__inner > * { max-width: 600px; }
}

.home-hero__inner {
	position: relative;
	z-index: 2;
	color: #fff;
}

.home-hero__title {
	margin: 0;
	max-width: 19ch;
	font-size: clamp(1.7rem, 3.9vw, 2.9rem);
	line-height: 1.12;
	letter-spacing: -.02em;
	color: #fff;
	text-wrap: balance;
}

.home-hero__lead {
	margin: 20px 0 0;
	max-width: 48ch;
	font-size: clamp(1rem, 1.6vw, 1.2rem);
	line-height: 1.6;
	color: rgba(255, 255, 255, .93);
}

.home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

/* ---------- Franja de confianza ---------- */
.home-trust {
	background: var(--tc-ink, #15211f);
	color: #fff;
}

.home-trust__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 36px;
	padding-block: 16px;
}

.home-trust__item {
	margin: 0;
	position: relative;
	padding-left: 24px;
	font-size: .88rem;
	letter-spacing: .01em;
	color: rgba(255, 255, 255, .9);
}

.home-trust__item::before {
	content: "";
	position: absolute;
	left: 0;
	top: .36em;
	width: 6px;
	height: 10px;
	border-right: 2px solid var(--tc-accent, #D7B48C);
	border-bottom: 2px solid var(--tc-accent, #D7B48C);
	transform: rotate(45deg);
}

/* ---------- Boton "ver todos" ---------- */
.home-more {
	margin: 36px 0 0;
	text-align: center;
}

/* ---------- Razones ---------- */
.home-reasons {
	display: grid;
	gap: 28px;
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
	.home-reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1040px) {
	.home-reasons { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Viaja con nosotros ---------- */
.home-porque { padding-block: 72px; }

.home-porque--foto {
	position: relative;
	background-size: cover;
	background-position: center;
	background-attachment: scroll;
}

.home-porque--foto::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(21, 41, 31, .88) 0%, rgba(21, 41, 31, .80) 100%);
}

.home-porque__inner { position: relative; z-index: 1; }

.home-porque--foto .tc-section__title { color: #fff; }
.home-porque--foto .tc-section__sub { color: rgba(255, 255, 255, .85); }

.home-reason {
	text-align: center;
	padding: 0 8px;
}

.home-reason__marco {
	display: grid;
	place-items: center;
	width: 66px;
	height: 66px;
	margin: 0 auto 16px;
	border-radius: 50%;
	color: var(--tc-accent, #D7B48C);
	background: rgba(215, 180, 140, .14);
	border: 1px solid rgba(215, 180, 140, .45);
}

.home-porque--foto .home-reason__marco {
	background: rgba(255, 255, 255, .10);
	border-color: rgba(255, 255, 255, .3);
	color: #fff;
}

.home-reason__ico { width: 32px; height: 32px; }

.home-reason__title {
	margin: 0 0 8px;
	font-size: 1.05rem;
	line-height: 1.35;
}

.home-reason__text {
	margin: 0;
	font-size: .93rem;
	line-height: 1.6;
	color: var(--tc-muted, #5f6f6c);
}

.home-porque--foto .home-reason__title { color: #fff; }
.home-porque--foto .home-reason__text { color: rgba(255, 255, 255, .82); }

/* ---------- Llamado final ---------- */
.home-cta {
	position: relative;
	background: var(--tc-primary, #1F3F31);
	color: #fff;
}

.home-cta--foto {
	background-size: cover;
	background-position: center;
}

.home-cta--foto::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(21, 41, 31, .82) 0%, rgba(21, 41, 31, .72) 100%);
}

.home-cta__inner { position: relative; z-index: 1; }

.home-cta__inner {
	padding-block: 64px;
	text-align: center;
}

.home-cta__title {
	margin: 0;
	font-size: clamp(1.5rem, 3.4vw, 2.3rem);
	line-height: 1.2;
	color: #fff;
}

.home-cta__text {
	margin: 14px auto 28px;
	max-width: 56ch;
	font-size: 1.02rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, .9);
}

.home-cta .tc-btn--wa { background: #fff; color: var(--tc-primary, #1F3F31) !important; }
.home-cta .tc-btn--wa:hover { background: rgba(255, 255, 255, .88); }

/* ---------- Contenido libre ---------- */
.home-extra {
	max-width: 760px;
	font-size: 1.02rem;
	line-height: 1.75;
}
