/* ==========================================================================
   Volvifan · visuales editoriales
   Vistas ilustrativas del producto, diagramas, índice y portadas del blog.
   Solo se carga donde se usa alguno de los bloques de inc/visuals.php.
   Mobile-first; los componentes se adaptan al ancho de su figura con
   container queries, no al de la ventana.
   ========================================================================== */

.vfx,
.vfx-cover,
.vfx-toc {
	--vx-ink: #1B1F26;
	--vx-ink2: #36324A;
	--vx-purple: #5B348A;
	--vx-card: #4A2A71;
	--vx-p50: #F4EFFA;
	--vx-p100: #E7DDF3;
	--vx-p200: #CDBBE6;
	--vx-p300: #AE93D4;
	--vx-coral: #D8203D;
	--vx-coral-bright: #FF2F4B;
	--vx-coral-soft: #FDECEF;
	--vx-n50: #F3F1F6;
	--vx-n100: #F9F8FA;
	--vx-n200: #E6E3EB;
	--vx-n500: #6A6979;
	--vx-n600: #5D6070;
	--vx-shadow: 0 16px 36px rgba(54, 50, 74, .09);
	--vx-font: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ── Figura ─────────────────────────────────────────────────────────── */
.vfx {
	container-type: inline-size;
	margin-block: clamp(2rem, 5vw, 3rem);
	font-family: var(--vx-font);
	color: var(--vx-ink);
	line-height: 1.35;
}

.vfx-stage {
	padding: clamp(18px, 4.5cqi, 40px);
	background: linear-gradient(150deg, #FFFFFF 10%, #FAF8FC 100%);
	border-radius: 24px;
	box-shadow: inset 0 0 0 1px rgba(91, 52, 138, .08);
	overflow: hidden;
}

.vfx-caption {
	margin-top: .75rem;
	font-size: .8125rem;
	line-height: 1.4;
	text-align: center;
	color: var(--vx-n500);
}

.vfx :where(p, ol, ul, dl, dd, fieldset, legend, figure) { margin: 0; }
.vfx :where(ol, ul) { padding: 0; list-style: none; }
.vfx b { font-weight: 700; }
.vfx small { font-size: inherit; }
.vfx-num { font-variant-numeric: tabular-nums; }

/* Las rejillas de una columna no deben crecer con textos sin corte. */
:where(.vfx-flow, .vfx-compare, .vfx-compare__col, .vfx-triad, .vfx-screens, .vfx-pair, .vfx-pair__item, .vfx-annotated, .vfx-versus, .vfx-equation, .vfx-formula, .vfx-formula__row, .vfx-picker__panel, .vfx-matrix, .vfx-dash, .vfx-dash__grid, .vfx-dash__card, .vfx-config, .vfx-form, .vfx-window__body, .vfx-ledger, .vfx-facts, .vfx-funnel, .vfx-branches, .vfx-results, .vfx-moves, .vfx-legend, .vfx-checks) { grid-template-columns: minmax(0, 1fr); }

/* Neutraliza la tipografía de lectura del contenido dentro de los visuales. */
.vf-editorial-content :is(.vfx, .vfx-toc) :is(ul, ol),
.vf-article-shell .wp-block-post-content :is(.vfx, .vfx-toc) :is(ul, ol) { padding-left: 0; }
.vf-editorial-content :is(.vfx, .vfx-toc) li + li,
.vf-article-shell .wp-block-post-content :is(.vfx, .vfx-toc) li + li { margin-top: 0; }
.vf-article-shell .wp-block-post-content .vfx figcaption.vfx-caption { margin-top: .75rem; font-size: .8125rem; text-align: center; color: var(--vx-n500); }
.vfx .vfx-ico { display: block; width: 1.15em; height: 1.15em; flex: none; }

/* Visual ancho: sale de la columna de lectura (760 px) hasta el ancho amplio del sitio. */
@media (min-width: 1000px) {
	.vf-editorial-content > .vfx.alignwide,
	.vf-article-shell .wp-block-post-content > .vfx.alignwide {
		width: min(1180px, calc(100vw - 96px));
		max-width: none;
		margin-left: 50% !important;
		margin-right: 0 !important;
		transform: translateX(-50%);
	}
}

/* ── Teléfono ───────────────────────────────────────────────────────── */
.vfx-phone {
	display: block;
	width: 100%;
	max-width: 272px;
	margin-inline: auto;
	padding: 9px;
	background: var(--vx-ink2);
	border-radius: 40px;
	box-shadow: 0 24px 50px rgba(54, 50, 74, .2), 0 3px 10px rgba(54, 50, 74, .12);
}

.vfx-phone__screen {
	display: block;
	padding: 10px 14px 16px;
	background: #FFFFFF;
	border-radius: 32px;
	overflow: hidden;
}

.vfx-phone__status {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 6px 8px;
	font-size: 11px;
	font-weight: 700;
	color: var(--vx-ink);
}

.vfx-phone__notch {
	display: block;
	width: 64px;
	height: 18px;
	background: var(--vx-ink2);
	border-radius: 12px;
}

.vfx-phone__dots { display: flex; gap: 3px; }
.vfx-phone__dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--vx-ink); }

.vfx-phone__brand {
	display: block;
	margin: 2px 2px 0;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: -.01em;
	color: var(--vx-purple);
}

.vfx-phone__hello {
	display: block;
	margin: 1px 2px 10px;
	font-size: 14px;
	font-weight: 700;
	color: var(--vx-ink);
}

.vfx-phone--compact { max-width: 244px; }
.vfx-phone--mini { max-width: 150px; padding: 6px; border-radius: 26px; }
.vfx-phone--mini .vfx-phone__screen { padding: 8px 9px 12px; border-radius: 21px; }
.vfx-phone--mini .vfx-phone__hello { display: none; }
.vfx-phone--mini .vfx-phone__brand { font-size: 12px; margin-bottom: 8px; }
.vfx-phone--mini .vfx-phone__notch { width: 40px; height: 12px; }

/* ── Tarjetas de sellos y puntos ────────────────────────────────────── */
.vfx-stampcard,
.vfx-pointscard {
	display: block;
	padding: 14px;
	color: #FFFFFF;
	background: var(--vx-card);
	border-radius: 16px;
	box-shadow: 0 10px 22px rgba(74, 42, 113, .22);
	text-align: left;
}

.vfx-stampcard__kicker { display: block; font-size: 11px; color: rgba(255, 255, 255, .74); }

.vfx-stampcard__title {
	display: block;
	margin: 4px 0 11px;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.2;
	text-wrap: balance;
}

.vfx-stamps {
	display: grid;
	grid-template-columns: repeat(var(--vfx-cols, 5), minmax(0, 36px));
	gap: 8px 10px;
}

