/* Semántica 2026 Dinámico — efectos de aparición */

:root {
	--fx-duracion: .6s;
	--fx-distancia: 22px;
	--fx-curva: cubic-bezier(.2, .7, .2, 1);
}

/* Oculto hasta que efectos.js lo muestre. La lista debe coincidir con la de efectos.js.
   Lo que recibe el foco del teclado se muestra siempre, y al imprimir no se oculta nada. */
@media screen {
	html.sem-fx :is(
		.sem-hero__copy > *, .sem-hero__card, .sem-status__item, .sem-status__note, .sem-status__link,
		.sem-logos__title, .sem-logos__grid li, .sem-stat,
		.sem-migr__copy > *, .sem-steps li,
		.sem-page-hero .sem-wrap > *,
		.sem-section .sem-eyebrow, .sem-section .sem-h2, .sem-section .sem-lead,
		.sem-mode, .sem-band, .sem-coverage li, .sem-card, .sem-case, .sem-quote, .sem-carousel, .sem-post,
		.sem-plan, .sem-table-wrap, .sem-faq details, .sem-cta__inner > *
	):not(.fx-ok):not(:focus-within) { opacity: 0; }
}

/* Solo se define el punto de partida: cada elemento termina en su estilo normal. */
.fx-run { animation: sem-fx-subir var(--fx-duracion) var(--fx-curva) backwards; }
.sem-status__item.fx-run, .sem-steps li.fx-run { animation-name: sem-fx-entrar; }
.sem-logos__grid li.fx-run, .sem-stat.fx-run { animation-name: sem-fx-crecer; }

@keyframes sem-fx-subir { from { opacity: 0; translate: 0 var(--fx-distancia); } }
@keyframes sem-fx-entrar { from { opacity: 0; translate: 28px 0; } }
@keyframes sem-fx-crecer { from { opacity: 0; scale: .85; } }

/* Evita que las cifras cambien de ancho mientras cuentan. */
html.sem-fx .sem-stat__num { font-variant-numeric: tabular-nums; }
