.elementor-widget-ecd-teachers-carousel .elementor-widget-container {
	overflow: visible;
}

.ecd-teachers,
.ecd-teachers * {
	box-sizing: border-box;
}

.ecd-teachers {
	width: 100%;
	color: #111;
	font-family: "Century Gothic", Montserrat, Arial, sans-serif;
}

.ecd-header {
	margin: 0 0 22px;
	text-align: center;
}

.ecd-heading {
	margin: 0;
	padding: 0;
	color: #ff650d;
	font-family: inherit;
	font-size: clamp(22px, 2.15vw, 28px);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.08;
}

.ecd-subtitle {
	margin: 12px 20px 0;
	padding: 0;
	color: #111;
	font-family: inherit;
	font-size: clamp(17px, 1.8vw, 23px);
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.ecd-carousel {
	--ecd-arrow-color: #ff8426;
	position: relative;
	width: 100%;
}

.ecd-carousel-shell {
	position: relative;
	width: 100%;
	padding-right: 54px;
	padding-left: 54px;
}

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

.ecd-viewport:focus-visible {
	border-radius: 30px;
	outline: 2px solid rgba(255, 101, 13, 0.75);
	outline-offset: 4px;
}

.ecd-track {
	display: flex;
	gap: 32px;
	align-items: stretch;
	margin: 0;
	padding: 0;
	transform: translate3d(0, 0, 0);
	will-change: transform;
}

.ecd-track.is-animated {
	transition: transform 480ms cubic-bezier(0.22, 0.7, 0.25, 1);
}

.ecd-slide {
	width: 100%;
	min-width: 0;
	flex: 0 0 auto;
}

.ecd-card {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	column-gap: 12px;
	width: 100%;
	height: 100%;
	min-height: 220px;
	padding: 27px 10px 13px 16px;
	overflow: hidden;
	border: 1px solid #bfc3c1;
	border-radius: 30px;
	color: #fff;
	background: #00633f;
}

.ecd-avatar {
	width: 120px;
	height: 120px;
	margin-top: 18px;
	overflow: hidden;
	border-radius: 50%;
	background: #c7c7c7;
}

.ecd-avatar img,
.ecd-avatar-fallback {
	display: block;
	width: 100%;
	height: 100%;
}

.ecd-avatar img {
	object-fit: cover;
	object-position: center;
}

.ecd-avatar-fallback {
	background-repeat: no-repeat;
	background-size: 1025.84% auto;
}

.ecd-avatar-fallback-1 {
	background-position: 6.6% 58.4%;
}

.ecd-avatar-fallback-2 {
	background-position: 41.9% 58.4%;
}

.ecd-avatar-fallback-3 {
	background-position: 76% 58.4%;
}

.ecd-profile-content {
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: stretch;
}

.ecd-teacher-name,
.ecd-teacher-role,
.ecd-specialty,
.ecd-experience {
	margin: 0;
	padding: 0;
	font-family: Arial, sans-serif;
}

.ecd-teacher-name {
	overflow: hidden;
	color: #fff;
	font-size: clamp(17px, 1.65vw, 21px);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.02;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ecd-teacher-role {
	margin-top: 1px;
	color: #ff650d;
	font-size: clamp(14px, 1.3vw, 16px);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.02;
}

.ecd-specialty,
.ecd-experience {
	color: #fff;
	font-size: clamp(13px, 1.24vw, 16px);
	font-weight: 400;
	letter-spacing: -0.025em;
	line-height: 1.08;
}

.ecd-specialty {
	margin-top: 2px;
}

.ecd-experience {
	margin-top: 1px;
}

.ecd-socials {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	min-height: 18px;
	margin: 9px 0 7px;
}

.ecd-social-link {
	display: inline-flex;
	width: 17px;
	height: 17px;
	align-items: center;
	justify-content: center;
	border-radius: 3px;
	outline-offset: 2px;
	color: #001b13;
	text-decoration: none;
	transition:
		color 150ms ease,
		transform 150ms ease;
}

.ecd-social-link:hover,
.ecd-social-link:focus-visible {
	color: #fff;
	transform: translateY(-1px);
}

.ecd-social-link svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.ecd-social-link svg rect,
.ecd-social-link svg circle {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}

.ecd-social-link svg circle:last-child {
	fill: currentColor;
	stroke: none;
}

.ecd-social-placeholder {
	pointer-events: none;
}

.ecd-profile-button {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 8px;
	align-items: center;
	width: 100%;
	min-height: 31px;
	margin-top: auto;
	padding: 6px 16px;
	border: 0;
	border-radius: 18px;
	outline-offset: 3px;
	color: #fff;
	font-family: Arial, sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	background: #ff650d;
	transition:
		transform 160ms ease,
		background-color 160ms ease,
		box-shadow 160ms ease;
}

.ecd-profile-button:hover,
.ecd-profile-button:focus-visible {
	color: #fff;
	text-decoration: none;
	background: #e84f00;
	transform: translateY(-1px);
}

.ecd-profile-button:focus-visible {
	outline: 2px solid currentColor;
}

.ecd-profile-button span {
	grid-column: 2;
}

.ecd-profile-button svg {
	display: block;
	grid-column: 3;
	justify-self: start;
	width: 17px;
	height: 17px;
	fill: currentColor;
}

.ecd-arrow {
	position: absolute;
	z-index: 4;
	top: 50%;
	display: inline-flex;
	width: 33px;
	height: 33px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 3px solid var(--ecd-arrow-color);
	border-radius: 50%;
	outline-offset: 3px;
	color: var(--ecd-arrow-color);
	background: #fff;
	box-shadow: none;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	font-size: 0;
	line-height: 0;
	text-indent: 0 !important;
	overflow: hidden !important;
	isolation: isolate;
	transform: translateY(-50%);
	transition:
		color 150ms ease,
		background-color 150ms ease,
		opacity 150ms ease,
		transform 150ms ease;
}

.ecd-arrow::before,
.ecd-arrow::after {
	display: none !important;
	content: none !important;
}

.ecd-arrow,
.ecd-arrow:hover,
.ecd-arrow:focus,
.ecd-arrow:focus-visible,
.ecd-arrow:active {
	color: var(--ecd-arrow-color) !important;
	background-color: transparent !important;
	background-image: none !important;
	border-color: var(--ecd-arrow-color) !important;
	box-shadow: none !important;
}

.ecd-arrow:hover,
.ecd-arrow:focus-visible {
	border-color: var(--ecd-arrow-color);
	transform: translateY(-50%) scale(1.06);
}

.ecd-arrow:hover svg,
.ecd-arrow:focus-visible svg {
	color: var(--ecd-arrow-color);
}

.ecd-arrow:focus-visible {
	outline: 2px solid currentColor;
}

.ecd-arrow:disabled {
	cursor: default;
	opacity: 0.3;
	transform: translateY(-50%);
}

.ecd-arrow svg {
	position: absolute !important;
	z-index: 1;
	top: 50% !important;
	right: auto !important;
	bottom: auto !important;
	left: 50% !important;
	display: block !important;
	width: 62% !important;
	height: 62% !important;
	margin: 0 !important;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.6;
	transform: translate(-50%, -50%) !important;
	pointer-events: none;
}

.ecd-arrow svg path {
	transform: none !important;
}

.ecd-arrow-prev {
	left: 15px;
}

.ecd-arrow-next {
	right: 15px;
}

.ecd-single-page .ecd-arrow {
	display: none;
}

@media (max-width: 1024px) {
	.ecd-carousel-shell {
		padding-right: 46px;
		padding-left: 46px;
	}

	.ecd-arrow-prev {
		left: 6px;
	}

	.ecd-arrow-next {
		right: 6px;
	}

	.ecd-card {
		grid-template-columns: 112px minmax(0, 1fr);
	}

	.ecd-avatar {
		width: 112px;
		height: 112px;
	}
}

@media (max-width: 767px) {
	.ecd-header {
		margin-bottom: 20px;
	}

	.ecd-subtitle {
		margin-right: 0;
		margin-left: 0;
		font-size: 17px;
	}

	.ecd-carousel-shell {
		padding-right: 43px;
		padding-left: 43px;
	}

	.ecd-track {
		gap: 20px;
	}

	.ecd-card {
		grid-template-columns: 112px minmax(0, 1fr);
		width: min(100%, 430px);
		margin: 0 auto;
	}

	.ecd-teacher-name {
		font-size: 19px;
	}

	.ecd-teacher-role,
	.ecd-specialty,
	.ecd-experience {
		font-size: 14px;
	}
}

@media (max-width: 430px) {
	.ecd-carousel-shell {
		padding-right: 35px;
		padding-left: 35px;
	}

	.ecd-arrow {
		width: 29px;
		height: 29px;
		border-width: 2px;
	}

	.ecd-arrow-prev {
		left: 0;
	}

	.ecd-arrow-next {
		right: 0;
	}

	.ecd-card {
		grid-template-columns: 90px minmax(0, 1fr);
		column-gap: 10px;
		padding: 22px 9px 12px 12px;
	}

	.ecd-avatar {
		width: 90px;
		height: 90px;
		margin-top: 18px;
	}

	.ecd-teacher-name {
		font-size: 16px;
	}

	.ecd-teacher-role,
	.ecd-specialty,
	.ecd-experience {
		font-size: 12px;
	}

	.ecd-socials {
		margin-top: 7px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ecd-track.is-animated,
	.ecd-arrow,
	.ecd-profile-button,
	.ecd-social-link {
		transition: none;
	}
}

/* Tarjetas sin solapamientos en tablet y móvil. */
@media (min-width: 768px) and (max-width: 1024px) {
	.ecd-card {
		grid-template-columns: minmax(96px, 112px) minmax(0, 1fr);
	}

	.ecd-teacher-name {
		white-space: normal;
		overflow-wrap: anywhere;
	}
}

@media (max-width: 520px) {
	.ecd-carousel-shell {
		padding-inline: 34px;
	}

	.ecd-card {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
		padding: 22px 18px 16px;
		text-align: center;
	}

	.ecd-avatar {
		width: min(128px, 42vw);
		height: min(128px, 42vw);
		margin: 0 auto;
	}

	.ecd-teacher-name {
		overflow: visible;
		text-overflow: clip;
		white-space: normal;
	}

	.ecd-socials {
		justify-content: center;
	}

	.ecd-arrow-prev {
		left: 1px;
	}

	.ecd-arrow-next {
		right: 1px;
	}
}
