/* Seficorp Custom Carousel — aislado para no afectar otros widgets */
.sef-promo-carousel {
	--sef-navy: #153b5d;
	--sef-muted: #536a7f;
	--sef-blue: #0645f5;
	--sef-accent: #ff927e;
	position: relative;
	width: 100%;
	min-height: 580px;
	padding: clamp(34px, 5vw, 72px) clamp(24px, 7vw, 90px) 30px;
	box-sizing: border-box;
	overflow: hidden;
	background: #153b5d;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	font-family: inherit;
}

.sef-promo-carousel *,
.sef-promo-carousel *::before,
.sef-promo-carousel *::after { box-sizing: border-box; }

.sef-promo-carousel__slides {
	position: relative;
	flex: 1 1 auto;
	min-height: 390px;
}

.sef-promo-carousel__slide {
	position: absolute;
	inset: 0;
	display: none !important; /* Bloquea por completo las diapositivas inactivas */
	grid-template-columns: minmax(240px, .78fr) minmax(0, 1.35fr);
	align-items: center;
	gap: clamp(24px, 5vw, 72px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.sef-promo-carousel__slide.is-active {
    display: grid !important;
	position: relative;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

@keyframes sef-slide-fade-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.sef-promo-carousel__copy {
	position: relative;
	z-index: 2;
	max-width: 390px;
	padding: 10px 0 25px;
}

.sef-promo-carousel__eyebrow {
	margin: 0 0 12px;
	color: var(--sef-blue);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.sef-promo-carousel__title {
	margin: 0 0 22px;
	color: var(--sef-navy);
	font-size: clamp(27px, 3vw, 39px);
	line-height: 1.15;
	font-weight: 750;
	letter-spacing: -.035em;
}

.sef-promo-carousel__description {
	max-width: 330px;
	margin: 0 0 34px;
	color: var(--sef-muted);
	font-size: 15px;
	line-height: 1.55;
	font-weight: 400;
}

.sef-promo-carousel__button {
	display: inline-flex;
	min-width: 145px;
	min-height: 46px;
	align-items: center;
	justify-content: center;
	padding: 12px 25px;
	border: 0;
	border-radius: 30px;
	background: var(--sef-blue);
	box-shadow: 0 10px 22px rgba(6, 69, 245, .13);
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.sef-promo-carousel__button:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 26px rgba(6, 69, 245, .2);
	filter: brightness(1.05);
	color: #fff !important;
}

.sef-promo-carousel__visual {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 380px;
	isolation: isolate;
}

.sef-promo-carousel__visual-circle {
	position: absolute;
	z-index: -1;
	width: min( min(74%, 470px), 55vh );
	aspect-ratio: 1;
	border-radius: 50%;
	background: #edf1f5;
}

.sef-promo-carousel__visual-circle::after {
	content: "";
	position: absolute;
	inset: -5px;
	border: 3px solid transparent;
	border-top-color: rgba(21, 59, 93, .08);
	border-right-color: rgba(21, 59, 93, .08);
	border-radius: 50%;
	transform: rotate(-24deg);
}

.sef-promo-carousel__image {
	position: relative;
	display: block;
	width: min(100%, 570px);
	max-height: 410px;
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 18px 18px rgba(31, 54, 76, .08));
	animation: sef-promo-carousel-float 5s ease-in-out infinite;
}

/* mod */
.sef-promo-carousel__tabs {
	position: relative;
	z-index: 4;
	display: grid;
	grid-template-columns: repeat(var(--sef-tabs-count, 4), minmax(0, 1fr));
	width: var(--sef-tabs-width, 100%);
	margin: 10px auto 0;
	background: #fff;
	box-shadow: 0 15px 28px rgba(30, 49, 68, .07);
}

.sef-promo-carousel__tab {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 12px 10px;
	border: 0;
	border-right: 1px solid #edf0f3;
	border-radius: 0;
	background: #fff;
	color: #91a0ad;
	font: inherit;
	font-size: 13px;
	font-weight: 650;
	cursor: pointer;
	transition: color .25s ease, background .25s ease;
}

.sef-promo-carousel__tab:last-child { border-right: 0; }

.sef-promo-carousel__tab::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: transparent;
	transition: background .25s ease;
}

.sef-promo-carousel__tab:hover,
.sef-promo-carousel__tab.is-active {
	color: var(--sef-navy);
	background: #fff;
}

.sef-promo-carousel__tab.is-active::before { background: var(--sef-accent); }

.sef-promo-carousel__tab:focus-visible,
.sef-promo-carousel__button:focus-visible {
	outline: 3px solid rgba(6, 69, 245, .35);
	outline-offset: 3px;
}

@keyframes sef-promo-carousel-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}

@media (max-width: 767px) {
	.sef-promo-carousel {
		min-height: 0;
		padding: 34px 22px 22px;
	}
	.sef-promo-carousel__slides { min-height: 0; }
	.sef-promo-carousel__slide {
		position: absolute;
		grid-template-columns: 1fr;
		gap: 10px;
		align-content: start;
	}
	.sef-promo-carousel__slide.is-active { position: relative; }
	.sef-promo-carousel__copy {
		max-width: 100%;
		padding: 0;
		order: 1;
	}
	.sef-promo-carousel__title {
		margin-bottom: 13px;
		font-size: clamp(26px, 7vw, 34px);
	}
	.sef-promo-carousel__description {
		max-width: 100%;
		margin-bottom: 20px;
		font-size: 14px;
	}
	.sef-promo-carousel__button { min-height: 42px; min-width: 132px; }
	.sef-promo-carousel__visual {
		order: 2;
		min-height: 260px;
		margin-top: 4px;
	}
	.sef-promo-carousel__visual-circle { width: min(78%, 280px); }
	.sef-promo-carousel__image { max-height: 270px; max-width: 100%; }
	.sef-promo-carousel__tabs { 
		width: 100%;
		margin-top: 22px; 
	}
	.sef-promo-carousel__tab {
		min-height: 48px;
		padding: 10px 4px;
		font-size: 11px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sef-promo-carousel__slide,
	.sef-promo-carousel__tab,
	.sef-promo-carousel__button,
	.sef-promo-carousel__image { transition: none !important; animation: none !important; }
}

/* Navegación completa: anterior, siguiente e indicadores */
.sef-promo-carousel__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	width: 100%;
	margin: 18px auto 0;
}

.sef-promo-carousel__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid rgba(21, 59, 93, .14);
	border-radius: 50%;
	background: #fff;
	color: var(--sef-navy);
	font: inherit;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 5px 14px rgba(30, 49, 68, .06);
	transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.sef-promo-carousel__arrow:hover {
	background: var(--sef-blue);
	border-color: var(--sef-blue);
	color: #fff;
	transform: translateY(-2px);
}

.sef-promo-carousel__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
}

