/*
 * JPA Atomic Profile Cards
 * CSS encapsulado mediante clases BEM y variables locales para evitar conflictos.
 */
.elementor-widget-jpa_atomic_profile_slider {
	--jpa-card-header: #5e828a;
	--jpa-card-body: #e57231;
	--jpa-card-footer: #194136;
	--jpa-card-accent: #58c17d;
	--jpa-card-arrow: #e57231;
	--jpa-card-arrow-hover: #e57231;
	--jpa-card-text: #ffffff;
	--jpa-card-stars: #00c997;
	--jpa-card-stars-empty: rgb(255 255 255 / 42%);
	--jpa-panel-background: #f8f8f8;
	--jpa-panel-name: #194136;
	--jpa-panel-title: #e57231;
	--jpa-panel-text: #33433e;
	--jpa-panel-link-background: #e57231;
	--jpa-panel-link-text: #ffffff;
	overflow: visible;
}

.e-con.jpa-profile-panel-host-open,
.elementor-column.jpa-profile-panel-host-open,
.elementor-widget-wrap.jpa-profile-panel-host-open {
	height: auto !important;
	overflow: visible !important;
}

.jpa-profile-slider,
.jpa-profile-slider * {
	box-sizing: border-box;
}

.jpa-profile-slider {
	position: relative;
	width: min(100%, 1050px);
	margin-inline: auto;
	padding-inline: 48px;
}

.jpa-profile-slider__viewport {
	width: 100%;
	overflow: hidden;
	padding: 14px 6px 22px;
}

.jpa-profile-slider .swiper-wrapper {
	display: flex;
	align-items: stretch;
}

.jpa-profile-slider .swiper-slide {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	height: auto;
	flex-shrink: 0;
}

.jpa-profile-card-shell {
	display: flex;
	flex-direction: column;
	width: min(100%, 252px);
	min-width: 0;
}

.jpa-profile-card {
	display: grid;
	grid-template-rows: 177px 147px 42px;
	width: 100%;
	min-width: 0;
	height: 366px;
	margin: 0;
	overflow: hidden;
	border-radius: 13px;
	background: var(--jpa-card-header);
	box-shadow: 6px 5px 9px rgb(31 51 56 / 22%);
	font-family: Arial, Helvetica, sans-serif;
	color: var(--jpa-card-text);
	isolation: isolate;
}

.jpa-profile-card__header {
	position: relative;
	min-width: 0;
	padding: 0 25px;
	background: var(--jpa-card-header);
}

.jpa-profile-card__accent {
	position: absolute;
	top: 29px;
	left: 25px;
	width: 114px;
	height: 10px;
	border-radius: 999px;
	background: var(--jpa-card-accent);
}

.jpa-profile-card__identity {
	display: flex;
	align-items: center;
	gap: 17px;
	padding-top: 63px;
	min-width: 0;
}

.jpa-profile-card__avatar {
	width: 86px;
	height: 86px;
	min-width: 86px;
	flex: 0 0 auto;
	margin: 0;
	border: 0;
	background: #fff;
	object-position: center;
}

.elementor-widget-jpa_atomic_profile_slider img.jpa-profile-card__avatar {
	aspect-ratio: 1 / 1 !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	clip-path: circle(50% at 50% 50%);
}

.jpa-profile-card__name {
	min-width: 0;
	margin-top: 1px;
}

.jpa-profile-card__name h3,
.jpa-profile-card__name p,
.jpa-profile-card__rating-label {
	margin: 0;
	padding: 0;
	color: var(--jpa-card-text);
	font-family: inherit;
	text-transform: none;
}

.jpa-profile-card__name h3 {
	font-size: clamp(26px, 2.2vw, 31px);
	font-weight: 700;
	line-height: .88;
	letter-spacing: -.75px;
	white-space: nowrap;
}

