/* SWL API Bizneo · widget «Ofertas de empleo» y [laberit_ofertas]: copia «Vacantes» del Figma (6001:1352): barra de
   búsqueda (6001:1364), tarjetas (6001:1391), flechas (6001:1433) y puntos (6001:1428), con los colores y tipografías del
   Kit. Los controles del widget (Contenido y Estilo) pisan estos valores. Antes en laberit.css (hasta el 09/11/2026). */
.fe-ofertas-wrap {
	--fe-cols: 4;   /* tarjetas a la vista (control «Tarjetas a la vista») */
	--fe-gap: 37px; /* separación (control «Separación») */
	--fe-suave: cubic-bezier(.22, 1, .36, 1);   /* frenada larga: todo llega despacio a su sitio */
	--fe-muelle: cubic-bezier(.34, 1.56, .64, 1); /* pequeño rebote (flechas, puntos, check) */
	width: 100%;
}
.fe-ofertas-wrap [hidden] { display: none !important; } /* las tarjetas son flex y el [hidden] del navegador no gana */

/* Barra de búsqueda: píldora gris con sombra interior; dentro, buscador y desplegable blancos */
.fe-ofertas__filtros {
	position: relative;
	z-index: 5; /* la lista abierta queda por encima del carrusel */
	display: grid;
	grid-template-columns: minmax(0, 1fr) 256px;
	gap: 16px;
	max-width: 1248px;
	margin: 0 auto 60px;
	padding: 16px;
	border-radius: 48px;
	background: var(--e-global-color-ae420bd);
	box-shadow: inset 0 2px 6px rgba(0, 19, 40, .06);
}
.fe-ofertas-wrap:not(.fe-js) .fe-ofertas__filtros { display: none; }
/* .fe-select delante del botón: las reglas button:hover/focus del Kit (.elementor-kit-7 button:focus) lo pintarían de rojo */
.fe-ofertas-wrap .fe-ofertas__buscar,
.fe-ofertas-wrap .fe-select .fe-select__btn {
	width: 100%;
	min-width: 0;
	height: 58px;
	margin: 0;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: 100px;
	background-color: var(--e-global-color-blanco);
	color: var(--e-global-color-navy);
	font-family: var(--e-global-typography-textos-font-family), sans-serif;
	font-size: var(--e-global-typography-textos-font-size);
	font-weight: 400;
	line-height: 1;
	text-transform: none;
	box-shadow: 0 1px 2px rgba(0, 19, 40, .04);
	transition: border-color .4s var(--fe-suave), box-shadow .5s var(--fe-suave), background-color .4s var(--fe-suave), transform .4s var(--fe-suave);
}
/* Lupa del Figma (6001:1370) como fondo: el input no admite ::before */
.fe-ofertas-wrap .fe-ofertas__buscar {
	padding-left: 48px;
	background: var(--e-global-color-blanco) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='7.5' cy='7.5' r='6' fill='none' stroke='%23A1A1AA' stroke-width='2'/%3E%3Cpath d='M12 12l4.5 4.5' stroke='%23A1A1AA' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 18px center / 16px 16px;
}
.fe-ofertas-wrap .fe-ofertas__buscar::placeholder { color: var(--e-global-color-grismedio); opacity: 1; }
.fe-ofertas-wrap .fe-ofertas__buscar:hover,
.fe-ofertas-wrap .fe-select__btn:hover {
	box-shadow: 0 10px 24px -12px rgba(0, 19, 40, .28);
	transform: translateY(-1px);
}
.fe-ofertas-wrap .fe-ofertas__buscar:focus,
.fe-ofertas-wrap .fe-select__btn:focus-visible,
.fe-select.is-open .fe-select__btn {
	outline: none;
	border-color: var(--e-global-color-navy);
	box-shadow: 0 0 0 4px rgba(9, 31, 44, .08), 0 12px 32px -16px rgba(0, 19, 40, .3);
	transform: none;
}
.fe-ofertas-wrap .fe-select__btn:active { transform: scale(.98); transition-duration: .15s; }

