/* ==========================================================================
   Portada — Hero
   ========================================================================== */

.hero {
	position: relative;
	overflow: hidden;
	background-color: var(--color-primario);
	background-position: 50% 50%;
	background-size: cover;
}

/* Velo azul sobre el video */
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: #07103B70;
	opacity: 0.87;
}

.hero-video {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	transform: translate(-50%, -50%);
}

.hero .wrapper {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	min-height: 100vh;
	padding-top: 250px;
	padding-bottom: 100px;
}

.hero-caja {
	position: relative;
	flex: none;
	width: 640px;
	max-width: 100%;
	transform: translateY(-46px);
}

.hero-detalle {
	position: absolute;
	top: -20px;
	right: -20px;
	width: 51px;
	height: auto;
}

.hero-titulo {
	position: relative;
	overflow: hidden;
}

/* El título entra letra por letra (lo parte inicio.js) */
.js .hero-titulo {
	opacity: 0;
}

.js .hero-titulo.activo {
	opacity: 1;
}

.hero-palabra {
	display: inline-block;
}

.hero-letra {
	display: inline-block;
	opacity: 0;
	transform: translateY(100%);
}

.hero-titulo.activo .hero-letra {
	padding-bottom: 6px;
	animation: gr-letra 0.7s forwards;
}

