/* Equipo — carrusel + modal */
.eq-carousel {
	--eq-per-view: 3;
	--eq-gap: 10px;
	--eq-speed: 500ms;
	position: relative;
	width: 100%;
}

.eq-empty {
	padding: 24px;
	border: 1px dashed #b8c0c8;
	border-radius: 8px;
	text-align: center;
	color: #5b7285;
	font-size: 14px;
}

.eq-viewport {
	overflow: hidden;
	width: 100%;
	touch-action: pan-y;
}

.eq-track {
	display: flex;
	gap: var(--eq-gap);
	position: relative;
	transition: transform var(--eq-speed) cubic-bezier(.25, .8, .25, 1);
	will-change: transform;
}

.eq-slide {
	flex: 0 0 calc((100% - (var(--eq-per-view) - 1) * var(--eq-gap)) / var(--eq-per-view));
	min-width: 0;
	display: flex;
}

/* ---------- Tarjeta ---------- */
.eq-card {
	display: flex;
	flex-direction: row;
	align-items: center;
	width: 100%;
	min-height: 156px;
	box-sizing: border-box;
	overflow: hidden;
	background: #f6eee3;
	border-radius: 20px;
	border: 0 solid transparent;
	transition-property: background, border-color, box-shadow, transform;
	transition-duration: .3s;
	transition-timing-function: ease;
	-webkit-user-select: none;
	user-select: none;
}

.eq-card.is-clickable {
	cursor: pointer;
}

.eq-card:focus-visible {
	outline: 2px solid #5b7285;
	outline-offset: 2px;
}

.eq-card__photo {
	flex: 0 0 30%;
	width: 30%;
	max-width: 30%;
	align-self: flex-end;
	overflow: hidden;
	line-height: 0;
}

.eq-card__photo img,
.eq-modal__photo img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	object-position: center top;
	-webkit-user-drag: none;
	user-select: none;
	pointer-events: none;
}

.eq-card__body {
	flex: 1 1 0;
	min-width: 0;
	padding: 16px 20px;
	box-sizing: border-box;
}

.eq-card__name {
	margin: 0 0 8px;
	font-size: 22px;
	line-height: 1.2;
	font-weight: 500;
	color: #5b7285;
}

.eq-card__role {
	font-size: 15px;
	line-height: 1.4;
	color: #4a4a4a;
}

.eq-card__line {
	display: block;
	width: 40px;
	height: 2px;
	margin-top: 8px;
	background: #5b7285;
}

.eq-card[style*="text-align:center"] .eq-card__line,
.eq-card__body[style*="text-align:center"] .eq-card__line {
	margin-left: auto;
	margin-right: auto;
}

/* ---------- Flechas ---------- */
.eq-arrow {
	position: absolute;
	top: calc(50% - 12px);
	transform: translateY(-50%);
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .85);
	color: #5b7285;
	cursor: pointer;
	transition: background .25s, color .25s, opacity .25s;
}

.eq-arrow svg {
	width: 18px;
	height: 18px;
	display: block;
}

.eq-arrow--prev { left: 4px; }
.eq-arrow--next { right: 4px; }

.eq-arrow[disabled] {
	opacity: .35;
	cursor: default;
}

.eq-carousel.is-single .eq-arrow,
.eq-carousel.is-single .eq-dots {
	display: none;
}

/* ---------- Dots ---------- */
.eq-dots {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 24px;
}

.eq-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: #d9dde1;
	cursor: pointer;
	transition: background .25s, width .25s;
	-webkit-appearance: none;
	appearance: none;
}

.eq-dot.is-active {
	background: #5b7285;
}

/* ---------- Modal ---------- */
.eq-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	background: rgba(20, 26, 36, .65);
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease, visibility 0s linear .3s;
}

.eq-overlay.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity .3s ease, visibility 0s;
}

.eq-modal {
	position: relative;
	display: flex;
	flex-direction: row;
	width: 100%;
	max-width: 900px;
	max-height: 88vh;
	overflow: hidden;
	box-sizing: border-box;
	background: #f6eee3;
	border-radius: 24px;
	transform: translateY(20px) scale(.97);
	opacity: 0;
	transition: transform .3s ease, opacity .3s ease;
}

.eq-modal[hidden] {
	display: none;
}

.eq-overlay.is-open .eq-modal.is-current {
	transform: none;
	opacity: 1;
}

.eq-modal__photo {
	flex: 0 0 42%;
	width: 42%;
	max-width: 42%;
	box-sizing: border-box;
	overflow: hidden;
	line-height: 0;
}

.eq-modal__photo img {
	height: 100%;
	pointer-events: auto;
}

.eq-modal__content {
	flex: 1 1 0;
	min-width: 0;
	padding: 40px;
	box-sizing: border-box;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	align-self: center;
	max-height: 88vh;
}

.eq-modal__name {
	margin: 0 0 8px;
	font-size: 30px;
	line-height: 1.15;
	font-weight: 500;
	color: #5b7285;
}

.eq-modal__role {
	font-size: 16px;
	line-height: 1.4;
	color: #4a4a4a;
}

.eq-modal__line {
	display: block;
	width: 48px;
	height: 2px;
	margin: 14px 0;
	background: #5b7285;
}

.eq-modal__desc {
	font-size: 15px;
	line-height: 1.7;
	color: #4a4a4a;
}

.eq-modal__desc p {
	margin: 0 0 12px;
}

.eq-modal__desc p:last-child {
	margin-bottom: 0;
}

.eq-close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .9);
	color: #5b7285;
	cursor: pointer;
	transition: background .25s, color .25s;
}

.eq-close svg {
	width: 16px;
	height: 16px;
	display: block;
}

html.eq-lock,
html.eq-lock body {
	overflow: hidden !important;
}

@media (max-width: 767px) {
	.eq-card {
		flex-direction: column;
	}
	.eq-card__photo {
		flex: 0 0 auto;
		width: 100%;
		max-width: 100%;
		align-self: stretch;
	}
	.eq-card__body {
		width: 100%;
		text-align: center;
	}
	.eq-card__line {
		margin-left: auto;
		margin-right: auto;
	}
	.eq-modal {
		flex-direction: column;
		overflow-y: auto;
	}
	.eq-modal__photo {
		flex: 0 0 auto;
		width: 100%;
		max-width: 100%;
		max-height: 45vh;
	}
	.eq-modal__photo img {
		height: 100%;
		max-height: 45vh;
	}
	.eq-modal__content {
		overflow: visible;
		max-height: none;
		padding: 24px 24px 28px;
		align-self: stretch;
		text-align: center;
	}
	.eq-modal__line {
		margin-left: auto;
		margin-right: auto;
	}
	.eq-modal__name {
		font-size: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.eq-track,
	.eq-card,
	.eq-overlay,
	.eq-modal {
		transition-duration: 0s !important;
	}
}
