:root {
	--gallery-column-gap: 3rem;
	--card-width: 30rem;
	--card-height: 42rem;
	--scroll-offset: calc((100vw - var(--max-width)) / 2);
}

.equipo-humano {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	justify-content: flex-start;
	align-items: center;
	margin-top: 2rem;
	padding-bottom: 3rem;
}

.equipo-humano > .caption {
	max-width: var(--max-width);
	display: flex;
	align-items: center;
	flex-direction: column;
	width: 100%;
	margin-bottom: 3rem;
}

.equipo-humano h2 {
	font-size: clamp(2rem, 12vw, 4rem);
	line-height: clamp(2rem, 12vw, 4.2rem);
	font-weight: 500;
	width: 80%;
	text-align: center;
	margin: 5rem 0 1rem;
	letter-spacing: 0.2rem;
}

.equipo-humano strong {
	color: rgb(var(--green));
	font-weight: bold;
}

.equipo-humano .section-content {
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	width: 100%;
}

.equipo-humano .scroll-container {
	overflow-x: auto;
	display: flex;
	scroll-snap-type: x mandatory;
	scrollbar-width: none; /* Firefox */
}

.equipo-humano .scroll-container::-webkit-scrollbar {
	display: none; /* Ocultar scrollbar en Chrome y Safari */
}

.equipo-humano .cards {
	display: flex;
	gap: var(--gallery-column-gap);
	/*padding-left: var(--scroll-offset);*/
	scroll-snap-type: x mandatory;
	list-style: none;
	height: auto;
	/*padding-top: 2rem;
	padding-bottom: 2rem;*/
	padding: 2rem calc((100% - var(--max-width)) / 2);
}

.equipo-humano .card {
	all: unset;
	/*flex: 0 0 var(--card-width);*/
	width: var(--card-width);
	height: var(--card-height);
	display: flex;
	justify-content: center;
	align-items: center;
	scroll-snap-align: center;
	position: relative;
	border-radius: 3rem;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	overflow: hidden;
	cursor: pointer;
	transition: transform 0.3s ease-in-out;
}

.equipo-humano .cards .card figure {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden; /* Evita que la imagen se salga del contenedor */
}

.equipo-humano .card img {
	width: 100%;
	height: 100%;
	object-fit: cover; /* Cubre el contenedor completamente */
	object-position: center; /* Centra la imagen dentro del contenedor */
}

.equipo-humano .card:hover {
	transform: scale(1.03);
}

.equipo-humano .cards .card .more-info {
	width: 3rem;
	height: 3rem;
	background-color: var(--theme-dark3);
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	border-radius: 50%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background-image: url("../../../sections/equipo-humano/img/circle-plus-solid.svg");
	background-size: cover;
}

.equipo-humano .cards .card .name {
	width: 90%;
	background-color: rgb(var(--black));
	position: absolute;
	bottom: 2rem;
	border-radius: 1rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.equipo-humano .cards .card .name div {
	padding: 1rem;
	color: white;
	font-weight: bold;
	font-size: 2rem;
	text-align: center;
}

.equipo-humano .cards .card .name span {
	color: white;
	font-size: 1.4rem;
	text-align: center;
	font-weight: normal;
}

.equipo-humano .controls {
	position: relative;
	width: 100%;
	display: flex;
	justify-content: flex-end;
	pointer-events: none;
	align-items: center;
	flex-direction: row;
	max-width: var(--max-width);
}

.equipo-humano .control {
	background: rgba(0, 0, 0, 0.5);
	border: none;
	border-radius: 50%;
	width: 4rem;
	height: 4rem;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	pointer-events: auto;
	transition: background 0.3s ease-in-out;
}

.equipo-humano .control.left {
	margin-right: 1rem;
}

.equipo-humano .control.right {
	margin-left: 1rem;
}

.equipo-humano .control:hover {
	background: rgb(var(--green));
}

.equipo-humano .control {
	font-size: 2rem;
	color: white;
}

.equipo-humano .control.left::before {
	content: "‹"; /* Flecha para el botón derecho */

	transform: translateX(-1px) translateY(-1px);
}

.equipo-humano .control.right::before {
	content: "›"; /* Flecha para el botón derecho */
	transform: translateX(1px) translateY(-1px);
}

.modal-card {
	position: fixed;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%) translateY(100%);
	width: 100vw;
	max-height: 100vh;
	background-color: transparent;
	opacity: 0;
	transition: transform 0.4s ease-in, opacity 0.3s ease-in;
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow-y: auto;
}

.modal-card.active {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
	z-index: 9998;
}

.modal-card.closing {
	transform: translateX(-50%) translateY(0); /* Mantiene la posición al cerrar */
	opacity: 0; /* Solo opacidad */
	transition: opacity 0.3s ease-in;
}

.modal-card .modal-content {
	width: 70vw;
	margin-top: 12vh;
	border-radius: 20px 20px 0 0;
	background-color: white;
	box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
	z-index: 1000;
	padding: 1rem 1rem 5rem;
	position: relative;
	text-align: center;
}

/* Bloquea scroll de fondo sin moverlo */
body.modal-open {
	position: fixed;
	width: 100%;
	overflow: hidden;
}

.modal-card .cerrar-container {
	display: flex;
	justify-content: flex-end;
	position: sticky;
	top: 3rem;
	background-color: transparent;
	z-index: 10;
}

.modal-card .content {
	width: 90%;
	margin: 0 auto;
	text-align: left;
}

.modal-card .content h4 {
	font-size: clamp(2rem, 12vw, 3.2rem);
	line-height: clamp(2rem, 12vw, 4rem);
	font-weight: bold;
	margin-bottom: 2rem;
}

.modal-card .content p {
	font-size: clamp(1.4rem, 12vw, 21px);
	line-height: clamp(1.8rem, 12vw, 28px);
	margin-bottom: 2rem;
}

.modal-card .cerrar-modal {
	width: 3rem;
	height: 3rem;
	background-color: var(--theme-dark3);
	border-radius: 50%;
	background-image: url("../../../sections/equipo-humano/img/circle-plus-solid.svg");
	background-size: cover;
	transform: rotate(45deg);
	cursor: pointer;
}

@media only screen and (max-width: 1120px) {
	.equipo-humano h3 {
		font-size: clamp(2rem, 12vw, 3.2rem);
		line-height: clamp(2rem, 12vw, 4rem);
		text-align: center;
	}

	.equipo-humano .controls {
		display: none;
	}

	.equipo-humano > .caption {
		max-width: 90%;
	}

	.equipo-humano .cards {
		gap: calc(var(--gallery-column-gap) / 2);
		padding: 2rem 5%;
	}

	.equipo-humano .card {
		width: 70vw;
		max-width: 30rem;
		max-height: 60vh;
	}

	.modal-card {
		width: 100vw;
	}

	.modal-card .modal-content {
		width: 90vw;
		margin-top: 22vh;
		padding-bottom: 22vh;
	}

	.modal-card .cerrar-modal {
		width: 2rem;
		height: 2rem;
	}

	.modal-card .content {
		width: 90%;
		margin: 0 2rem;
		text-align: left;
		font-size: 1.4rem;
		line-height: 1.8rem;
	}

	.modal-card .content p {
		font-size: clamp(1.2rem, 12vw, 1.4rem);
		line-height: clamp(1.2rem, 12vw, 1.8rem);
		margin-bottom: 1rem;
	}

	.modal-card .content h4 {
		font-size: clamp(1.2rem, 12vw, 3rem);
		line-height: clamp(1.2rem, 12vw, 3.6rem);
		font-weight: bold;
		margin-bottom: 2rem;
	}
}
