/* Humand GSAP Effects: estilos de los bloques armados (clases hgsap-b-*).
   Tipografía: hereda la del kit del sitio; solo se fijan tamaños y colores. Tamaños provisionales (escritorio / tablet / mobile). */

.hgsap-b {
	box-sizing: border-box;
	font-family: inherit;
}

.hgsap-b *,
.hgsap-b *::before,
.hgsap-b *::after {
	box-sizing: inherit;
}

/* ---------- Galería bento que se agranda (demo "Scrubbed Bento Gallery" de GSAP, MIT) ---------- */
/* Por defecto se ve la galería chica; la clase hgsap-flip-end (la usa el motor) define el tamaño enorme. */
.hgsap-b-bento {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100vh;
	height: 100svh; /* en celulares la barra del navegador no cambia la altura */
	height: var(--hg-vh, 100svh); /* con el zoom del sitio en pantallas grandes (el efecto lo calcula) */
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: #0e1535;
}

.hgsap-b-bento__grid {
	position: relative;
	display: grid;
	flex: none;
	align-content: center;
	justify-content: center;
	grid-template-columns: repeat(3, 32.5vw);
	grid-template-rows: repeat(4, 23vh);
	grid-template-rows: repeat(4, 23svh);
	gap: 1vh;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}

.hgsap-b-bento__grid.hgsap-flip-end {
	grid-template-columns: repeat(3, 100vw);
	grid-template-rows: repeat(4, 49.5vh);
	grid-template-rows: repeat(4, 49.5svh);
	gap: 1vh;
}