@keyframes gr-letra {
	from {
		opacity: 0;
		transform: translateY(50%);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 1024px) {
	.hero-caja {
		width: 90%;
	}
}

@media (max-width: 767px) {
	.hero .wrapper {
		padding-bottom: 250px;
	}

	.hero-caja {
		width: 100%;
		margin-top: 80px;
	}
}

/* ==========================================================================
   Portada — About
   ========================================================================== */

.about {
	overflow: hidden;
	background: var(--fondo-about) url("../img/fondo-azul-corte.png") right bottom / 50% auto no-repeat;
}

.about .wrapper {
	display: flex;
	align-items: center;
	min-height: 100vh;
	padding-top: 70px;
	padding-bottom: 70px;
}

.about-imagen {
	width: 65%;
	padding-right: 30px;
}

.about-foto-img {
	display: block;
	width: 100%;
	height: auto;
}

.about-texto {
	display: flex;
	flex-direction: column;
	width: 35%;
}

.about-titulo {
	padding: 8px 0 20px;
	color: var(--color-blanco);
}

.about-parrafo {
	font-family: var(--fuente-titulos);
	font-size: 19px;
	line-height: 1.6;
	color: var(--color-blanco);
}

.about-enlace {
	color: inherit;
	text-decoration: underline;
}

@media (max-width: 1024px) {
	.about {
		background-size: 100% auto;
	}

	.about-imagen {
		width: 45%;
	}

	.about-texto {
		width: 55%;
	}
}

@media (max-width: 767px) {
	.about .wrapper {
		flex-direction: column;
		justify-content: center;
		gap: 40px;
		min-height: 368px;
		padding-top: 50px;
		padding-bottom: 50px;
	}

	.about-imagen {
		width: 100%;
		padding-right: 0;
	}

	.about-texto {
		align-self: flex-start;
		width: 100%;
	}
}

/* ==========================================================================
   Portada — Our Approach
   ========================================================================== */

.approach {
	overflow: hidden;
}

.approach .wrapper {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 100vh;
	padding-top: 70px;
	padding-bottom: 70px;
}

.approach-titulo {
	width: 651px;
	max-width: 100%;
	padding: 8px 0 30px;
}

.approach-titulo.linea::after {
	top: 35px;
}

.approach-cards {
	display: flex;
	gap: 20px;
	padding-top: 20px;
}

/* Las tres tarjetas comparten color; un velo negro las va aclarando. */
.approach-card {
	flex: 1;
	padding: 30px 20px;
	background:
		linear-gradient(rgba(0, 0, 0, var(--velo)), rgba(0, 0, 0, var(--velo))),
		var(--color-secundario);
}

.approach-card-1 {
	--velo: 0.2;
}

.approach-card-2 {
	--velo: 0.1;
}

.approach-card-3 {
	--velo: 0;
}

.approach-card-icono {
	display: block;
	width: 20%;
	height: auto;
	margin-bottom: 39px;
}

/* El ícono se dibuja al pasar el cursor por la tarjeta. Dentro del SVG, una
   máscara tapa el dibujo y sus trazos lo van destapando: cada uno arranca
   con su retraso (--d) y dura lo suyo (--t). Al terminar vuelve la base de la
   máscara, que muestra el ícono completo. */
.icono-trazo {
	stroke-dasharray: 1 2;
}

.approach-card:hover .icono-base {
	animation: gr-icono-base 1.3s linear both;
}

.approach-card:hover .icono-trazo {
	animation: gr-icono-trazo var(--t) ease-out var(--d) both;
}

@keyframes gr-icono-base {
	0%,
	99% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

@keyframes gr-icono-trazo {
	0% {
		stroke-dashoffset: 1;
		stroke-opacity: 0;
	}

	1% {
		stroke-opacity: 1;
	}

	100% {
		stroke-dashoffset: 0;
		stroke-opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.approach-card:hover .icono-base,
	.approach-card:hover .icono-trazo {
		animation: none;
	}
}

.approach-card-titulo {
	margin: 0 0 25px;
	font-size: 26px;
	font-weight: 700;
	color: var(--color-blanco);
}

.approach-card-texto {
	margin: 0;
	font-size: 19px;
	line-height: 1.6;
	color: var(--color-blanco);
}

@media (max-width: 1024px) {
	.approach-cards {
		gap: 10px;
	}

	.approach-card-titulo {
		margin-bottom: 10px;
	}

	.approach-card-texto {
		font-size: 18px;
	}
}

@media (max-width: 767px) {
	.approach .wrapper {
		padding-top: 50px;
		padding-bottom: 50px;
	}

	.approach-titulo {
		padding: 0 0 20px;
	}

	.approach-titulo.linea::after {
		top: 30px;
	}

	.approach-cards {
		flex-direction: column;
	}

	.approach-card-titulo {
		margin-bottom: 5px;
		font-size: 24px;
	}

	.approach-card-texto {
		font-size: 17px;
	}
}

/* ==========================================================================
   Portada — Investment Strategies
   ========================================================================== */

.strategies {
	position: relative;
	overflow: hidden;
	background: var(--fondo-strategies);
}

.strategies::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("../img/patron-strategies.png") 0 0 / 200px auto;
	opacity: 0.1;
}

.strategies .wrapper {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	padding-top: 70px;
	padding-bottom: 70px;
}

.strategies-titulo {
	width: 100%;
	padding-bottom: 20px;
	text-align: center;
	color: var(--color-blanco);
}

.strategies-parrafo {
	width: 100%;
	margin: 0;
	padding-bottom: 35px;
	font-family: var(--fuente-titulos);
	font-size: 19px;
	line-height: 1.6;
	text-align: center;
	color: var(--color-blanco);
}

.strategies-cards {
	display: flex;
	gap: 20px;
	width: 100%;
	padding-top: 20px;
}

.strategy-card {
	position: relative;
	flex: 1;
	min-height: 327px;
	overflow: hidden;
}

/* Corte de la esquina, del color del fondo de la sección */
.strategy-card::after {
	content: "";
	position: absolute;
	right: -1px;
	bottom: -1px;
	z-index: 9;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0 0 48px 48px;
	border-color: transparent transparent var(--fondo-strategies) transparent;
}

.strategy-card-imagen {
	display: block;
	width: 100%;
	height: 327px;
	object-fit: cover;
	object-position: center center;
}

/* Panel con el título: sube y muestra la descripción al pasar el cursor */
.strategy-card-info {
	position: absolute;
	top: 236px;
	left: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	padding: 30px 20px;
	transition: all 0.3s linear;
}

.strategy-card-info::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(21, 36, 62, 0.8);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.strategy-card-titulo {
	position: relative;
	margin: 8px 0 26px;
	color: var(--color-blanco);
}

.strategy-card-texto {
	position: relative;
	margin: 0;
	color: var(--color-blanco);
	opacity: 0;
	transition: all 0.5s linear 0.3s;
}

.strategy-card:hover .strategy-card-info,
.strategy-card:focus-within .strategy-card-info {
	top: 0;
}

.strategy-card:hover .strategy-card-texto,
.strategy-card:focus-within .strategy-card-texto {
	opacity: 1;
}

@media (max-width: 1024px) {
	.strategies-cards {
		flex-wrap: wrap;
	}

	.strategy-card {
		flex: none;
		width: calc(50% - 10px);
	}
}

@media (max-width: 768px) {
	.strategy-card-imagen {
		height: 200px;
	}

	.strategy-card-info {
		position: relative;
		top: 0;
		height: auto;
	}

	.strategy-card-info::before {
		background: #1B3D64;
	}

	.strategy-card-texto {
		opacity: 1;
	}
}

@media (max-width: 767px) {
	.strategies .wrapper {
		min-height: 368px;
		padding-top: 50px;
		padding-bottom: 50px;
	}

	.strategies-antetitulo {
		text-align: center;
	}

	.strategies-parrafo {
		padding-bottom: 25px;
	}

	.strategies-cards {
		flex-direction: column;
		flex-wrap: nowrap;
	}

	.strategy-card {
		width: 100%;
	}
}

/* ==========================================================================
   Portada — Team
   ========================================================================== */

.team {
	overflow: hidden;
}

.team .wrapper {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 100vh;
	padding-top: 70px;
	padding-bottom: 70px;
}

.team-antetitulo br {
	display: none;
}

.team-titulo {
	padding: 8px 0 30px;
}

/* Nombre del área, con una raya corta delante */
.team-area {
	position: relative;
	padding: 8px 0 30px 45px;
	color: var(--color-secundario);
}

.team-area::after {
	content: "";
	position: absolute;
	top: 22px;
	left: 0;
	width: 35px;
	height: 1px;
	background: var(--color-secundario);
}

.team-lista {
	position: relative;
}

.team-grid {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -10px;
}

.team-item {
	width: 25%;
	padding: 10px;
	transition: all 0.2s linear;
}

.team-card {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-height: 460px;
	overflow: hidden;
}

.team-foto {
	position: relative;
	display: block;
	width: 100%;
	max-width: 270px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	font: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}

.team-foto-img {
	display: block;
	width: 100%;
	height: 298px;
	object-fit: cover;
	transition: all 0.3s linear;
}

.team-foto:hover .team-foto-img {
	transform: scale(1.1);
}

/* Etiqueta "Read BIO" sobre la foto */
.team-leer {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 1;
	width: 118px;
	padding: 14px;
	font-size: 16px;
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
	color: var(--color-blanco);
	isolation: isolate;
}

.team-leer::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: #122847ba;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.team-leer::after {
	content: "";
	position: absolute;
	top: 22px;
	right: calc(100% - 15px);
	width: 45px;
	height: 1px;
	background: var(--color-blanco);
	transition: all 0.2s linear;
}

.team-foto:hover .team-leer::after {
	right: calc(100% - 18px);
	width: 35px;
}

.team-nombre {
	margin-top: 2px;
	cursor: pointer;
	transition: all 0.2s linear;
}

.team-nombre::after {
	content: "";
	display: block;
	width: 0;
	height: 3px;
	margin-top: 2px;
	background: var(--color-secundario);
	transition: all 0.2s linear;
}

.team-nombre:hover,
.team-item.activo .team-nombre {
	color: var(--color-secundario);
}

.team-item.activo .team-nombre::after {
	width: 30px;
}

.team-cargo {
	margin: 0;
	font-family: var(--fuente-titulos);
	font-size: 19px;
	line-height: 1.6;
}

.team-linkedin {
	display: flex;
	align-items: center;
	width: 30px;
	height: 41px;
	margin: 4px 10px 4px 0;
	color: var(--color-primario);
}

.team-linkedin svg {
	display: block;
	width: 30px;
	height: 30px;
}

/* Biografía: se abre debajo de la fila, a todo el ancho del contenido */
.team-bio {
	position: absolute;
	left: calc(var(--gutter) * -1);
	z-index: 22;
	width: 100vw;
	max-width: 1200px;
	padding: 0 30px;
	background: var(--color-blanco);
	opacity: 0;
	visibility: hidden;
	transition: all 0.2s linear;
}

.team-item.activo .team-bio {
	opacity: 1;
	visibility: visible;
}

.team-bio::after {
	content: "";
	position: absolute;
	top: 40px;
	left: 30px;
	width: calc(100% - 60px);
	height: calc(100% - 80px);
	border-top: 1px solid var(--color-secundario);
	border-bottom: 1px solid var(--color-secundario);
	pointer-events: none;
}

.team-bio-nombre {
	margin: 80px 0 20px;
	padding-left: 20px;
	border-left: 4px solid var(--color-secundario);
}

.team-bio-cerrar {
	position: absolute;
	top: 16px;
	right: 30px;
	z-index: 1;
	width: 52px;
	height: 52px;
	margin: 0;
	padding: 0;
	background: var(--color-blanco);
	border: 0;
	cursor: pointer;
}

.team-bio-cerrar::before,
.team-bio-cerrar::after {
	content: "";
	position: absolute;
	top: 22px;
	left: 10px;
	width: 32px;
	height: 1px;
	background: var(--color-secundario);
	transform: rotate(45deg);
	transform-origin: center;
}

.team-bio-cerrar::after {
	transform: rotate(-45deg);
}

.team-bio-cerrar:hover::before,
.team-bio-cerrar:hover::after {
	animation: gr-cerrar 0.3s linear 1;
}

@keyframes gr-cerrar {
	0% {
		transform: rotate(0deg);
	}
}

.team-bio-texto {
	padding: 0 20px 80px 0;
}

@media (max-width: 1024px) {
	.team-titulo {
		padding-top: 0;
	}

	.team-area {
		padding-top: 0;
	}

	.team-area::after {
		top: 14px;
	}

	.team-item {
		width: 33.3333%;
	}
}

@media (max-width: 768px) {
	.team-antetitulo br {
		display: block;
	}
}

@media (max-width: 767px) {
	.team .wrapper {
		min-height: 300px;
		padding-top: 50px;
		padding-bottom: 50px;
	}

	.team-titulo,
	.team-area {
		padding-bottom: 20px;
	}

	.team-item {
		width: 100%;
	}
}

/* ==========================================================================
   Portada — franja del edificio
   ========================================================================== */

.edificio {
	--corte-color: var(--fondo-claro);
	height: 450px;
	overflow: hidden;
	background-color: var(--color-primario);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

@media (min-width: 1025px) {
	.edificio {
		background-attachment: fixed;
	}
}

@media (max-width: 767px) {
	.edificio {
		height: 280px;
	}
}

/* ==========================================================================
   Portada — Contact us
   ========================================================================== */

.contact {
	background: var(--fondo-claro);
}

.contact .wrapper {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 20px;
	min-height: 550px;
	padding-top: 10px;
	padding-bottom: 10px;
}

.contact-titulo {
	text-align: center;
}

.contact-correo {
	display: inline-block;
	font-size: 20px;
	line-height: 1.5;
	text-decoration: none;
	border-bottom: 1px solid var(--color-secundario);
}