.sef-promo-carousel__dot {
	display: block;
	width: 8px;
	height: 8px;
	min-width: 8px;
	padding: 0;
	border: 0;
	border-radius: 20px;
	background: #bdc8d2;
	cursor: pointer;
	transition: width .25s ease, background .25s ease, transform .25s ease;
}

.sef-promo-carousel__dot.is-active {
	width: 23px;
	background: var(--sef-blue);
}

.sef-promo-carousel__arrow:focus-visible,
.sef-promo-carousel__dot:focus-visible {
	outline: 3px solid rgba(6, 69, 245, .35);
	outline-offset: 4px;
}

@media (max-width: 767px) {
	.sef-promo-carousel__controls {
		gap: 14px;
		margin-top: 14px;
	}
	.sef-promo-carousel__arrow {
		flex-basis: 34px;
		width: 34px;
		height: 34px;
	}
	.sef-promo-carousel__dots { gap: 7px; }
	.sef-promo-carousel__dot { width: 7px; height: 7px; min-width: 7px; }
	.sef-promo-carousel__dot.is-active { width: 19px; }
}

@media (prefers-reduced-motion: reduce) {
	.sef-promo-carousel__arrow,
	.sef-promo-carousel__dot { transition: none !important; }
}

/* Navegación adaptable: laterales en escritorio y parte inferior en tablet/móvil */
@media (min-width: 1025px) {
	.sef-promo-carousel {
		/* Reserva espacio visual para las flechas laterales sin alterar las diapositivas. */
		--sef-nav-arrow-size: 48px;
	}

	.sef-promo-carousel__controls {
		position: absolute;
		top: 48%;
		left: 0;
		z-index: 8;
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		margin: 0;
		padding: 0 10px;
		transform: translateY(-50%);
		pointer-events: none;
	}

	/* En escritorio se muestran las flechas a los costados, como en la referencia. */
	.sef-promo-carousel__dots {
		display: none;
	}

	.sef-promo-carousel__arrow {
		flex: 0 0 var(--sef-nav-arrow-size);
		width: var(--sef-nav-arrow-size);
		height: var(--sef-nav-arrow-size);
		border: 1px solid rgba(21, 59, 93, .12);
		background: #fff;
		color: var(--sef-navy);
		font-size: 19px;
		box-shadow: 0 5px 16px rgba(30, 49, 68, .10);
		pointer-events: auto;
	}

	.sef-promo-carousel__arrow--prev:hover,
	.sef-promo-carousel__arrow--next:hover {
		background: var(--sef-blue);
		border-color: var(--sef-blue);
		color: #fff;
		transform: translateY(-2px);
	}
}

