/* Animación de aparición de los titulares (h1 y h2 de cada página). Solo se carga si se activa en el panel (Skins y estilos > Titulares).
   Solo opacidad y transformaciones (tarjeta gráfica). Cada letra empieza en opacidad .01 (no 0) y vuelve a sus estilos de siempre al acabar. */
.tf-w { display: inline-block; white-space: nowrap; }
.tf-l { display: inline-block; }
.tf-ok:not(.tf-go) .tf-l { opacity: .01; }
.tf-go .tf-l { animation: tfEntra 1.1s cubic-bezier(.16, 1, .3, 1) var(--d, 0ms) backwards; }
@keyframes tfEntra {
    from { opacity: .01; transform: perspective(700px) translate3d(var(--x, 0), var(--y, 0), var(--z, 0)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotateZ(var(--rz, 0deg)) scale(var(--s, 1)); }
    35% { opacity: 1; }
    to { opacity: 1; transform: none; }
}
/* Dorado: degradado por letra y brillo cálido al terminar */
html.tfx-dorado .tf-ok { text-shadow: none; }
html.tfx-dorado .tf-ok .tf-l { background: linear-gradient(180deg, #fff7d9 0%, #ecc96e 48%, #9b6a1d 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; text-shadow: none; padding: .12em .02em; margin: -.12em -.02em; }
html.tfx-dorado .tf-ok.tf-fin { filter: drop-shadow(0 0 8px rgba(255, 196, 80, .35)); transition: filter .7s ease; }
@media (prefers-reduced-motion: reduce) { .tf-go .tf-l { animation: none; } .tf-ok:not(.tf-go) .tf-l { opacity: 1; } }
