/* =============================================================================
   Widget: Profic Servicios IA
   Figma Prueba-WPFIG — Desktop 2199:4118 / Tablet 2199:4670 / Mobile 2199:5108

   Desktop 1280: pad 120 0 240 · gap 80 · cards 502×200 en wrap (2 + 1 centrada) gap 30
   Tablet   800: pad 120 0 120 · cards 502 en columna
   Mobile   375: pad 120 10 240 · cards 355 en columna
   Hover (Smart Animate 0.65s Ease In And Out): ícono y título → descripción,
   borde #b71694 y sombra magenta, "+" → "×".
   ============================================================================= */

.elementor-widget-profic_servicios_ia > .elementor-widget-container {
	margin: 0;
	padding: 0;
}

.profic-sia {
	position: relative;
	width: 100%;
	padding: 120px 10px 240px;
	box-sizing: border-box;
	overflow-x: clip;
	overflow-y: visible;
	color: #090511;
	font-family: "Amsi Pro", sans-serif;
}

@media (min-width: 800px) {
	.profic-sia {
		padding: 120px 0;
	}
}

@media (min-width: 1280px) {
	.profic-sia {
		padding: 120px 0 240px;
	}
}

.profic-sia.profic-sia--contained {
	overflow: hidden;
}

/* ---------- Fondo ---------- */

.profic-sia .profic-sia__arco,
.profic-sia .profic-sia__decor img {
	position: absolute;
	max-width: none;
	height: auto;
	pointer-events: none;
}

/* Ellipse 20: arco de 1754×278 centrado, 122px sobre la sección */
.profic-sia__arco {
	display: none;
	z-index: 0;
	left: calc(50% - 877px);
	top: -123.5px;
	width: 1754px;
}

@media (min-width: 800px) {
	.profic-sia__arco {
		display: block;
	}
}

@media (min-width: 1280px) {
	.profic-sia__arco {
		top: -122px;
	}
}

.profic-sia__decor {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.profic-sia__star {
	display: none;
	width: 970px;
}

/* Star 3 / Star 4 relativas al bloque de cards (en Figma quedan fuera de cuadro en tablet y mobile) */
@media (min-width: 1280px) {
	.profic-sia__star {
		display: block;
	}

	.profic-sia__star--right {
		left: calc(50% + 240px);
		top: -279px;
	}

	.profic-sia__star--left {
		left: calc(50% - 1221px);
		top: -292px;
	}
}

/* Mobile: arco 654×327 que arranca en el borde superior de las cards */
.profic-sia__decor .profic-sia__arco-mobile {
	left: calc(50% - 327px);
	top: 0;
	width: 654px;
}

@media (min-width: 800px) {
	.profic-sia__decor .profic-sia__arco-mobile {
		display: none;
	}
}

/* ---------- Encabezado ---------- */

.profic-sia__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 80px;
}

.profic-sia__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 50px;
	width: 100%;
	padding: 29px 24px;
	box-sizing: border-box;
	text-align: center;
}

@media (min-width: 800px) {
	.profic-sia__header {
		padding: 0 24px;
	}
}

.profic-sia .profic-sia__title {
	margin: 0;
	color: inherit;
	font-family: inherit;
	font-size: 34px;
	font-weight: 300;
	line-height: 1.2;
	letter-spacing: 0;
}

@media (min-width: 800px) {
	.profic-sia .profic-sia__title {
		font-size: 36px;
	}
}

@media (min-width: 1280px) {
	.profic-sia .profic-sia__title {
		font-size: 45px;
	}
}

.profic-sia .profic-sia__subtitle {
	max-width: 628px;
	margin: 0;
	color: inherit;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.5;
	letter-spacing: 0.01em;
}

@media (min-width: 800px) {
	.profic-sia .profic-sia__subtitle {
		font-size: 15px;
		line-height: 23px;
	}
}

@media (min-width: 1280px) {
	.profic-sia .profic-sia__subtitle {
		font-size: 17px;
		line-height: 26px;
	}
}

/* ---------- Cards ---------- */

.profic-sia__cards {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px;
	width: 100%;
}

.profic-sia__card {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 38px;
	column-gap: 30px;
	width: 502px;
	max-width: 100%;
	min-height: 200px;
	padding: 29px;
	box-sizing: border-box;
	overflow: hidden;
	border: 1px solid transparent;
	border-radius: 21px;
	background: #fff;
	box-shadow: 0 4px 7px rgba(0, 72, 166, 0.1);
	outline: none;
	transition:
		border-color 0.65s ease-in-out,
		box-shadow 0.65s ease-in-out;
}

@media (max-width: 1279px) {
	.profic-sia__card {
		order: var(--profic-sia-order, 0);
	}
}

.profic-sia__front,
.profic-sia__back {
	grid-row: 1;
	grid-column: 1;
	transition: opacity 0.65s ease-in-out;
}

.profic-sia__front {
	display: flex;
	flex-direction: column;
	align-self: start;
}

.profic-sia__back {
	align-self: center;
	opacity: 0;
}

.profic-sia__icon {
	display: flex;
	align-items: flex-start;
	height: 90px;
}

.profic-sia__icon img {
	display: block;
	max-width: 90px;
	max-height: 90px;
	width: auto;
	height: auto;
}

/* El export de Figma suma 1px de trazo por lado en estos dos */
.profic-sia__card--check .profic-sia__icon img,
.profic-sia__card--route .profic-sia__icon img {
	margin: -1px 0 0 -1px;
}

.profic-sia .profic-sia__card-title {
	margin: 0;
	padding: 12px 0;
	color: inherit;
	font-family: inherit;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
}

.profic-sia .profic-sia__card-text {
	margin: 0;
	color: inherit;
	font-family: inherit;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0;
}

.profic-sia__plus {
	grid-row: 1;
	grid-column: 2;
	align-self: end;
	display: block;
	width: 38px;
	height: 38px;
	line-height: 0;
	transition: transform 0.65s ease-in-out;
}

.profic-sia__plus svg {
	display: block;
}

/* Estado activo: hover con mouse, teclado (focus-visible) o tap en touch (focus) */
.profic-sia__card:focus-visible {
	border-color: #b71694;
	box-shadow: 0 4px 14px rgba(183, 22, 148, 0.3);
}

.profic-sia__card:focus-visible .profic-sia__front {
	opacity: 0;
}

.profic-sia__card:focus-visible .profic-sia__back {
	opacity: 1;
}

.profic-sia__card:focus-visible .profic-sia__plus {
	transform: rotate(45deg);
}

@media (hover: hover) {
	.profic-sia__card:hover {
		border-color: #b71694;
		box-shadow: 0 4px 14px rgba(183, 22, 148, 0.3);
	}

	.profic-sia__card:hover .profic-sia__front {
		opacity: 0;
	}

	.profic-sia__card:hover .profic-sia__back {
		opacity: 1;
	}

	.profic-sia__card:hover .profic-sia__plus {
		transform: rotate(45deg);
	}
}

@media (hover: none) {
	.profic-sia__card:focus {
		border-color: #b71694;
		box-shadow: 0 4px 14px rgba(183, 22, 148, 0.3);
	}

	.profic-sia__card:focus .profic-sia__front {
		opacity: 0;
	}

	.profic-sia__card:focus .profic-sia__back {
		opacity: 1;
	}

	.profic-sia__card:focus .profic-sia__plus {
		transform: rotate(45deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.profic-sia__card,
	.profic-sia__front,
	.profic-sia__back,
	.profic-sia__plus {
		transition: none;
	}
}