/* En tablet y móvil los controles permanecen debajo de las pestañas. */
@media (max-width: 1024px) {
	.sef-promo-carousel__controls {
		position: relative;
		top: auto;
		left: auto;
		z-index: 4;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		margin: 14px auto 0;
		padding: 0;
		transform: none;
		pointer-events: auto;
	}

	.sef-promo-carousel__dots {
		display: flex;
	}
}

/* Fondos individuales por diapositiva */
.sef-promo-carousel__bgs {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.sef-promo-carousel__bg {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .45s ease;
}

.sef-promo-carousel__bg.is-active {
	opacity: 1;
}

.sef-promo-carousel__slides {
	z-index: 2;
}

.sef-promo-carousel__arrow:focus,
.sef-promo-carousel__arrow:active {
	background: #fff;
	border-color: rgba(21, 59, 93, .12);
	color: var(--sef-navy);
	outline: none;
}

.sef-promo-carousel__arrow:hover {
	background: var(--sef-blue);
	border-color: var(--sef-blue);
	color: #fff;
}

/* Centrado y simetría del contenido en escritorio */
.sef-promo-carousel__slides {
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	display: flex;
	align-items: center;
}

.sef-promo-carousel__slide {
	width: 100%;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: center;
	justify-items: center;
}

.sef-promo-carousel__copy {
	width: 100%;
	max-width: 440px;
	padding: 0;
}

.sef-promo-carousel__visual {
	width: 100%;
}

@media (max-width: 767px) {
	.sef-promo-carousel__slide {
		grid-template-columns: 1fr;
		justify-items: stretch;
	}
}

/* Efectos animados para el fondo de cada diapositiva */
.sef-promo-carousel__bgs {
	overflow: hidden;
}

.sef-promo-carousel__bg {
	will-change: transform, opacity, filter;
}

/* 1. Zoom In (Ken Burns) */
.sef-bg-effect--zoom-in .sef-promo-carousel__bg.is-active {
	animation: sef-bg-zoom-in var(--sef-bg-duration, 10s) ease-out forwards;
}

/* 2. Zoom Out */
.sef-bg-effect--zoom-out .sef-promo-carousel__bg.is-active {
	animation: sef-bg-zoom-out var(--sef-bg-duration, 10s) ease-out forwards;
}

/* 3. Fade In / Out más lento y marcado */
.sef-bg-effect--fade .sef-promo-carousel__bg {
	transition: opacity 1.1s ease-in-out;
}

/* 4. Desplazamiento lateral (Pan) */
.sef-bg-effect--pan-right .sef-promo-carousel__bg.is-active {
	animation: sef-bg-pan-right var(--sef-bg-duration, 10s) ease-in-out forwards;
}

/* 5. Desenfoque a nítido (Blur In) */
.sef-bg-effect--blur-in .sef-promo-carousel__bg.is-active {
	animation: sef-bg-blur-in 1.4s ease-out forwards;
}

@keyframes sef-bg-zoom-in {
	0%   { transform: scale(1); }
	100% { transform: scale(1.12); }
}

@keyframes sef-bg-zoom-out {
	0%   { transform: scale(1.12); }
	100% { transform: scale(1); }
}

@keyframes sef-bg-pan-right {
	0%   { transform: scale(1.1) translateX(-3%); }
	100% { transform: scale(1.1) translateX(3%); }
}

@keyframes sef-bg-blur-in {
	0%   { filter: blur(10px); transform: scale(1.06); }
	100% { filter: blur(0); transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	.sef-promo-carousel__bg.is-active {
		animation: none !important;
	}
}

/* Panel de legibilidad y barra lateral para el texto */
.sef-promo-carousel__copy.has-backdrop {
	background-color: rgba(15, 28, 46, 0.58);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-left: 5px solid #4ca398;
	border-radius: 0 16px 16px 0;
	padding: 28px 32px;
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
	max-width: 470px;
}

.sef-promo-carousel__copy.has-backdrop .sef-promo-carousel__description {
	max-width: 100%;
}

@media (max-width: 767px) {
	.sef-promo-carousel__copy.has-backdrop {
		padding: 20px 22px;
		max-width: 100%;
	}
}


/* ==========================================================================
   INICIO NUEVA FUNCIONALIDAD: Barra de pestañas transparente (Estilo Glass),
   sombra de legibilidad e íconos
   ========================================================================== */

/* Estilos base para los íconos dentro de cualquier pestaña (blanca o transparente) */
.sef-promo-carousel__tabs {
	--sef-tab-icon-size: 15px;
}

.sef-promo-carousel__tab {
	gap: 8px; /* Separación entre el ícono y el texto */
}

.sef-promo-carousel__tab-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	font-size: var(--sef-tab-icon-size);
}

.sef-promo-carousel__tab-icon svg {
	width: var(--sef-tab-icon-size);
	height: var(--sef-tab-icon-size);
	fill: currentColor; /* El SVG adopta automáticamente el color del texto */
}

/* Contenedor principal de la barra en modo transparente */
.sef-promo-carousel__tabs.is-transparent {
	/* Variables controladas desde los sliders de Elementor (con valores por defecto) */
	--sef-tabs-bg-opacity: 0.14;
	--sef-tabs-border-width: 1px;
	--sef-tabs-blur: 12px;

	background: rgba(255, 255, 255, var(--sef-tabs-bg-opacity)); /* Opacidad dinámica */
	backdrop-filter: blur(var(--sef-tabs-blur)); /* Desenfoque controlado desde Elementor */
	-webkit-backdrop-filter: blur(var(--sef-tabs-blur)); /* Soporte dinámico para Safari */
	border: var(--sef-tabs-border-width) solid rgba(255, 255, 255, 0.38); /* Grosor de borde dinámico */
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	padding: 6px;
	gap: 6px;
}

/* Cada pestaña individual dentro de la barra transparente */
.sef-promo-carousel__tabs.is-transparent .sef-promo-carousel__tab {
	background: transparent;
	border: var(--sef-tabs-border-width) solid transparent; /* Reserva el espacio del borde para evitar saltos al cambiar de pestaña */
	border-radius: inherit;
	min-height: 44px;
	color: rgba(255, 255, 255, 0.92);
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, text-shadow 0.25s ease;
}

/* Sombra base de legibilidad (se sobreescribe automáticamente si usas el control de sombra de Elementor) */
.sef-promo-carousel__tabs.is-transparent.has-text-shadow .sef-promo-carousel__tab {
	text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.6), 0px 1px 1px rgba(0, 0, 0, 0.8);
}

