/**
 * Hexfy Servicios — Qué hacemos.
 */

.hexfy-services {
	--hexfy-services-accent: var(--hexfy-blue, #2440d9);
	--hexfy-services-deep: var(--hexfy-deep, #0b1f3f);
	--hexfy-services-muted: var(--hexfy-muted, #5a6478);
	--hexfy-services-bg: #f4f6fa;
	--hexfy-services-surface: #e2e7ff;
	--hexfy-services-max: 1280px;
	position: relative;
	padding: 5.5rem 1.25rem;
	background: var(--hexfy-services-bg);
	color: var(--hexfy-services-deep);
	font-family: "Hanken Grotesk", "Manrope", system-ui, sans-serif;
}

@media (min-width: 992px) {
	.hexfy-services {
		padding: 8rem 4rem;
	}
}

.hexfy-services__inner {
	max-width: var(--hexfy-services-max);
	margin: 0 auto;
}

.hexfy-services__header {
	max-width: 40rem;
	margin-bottom: 3.5rem;
}

@media (min-width: 992px) {
	.hexfy-services__header {
		margin-bottom: 5rem;
	}
}

.hexfy-services__kicker {
	display: block;
	margin-bottom: 1rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--hexfy-services-accent);
	line-height: 1;
}

.hexfy-services__title {
	margin: 0;
	font-size: clamp(2.5rem, 5vw, 3.75rem);
	font-weight: 300;
	font-style: italic;
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: var(--hexfy-services-deep);
}

.hexfy-services__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.hexfy-services__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.75rem;
	}
}

.hexfy-services__card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 2.25rem 2rem;
	border-radius: 1.5rem;
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 1px 3px rgba(11, 31, 63, 0.04);
	transition:
		transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
		box-shadow 0.45s ease;
}

.hexfy-services__card::before {
	content: "";
	position: absolute;
	inset: 0;
	padding: 1px;
	border-radius: inherit;
	background: linear-gradient(
		to bottom right,
		color-mix(in srgb, var(--hexfy-services-accent) 22%, transparent),
		transparent 45%,
		color-mix(in srgb, var(--hexfy-services-accent) 12%, transparent)
	);
	-webkit-mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

.hexfy-services__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 18px 40px rgba(11, 31, 63, 0.1);
}

.hexfy-services__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	margin-bottom: 1.75rem;
	border-radius: 1rem;
	background: var(--hexfy-services-surface);
	color: var(--hexfy-services-deep);
	transition:
		background 0.3s ease,
		color 0.3s ease;
}

.hexfy-services__card:hover .hexfy-services__icon {
	background: var(--hexfy-services-accent);
	color: #fff;
}

.hexfy-services__icon svg {
	display: block;
}

.hexfy-services__card-title {
	margin: 0 0 1.15rem;
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: var(--hexfy-services-deep);
}

.hexfy-services__card-desc {
	margin: 0;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.6;
	color: var(--hexfy-services-muted);
}

@media (prefers-reduced-motion: reduce) {
	.hexfy-services__card {
		transition: none;
	}

	.hexfy-services__card:hover {
		transform: none;
	}
}
