/* Nido Equipo - personalizá los colores acá */
.nido-team {
	--nido-title: #1f3344;
	--nido-text: #1f3344;
	--nido-photo-top: #d6a08c;
	--nido-photo-bottom: #c4826f;
	--nido-arrow: #b5604a;
	--nido-gap: 56px;
	--nido-arrow-w: 60px;
	--nido-chip: #1f3344;
	--nido-chip-active: #1f3344;
	--nido-per-view: 4.5;

	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 40px 24px;
	box-sizing: border-box;
}

.nido-team *,
.nido-team *::before,
.nido-team *::after {
	box-sizing: border-box;
}

.nido-team__title {
	margin: 0 0 56px;
	text-align: center;
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	font-size: clamp(32px, 4.5vw, 60px);
	line-height: 1.1;
	color: var(--nido-title);
}

.nido-team__viewport {
	overflow: hidden;
}

.nido-team__track {
	display: flex;
	gap: var(--nido-gap);
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.nido-team__track::-webkit-scrollbar {
	display: none;
}

.nido-team__card {
	flex: 0 0 calc((100% - (var(--nido-gap) * (var(--nido-per-view) - 1))) / var(--nido-per-view));
	min-width: 0;
	margin: 0;
	text-align: center;
	scroll-snap-align: start;
}

.nido-team__photo {
	position: relative;
	margin: 0 0 32px;
	aspect-ratio: 5 / 6;
	border-radius: 12px;
	overflow: hidden;
	background: linear-gradient(180deg, var(--nido-photo-top), var(--nido-photo-bottom));
}

.nido-team__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.nido-team__badge {
	position: absolute;
	left: 16px;
	bottom: 16px;
	padding: 8px 16px;
	border-radius: 8px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
}

.nido-team__name {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--nido-text);
}

.nido-team__role {
	margin: 0;
	font-size: 18px;
	line-height: 1.4;
	color: var(--nido-text);
}

.nido-team__nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 40px;
	padding: 0 10%;
}

.nido-team__arrow {
	padding: 8px;
	border: 0;
	background: transparent;
	color: var(--nido-arrow);
	cursor: pointer;
	transition: opacity .2s, transform .2s;
}

.nido-team__arrow:hover:not(:disabled) {
	transform: scale(1.1);
}

.nido-team__arrow:disabled {
	opacity: .3;
	cursor: default;
}

/* Tablet */
@media (max-width: 1024px) {
	.nido-team { --nido-per-view: 2.5; --nido-gap: 32px; }
}

/* Celular */
@media (max-width: 640px) {
	.nido-team { --nido-per-view: 1.25; --nido-gap: 20px; padding: 24px 16px; }
	.nido-team__title { margin-bottom: 32px; }
	.nido-team__nav { padding: 0 8px; }
}

/* Reset: evita que el tema del sitio pinte las flechas como cajas */
.nido-team .nido-team__arrow {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	margin: 0;
	padding: 8px;
	min-width: 0;
	min-height: 0;
	height: auto;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	line-height: 0;
	color: var(--nido-arrow);
}
.nido-team .nido-team__arrow:hover,
.nido-team .nido-team__arrow:focus,
.nido-team .nido-team__arrow:active {
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--nido-arrow);
}

/* Refuerzo: gana a los estilos de botón del tema */
.nido-team .nido-team__arrow {
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 8px !important;
}
.nido-team .nido-team__arrow:disabled { opacity: .3; }
.nido-team .nido-team__arrow svg { display: block; width: var(--nido-arrow-w); height: auto; }
.nido-team .nido-team__arrow i { font-size: calc(var(--nido-arrow-w) * .5); line-height: 1; }
.nido-team .nido-team__arrow.is-flip svg,
.nido-team .nido-team__arrow.is-flip i { transform: scaleX(-1); }
.nido-team__custom { display: flex; align-items: center; justify-content: center; }
@media (max-width: 640px) { .nido-team { --nido-arrow-w: 36px; } }

/* ---------- Filtro minimalista ---------- */
.nido-team__filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 36px;
	margin: 0 0 48px;
}
.nido-team__title + .nido-team__filter { margin-top: -24px; }

.nido-team .nido-team__chip {
	position: relative;
	-webkit-appearance: none;
	appearance: none;
	margin: 0 !important;
	padding: 6px 2px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	font: inherit;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--nido-chip) !important;
	opacity: .5;
	cursor: pointer;
	transition: opacity .25s;
}
.nido-team .nido-team__chip::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--nido-chip-active);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s ease;
}
.nido-team .nido-team__chip:hover { opacity: .85; }
.nido-team .nido-team__chip.is-active { opacity: 1; color: var(--nido-chip-active) !important; }
.nido-team .nido-team__chip.is-active::after { transform: scaleX(1); }
.nido-team .nido-team__chip:focus-visible { outline: 1px solid var(--nido-chip-active); outline-offset: 4px; }

.nido-team__card[hidden] { display: none !important; }
.nido-team__card.is-in { animation: nidoTeamFade .4s ease both; }
@keyframes nidoTeamFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
	.nido-team__filter {
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 4px 24px;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.nido-team__filter::-webkit-scrollbar { display: none; }
	.nido-team .nido-team__chip { flex: 0 0 auto; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.nido-team__card.is-in { animation: none; }
}