.vfx-stamp {
	display: grid;
	place-items: center;
	width: 100%;
	max-width: 36px;
	aspect-ratio: 1;
	justify-self: center;
	color: var(--vx-card);
	background: rgba(255, 255, 255, .12);
	border: 1.5px solid rgba(255, 255, 255, .24);
	border-radius: 50%;
}

.vfx-stamp .vfx-ico { width: 54%; height: 54%; }
.vfx-stamp.is-on { background: #FFFFFF; border-color: transparent; }
.vfx-stamp--prize { color: var(--vx-coral); background: #FFFFFF; border-color: transparent; box-shadow: 0 0 0 2px rgba(255, 47, 75, .55); }

.vfx-stampcard__counter { display: block; margin-top: 10px; font-size: 12px; color: rgba(255, 255, 255, .82); }

.vfx-pointscard__value { display: block; margin-top: 4px; font-size: 28px; font-weight: 800; line-height: 1.1; }
.vfx-pointscard__value small { font-size: 14px; font-weight: 700; opacity: .8; }

.vfx-meter {
	position: relative;
	display: block;
	height: 8px;
	margin: 12px 0 6px;
	overflow: hidden;
	background: rgba(255, 255, 255, .2);
	border-radius: 99px;
}

.vfx-meter__fill { display: block; height: 100%; background: #FFFFFF; border-radius: inherit; }

.vfx-pointscard__scale {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	color: rgba(255, 255, 255, .72);
}

/* ── Filas, listas de movimientos ───────────────────────────────────── */
.vfx-rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 10px; }

.vfx-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 12px;
	font-size: 12px;
	background: #FFFFFF;
	border: 1px solid var(--vx-n200);
	border-radius: 12px;
}

.vfx-row__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--vx-n600); }
.vfx-row__value { flex: none; font-weight: 700; color: var(--vx-ink); }
.vfx-row__value.is-accent { color: var(--vx-coral); }
.vfx-row__value.is-muted { color: var(--vx-n500); font-weight: 600; }

.vfx-moves {
	display: grid;
	gap: 6px;
	padding: 10px 12px;
	font-size: 12px;
	border: 1px solid var(--vx-n200);
	border-radius: 12px;
}

.vfx-moves__title { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--vx-n500); }
.vfx-move { display: flex; justify-content: space-between; gap: 8px; color: var(--vx-n600); }
.vfx-move b { color: var(--vx-purple); }

.vfx-status-line {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 12px;
	font-size: 12px;
	font-weight: 600;
	color: var(--vx-purple);
	background: var(--vx-p50);
	border-radius: 12px;
}

.vfx-status-line i { width: 8px; height: 8px; flex: none; background: var(--vx-purple); border-radius: 50%; }

/* ── Ventana de la herramienta del negocio ──────────────────────────── */
.vfx-window {
	display: block;
	width: 100%;
	overflow: hidden;
	text-align: left;
	background: #FFFFFF;
	border: 1px solid var(--vx-n200);
	border-radius: 16px;
	box-shadow: var(--vx-shadow);
}

.vfx-window__bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	font-size: 12px;
	font-weight: 700;
	background: var(--vx-n100);
	border-bottom: 1px solid var(--vx-n200);
}

.vfx-window__logo {
	display: grid;
	place-items: center;
	flex: none;
	width: 20px;
	height: 20px;
	font-size: 11px;
	font-weight: 800;
	color: #FFFFFF;
	background: var(--vx-purple);
	border-radius: 6px;
}

.vfx-window__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vfx-window__meta { display: flex; gap: 6px; }

.vfx-select {
	display: inline-flex;
	align-items: center;
	padding: 3px 8px;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
	color: var(--vx-n600);
	background: #FFFFFF;
	border: 1px solid var(--vx-n200);
	border-radius: 8px;
}

.vfx-select::after {
	content: "";
	width: 5px;
	height: 5px;
	margin: -3px 0 0 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
}

.vfx-window__body { display: grid; gap: 10px; padding: 14px; }

.vfx-found {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px;
	font-size: 13px;
	background: var(--vx-p50);
	border-radius: 12px;
}

.vfx-found small,
.vfx-result small { display: block; font-size: 11.5px; color: var(--vx-n600); }

.vfx-avatar {
	display: grid;
	place-items: center;
	flex: none;
	width: 32px;
	height: 32px;
	font-size: 11px;
	font-weight: 800;
	color: #FFFFFF;
	background: var(--vx-purple);
	border-radius: 50%;
}

.vfx-avatar--alt { color: var(--vx-purple); background: var(--vx-p100); }

.vfx-field { display: grid; gap: 4px; }
.vfx-field__label { font-size: 11px; font-weight: 700; color: var(--vx-n600); }

.vfx-field__input {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 0 12px;
	font-size: 13px;
	font-weight: 600;
	background: #FFFFFF;
	border: 1px solid var(--vx-n200);
	border-radius: 10px;
}

.vfx-field__input--search { font-weight: 500; color: var(--vx-n500); }
.vfx-field__input.is-typing { color: var(--vx-ink); border-color: var(--vx-purple); box-shadow: 0 0 0 3px var(--vx-p50); }
.vfx-field__input.is-typing span::after { content: ""; display: inline-block; width: 1.5px; height: 14px; margin-left: 1px; vertical-align: -2px; background: var(--vx-purple); }

.vfx-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	font-size: 13px;
	font-weight: 700;
	color: #FFFFFF;
	background: var(--vx-coral);
	border-radius: 10px;
}

.vfx-btn--ghost { color: var(--vx-ink); background: #FFFFFF; border: 1px solid var(--vx-n200); }

.vfx-alt {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--vx-purple);
}

.vfx-scan { display: grid; justify-items: center; gap: 8px; padding-top: 4px; }

.vfx-scan__frame {
	display: grid;
	place-items: center;
	width: 92px;
	aspect-ratio: 1;
	color: var(--vx-ink2);
	background:
		linear-gradient(var(--vx-purple), var(--vx-purple)) top left / 18px 3px no-repeat,
		linear-gradient(var(--vx-purple), var(--vx-purple)) top left / 3px 18px no-repeat,
		linear-gradient(var(--vx-purple), var(--vx-purple)) top right / 18px 3px no-repeat,
		linear-gradient(var(--vx-purple), var(--vx-purple)) top right / 3px 18px no-repeat,
		linear-gradient(var(--vx-purple), var(--vx-purple)) bottom left / 18px 3px no-repeat,
		linear-gradient(var(--vx-purple), var(--vx-purple)) bottom left / 3px 18px no-repeat,
		linear-gradient(var(--vx-purple), var(--vx-purple)) bottom right / 18px 3px no-repeat,
		linear-gradient(var(--vx-purple), var(--vx-purple)) bottom right / 3px 18px no-repeat,
		var(--vx-n100);
	border-radius: 6px;
}

.vfx .vfx-scan__qr { width: 52px; height: 52px; }
.vfx-scan__hint { font-size: 11.5px; color: var(--vx-n600); }