/* Desplegable propio (laberit.js): el <select> sigue dentro, oculto, y es el que leen los filtros */
.fe-select { position: relative; min-width: 0; }
.fe-select select { display: none; }
.fe-ofertas-wrap .fe-select__btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	cursor: pointer;
	text-align: left;
}
.fe-select__valor { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fe-select__flecha {
	flex: none;
	width: 12px;
	height: 7px;
	background: currentColor;
	color: var(--e-global-color-grismedio);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .55s var(--fe-muelle), color .3s;
}
.fe-select.is-open .fe-select__flecha { transform: rotate(180deg); color: var(--e-global-color-navy); }
/* Con un área elegida, el botón se rellena del azul de las etiquetas */
.fe-ofertas-wrap .fe-select.is-filtrado .fe-select__btn {
	background-color: var(--e-global-color-19fe262);
	color: var(--e-global-color-secondary);
}

/* Lista: se despliega como una cortina (clip-path) que pasa de borrosa a nítida; al cerrar, lo mismo al revés */
.fe-select__lista {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 20;
	min-width: 100%;
	max-height: 340px;
	margin: 0;
	padding: 8px;
	overflow-y: auto;
	overscroll-behavior: contain;
	list-style: none;
	border: 1px solid rgba(194, 199, 204, .5);
	border-radius: 24px;
	background: rgba(255, 255, 255, .9);
	-webkit-backdrop-filter: blur(18px) saturate(1.4);
	backdrop-filter: blur(18px) saturate(1.4);
	box-shadow: 0 28px 56px -20px rgba(0, 19, 40, .28), 0 2px 8px rgba(0, 19, 40, .06);
	opacity: 0;
	visibility: hidden;
	filter: blur(6px);
	transform: translateY(-8px) scale(.97);
	transform-origin: top center;
	clip-path: inset(0 0 100% 0 round 24px);
	transition: opacity .3s var(--fe-suave), filter .35s var(--fe-suave), transform .45s var(--fe-suave),
		clip-path .45s var(--fe-suave), visibility 0s linear .45s;
}
.fe-select.is-open .fe-select__lista {
	opacity: 1;
	visibility: visible;
	filter: blur(0);
	transform: none;
	clip-path: inset(0 0 0 0 round 24px);
	transition: opacity .35s var(--fe-suave), filter .5s var(--fe-suave), transform .65s var(--fe-suave),
		clip-path .65s var(--fe-suave), visibility 0s;
}
.fe-select__lista:focus { outline: none; }
/* Opciones: entran una tras otra; al pasar el ratón, una píldora gris se rellena desde la izquierda */
.fe-select__op {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 16px;
	border-radius: 16px;
	color: var(--e-global-color-textoosc);
	font-family: var(--e-global-typography-textos-font-family), sans-serif;
	font-size: var(--e-global-typography-textos-font-size);
	line-height: 1.3;
	white-space: nowrap;
	cursor: pointer;
	isolation: isolate;
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity .2s, transform .2s, color .3s;
}
.fe-select.is-open .fe-select__op {
	opacity: 1;
	transform: none;
	transition: opacity .45s var(--fe-suave), transform .55s var(--fe-suave), color .3s;
	transition-delay: calc(80ms + var(--i, 0) * 30ms);
}
.fe-select__op::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: var(--e-global-color-ae420bd);
	opacity: 0;
	transform: scaleX(.6);
	transform-origin: left center;
	transition: transform .45s var(--fe-suave), opacity .3s var(--fe-suave);
}
.fe-select__op span { transition: transform .45s var(--fe-suave); }
.fe-select__op.is-activa::before { opacity: 1; transform: none; }
.fe-select__op.is-activa span { transform: translateX(4px); }
.fe-select__op[aria-selected="true"] { color: var(--e-global-color-navy); font-weight: 700; }
/* Check de la opción elegida: se dibuja al abrir */
.fe-select__op svg { flex: none; width: 14px; height: 14px; color: var(--e-global-color-primary); opacity: 0; }
.fe-select__op[aria-selected="true"] svg { opacity: 1; }
.fe-select__op svg path { stroke-dasharray: 20; stroke-dashoffset: 20; }
.fe-select.is-open .fe-select__op[aria-selected="true"] svg path {
	stroke-dashoffset: 0;
	transition: stroke-dashoffset .6s var(--fe-suave) .3s;
}

