/* i am Eiva — Service Card */

.eiva-service {
	--eiva-svc-radius: 16px;
	--eiva-svc-zoom: 1.08;

	display: block;
	position: relative;
	width: 100%;
	text-decoration: none;
	color: inherit;
	border-radius: var(--eiva-svc-radius);
	overflow: hidden;
	background: transparent;
	box-shadow: 0 10px 30px rgba(20, 29, 60, 0.08);
	transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.eiva-service.is-linked {
	cursor: pointer;
}

.eiva-service.is-linked:hover {
	box-shadow: 0 16px 40px rgba(20, 29, 60, 0.14);
	transform: translateY(-2px);
}

/* Imagen */
.eiva-service__media {
	position: relative;
	height: 260px;
	overflow: hidden;
	border-radius: var(--eiva-svc-radius) var(--eiva-svc-radius) 0 0;
}

.eiva-service__image {
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.eiva-service__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1);
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.eiva-service:hover .eiva-service__image img,
.eiva-service.is-linked:focus-within .eiva-service__image img {
	transform: scale(var(--eiva-svc-zoom));
}

/* Capa color hover */
.eiva-service__overlay {
	position: absolute;
	inset: 0;
	background-color: #4db6a5;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s ease;
	z-index: 1;
}

.eiva-service:hover .eiva-service__overlay,
.eiva-service.is-linked:focus-within .eiva-service__overlay {
	opacity: 0.78;
}

/* Icono + */
.eiva-service__plus {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	width: 48px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #fff;
	border-radius: 50%;
	color: #fff;
	font-size: 28px;
	font-weight: 300;
	line-height: 1;
	transform: translate(-50%, -50%) scale(0.7);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.eiva-service__plus svg {
	display: block;
}

.eiva-service:hover .eiva-service__plus,
.eiva-service.is-linked:focus-within .eiva-service__plus {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

/* Caja blanca contenido */
.eiva-service__body {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin: -36px 16px 16px;
	padding: 28px;
	background: #fff;
	border-radius: var(--eiva-svc-radius);
	box-shadow: 0 8px 24px rgba(20, 29, 60, 0.08);
	min-height: 120px;
	box-sizing: border-box;
}

.eiva-service__content {
	flex: 1 1 auto;
	min-width: 0;
	padding-right: 8px;
}

.eiva-service__title {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	color: #1a2332;
	letter-spacing: -0.01em;
}

.eiva-service__category {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: #141d3c;
	line-height: 1.3;
	background: transparent;
	padding: 0;
}

.eiva-service__category.is-upper {
	text-transform: uppercase;
}

/* Botón flecha */
.eiva-service__arrow {
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background-color: #4db6a5;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.eiva-service__arrow svg {
	display: block;
}

.eiva-service:hover .eiva-service__arrow {
	transform: translateX(2px);
}

/* Informativa (sin link): hover de imagen igual */
.eiva-service:not(.is-linked):hover {
	box-shadow: 0 10px 30px rgba(20, 29, 60, 0.08);
	transform: none;
}

@media (max-width: 575px) {
	.eiva-service__body {
		margin: -28px 12px 12px;
		padding: 22px;
	}

	.eiva-service__title {
		font-size: 18px;
	}
}
