/* Animaciones de la portada y /proyectos/ (2026-11-19 k). Solo transform y opacity.
   Regla: sin JS todo se ve. Lo que entra con CSS termina visible; lo que espera al scroll solo se oculta
   cuando anim.js lo marca (.rv), y únicamente si está fuera de pantalla al cargar. */

@keyframes an-rise{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}
@keyframes an-bar{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes an-zoom{from{transform:scale(1.04)}to{transform:scale(1.12)}}

/* Entrada del héroe, escalonada (CSS puro: siempre termina visible) */
.hx__eyebrow,.hx__lead,.hx__cta,.hx__badge,.pjx__eyebrow,.pjx__lead,.pjx__links,.pjx__fine{animation:an-rise .8s cubic-bezier(.2,.7,.2,1) both}
.hx__eyebrow,.pjx__eyebrow{animation-delay:.05s}
.hx__t,.pjx__t{animation:an-rise .9s cubic-bezier(.2,.7,.2,1) .12s both}
.hx__lead,.pjx__lead{animation-delay:.55s}
.hx__cta,.pjx__links{animation-delay:.7s}
.hx__badge,.pjx__fine{animation-delay:.9s}
/* Titular por líneas: anim.js parte el H1 en líneas; cada una entra con su retraso */
.an-split{animation:none !important}
.an-line{display:block;animation:an-rise .9s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(.12s + var(--i) * .11s)}
/* Render del Home: zoom lento */
.hx__img{animation:hx-in 1.4s ease-out both,an-zoom 22s ease-in-out 1.4s infinite alternate}

/* Barra de tres colores: se dibuja de izquierda a derecha */
.hx::after,.pjx::after,.hc::before,.gh::after,.lh::after{transform-origin:0 50%;animation:an-bar 1.1s cubic-bezier(.65,0,.35,1) .3s both}

/* Aparición al hacer scroll (solo con .rv puesta por JS) */
.rv{opacity:0;transform:translateY(24px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1);transition-delay:var(--d,0s)}
.rv.is-in{opacity:1;transform:none}

/* Paralaje: anim.js mueve --py */
.hl43__bg img,.pjx__bg{will-change:transform}
.hl43__bg{transform:translate3d(0,var(--py,0px),0)}
.pjx__bg{transform:translate3d(0,var(--py,0px),0) scale(1.08)}
.hu__img img{transform:translate3d(0,var(--py,0px),0);transition:transform .1s linear}

/* Hover: zoom suave en fotos de tarjetas y galerías */
.gcard img,.htr__list img,.pj__cover img,.pj-gal img,.ucard__cover img,.gal53__grid img,.ucard__strip img,.mos__t img{transition:transform .6s cubic-bezier(.2,.7,.2,1)}
.gcard,.pj__cover,.pj-gal li,.gal53__grid .zoom,.ucard__cover,.ucard__strip li{overflow:hidden}
.gcard:hover img,.pj__cover:hover img,.pj-gal li:hover img,.gal53__grid .zoom:hover img,.ucard__cover:hover img,.ucard__strip li:hover img{transform:scale(1.06)}
.pj-gal li,.ucard__strip li{border-radius:3px}

@media (prefers-reduced-motion:reduce){
  .hx__eyebrow,.hx__lead,.hx__cta,.hx__badge,.pjx__eyebrow,.pjx__lead,.pjx__links,.pjx__fine,.hx__t,.pjx__t,.an-line,.hx__img,
  .hx::after,.pjx::after,.hc::before,.gh::after,.lh::after{animation:none !important}
  .rv{opacity:1 !important;transform:none !important;transition:none !important}
  .hl43__bg,.pjx__bg,.hu__img img{transform:none !important}
  .gcard img,.htr__list img,.pj__cover img,.pj-gal img,.ucard__cover img,.gal53__grid img,.ucard__strip img{transition:none}
}
.hl43__bg{inset:-60px 0 !important}
