/* La Oficina de Yadira Felix — animaciones (seguras: sin JS todo se ve normal) */
.anim-ready .rv { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.anim-ready .rv.rv-l { transform: translateX(-40px); }
.anim-ready .rv.rv-r { transform: translateX(40px); }
.anim-ready .rv.rv-z { transform: scale(.92); }
.anim-ready .rv.in { opacity: 1; transform: none; }

/* Hero: entrada + fondo con zoom lento + brillo */
#home { overflow: hidden; }
#home::before { content: ""; position: absolute; inset: -4%; background: inherit; background-size: cover; background-position: center; z-index: 0; animation: yf-kenburns 22s ease-in-out infinite alternate; }
#home > .absolute { z-index: 1; background: linear-gradient(120deg, rgba(0,0,0,.62), rgba(30,27,75,.5), rgba(0,0,0,.6)); background-size: 200% 200%; animation: yf-grad 14s ease infinite; }
#home > .relative { z-index: 2; }
.anim-ready #home h1, .anim-ready #home p, .anim-ready #home .space-y-4 > a { opacity: 0; transform: translateY(24px); animation: yf-up .9s cubic-bezier(.2,.7,.2,1) forwards; }
.anim-ready #home p { animation-delay: .25s; }
.anim-ready #home .space-y-4 > a:nth-child(1) { animation-delay: .45s; }
.anim-ready #home .space-y-4 > a:nth-child(2) { animation-delay: .6s; }
@keyframes yf-up { to { opacity: 1; transform: none; } }
@keyframes yf-kenburns { from { transform: scale(1); } to { transform: scale(1.1) translate(-1%, -1%); } }
@keyframes yf-grad { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Botones con brillo que cruza */
.yf-shine { position: relative; overflow: hidden; vertical-align: middle; }
#home .space-y-4 > a { vertical-align: middle; }
.yf-shine::after { content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: yf-shine 3.8s ease-in-out infinite; pointer-events: none; }
@keyframes yf-shine { 0%, 60% { left: -75%; } 100% { left: 130%; } }

/* Tarjetas: se elevan al pasar el mouse */
.yf-card { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; will-change: transform; }
.yf-card:hover { transform: translateY(-6px); box-shadow: 0 22px 45px -12px rgba(30,27,75,.35); }


/* QR de pagos: pulso suave */
img[alt^="QR "] { transition: transform .3s ease; }
img[alt^="QR "]:hover { transform: scale(1.06) rotate(-1deg); }

/* Header más compacto al bajar + barra de progreso */
header.sticky { transition: box-shadow .3s ease, background-color .3s ease; }
header.sticky.yf-scrolled { background-color: rgba(255,255,255,.85); box-shadow: 0 8px 30px -10px rgba(0,0,0,.25); }
#yf-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60; background: linear-gradient(90deg, #4f46e5, #a855f7, #ec4899); transition: width .1s linear; }

/* Botón subir */
#yf-top { position: fixed; left: 1.5rem; bottom: 1.5rem; z-index: 40; width: 46px; height: 46px; border-radius: 999px; border: 0; background: #4f46e5; color: #fff; font-size: 20px; box-shadow: 0 10px 25px -8px rgba(79,70,229,.6); opacity: 0; transform: translateY(20px); pointer-events: none; transition: all .3s ease; cursor: pointer; }
#yf-top.on { opacity: 1; transform: none; pointer-events: auto; }
#yf-top:hover { background: #4338ca; }

/* Títulos con subrayado animado */
.yf-title-line { position: relative; display: inline-block; }
.yf-title-line::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 0; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #4f46e5, #a855f7); transform: translateX(-50%); transition: width .9s cubic-bezier(.2,.7,.2,1) .2s; }
.yf-title-line.in::after, :not(.anim-ready) .yf-title-line::after { width: 70px; }

@media (prefers-reduced-motion: reduce) {
  .anim-ready .rv, .anim-ready #home h1, .anim-ready #home p, .anim-ready #home .space-y-4 > a { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  #home::before, #home > .absolute, .yf-shine::after { animation: none !important; }
}
