/* Vidas – Flujo de agentes
 * Escritorio (captura ×1.97 = frame 1512 / contenido 1392; 1cqw = 13.92px):
 *   etiqueta común; a 79px, dos columnas: introducción Light 31/44 (máx. 630) arriba a la izquierda y, abajo,
 *   las píldoras de servicios alineadas a la derecha (borde derecho a 635px de la columna, alto 65, texto SemiBold 22,
 *   16px entre ellas), con su borde inferior a la altura de la última etapa.
 *   Etapas a la derecha (desde 900px): 442×148, texto SemiBold ~50 a 67px del borde, 81px entre ellas, unidas por el centro.
 * Móvil (captura, contenido 353): introducción 20/25; Pre-Consulta a 92px; servicios a 29px (desde 124px, alto 60,
 *   texto 15/17.5, 11px entre ellas); Consulta a 51px; Post-Consulta a 34px. Etapas 182×61, texto ~20.6; línea a 40px.
 * Las líneas (unión de etapas y conector) y el brillo los coloca el JS. Sin fondo ni espacio vertical propios.
 */

.vfa {
	--vfa-label: #000;
	--vfa-intro: #000;
	--vfa-stage-text: #000;
	--vfa-stage-bg: transparent;
	--vfa-stage-border: #000;
	--vfa-glow: #aaedff;
	--vfa-glow-opacity: 1;
	--vfa-svc-text: #000;
	--vfa-svc-bg: transparent;
	--vfa-svc-border: #000;
	--vfa-svc-text-on: #fff;
	--vfa-svc-bg-on: #4e20e4;
	--vfa-svc-border-on: #4e20e4;
	--vfa-line: #000;
	--vfa-line-w: 1;
	--vfa-max: 1392px;
	--vfa-pad: 60px;

	width: 100%;
	padding: 0 var(--vfa-pad);
	box-sizing: border-box;
	font-family: "Soleil", sans-serif;
}

.vfa__inner {
	max-width: var(--vfa-max);
	margin: 0 auto;
	container-type: inline-size;
}

/* ---------- Etiqueta (igual que Partner) ---------- */
.vfa__label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-weight: 400;
	font-size: 16px;
	line-height: 26px;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--vfa-label);
}

.vfa__asterisk {
	display: block;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
}

/* ---------- Rejilla (escritorio) ---------- */
.vfa__grid {
	position: relative;
	display: grid;
	grid-template-columns: 45.62% 19.04% 31.75%;   /* etapas desde 900px; quedan 50px a la derecha, como en el diseño */
	grid-template-rows: repeat(var(--vfa-n, 3), auto);   /* una fila por etapa */
	row-gap: 5.82cqw;                     /* 81 entre etapas */
	margin-top: var(--vfa-gap-head, 79px);
}

.vfa__label + .vfa__grid { margin-top: var(--vfa-gap-head, 79px); }
.vfa__inner > .vfa__grid:first-child { margin-top: 0; }

.vfa__lines {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
}

.vfa__lines path {
	fill: none;
	stroke: var(--vfa-line);
	stroke-width: var(--vfa-line-w);
	vector-effect: non-scaling-stroke;
}

.vfa__glow {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 0;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: radial-gradient(closest-side, var(--vfa-glow) 0%, var(--vfa-glow) 38%, transparent 100%);
	filter: blur(18px);
	opacity: var(--vfa-glow-opacity);
	pointer-events: none;
	will-change: transform, width, height;
}

.vfa__intro {
	position: relative;
	z-index: 2;
	grid-column: 1;
	grid-row: 1 / span 2;
	align-self: start;
	max-width: 630px;
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-weight: 300;
	font-size: 31px;
	line-height: 44px;
	letter-spacing: -0.01em;
	color: var(--vfa-intro);
}

/* ---------- Etapas ---------- */
.vfa__stage {
	position: relative;
	z-index: 2;
	grid-column: 3;
	display: flex;
	align-items: center;
	height: 10.63cqw;                     /* 148 */
	padding: 0 2cqw 0 4.81cqw;            /* texto a 67px */
	border: 1px solid var(--vfa-stage-border);
	border-radius: 999px;
	background: var(--vfa-stage-bg);
	box-sizing: border-box;
	transition: border-color 0.4s ease, color 0.4s ease;
}

