/**
 * Hexfy Especialidades - Widget Elementor
 * Grid de tarjetas (servicio + CTA), título con subrayado azul, fade-in
 */

.hexfy-spec {
	--hexfy-spec-bg: #0f172a;
	--hexfy-spec-bg-gradient: linear-gradient(180deg, #0f172a 0%, #020617 100%);
	--hexfy-spec-accent: #3b82f6;
	--hexfy-spec-text: #fff;
	--hexfy-spec-text-muted: #94a3b8;
	--hexfy-spec-card-bg: rgba(30, 41, 59, 0.6);
	--hexfy-spec-border: rgba(248, 250, 252, 0.12);
	--hexfy-spec-radius: 12px; 
}

.hexfy-spec {
	background: var(--hexfy-spec-bg); 
	background: var(--hexfy-spec-bg-gradient);
	color: var(--hexfy-spec-text);
	padding: 4rem 1.5rem;
}

.hexfy-spec__inner {
	max-width: 1200px;
	margin: 0 auto;
}

/* Título de sección con subrayado azul */
.hexfy-spec__heading {
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 700;
	margin: 0 0 2.5rem;
	letter-spacing: -0.02em;
}

.hexfy-spec__heading-text {
	display: block;
}

.hexfy-spec__title-underline {
	display: block;
	width: 60px;
	height: 4px;
	margin-top: 0.5rem;
	border-radius: 2px;
	background-color: var(--hexfy-spec-accent);
}

/* Grid de tarjetas */
.hexfy-spec__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

@media (min-width: 640px) {
	.hexfy-spec__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

/* Tarjeta base */
.hexfy-spec__card {
	background: var(--hexfy-spec-card-bg);
	border: 1px solid var(--hexfy-spec-border);
	border-radius: var(--hexfy-spec-radius);
	padding: 1.5rem;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.hexfy-spec__card:hover {
	border-color: rgba(248, 250, 252, 0.2);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Tarjeta tipo servicio */
.hexfy-spec__card--service .hexfy-spec__icon-wrap {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background-color: var(--hexfy-spec-accent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1rem;
}

.hexfy-spec__card--service .hexfy-spec__icon-wrap i,
.hexfy-spec__card--service .hexfy-spec__icon-wrap svg {
	color: #fff;
	font-size: 1.25rem;
	width: 1.25rem;
	height: 1.25rem;
}

.hexfy-spec__card-title {
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
	line-height: 1.3;
}

.hexfy-spec__card-desc {
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--hexfy-spec-text-muted);
	margin: 0;
}

/* Tarjeta tipo CTA */
.hexfy-spec__card--cta {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.hexfy-spec__cta-headline {
	font-size: 1.125rem;
	font-weight: 700;
	color: #7dd3fc;
	margin: 0 0 0.5rem;
	line-height: 1.3;
}

.hexfy-spec__cta-desc {
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--hexfy-spec-text-muted);
	margin: 0 0 1rem;
}

.hexfy-spec__cta-link {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--hexfy-spec-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: opacity 0.2s;
}

.hexfy-spec__cta-link:hover {
	opacity: 0.9;
}

/* Fade-in */
.hexfy-spec--fade-in .hexfy-spec__animate {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.hexfy-spec--fade-in.hexfy-spec--visible .hexfy-spec__animate {
	opacity: 1;
	transform: translateY(0);
}

.hexfy-spec--fade-in.hexfy-spec--visible .hexfy-spec__card:nth-child(1) { transition-delay: 0.05s; }
.hexfy-spec--fade-in.hexfy-spec--visible .hexfy-spec__card:nth-child(2) { transition-delay: 0.1s; }
.hexfy-spec--fade-in.hexfy-spec--visible .hexfy-spec__card:nth-child(3) { transition-delay: 0.15s; }
.hexfy-spec--fade-in.hexfy-spec--visible .hexfy-spec__card:nth-child(4) { transition-delay: 0.2s; }
.hexfy-spec--fade-in.hexfy-spec--visible .hexfy-spec__card:nth-child(5) { transition-delay: 0.25s; }
.hexfy-spec--fade-in.hexfy-spec--visible .hexfy-spec__card:nth-child(6) { transition-delay: 0.3s; }
.hexfy-spec--fade-in.hexfy-spec--visible .hexfy-spec__card:nth-child(n+7) { transition-delay: 0.35s; }