.vfx-divider { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--vx-n500); }
.vfx-divider::before,
.vfx-divider::after { content: ""; flex: 1; height: 1px; background: var(--vx-n200); }

.vfx-success { display: grid; justify-items: center; gap: 4px; padding: 6px 0 2px; font-size: 12px; text-align: center; color: var(--vx-n600); }
.vfx-success b { font-size: 14px; color: var(--vx-ink); }

.vfx-success__mark {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 4px;
	color: #FFFFFF;
	background: var(--vx-purple);
	border-radius: 50%;
	box-shadow: 0 0 0 6px var(--vx-p50);
}

.vfx-success__mark .vfx-ico { width: 22px; height: 22px; }

.vfx-note-line {
	display: block;
	padding: 8px;
	font-size: 12px;
	font-weight: 600;
	text-align: center;
	color: var(--vx-purple);
	background: var(--vx-p50);
	border-radius: 10px;
}

.vfx-results { display: grid; gap: 6px; }

.vfx-result {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	font-size: 13px;
	border: 1px solid var(--vx-n200);
	border-radius: 10px;
}

.vfx-result.is-active { background: var(--vx-p50); border-color: var(--vx-purple); }

.vfx-qrcard {
	display: grid;
	justify-items: center;
	gap: 8px;
	padding: 12px 8px;
	text-align: center;
	background: var(--vx-p50);
	border-radius: 14px;
}