/* Sombra suave para los íconos cuando está activa la legibilidad por defecto */
.sef-promo-carousel__tabs.is-transparent.has-text-shadow .sef-promo-carousel__tab-icon {
	filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.85));
}

/* Oculta la línea superior de color de acento */
.sef-promo-carousel__tabs.is-transparent .sef-promo-carousel__tab::before {
	display: none;
}

/* Efecto al pasar el cursor sobre una pestaña inactiva */
.sef-promo-carousel__tabs.is-transparent .sef-promo-carousel__tab:hover {
	background: rgba(255, 255, 255, calc(var(--sef-tabs-bg-opacity) * 0.7));
	color: #ffffff;
}

/* Pestaña activa: cápsula/píldora con opacidad ligeramente mayor a la barra base y borde dinámico */
.sef-promo-carousel__tabs.is-transparent .sef-promo-carousel__tab.is-active {
	background: rgba(255, 255, 255, min(0.85, calc(var(--sef-tabs-bg-opacity) + 0.12)));
	border-color: rgba(255, 255, 255, 0.55);
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Ajuste responsivo para pantallas móviles */
@media (max-width: 767px) {
	.sef-promo-carousel__tabs.is-transparent {
		padding: 4px;
		gap: 4px;
	}
	.sef-promo-carousel__tabs.is-transparent .sef-promo-carousel__tab {
		min-height: 40px;
		gap: 5px;
	}
}
/* FIN NUEVA FUNCIONALIDAD */