.jpa-profile-card__name p {
	margin-top: 5px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.jpa-profile-card__details {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 24px 29px 12px;
	background: var(--jpa-card-body);
}

.jpa-profile-card__contact {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 7px;
	min-width: 0;
}

.elementor-widget-jpa_atomic_profile_slider .jpa-profile-card__contact a {
	display: block;
	max-width: calc(100% + 18px);
	margin: 0 -9px;
	padding: 4px 9px;
	border-radius: 999px;
	background: transparent;
	color: var(--jpa-card-text);
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.28;
	text-decoration: none;
	white-space: nowrap;
	transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.elementor-widget-jpa_atomic_profile_slider .jpa-profile-card__contact a:hover,
.elementor-widget-jpa_atomic_profile_slider .jpa-profile-card__contact a:focus-visible {
	background: var(--jpa-card-stars);
	color: var(--jpa-card-body);
	text-decoration: none;
	transform: translateX(2px);
}

.elementor-widget-jpa_atomic_profile_slider .jpa-profile-card__contact a:focus-visible {
	outline: 2px solid var(--jpa-card-text);
	outline-offset: 2px;
}

.jpa-profile-card__rating-label {
	margin-top: 7px;
	font-size: 19px;
	font-weight: 400;
	line-height: 1;
}

.jpa-profile-card__stars {
	display: flex;
	align-items: center;
	gap: 1px;
	margin-top: 3px;
	font-size: 22px;
	line-height: 1;
	letter-spacing: 0;
}

.jpa-profile-card__stars .is-filled {
	color: var(--jpa-card-stars);
}

.jpa-profile-card__stars .is-empty {
	color: var(--jpa-card-stars-empty);
}

.elementor-widget-jpa_atomic_profile_slider .jpa-profile-card__portfolio,
.elementor-widget-jpa_atomic_profile_slider .jpa-profile-card__portfolio:hover,
.elementor-widget-jpa_atomic_profile_slider .jpa-profile-card__portfolio:focus,
.elementor-widget-jpa_atomic_profile_slider .jpa-profile-card__portfolio:active {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0 12px;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--jpa-card-footer) !important;
	background-color: var(--jpa-card-footer) !important;
	background-image: none !important;
	box-shadow: none !important;
	color: var(--jpa-card-text) !important;
	font-family: inherit;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: filter 180ms ease;
}

.elementor-widget-jpa_atomic_profile_slider .jpa-profile-card__portfolio:hover,
.elementor-widget-jpa_atomic_profile_slider .jpa-profile-card__portfolio:focus-visible {
	filter: brightness(1.1);
}

.jpa-profile-card__portfolio:focus-visible {
	outline: 3px solid #fff;
	outline-offset: -4px;
}

.jpa-profile-card__portfolio-icon {
	display: block;
	width: 16px;
	height: 10px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 220ms ease;
}

.jpa-profile-card-shell.is-panel-open .jpa-profile-card__portfolio-icon {
	transform: rotate(180deg);
}

.jpa-profile-slider__panel-stage {
	width: 100%;
	margin-top: 0;
	padding-inline: 6px;
}

.jpa-profile-slider__panel-stage:empty {
	display: none;
}

.jpa-profile-slider__panel-stage.is-active {
	margin-top: 14px;
}

.jpa-profile-card__panel {
	width: 100%;
	max-height: 0;
	margin-top: 0;
	overflow: hidden;
	border-radius: 13px;
	background: var(--jpa-panel-background);
	box-shadow: 6px 5px 9px rgb(31 51 56 / 18%);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	pointer-events: none;
	transition:
		max-height 420ms ease,
		margin-top 300ms ease,
		opacity 220ms ease,
		transform 300ms ease,
		visibility 0s linear 420ms;
}

.jpa-profile-card__panel.is-panel-open {
	max-height: 3000px;
	margin-top: 0;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
	transition:
		max-height 500ms ease,
		margin-top 300ms ease,
		opacity 260ms ease,
		transform 300ms ease,
		visibility 0s linear 0s;
}

.jpa-profile-card__panel-inner {
	display: grid;
	grid-template-columns: minmax(220px, 32%) minmax(0, 1fr);
	align-items: center;
	gap: clamp(24px, 5vw, 56px);
	width: 100%;
	padding: 30px clamp(28px, 5vw, 58px);
	text-align: left;
}

.jpa-profile-card__panel-image {
	display: block;
	width: 220px;
	max-width: 100%;
	justify-self: center;
	margin: 0;
	border: 0;
	background: #fff;
	object-position: center;
}

.elementor-widget-jpa_atomic_profile_slider img.jpa-profile-card__panel-image {
	aspect-ratio: 1 / 1 !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	clip-path: circle(50% at 50% 50%);
}

.jpa-profile-card__panel-copy {
	width: 100%;
	min-width: 0;
}

.jpa-profile-card__panel-name,
.jpa-profile-card__panel-title,
.jpa-profile-card__panel-description,
.jpa-profile-card__panel-description p,
.jpa-profile-card__panel-area,
.jpa-profile-card__panel-area p {
	margin: 0;
	padding: 0;
	font-family: inherit;
	text-transform: none;
}

.jpa-profile-card__panel-name {
	color: var(--jpa-panel-name);
	font-size: 25px;
	font-weight: 700;
	line-height: 1.05;
}

.jpa-profile-card__panel-title {
	margin-top: 9px;
	color: var(--jpa-panel-title);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
}

.jpa-profile-card__panel-description,
.jpa-profile-card__panel-area {
	width: 100%;
	color: var(--jpa-panel-text);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.45;
}

.jpa-profile-card__panel-description {
	margin-top: 12px;
}

.jpa-profile-card__panel-area {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 2px solid var(--jpa-card-stars);
	font-weight: 700;
}

.jpa-profile-card__panel-description p + p,
.jpa-profile-card__panel-area p + p {
	margin-top: 8px;
}

.elementor-widget-jpa_atomic_profile_slider .jpa-profile-card__panel-link,
.elementor-widget-jpa_atomic_profile_slider .jpa-profile-card__panel-link:hover,
.elementor-widget-jpa_atomic_profile_slider .jpa-profile-card__panel-link:focus,
.elementor-widget-jpa_atomic_profile_slider .jpa-profile-card__panel-link:active {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	margin-top: 16px;
	padding: 10px 17px;
	border: 0;
	border-radius: 999px;
	background: var(--jpa-panel-link-background);
	color: var(--jpa-panel-link-text);
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	transition: filter 180ms ease, transform 180ms ease;
}

.elementor-widget-jpa_atomic_profile_slider .jpa-profile-card__panel-link:hover,
.elementor-widget-jpa_atomic_profile_slider .jpa-profile-card__panel-link:focus-visible {
	color: var(--jpa-panel-link-text);
	filter: brightness(1.08);
	transform: translateY(-1px);
}

.elementor-widget-jpa_atomic_profile_slider .jpa-profile-card__panel-link:focus-visible {
	outline: 2px solid var(--jpa-card-stars);
	outline-offset: 3px;
}

/*
 * La especificidad y !important impiden que los estilos globales de botones de
 * Elementor o del tema añadan fondos, bordes o sombras a las flechas.
 */
.elementor-widget-jpa_atomic_profile_slider .jpa-profile-slider__arrow,
.elementor-widget-jpa_atomic_profile_slider .jpa-profile-slider__arrow:hover,
.elementor-widget-jpa_atomic_profile_slider .jpa-profile-slider__arrow:focus,
.elementor-widget-jpa_atomic_profile_slider .jpa-profile-slider__arrow:focus-visible,
.elementor-widget-jpa_atomic_profile_slider .jpa-profile-slider__arrow:active {
	position: absolute;
	top: 197px;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 76px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: var(--jpa-card-arrow);
	font-size: 0;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transform: translateY(-50%);
	transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
	appearance: none;
	-webkit-appearance: none;
}

.elementor-widget-jpa_atomic_profile_slider .jpa-profile-slider__arrow:hover,
.elementor-widget-jpa_atomic_profile_slider .jpa-profile-slider__arrow:focus,
.elementor-widget-jpa_atomic_profile_slider .jpa-profile-slider__arrow:focus-visible,
.elementor-widget-jpa_atomic_profile_slider .jpa-profile-slider__arrow:active {
	color: var(--jpa-card-arrow-hover);
	transform: translateY(-50%) scale(1.06);
}

.elementor-widget-jpa_atomic_profile_slider .jpa-profile-slider__arrow:focus-visible {
	outline: 2px dashed currentColor;
	outline-offset: 3px;
}

.jpa-profile-slider__arrow svg {
	display: block;
	width: 28px;
	height: 54px;
	overflow: visible;
	fill: none;
	stroke: currentColor;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
	pointer-events: none;
}

.jpa-profile-slider__arrow--prev {
	left: 0;
}

.jpa-profile-slider__arrow--next {
	right: 0;
}

.jpa-profile-slider__arrow.swiper-button-disabled {
	opacity: .28;
	pointer-events: none;
}

@media (max-width: 1024px) {
	.jpa-profile-slider {
		width: min(100%, 720px);
		padding-inline: 44px;
	}
}

@media (max-width: 767px) {
	.jpa-profile-slider {
		width: min(100%, 360px);
		padding-inline: 36px;
	}

	.jpa-profile-slider__viewport {
		padding-inline: 2px;
	}

	.jpa-profile-slider__panel-stage {
		padding-inline: 2px;
	}

	.jpa-profile-card__panel-inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
		padding: 24px 20px;
		text-align: center;
	}

	.jpa-profile-card__panel-image {
		margin-inline: auto;
	}

	.elementor-widget-jpa_atomic_profile_slider .jpa-profile-slider__arrow,
	.elementor-widget-jpa_atomic_profile_slider .jpa-profile-slider__arrow:hover,
	.elementor-widget-jpa_atomic_profile_slider .jpa-profile-slider__arrow:focus,
	.elementor-widget-jpa_atomic_profile_slider .jpa-profile-slider__arrow:focus-visible,
	.elementor-widget-jpa_atomic_profile_slider .jpa-profile-slider__arrow:active {
		width: 34px;
	}

	.jpa-profile-slider__arrow svg {
		width: 22px;
		height: 44px;
	}
}