.vfx-qrcard__code { display: block; width: 86%; padding: 6px; color: var(--vx-ink); background: #FFFFFF; border-radius: 8px; }
.vfx-qr { display: block; width: 100%; height: auto; }
.vfx-qrcard__label { font-size: 10px; line-height: 1.3; color: var(--vx-n600); }

.vfx-toast {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	padding: 10px 12px;
	font-size: 11px;
	color: rgba(255, 255, 255, .72);
	background: var(--vx-ink2);
	border-radius: 14px;
}

.vfx-toast b { display: block; font-size: 13px; color: #FFFFFF; }
.vfx-toast small { display: block; }
.vfx-toast__icon { display: grid; place-items: center; flex: none; width: 28px; height: 28px; color: #FFFFFF; background: var(--vx-coral-bright); border-radius: 50%; }
.vfx-toast__icon .vfx-ico { width: 15px; height: 15px; }

/* ── Chips y píldoras ───────────────────────────────────────────────── */
.vfx-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	width: fit-content;
	padding: 5px 10px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	border-radius: 10px;
}

.vfx-pill .vfx-ico { width: 13px; height: 13px; }
.vfx-pill--brand { color: #FFFFFF; background: var(--vx-purple); }
.vfx-pill--accent { color: var(--vx-coral); background: var(--vx-coral-soft); }

.vfx-tag {
	display: inline-block;
	padding: 3px 8px;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #FFFFFF;
	background: var(--vx-purple);
	border-radius: 6px;
}

.vfx-tag--alt { background: var(--vx-coral); }

.vfx-float {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 46%;
	padding: 9px 13px 9px 9px;
	font-size: 11px;
	color: var(--vx-n600);
	background: #FFFFFF;
	border: 1px solid rgba(230, 227, 235, .9);
	border-radius: 14px;
	box-shadow: 0 14px 30px rgba(54, 50, 74, .14);
}

.vfx-float small { display: block; }
.vfx-float b { display: block; font-size: 14px; font-weight: 800; color: var(--vx-ink); }
.vfx-float__icon { display: grid; place-items: center; flex: none; width: 28px; height: 28px; color: #FFFFFF; background: var(--vx-purple); border-radius: 50%; }
.vfx-float__icon .vfx-ico { width: 15px; height: 15px; }
.vfx-float--a { top: 20%; left: 0; }
.vfx-float--b { right: 0; bottom: 14%; padding-left: 13px; color: rgba(255, 255, 255, .75); background: var(--vx-purple); border-color: var(--vx-purple); }
.vfx-float--b b { color: #FFFFFF; }

/* ── Anatomía: cuatro pasos ─────────────────────────────────────────── */
.vfx-flow { display: grid; gap: 14px; }

.vfx-flow__step {
	position: relative;
	display: grid;
	align-content: start;
	gap: 8px;
	padding: 16px;
	background: #FFFFFF;
	border: 1px solid var(--vx-n200);
	border-radius: 16px;
}

.vfx-flow__step:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 33px;
	bottom: -15px;
	width: 2px;
	height: 14px;
	background: var(--vx-p200);
}

.vfx-flow__step--accent { background: var(--vx-p50); border-color: var(--vx-p100); }

.vfx-flow__icon {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	color: var(--vx-purple);
	background: var(--vx-p50);
	border-radius: 10px;
}

.vfx-flow__step--accent .vfx-flow__icon { color: #FFFFFF; background: var(--vx-purple); }
.vfx-flow__icon .vfx-ico { width: 19px; height: 19px; }
.vfx-flow__kicker { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--vx-n500); }
.vfx-flow__title { font-size: 15px; font-weight: 700; line-height: 1.25; }

.vfx-ticket {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 10px;
	font-size: 12px;
	color: var(--vx-n600);
	background: var(--vx-n100);
	border: 1px dashed var(--vx-n200);
	border-radius: 10px;
}

.vfx-ticket strong { color: var(--vx-ink); }

.vfx-minidots { display: grid; grid-template-columns: repeat(5, 14px); gap: 5px; }
.vfx-minidots i { width: 14px; height: 14px; border: 1.5px solid var(--vx-p200); border-radius: 50%; }
.vfx-minidots i.is-on { background: var(--vx-purple); border-color: var(--vx-purple); }
.vfx-minidots i.is-prize { background: var(--vx-coral); border-color: var(--vx-coral); }

@container (max-width: 659px) {
	.vfx-flow__step { grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; row-gap: 6px; padding: 14px; }
	.vfx-flow__step > .vfx-flow__icon { grid-row: 1 / span 3; }
	.vfx-flow__step > :not(.vfx-flow__icon) { grid-column: 2; }
}

@container (min-width: 660px) {
	.vfx-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
	.vfx-flow__step:not(:last-child)::after { top: 33px; right: -15px; bottom: auto; left: auto; width: 14px; height: 2px; }
}

/* ── Sellos y puntos lado a lado ────────────────────────────────────── */
.vfx-compare { display: grid; gap: 28px; }

.vfx-compare__col { display: grid; align-content: start; gap: 12px; width: 100%; max-width: 340px; margin-inline: auto; }
.vfx-compare__head { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }

.vfx-ledger { display: grid; gap: 6px; }

.vfx-ledger li {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	padding: 9px 12px;
	font-size: 13px;
	color: var(--vx-n600);
	background: #FFFFFF;
	border: 1px solid var(--vx-n200);
	border-radius: 10px;
}

.vfx-ledger b { color: var(--vx-ink); }
.vfx-ledger__gain { font-weight: 800; color: var(--vx-purple); }
.vfx-compare__note { font-size: 12.5px; color: var(--vx-n600); }

@container (min-width: 560px) {
	.vfx-compare { grid-template-columns: 1fr 1fr; }
}

/* ── Tres vistas y secuencias de pantallas ──────────────────────────── */
.vfx-triad,
.vfx-screens { display: grid; gap: 26px; }

.vfx-triad__item,
.vfx-screens__item { display: grid; align-content: start; justify-items: center; gap: 12px; }

.vfx-triad__item > .vfx-window,
.vfx-screens__item > .vfx-window { max-width: 360px; }
.vfx-screens__item { grid-template-rows: auto 1fr; }
.vfx-screens__item > .vfx-window { height: 100%; }

.vfx-triad__label,
.vfx-screens__label {
	display: flex;
	align-items: center;
	gap: 8px;
	justify-self: stretch;
	font-size: 14px;
	font-weight: 700;
}

.vfx-screens__label .vfx-ico { width: 16px; height: 16px; color: var(--vx-purple); }

.vfx-triad__n {
	display: grid;
	place-items: center;
	flex: none;
	width: 22px;
	height: 22px;
	font-size: 12px;
	font-weight: 800;
	color: var(--vx-purple);
	background: var(--vx-p100);
	border-radius: 50%;
}

.vfx-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.vfx-kpi {
	display: grid;
	gap: 2px;
	padding: 11px 12px;
	background: var(--vx-n100);
	border: 1px solid var(--vx-n200);
	border-radius: 12px;
}

.vfx-kpi__label { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--vx-n500); }
.vfx-kpi__value { font-size: 22px; font-weight: 800; line-height: 1.15; }
.vfx-kpi__delta { font-size: 11.5px; color: var(--vx-n600); }

.vfx-spark { display: flex; align-items: flex-end; gap: 5px; height: 72px; padding-top: 6px; }
.vfx-spark i { flex: 1; height: var(--h); background: var(--vx-p200); border-radius: 4px 4px 2px 2px; }
.vfx-spark i:last-child { background: var(--vx-purple); }
.vfx-mini-note { font-size: 11px; color: var(--vx-n500); }

@container (min-width: 760px) {
	.vfx-triad { grid-template-columns: 0.9fr 1fr 1fr; align-items: start; gap: 22px; }
	.vfx-screens { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
	.vfx-triad__item,
	.vfx-screens__item { justify-items: stretch; }
	.vfx-triad__item > .vfx-phone,
	.vfx-screens__item > .vfx-phone { justify-self: center; }
}

/* ── Identificación: QR y búsqueda ──────────────────────────────────── */
.vfx-pair { display: grid; gap: 26px; }
.vfx-pair__item { display: grid; align-content: start; gap: 12px; }
.vfx-pair__row { display: flex; align-items: center; gap: 10px; }
.vfx-pair__row > .vfx-phone { flex: none; width: 136px; margin: 0; }
.vfx-pair__row > .vfx-window { flex: 1; min-width: 0; }
.vfx-pair__arrow { flex: none; color: var(--vx-p300); }
.vfx-pair__arrow .vfx-ico { width: 22px; height: 22px; }
.vfx-window--small .vfx-window__body { padding: 10px; }
.vfx-window--small .vfx-found { padding: 8px; font-size: 12px; }

@container (min-width: 640px) {
	.vfx-pair { grid-template-columns: 1.15fr 1fr; align-items: start; gap: 30px; }
}

/* ── Tarjeta anotada ────────────────────────────────────────────────── */
.vfx-annotated { display: grid; gap: 26px; align-items: center; }
.vfx-anchor { position: relative; display: block; }
.vfx-rows > .vfx-anchor { display: block; }

.vfx-marker {
	position: absolute;
	z-index: 2;
	top: 10px;
	left: -11px;
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	font-size: 11px;
	font-weight: 800;
	color: #FFFFFF;
	background: var(--vx-coral);
	border-radius: 50%;
	box-shadow: 0 0 0 2.5px #FFFFFF;
}

.vfx-marker + .vfx-marker { top: 60px; }

.vfx-legend { display: grid; gap: 12px; counter-reset: vfx-legend; }

.vfx-legend li {
	position: relative;
	padding-left: 34px;
	font-size: 14px;
	line-height: 1.45;
	color: var(--vx-ink2);
	counter-increment: vfx-legend;
}

.vfx-legend li::before {
	content: counter(vfx-legend);
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	font-size: 11.5px;
	font-weight: 800;
	color: #FFFFFF;
	background: var(--vx-coral);
	border-radius: 50%;
}

.vfx-legend b { color: var(--vx-ink); }

@container (min-width: 600px) {
	.vfx-annotated { grid-template-columns: 280px 1fr; gap: 40px; }
}

/* ── Papel frente a digital ─────────────────────────────────────────── */
.vfx-versus { display: grid; gap: 30px; }
.vfx-versus__col { display: grid; align-content: start; gap: 14px; }

.vfx-versus__art {
	display: grid;
	place-items: center;
	min-height: 250px;
	height: 100%;
	padding: 20px;
	background: var(--vx-n100);
	border-radius: 18px;
}

.vfx-versus__head { font-size: 16px; font-weight: 800; }

.vfx-paper {
	display: grid;
	gap: 5px;
	width: 100%;
	max-width: 250px;
	padding: 18px 16px 20px;
	font-family: Georgia, "Times New Roman", serif;
	text-align: center;
	color: #5A3E2B;
	background:
		repeating-linear-gradient(0deg, rgba(120, 90, 60, .035) 0 2px, transparent 2px 5px),
		#F6EEDF;
	border-radius: 6px;
	box-shadow: 0 12px 22px rgba(54, 50, 74, .14), 0 1px 0 rgba(90, 62, 43, .12);
	transform: rotate(-3deg);
}

.vfx-paper__title { font-size: 15px; font-weight: 700; }
.vfx-paper__sub { font-size: 11px; color: #7A5A44; }
.vfx-paper__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 10px; }
.vfx-paper__grid i { aspect-ratio: 1; border: 1.5px dashed #B99A7D; border-radius: 50%; }

.vfx-paper__grid i.is-ink {
	background: radial-gradient(circle, rgba(91, 52, 138, .85) 38%, rgba(91, 52, 138, .55) 58%, transparent 62%);
	border-color: transparent;
}

.vfx-paper__grid i:nth-child(2) { transform: rotate(18deg) translate(1px, -1px); }
.vfx-paper__grid i:nth-child(4) { transform: rotate(-12deg) translate(-1px, 1px); }
.vfx-paper__grid i.is-smudge { opacity: .6; filter: blur(.7px); transform: translateX(2px); }
.vfx-paper__grid i.is-goal { border-style: solid; border-color: #C0485A; }

.vfx-checks { display: grid; gap: 8px; }
.vfx-checks li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: 13.5px; line-height: 1.4; color: var(--vx-ink2); }
.vfx .vfx-checks .vfx-ico { width: 17px; height: 17px; margin-top: 1px; }
.vfx-checks .is-pro .vfx-ico { color: var(--vx-purple); }
.vfx-checks .is-con .vfx-ico { color: var(--vx-coral); }

@container (min-width: 600px) {
	.vfx-versus { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; gap: 14px 28px; }
	.vfx-versus__col { display: grid; grid-row: span 3; grid-template-rows: subgrid; gap: 14px; }
}

/* ── Ecuaciones: regla de puntos y fórmula ──────────────────────────── */
.vfx-equation,
.vfx-formula__row { display: grid; gap: 8px; }

.vfx-formula { display: grid; gap: 14px; }

.vfx-eq-card {
	display: grid;
	gap: 2px;
	padding: 13px 16px;
	text-align: left;
	background: #FFFFFF;
	border: 1px solid var(--vx-n200);
	border-radius: 14px;
}

.vfx-eq-card__label { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--vx-n500); }
.vfx-eq-card__value { font-size: 20px; font-weight: 800; line-height: 1.2; }
.vfx-eq-card__sub { font-size: 12px; color: var(--vx-n600); }
.vfx-eq-card--soft { background: var(--vx-p50); border-color: var(--vx-p100); }
.vfx-eq-card--brand { color: #FFFFFF; background: var(--vx-purple); border-color: var(--vx-purple); }
.vfx-eq-card--brand .vfx-eq-card__label { color: rgba(255, 255, 255, .75); }
.vfx-eq-card--brand .vfx-eq-card__sub { color: rgba(255, 255, 255, .82); }

.vfx-eq-op { display: grid; place-items: center; color: var(--vx-p300); transform: rotate(90deg); }
.vfx-eq-op .vfx-ico { width: 20px; height: 20px; }
.vfx-eq-sign { font-size: 22px; font-weight: 700; line-height: 1; text-align: center; color: var(--vx-p300); }

.vfx-progress-strip {
	display: grid;
	gap: 8px;
	margin-top: 16px;
	padding: 16px;
	background: #FFFFFF;
	border: 1px solid var(--vx-n200);
	border-radius: 14px;
}

.vfx-progress-strip__head,
.vfx-progress-strip__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 13px; }
.vfx-progress-strip__foot { font-size: 12px; color: var(--vx-n600); }
.vfx-progress-strip .vfx-meter { margin: 2px 0; height: 10px; background: var(--vx-p100); }
.vfx-progress-strip .vfx-meter__fill { background: var(--vx-purple); border-radius: 99px 0 0 99px; }
.vfx-meter__gain { position: absolute; top: 0; bottom: 0; background: var(--vx-coral); border-radius: 0 99px 99px 0; }

.vfx-formula__gauge { display: flex; align-items: center; gap: 12px; margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--vx-n600); }
.vfx-gauge { display: block; flex: 0 0 96px; height: 10px; overflow: hidden; background: var(--vx-p100); border-radius: 99px; }
.vfx-gauge span { display: block; min-width: 6px; height: 100%; background: var(--vx-coral); }

@container (min-width: 600px) {
	.vfx-equation,
	.vfx-formula__row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
	.vfx-eq-op { transform: none; }
}

/* ── Selector de sellos (sin JavaScript) ────────────────────────────── */
.vfx-picker { display: grid; gap: 14px; min-width: 0; padding: 0; border: 0; }
.vfx-picker__legend { float: left; width: 100%; margin-bottom: 12px; padding: 0; font-size: 15px; font-weight: 800; }

.vfx-picker__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.vfx-picker__options {
	display: flex;
	gap: 4px;
	width: fit-content;
	max-width: 100%;
	padding: 4px;
	background: var(--vx-n50);
	border-radius: 12px;
}

.vfx-picker__options label {
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 600;
	color: var(--vx-n600);
	white-space: nowrap;
	border-radius: 9px;
	cursor: pointer;
}

.vfx-picker__input:nth-of-type(1):checked ~ .vfx-picker__options label:nth-of-type(1),
.vfx-picker__input:nth-of-type(2):checked ~ .vfx-picker__options label:nth-of-type(2),
.vfx-picker__input:nth-of-type(3):checked ~ .vfx-picker__options label:nth-of-type(3) {
	color: var(--vx-purple);
	background: #FFFFFF;
	box-shadow: 0 1px 3px rgba(54, 50, 74, .14);
}

.vfx-picker__input:nth-of-type(1):focus-visible ~ .vfx-picker__options label:nth-of-type(1),
.vfx-picker__input:nth-of-type(2):focus-visible ~ .vfx-picker__options label:nth-of-type(2),
.vfx-picker__input:nth-of-type(3):focus-visible ~ .vfx-picker__options label:nth-of-type(3) {
	outline: 2px solid var(--vx-purple);
	outline-offset: 2px;
}

.vfx-picker__panel { display: none; gap: 16px; }

.vfx-picker__input:nth-of-type(1):checked ~ .vfx-picker__panels .vfx-picker__panel:nth-child(1),
.vfx-picker__input:nth-of-type(2):checked ~ .vfx-picker__panels .vfx-picker__panel:nth-child(2),
.vfx-picker__input:nth-of-type(3):checked ~ .vfx-picker__panels .vfx-picker__panel:nth-child(3) { display: grid; }

.vfx-picker__panel > .vfx-stampcard { width: 100%; max-width: 300px; }

.vfx-facts { display: grid; gap: 8px; align-content: start; }

.vfx-facts > div {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	background: #FFFFFF;
	border: 1px solid var(--vx-n200);
	border-radius: 10px;
}

.vfx-facts dt { font-size: 13px; line-height: 1.35; color: var(--vx-n600); }
.vfx-facts dd { flex: none; font-size: 14px; font-weight: 800; white-space: nowrap; }

.vfx-picker__read {
	grid-column: 1 / -1;
	padding: 12px 14px;
	font-size: 13.5px;
	line-height: 1.45;
	color: var(--vx-ink2);
	background: #FFFFFF;
	border-left: 3px solid var(--vx-coral);
	border-radius: 0 10px 10px 0;
}

@container (min-width: 600px) {
	.vfx-picker__panel { grid-template-columns: 280px minmax(0, 1fr); align-items: start; }
}

/* ── Matriz de recompensas ──────────────────────────────────────────── */
.vfx-matrix { display: grid; gap: 20px; }
.vfx-matrix__chart { display: grid; gap: 8px; }
.vfx-matrix__axis { font-size: 11.5px; font-weight: 700; color: var(--vx-n500); }
.vfx-matrix__axis--x { justify-self: end; }

.vfx-matrix__plot {
	position: relative;
	aspect-ratio: 4 / 3;
	background:
		linear-gradient(var(--vx-n200), var(--vx-n200)) center / 1px 100% no-repeat,
		linear-gradient(var(--vx-n200), var(--vx-n200)) center / 100% 1px no-repeat,
		#FFFFFF;
	border: 1px solid var(--vx-n200);
	border-radius: 16px;
}

.vfx-matrix__sweet { position: absolute; top: 0; left: 0; width: 50%; height: 50%; background: var(--vx-p50); border-radius: 15px 0 0 0; }

.vfx-matrix__risk {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 24%;
	background: repeating-linear-gradient(135deg, rgba(216, 32, 61, .07) 0 6px, transparent 6px 12px);
	border-radius: 0 15px 15px 0;
}

.vfx-matrix__dot {
	position: absolute;
	left: var(--x);
	bottom: var(--y);
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	color: var(--vx-ink2);
	transform: translate(-6px, 50%);
}

.vfx-matrix__dot i { flex: none; width: 12px; height: 12px; background: var(--vx-p300); border: 2px solid #FFFFFF; border-radius: 50%; box-shadow: 0 0 0 1px var(--vx-p200); }
.vfx-matrix__dot.is-sweet i { background: var(--vx-purple); box-shadow: 0 0 0 1px var(--vx-purple); }
.vfx-matrix__dot.is-risk i { background: var(--vx-coral); box-shadow: 0 0 0 1px var(--vx-coral); }
.vfx-matrix__dot.is-left { flex-direction: row-reverse; transform: translate(calc(-100% + 6px), 50%); }

.vfx-matrix__keys { display: grid; gap: 10px; align-content: center; }
.vfx-matrix__keys li { position: relative; padding-left: 22px; font-size: 13.5px; line-height: 1.45; color: var(--vx-ink2); }
.vfx-matrix__keys li::before { content: ""; position: absolute; top: 4px; left: 0; width: 12px; height: 12px; background: var(--vx-n200); border-radius: 3px; }
.vfx-matrix__keys li.is-sweet::before { background: var(--vx-p100); box-shadow: inset 0 0 0 1px var(--vx-p200); }
.vfx-matrix__keys li.is-risk::before { background: repeating-linear-gradient(135deg, rgba(216, 32, 61, .35) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px rgba(216, 32, 61, .35); }
.vfx-matrix__keys b { color: var(--vx-ink); }

@container (min-width: 440px) {
	.vfx-matrix__dot { font-size: 12px; }
}

@container (min-width: 680px) {
	.vfx-matrix { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center; gap: 30px; }
}

/* ── Panel del negocio ──────────────────────────────────────────────── */
.vfx-window--dash .vfx-window__body { padding: 14px; }
.vfx-dash { display: grid; gap: 12px; }
.vfx-dash__grid { display: grid; gap: 12px; }

.vfx-dash__card {
	display: grid;
	align-content: start;
	gap: 10px;
	padding: 14px;
	border: 1px solid var(--vx-n200);
	border-radius: 12px;
}

.vfx-dash__title { font-size: 12.5px; font-weight: 800; }
.vfx-dash__title--spaced { margin-top: 4px; }

.vfx-funnel { display: grid; gap: 9px; }

.vfx-funnel__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 36px;
	align-items: center;
	gap: 4px 10px;
	font-size: 12px;
	color: var(--vx-n600);
}

.vfx-funnel__bar { grid-column: 1 / -1; grid-row: 2; display: block; height: 10px; background: var(--vx-n50); border-radius: 99px; }
.vfx-funnel__bar i { display: block; min-width: 6px; height: 100%; background: linear-gradient(90deg, var(--vx-p300), var(--vx-purple)); border-radius: inherit; }
.vfx-funnel__value { font-weight: 800; text-align: right; color: var(--vx-ink); }

.vfx-branches { display: grid; gap: 6px; }
.vfx-branch { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; font-size: 13px; background: var(--vx-n100); border-radius: 10px; }
.vfx-branch span { display: flex; align-items: center; gap: 6px; }
.vfx-branch .vfx-ico { width: 14px; height: 14px; color: var(--vx-purple); }

.vfx-log { display: grid; }

.vfx-log__row {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr) auto;
	gap: 8px;
	padding: 7px 0;
	font-size: 12px;
	color: var(--vx-n600);
	border-bottom: 1px solid var(--vx-n200);
}

.vfx-log__row:last-child { border-bottom: 0; }
.vfx-log__row > span:nth-child(2) { color: var(--vx-ink); font-weight: 600; }
.vfx-log__row.is-strong > span:nth-child(2) { color: var(--vx-coral); font-weight: 800; }

@container (max-width: 479px) {
	.vfx-window__meta .vfx-select + .vfx-select { display: none; }
}

@container (min-width: 560px) {
	.vfx-kpis:not(.vfx-kpis--2) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.vfx-funnel__row { grid-template-columns: 148px minmax(0, 1fr) 36px; }
	.vfx-funnel__bar { grid-column: auto; grid-row: auto; }
}

@container (min-width: 760px) {
	.vfx-dash__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
	.vfx-window--dash .vfx-window__body { padding: 18px; }
}

/* ── Configuración ──────────────────────────────────────────────────── */
.vfx-config { display: grid; gap: 22px; align-items: center; }
.vfx-form { display: grid; gap: 12px; }
.vfx-form__two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vfx-segment { display: flex; padding: 3px; background: var(--vx-n50); border-radius: 10px; }
.vfx-segment span { flex: 1; padding: 7px 6px; font-size: 12px; font-weight: 600; text-align: center; color: var(--vx-n600); border-radius: 8px; }
.vfx-segment .is-active { color: var(--vx-purple); background: #FFFFFF; box-shadow: 0 1px 3px rgba(54, 50, 74, .14); }
.vfx-config__preview { display: grid; gap: 12px; width: 100%; max-width: 320px; margin-inline: auto; }
.vfx-config__label { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--vx-n500); }
.vfx-config__sentence { font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--vx-ink); text-wrap: pretty; }

@container (min-width: 640px) {
	.vfx-config { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; }
}

/* ── Canje ──────────────────────────────────────────────────────────── */
.vfx-reward {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px;
	color: #FFFFFF;
	background: linear-gradient(135deg, var(--vx-coral), var(--vx-coral-bright));
	border-radius: 16px;
}

.vfx-reward__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; background: rgba(255, 255, 255, .2); border-radius: 50%; }
.vfx-reward__icon .vfx-ico { width: 21px; height: 21px; }
.vfx-reward__kicker { display: block; font-size: 11px; opacity: .85; }
.vfx-reward__value { display: block; font-size: 20px; font-weight: 800; }

.vfx-redeem {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	padding: 10px 12px;
	border: 1px dashed var(--vx-p200);
	border-radius: 10px;
}

.vfx-redeem > span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.vfx-redeem .vfx-ico { width: 16px; height: 16px; color: var(--vx-purple); }
.vfx-redeem small { font-size: 11px; color: var(--vx-n600); }

.vfx-restart { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 12.5px; color: var(--vx-ink2); background: var(--vx-p50); border-radius: 10px; }
.vfx-restart .vfx-ico { width: 16px; height: 16px; color: var(--vx-purple); }

/* ── Escenas de encabezado ──────────────────────────────────────────── */
.vfx-device-scene { position: relative; display: grid; place-items: center; max-width: 520px; margin-inline: auto; padding: 8px 0; }
.vfx-device-scene > .vfx-phone { max-width: 240px; }
.vfx-device-scene .vfx-float { max-width: 172px; }
.vfx-device-scene .vfx-float--a { top: 7%; }
.vfx-device-scene .vfx-float--b { bottom: 6%; }

.vfx-device-scene--duo {
	grid-template-columns: repeat(10, minmax(0, 1fr));
	place-items: start stretch;
	max-width: 540px;
	margin-inline: auto;
}

.vfx-device-scene--duo > .vfx-window { grid-column: 1 / 7; grid-row: 1; margin-top: 24px; }
.vfx-device-scene--duo > .vfx-phone { grid-column: 7 / 11; grid-row: 1; z-index: 2; width: calc(100% + 18px); max-width: none; margin: 0 0 0 -18px; }

.vfx-cycle { position: relative; display: grid; place-items: center; max-width: 460px; margin-inline: auto; aspect-ratio: 1; }
.vfx-cycle__ring { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--vx-p200); }
.vfx-cycle__arc { color: var(--vx-purple); }
.vfx-cycle__center { position: relative; z-index: 1; width: 52%; }
.vfx-cycle__steps { position: absolute; inset: 0; }