/* Carrusel: flechas a los lados y pista con scroll-snap (4 → 2 → 1,15 tarjetas a la vista) */
.fe-ofertas-wrap .fe-carrusel {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr) 32px;
	align-items: center;
	gap: 15px;
}
.fe-ofertas-wrap:not(.fe-js) .fe-carrusel,
.fe-sin-carrusel .fe-carrusel { grid-template-columns: minmax(0, 1fr); }
.fe-ofertas-wrap:not(.fe-js) .fe-carrusel__flecha,
.fe-sin-carrusel .fe-carrusel__flecha,
.fe-sin-carrusel .fe-carrusel__puntos { display: none; }
.fe-ofertas {
	position: relative; /* offsetLeft de las tarjetas, relativo a la pista */
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--fe-cols) - 1) * var(--fe-gap)) / var(--fe-cols));
	gap: var(--fe-gap);
	margin: -12px 0; /* sitio para la sombra al pasar el ratón sin que la recorte el overflow */
	padding: 12px 0;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}
.fe-ofertas::-webkit-scrollbar { display: none; }
.fe-ofertas:focus-visible { outline: 2px solid var(--e-global-color-navy); outline-offset: 4px; border-radius: 16px; }

/* Flechas (6001:1433): círculo gris al 70% con chevron; crecen al pasar el ratón */
.fe-ofertas-wrap .fe-carrusel .fe-carrusel__flecha { /* .fe-carrusel: gana al button:focus del Kit */
	position: relative;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(217, 217, 217, .7);
	color: var(--e-global-color-navy);
	cursor: pointer;
	transition: transform .5s var(--fe-muelle), background-color .3s, opacity .3s;
}
.fe-ofertas-wrap .fe-carrusel__flecha::before {
	content: "";
	position: absolute;
	inset: 0;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M18.5 10.5L13 16l5.5 5.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M18.5 10.5L13 16l5.5 5.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.fe-ofertas-wrap .fe-carrusel__flecha--sig::before { transform: scaleX(-1); }
.fe-ofertas-wrap .fe-carrusel__flecha:hover:not(:disabled) { background: #D9D9D9; transform: scale(1.12); }
.fe-ofertas-wrap .fe-carrusel__flecha:active:not(:disabled) { transform: scale(.94); transition-duration: .12s; }
.fe-ofertas-wrap .fe-carrusel__flecha:focus-visible { outline: 2px solid var(--e-global-color-navy); outline-offset: 2px; }
.fe-ofertas-wrap .fe-carrusel__flecha:disabled { opacity: .35; cursor: default; }

/* Puntos (6001:1428): el activo es rojo y se estira en píldora */
.fe-ofertas-wrap .fe-carrusel__puntos {
	display: flex;
	justify-content: center;
	gap: 17px;
	margin-top: 50px;
}
.fe-ofertas-wrap .fe-carrusel__puntos .fe-carrusel__punto { /* ídem */
	width: 11px;
	height: 11px;
	padding: 0;
	border: 0;
	border-radius: 100px;
	background: #D9D9D9;
	cursor: pointer;
	transition: width .55s var(--fe-muelle), background-color .4s var(--fe-suave), transform .3s var(--fe-suave);
}
.fe-ofertas-wrap .fe-carrusel__punto:hover { transform: scale(1.25); }
.fe-ofertas-wrap .fe-carrusel__puntos .fe-carrusel__punto.is-activo { width: 28px; background: var(--e-global-color-primary); transform: none; }
/* Con muchas páginas (móvil, tablet), barra fina de progreso en vez de puntos */
.fe-ofertas-wrap .fe-carrusel__puntos.is-barra {
	width: min(240px, 60%);
	height: 4px;
	margin-left: auto;
	margin-right: auto;
	border-radius: 100px;
	background: #D9D9D9;
	overflow: hidden;
}
.fe-ofertas-wrap .fe-carrusel__puntos.is-barra span {
	display: block;
	height: 100%;
	margin-right: auto;
	border-radius: inherit;
	background: var(--e-global-color-primary);
	transition: width .6s var(--fe-suave);
}

/* Tarjetas (6001:1391) */
.fe-oferta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	min-height: 317px;
	padding: 32px;
	border: 1px solid var(--e-global-color-grislin);
	border-radius: 16px;
	background: var(--e-global-color-ae420bd);
	scroll-snap-align: start;
	transition: transform .5s var(--fe-suave), box-shadow .5s var(--fe-suave);
}
.fe-oferta:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -20px rgba(0, 19, 40, .35); }
.fe-oferta__area {
	padding: 4px 16px;
	border-radius: 9999px;
	background: var(--e-global-color-19fe262);
	color: var(--e-global-color-secondary);
	font-family: var(--e-global-typography-textos-font-family), sans-serif;
	font-size: var(--e-global-typography-textos-font-size);
	line-height: var(--e-global-typography-textos-line-height);
}
/* .fe-oferta delante: el h3 y los enlaces del Kit (.elementor-kit-7 h3/a) son más específicos que una sola clase */
.fe-oferta .fe-oferta__titulo {
	margin: 16px 0 0;
	color: var(--e-global-color-navy);
	font-family: var(--e-global-typography-h4-font-family), sans-serif;
	font-size: var(--e-global-typography-h4-font-size);
	font-weight: var(--e-global-typography-h4-font-weight);
	line-height: var(--e-global-typography-h4-line-height);
}
/* Chincheta del Figma como máscara: no depende de que la página cargue Font Awesome */
.fe-oferta__lugar {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--e-global-color-grismedio);
	font-family: var(--e-global-typography-textos-font-family), sans-serif;
	font-size: var(--e-global-typography-textos-font-size);
	line-height: var(--e-global-typography-textos-line-height);
}
.fe-oferta__lugar::before {
	content: "";
	flex: none;
	width: 12px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M172 501C27 291 0 269 0 192 0 86 86 0 192 0s192 86 192 192c0 77-27 99-172 309a24 24 0 0 1-40 0zm20-229a80 80 0 1 0 0-160 80 80 0 0 0 0 160z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M172 501C27 291 0 269 0 192 0 86 86 0 192 0s192 86 192 192c0 77-27 99-172 309a24 24 0 0 1-40 0zm20-229a80 80 0 1 0 0-160 80 80 0 0 0 0 160z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fe-oferta .fe-oferta__boton {
	align-self: stretch;
	margin-top: auto;
	padding: 14px 24px;
	border-radius: 100px;
	background: var(--e-global-color-primary);
	color: var(--e-global-color-blanco);
	text-align: center;
	font-family: var(--e-global-typography-boton-font-family), sans-serif;
	font-size: var(--e-global-typography-boton-font-size);
	font-weight: var(--e-global-typography-boton-font-weight);
	line-height: var(--e-global-typography-boton-line-height);
	transition: background-color .2s;
}
/* estados del sistema de botones del Figma (rojo: hover #DA6673, pulsado #CD3345) */
.fe-oferta .fe-oferta__boton:hover,
.fe-oferta .fe-oferta__boton:focus {
	color: var(--e-global-color-blanco);
	background: var(--e-global-color-rojohover);
}
.fe-oferta .fe-oferta__boton:active { background: var(--e-global-color-rojopress); }

.fe-ofertas__vacio {
	margin: 24px 0 0;
	text-align: center;
	color: var(--e-global-color-16b65a0);
	font-family: var(--e-global-typography-texto-font-family), sans-serif;
	font-size: var(--e-global-typography-texto-font-size);
}

@media (max-width: 1024px) {
	.fe-ofertas-wrap { --fe-cols: 2; --fe-gap: 24px; }
	.fe-ofertas__filtros { grid-template-columns: minmax(0, 1fr) 220px; margin-bottom: 40px; }
}
@media (max-width: 767px) {
	/* móvil: sin flechas, se desliza con el dedo y asoma la siguiente tarjeta */
	.fe-ofertas-wrap .fe-carrusel { grid-template-columns: minmax(0, 1fr); }
	.fe-ofertas-wrap .fe-carrusel__flecha { display: none; }
	.fe-ofertas-wrap { --fe-cols: 1.15; --fe-gap: 16px; }
	.fe-oferta { min-height: 0; padding: 24px; }
	.fe-oferta:hover { transform: none; box-shadow: none; }
	.fe-oferta .fe-oferta__boton { margin-top: 24px; padding: 12px 28px; }
	.fe-ofertas__filtros { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 32px; margin-bottom: 32px; }
	.fe-ofertas-wrap .fe-ofertas__buscar,
	.fe-ofertas-wrap .fe-select .fe-select__btn { height: 48px; }
	.fe-ofertas-wrap .fe-select .fe-select__btn { padding: 0 20px; }
	.fe-ofertas-wrap .fe-carrusel__puntos { margin-top: 32px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.fe-ofertas { scroll-behavior: auto; }
	.fe-ofertas-wrap *, .fe-ofertas-wrap *::before { transition-duration: .01ms !important; transition-delay: 0s !important; }
}