.vfa__stage-text {
	font-family: inherit;
	font-weight: 600;
	font-size: 3.59cqw;                   /* ~50 */
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--vfa-stage-text);
	transition: color 0.4s ease;
}

.vfa__stage.is-active {
	border-color: var(--vfa-stage-border-on, var(--vfa-stage-border));
}

.vfa__stage.is-active .vfa__stage-text {
	color: var(--vfa-stage-text-on, var(--vfa-stage-text));
}

/* ---------- Servicios ---------- */
.vfa__services {
	position: relative;
	z-index: 2;
	grid-column: 1;
	grid-row: 2 / -1;
	align-self: end;
	justify-self: stretch;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 1.15cqw;                         /* 16 */
	width: 45.62cqw;                      /* borde derecho a 635px */
	max-width: 100%;
}

/* Se anulan los estilos de <button> del tema (Hello pinta hover/foco en rosa) */
.vfa .vfa__svc,
.vfa .vfa__svc:hover,
.vfa .vfa__svc:focus,
.vfa .vfa__svc:active {
	background-color: var(--vfa-svc-bg);
	color: var(--vfa-svc-text);
	border-color: var(--vfa-svc-border);
	text-decoration: none;
	outline: none;
	box-shadow: none;
}

.vfa .vfa__svc {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 4.67cqw;                  /* 65 */
	margin: 0;
	padding: 0 2.73cqw;                   /* 38 */
	border-style: solid;
	border-width: 1px;
	border-radius: 999px;
	font-family: inherit;
	font-weight: 600;
	font-size: 1.58cqw;                   /* 22 */
	line-height: 1.2;
	letter-spacing: -0.01em;
	text-align: center;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

@media (hover: hover) {
	.vfa .vfa__svc:not(.is-active):hover {
		background-color: var(--vfa-svc-bg-h, var(--vfa-svc-bg));
		color: var(--vfa-svc-text-h, var(--vfa-svc-text));
		border-color: var(--vfa-svc-border-h, var(--vfa-svc-border));
	}
}

.vfa .vfa__svc.is-active,
.vfa .vfa__svc.is-active:hover,
.vfa .vfa__svc.is-active:focus,
.vfa .vfa__svc.is-active:active {
	background-color: var(--vfa-svc-bg-on);
	color: var(--vfa-svc-text-on);
	border-color: var(--vfa-svc-border-on);
}

.vfa .vfa__svc:focus-visible {
	outline: 2px solid var(--vfa-svc-bg-on);
	outline-offset: 3px;
}

.vfa__br {
	display: none;                        /* el corte de línea de las píldoras solo actúa en móvil */
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.vfa__intro {
		font-size: 24px;
		line-height: 33px;
	}
}

/* ---------- Móvil: una columna (intro · Pre-Consulta · servicios · resto de etapas) ---------- */
@media (max-width: 767px) {
	.vfa {
		--vfa-pad: 20px;
	}

	.vfa__label {
		gap: 8px;
		font-size: 11px;
		line-height: 18px;
	}

	.vfa__asterisk {
		width: 14px;
		height: 14px;
	}

	.vfa__grid,
	.vfa__label + .vfa__grid {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		row-gap: 0;
		margin-top: var(--vfa-gap-head, 37px);
	}

	.vfa__intro {
		order: 0;
		max-width: none;
		font-size: 20px;
		line-height: 25px;
	}

	.vfa__stage {
		order: var(--vfa-order, 3);
		width: 182px;
		height: 61px;
		margin-top: 34px;
		padding: 0 14px 0 27px;
	}

	.vfa__stage[data-index="0"] {
		margin-top: 92px;
	}

	.vfa__stage[data-index="1"] {
		margin-top: 51px;
	}

	.vfa__stage-text {
		font-size: 20.6px;
	}

	.vfa__services {
		order: 2;
		align-self: stretch;
		align-items: stretch;
		gap: 11px;
		width: auto;
		margin: 29px 0 0 124px;
	}

	.vfa .vfa__svc {
		justify-content: flex-start;
		min-height: 60px;
		padding: 8px 18px 8px 28px;
		font-size: 15px;
		line-height: 17.5px;
		text-align: left;
		white-space: normal;
	}

	.vfa__br {
		display: inline;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vfa .vfa__svc,
	.vfa__stage,
	.vfa__stage-text {
		transition: none;
	}
}