.vfx-cycle__step {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 47%;
	padding: 8px 12px 8px 8px;
	font-size: 11px;
	color: var(--vx-n600);
	background: #FFFFFF;
	border: 1px solid var(--vx-n200);
	border-radius: 14px;
	box-shadow: 0 10px 24px rgba(54, 50, 74, .1);
}

.vfx-cycle__step b { display: block; font-size: 13px; color: var(--vx-ink); }
.vfx-cycle__step small { display: block; line-height: 1.3; }
.vfx-cycle__icon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; color: var(--vx-purple); background: var(--vx-p50); border-radius: 9px; }
.vfx-cycle__icon .vfx-ico { width: 16px; height: 16px; }
.vfx-cycle__step--1 { top: 3%; left: 0; }
.vfx-cycle__step--2 { top: 3%; right: 0; }
.vfx-cycle__step--3 { right: 0; bottom: 3%; }
.vfx-cycle__step--4 { bottom: 3%; left: 0; }

@container (max-width: 419px) {
	.vfx-cycle { aspect-ratio: auto; gap: 14px; }
	.vfx-cycle__ring { display: none; }
	.vfx-cycle__center { width: 100%; max-width: 290px; }
	.vfx-cycle__steps { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
	.vfx-cycle__step { position: static; max-width: none; }
	.vfx-cycle__step small { display: none; }
}

.vfx-photo { position: relative; overflow: hidden; border-radius: 20px; }
.vfx-photo img { display: block; width: 100%; height: auto; }
.vfx-photo .vfx-float--a { top: 7%; left: 4%; }
.vfx-photo .vfx-float--b { right: 4%; bottom: 7%; }

.vfx--foto-cafeteria .vfx-stage { padding: 0; background: none; box-shadow: none; border-radius: 20px; }

@container (max-width: 459px) {
	.vfx-float { padding: 7px 10px 7px 7px; font-size: 10px; }
	.vfx-float b { font-size: 12px; }
	.vfx-float__icon { width: 24px; height: 24px; }
	.vfx-device-scene .vfx-float { display: none; }
	.vfx-device-scene--duo { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.vfx-device-scene--duo > .vfx-window,
	.vfx-device-scene--duo > .vfx-phone { grid-column: 1; grid-row: auto; width: 100%; max-width: 280px; margin: 0 auto; }
	.vfx-device-scene--duo > .vfx-window { max-width: 320px; }
	.vfx-photo .vfx-float { display: none; }
	.vfx--hero .vfx-device-scene--duo > .vfx-phone { display: none; }
	.vfx--hero .vfx-device-scene > .vfx-phone { max-width: 228px; }
	.vfx-window__meta { display: none; }
}

/* ── Encabezado editorial con visual ────────────────────────────────── */
.vfx-hero-slot { width: 100%; }
.vfx-hero-slot .vfx { margin-block: 1.5rem 0; }
.vfx--hero .vfx-stage { padding: clamp(16px, 4cqi, 28px); }
.vfx--hero .vfx-caption { font-size: .75rem; }

@media (min-width: 960px) {
	.vf-editorial-hero:has(.vfx-hero-slot) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 600px) minmax(0, 520px) minmax(0, 1fr);
		column-gap: 48px;
		align-items: center;
	}

	.vf-editorial-hero:has(.vfx-hero-slot) > * {
		grid-column: 2;
		max-width: none !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	.vf-editorial-hero:has(.vfx-hero-slot) > .vfx-hero-slot {
		grid-column: 3;
		grid-row: 1 / span 4;
		align-self: center;
	}

	.vfx-hero-slot .vfx { margin: 0; }
}

/* ── Índice "En esta página" ────────────────────────────────────────── */
.vfx-toc {
	margin-block: 2rem 2.5rem;
	padding: 18px 20px;
	font-family: var(--vx-font);
	background: var(--vx-n100);
	border: 1px solid var(--vx-n200);
	border-radius: 16px;
}

.vfx-toc__title { margin: 0 0 10px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--vx-n500); }
.vfx-toc__list { display: grid; gap: 2px 28px; margin: 0; padding: 0; list-style: none; }
.vfx-toc__list li { margin: 0; }