@media (max-width: 359px) {
	.jpa-profile-card-shell {
		width: min(100%, 252px);
	}

	.jpa-profile-card {
		grid-template-rows: 170px 147px 42px;
		height: 359px;
	}

	.jpa-profile-card__header {
		padding-inline: 20px;
	}

	.jpa-profile-card__accent {
		left: 20px;
		width: 105px;
	}

	.jpa-profile-card__identity {
		gap: 12px;
		padding-top: 62px;
	}

	.jpa-profile-card__avatar {
		width: 78px;
		height: 78px;
		min-width: 78px;
	}

	.jpa-profile-card__name h3 {
		font-size: 26px;
	}

	.jpa-profile-card__details {
		padding-inline: 23px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jpa-profile-card__portfolio,
	.jpa-profile-card__portfolio-icon,
	.jpa-profile-card__panel,
	.jpa-profile-card__contact a,
	.jpa-profile-slider__arrow {
		transition: none;
	}
}

/* Refuerzo responsive para contenido editable de longitud variable. */
@media (min-width: 768px) and (max-width: 1024px) {
	.jpa-profile-slider,
	.jpa-profile-card-shell {
		min-width: 0;
	}

	.jpa-profile-card__name h3,
	.jpa-profile-card__name p {
		white-space: normal;
		overflow-wrap: anywhere;
	}
}

@media (max-width: 767px) {
	.jpa-profile-slider {
		width: 100%;
		max-width: 390px;
	}

	.jpa-profile-card-shell {
		width: 100%;
	}

	.jpa-profile-card {
		grid-template-rows: auto auto 42px;
		height: auto;
		min-height: 366px;
	}

	.jpa-profile-card__header {
		min-height: 177px;
	}

	.jpa-profile-card__identity {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
	}

	.jpa-profile-card__name h3,
	.jpa-profile-card__name p,
	.elementor-widget-jpa_atomic_profile_slider .jpa-profile-card__contact a {
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.jpa-profile-card__panel-image {
		width: min(190px, 70vw);
	}
}

@media (max-width: 380px) {
	.jpa-profile-slider {
		padding-inline: 31px;
	}

	.jpa-profile-card__header,
	.jpa-profile-card__details {
		padding-inline: 18px;
	}

	.jpa-profile-card__identity {
		gap: 10px;
	}

	.jpa-profile-card__avatar {
		width: 72px;
		height: 72px;
		min-width: 72px;
	}
}