.hgsap-b-bento__tile {
	position: relative;
	display: flex;
	flex: none;
	align-items: flex-end;
	margin: 0;
	padding: 16px;
	overflow: hidden;
	background: var(--img, linear-gradient(135deg, var(--c1, #1d2c75), var(--c2, #5b77d3)));
	background-position: 50% 50%;
	background-size: cover;
}

.hgsap-b-bento__tile:nth-child(1) {
	grid-area: 1 / 1 / 3 / 2;
}

.hgsap-b-bento__tile:nth-child(2) {
	grid-area: 1 / 2 / 2 / 3;
}

.hgsap-b-bento__tile:nth-child(3) {
	grid-area: 2 / 2 / 4 / 3;
}

.hgsap-b-bento__tile:nth-child(4) {
	grid-area: 1 / 3 / 3 / 3;
}

.hgsap-b-bento__tile:nth-child(5) {
	grid-area: 3 / 1 / 3 / 2;
}

.hgsap-b-bento__tile:nth-child(6) {
	grid-area: 3 / 3 / 5 / 4;
}

.hgsap-b-bento__tile:nth-child(7) {
	grid-area: 4 / 1 / 5 / 2;
}

.hgsap-b-bento__tile:nth-child(8) {
	grid-area: 4 / 2 / 5 / 3;
}

/* Pantallas verticales (celular y tablet de pie): la grilla de 3 columnas con celdas medidas en vw/vh queda en tarjetas altas y finitas que
   recortan las capturas horizontales. En vertical son 2 columnas x 6 filas con la tarjeta del medio (la 3.ª, que se agranda) ocupando las 2
   columnas y las filas 3 y 4. Las filas 3 y 4 son las del medio, así que esa tarjeta queda siempre en el centro de la pantalla. */
@media (max-width: 767px), (max-width: 1100px) and (orientation: portrait) {
	.hgsap-b-bento__grid {
		grid-template-columns: repeat(2, 48.5vw);
		grid-template-rows: repeat(6, 14vh);
		grid-template-rows: repeat(6, 14svh);
		gap: 1vh;
	}

	/* Al final la tarjeta del medio llega a todo el ancho y a la mitad del alto (no a pantalla completa: una pantalla vertical
	   recortaría las imágenes horizontales, como el logo); arriba y abajo asoman las tarjetas vecinas. */
	.hgsap-b-bento__grid.hgsap-flip-end {
		grid-template-columns: repeat(2, 50vw);
		grid-template-rows: repeat(6, 24vh);
		grid-template-rows: repeat(6, 24svh);
	}

	.hgsap-b-bento__tile {
		background: var(--img-v, var(--img, linear-gradient(135deg, var(--c1, #1d2c75), var(--c2, #5b77d3))));
		background-position: 50% 50%;
		background-size: cover;
	}

	.hgsap-b-bento__tile:nth-child(1) {
		grid-area: 1 / 1 / 2 / 2;
	}

	.hgsap-b-bento__tile:nth-child(2) {
		grid-area: 1 / 2 / 2 / 3;
	}

	.hgsap-b-bento__tile:nth-child(4) {
		grid-area: 2 / 1 / 3 / 2;
	}

	.hgsap-b-bento__tile:nth-child(5) {
		grid-area: 2 / 2 / 3 / 3;
	}

	.hgsap-b-bento__tile:nth-child(3) {
		grid-area: 3 / 1 / 5 / 3;
	}

	.hgsap-b-bento__tile:nth-child(6) {
		grid-area: 5 / 1 / 6 / 2;
	}

	.hgsap-b-bento__tile:nth-child(7) {
		grid-area: 5 / 2 / 6 / 3;
	}

	.hgsap-b-bento__tile:nth-child(8) {
		grid-area: 6 / 1 / 7 / 3;
	}
}

.hgsap-b-bento__cap {
	font-size: 22px;
	font-weight: 600;
	color: #fff;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

@media (max-width: 767px) {
	.hgsap-b-bento__cap {
		font-size: 16px;
	}
}

/* ---------- Cuadrícula que reacciona al cursor ---------- */
.hgsap-b-prox {
	margin: 0;
	padding: 80px 24px;
	overflow: hidden;
	background: #0e1535;
	color: #fff;
}

.hgsap-b-prox__head {
	max-width: 720px;
	margin: 0 auto 48px;
	padding: 0;
	text-align: center;
}

.hgsap-b-prox__title {
	margin: 0 0 16px;
	padding: 0;
	font-size: 64px;
	font-weight: 700;
	line-height: var(--e-global-typography-primary-line-height, 1.1);
	color: #fff;
}

.hgsap-b-prox__lead {
	margin: 0;
	padding: 0;
	font-size: 22px;
	line-height: var(--e-global-typography-text-line-height, 1.5);
	color: #94a3b8;
}

.hgsap-b-prox__stage {
	position: relative;
	width: 100%;
	max-width: 1000px;
	height: 620px;
	margin: 0 auto;
	padding: 0;
	cursor: crosshair;
}

.hgsap-b-prox__item {
	position: absolute;
	left: var(--x);
	top: var(--y);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	rotate: var(--r, 0deg);
	transform-origin: center;
}

.hgsap-b-prox__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: linear-gradient(135deg, #5b77d3, #8aa5f2);
	font-size: 26px;
	line-height: 1;
}

.hgsap-b-prox__icon img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}

.hgsap-b-prox__name {
	font-size: 15px;
	font-weight: 600;
	color: #e2e8f0;
	white-space: nowrap;
}

@media (max-width: 1100px) {
	.hgsap-b-prox__title {
		font-size: 48px;
	}

	.hgsap-b-prox__lead {
		font-size: 20px;
	}
}

@media (max-width: 767px) {
	.hgsap-b-prox {
		padding: 56px 20px;
	}

	.hgsap-b-prox__title {
		font-size: 36px;
	}

	.hgsap-b-prox__lead {
		font-size: 18px;
	}

	.hgsap-b-prox__stage {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 28px 12px;
		height: auto;
		cursor: auto;
	}

	.hgsap-b-prox__item {
		position: static;
		rotate: none;
	}
}

/* Tarjetas con video o animación Lottie: llenan toda la tarjeta */
.hgsap-b-bento__media {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hgsap-lottie svg {
	width: 100% !important;
	height: 100% !important;
}

.hgsap-b-bento__cap {
	position: relative;
	z-index: 1;
}