.vfx-toc__list a {
	display: flex;
	gap: 10px;
	padding: 6px 0;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--vx-ink2);
	text-decoration: none;
}

.vfx-toc__list a:hover,
.vfx-toc__list a:focus-visible { color: var(--vx-purple); text-decoration: underline; text-underline-offset: 3px; }
.vfx-toc__n { flex: none; min-width: 20px; padding-top: 2px; font-size: 12px; font-weight: 800; color: var(--vx-coral); }

@media (min-width: 700px) {
	.vfx-toc__list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 699px) {
	.vfx-toc { padding: 14px 0 14px 16px; }
	.vfx-toc__list { display: flex; gap: 8px; padding: 2px 16px 4px 0; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
	.vfx-toc__list::-webkit-scrollbar { display: none; }
	.vfx-toc__list li { flex: none; scroll-snap-align: start; }
	.vfx-toc__list a { padding: 8px 12px; font-size: 13px; white-space: nowrap; background: #FFFFFF; border: 1px solid var(--vx-n200); border-radius: 99px; }
	.vfx-toc__n { display: none; }
}

.vf-editorial-content h2[id],
.vf-article-shell h2[id] { scroll-margin-top: 96px; }

/* ── Portadas de artículos ──────────────────────────────────────────── */
.vfx-cover-link { display: block; margin-bottom: 1rem; overflow: hidden; text-decoration: none; border-radius: 14px; }
.vfx-cover-link *,
.vfx-cover * { text-decoration: none; }

.vfx-cover {
	container-type: inline-size;
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background-color: var(--vx-p50);
	background-image: radial-gradient(rgba(91, 52, 138, .13) 1px, transparent 1.3px);
	background-size: 14px 14px;
	transition: transform .35s ease;
}

.vfx-cover--formula,
.vfx-cover--matrix,
.vfx-cover--flow { background-color: #FBF1F3; background-image: radial-gradient(rgba(216, 32, 61, .12) 1px, transparent 1.3px); }

.vfx-cover-link:hover .vfx-cover { transform: scale(1.02); }

.vfc-card {
	display: grid;
	gap: 2.2cqi;
	width: 40cqi;
	padding: 4cqi;
	color: #FFFFFF;
	background: #4A2A71;
	border-radius: 3cqi;
	box-shadow: 0 3cqi 6cqi rgba(74, 42, 113, .22);
}

.vfc-card--solo { width: 52cqi; }
.vfc-card--light { color: #1B1F26; background: #FFFFFF; border: 1px solid #E6E3EB; box-shadow: 0 3cqi 6cqi rgba(54, 50, 74, .1); }
.vfc-dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.6cqi; }
.vfc-dots i { aspect-ratio: 1; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; }
.vfc-dots i.is-on { background: #FFFFFF; border-color: #FFFFFF; }
.vfc-dots i.is-prize { background: #FF2F4B; border-color: #FF2F4B; }
.vfc-line { font-size: 3.2cqi; font-weight: 600; color: rgba(255, 255, 255, .82); }
.vfc-line--dark { color: #5D6070; }
.vfc-big { font-size: 8cqi; font-weight: 800; line-height: 1; color: #1B1F26; }
.vfc-big small { font-size: 3.6cqi; font-weight: 700; color: #5D6070; }
.vfc-meter { display: block; height: 1.8cqi; overflow: hidden; background: #E7DDF3; border-radius: 99px; }
.vfc-meter i { display: block; height: 100%; background: #5B348A; }
.vfc-duo { display: flex; align-items: center; gap: 4cqi; }
.vfc-duo .vfc-card { width: 36cqi; }

.vfc-sheet {
	display: grid;
	gap: 2.2cqi;
	width: 54cqi;
	padding: 4cqi;
	background: #FFFFFF;
	border: 1px solid #E6E3EB;
	border-radius: 3cqi;
	box-shadow: 0 3cqi 6cqi rgba(54, 50, 74, .1);
}

.vfc-sheet--wide { width: 64cqi; }
.vfc-seg { display: flex; padding: .8cqi; background: #F3F1F6; border-radius: 2cqi; }
.vfc-seg i { flex: 1; padding: 1.2cqi; font-size: 3cqi; font-style: normal; font-weight: 700; text-align: center; color: #5D6070; border-radius: 1.4cqi; }
.vfc-seg i.is-on { color: #5B348A; background: #FFFFFF; }
.vfc-input { padding: 1.8cqi 2.4cqi; font-size: 3cqi; font-weight: 600; color: #36324A; border: 1px solid #E6E3EB; border-radius: 1.6cqi; }
.vfc-btn { display: block; height: 5cqi; background: #D8203D; border-radius: 1.6cqi; }
.vfc-funnel { display: grid; gap: 1.8cqi; }
.vfc-funnel i { display: block; height: 3.4cqi; background: linear-gradient(90deg, #AE93D4, #5B348A); border-radius: 99px; }

.vfc-matrix {
	position: relative;
	width: 58cqi;
	aspect-ratio: 4 / 3;
	background:
		linear-gradient(#E6E3EB, #E6E3EB) center / 1px 100% no-repeat,
		linear-gradient(#E6E3EB, #E6E3EB) center / 100% 1px no-repeat,
		linear-gradient(#F4EFFA, #F4EFFA) top left / 50% 50% no-repeat,
		#FFFFFF;
	border: 1px solid #E6E3EB;
	border-radius: 2.4cqi;
}

.vfc-matrix i { position: absolute; left: var(--x); bottom: var(--y); width: 3.6cqi; aspect-ratio: 1; background: #AE93D4; border-radius: 50%; transform: translate(-50%, 50%); }
.vfc-matrix i.is-on { background: #5B348A; }
.vfc-matrix i.is-risk { background: #D8203D; }

.vfc-paper { display: grid; width: 34cqi; padding: 3.4cqi; background: #F6EEDF; border-radius: 1cqi; box-shadow: 0 2cqi 4cqi rgba(54, 50, 74, .12); transform: rotate(-5deg); }
.vfc-paper .vfc-dots { grid-template-columns: repeat(4, 1fr); }
.vfc-paper .vfc-dots i { background: none; border: 1px dashed #B99A7D; }
.vfc-paper .vfc-dots i.is-on { background: rgba(91, 52, 138, .8); border: 0; }
.vfc-paper .vfc-dots i.is-prize { background: none; border: 1.5px solid #C0485A; }

.vfc-steps { display: flex; align-items: center; gap: 2cqi; }
.vfc-steps > i { width: 7cqi; height: 2px; background: #CDBBE6; }
.vfc-step { display: grid; place-items: center; width: 13cqi; aspect-ratio: 1; color: #5B348A; background: #FFFFFF; border: 1px solid #E6E3EB; border-radius: 3.6cqi; box-shadow: 0 2cqi 4cqi rgba(54, 50, 74, .08); }
.vfc-step .vfx-ico { display: block; width: 6cqi; height: 6cqi; }
.vfc-step.is-on { color: #FFFFFF; background: #5B348A; border-color: #5B348A; }

.vfc-eq { display: flex; align-items: center; gap: 2cqi; font-size: 5.6cqi; font-weight: 800; font-variant-numeric: tabular-nums; }
.vfc-eq span { padding: 2cqi 3cqi; color: #1B1F26; background: #FFFFFF; border: 1px solid #E6E3EB; border-radius: 2.4cqi; }
.vfc-eq span.is-on { color: #FFFFFF; background: #5B348A; border-color: #5B348A; }
.vfc-eq b { color: #AE93D4; }

@media (prefers-reduced-motion: reduce) {
	.vfx-cover { transition: none; }
	.vfx-cover-link:hover .vfx-cover { transform: none; }
}
