/* Fontes Instalaciones · animaciones */

/* Pantalla de carga: el logotipo se «llena» de abajo arriba, como un depósito (0,8 s en total) */
.load-splash{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;background:#fff;animation:splashOut .3s ease .5s forwards}
.load-splash img{width:min(62vw,320px);height:auto;clip-path:inset(100% 0 0 0);animation:splashFill .4s cubic-bezier(.3,.7,.3,1) forwards}
@keyframes splashFill{to{clip-path:inset(0 0 0 0)}}
@keyframes splashOut{to{opacity:0;visibility:hidden}}
.no-splash .load-splash{display:none}
@media (prefers-reduced-motion:reduce){.load-splash{display:none}}

/* Entrada de la portada (después del splash) */
/* 04/12/2026: más rápida (antes el titular tardaba ~1,9 s en verse entero; LCP). Arranca mientras se va el splash */
.hero2__copy>*{animation:heroIn .45s cubic-bezier(.2,.7,.2,1) both}
.hero2__copy>*:nth-child(1){animation-delay:.3s}
.hero2__copy>*:nth-child(2){animation-delay:.36s}
.hero2__copy>*:nth-child(3){animation-delay:.42s}
.hero2__copy>*:nth-child(4){animation-delay:.48s}
.no-splash .hero2__copy>*:nth-child(1){animation-delay:0s}
.no-splash .hero2__copy>*:nth-child(2){animation-delay:.05s}
.no-splash .hero2__copy>*:nth-child(3){animation-delay:.1s}
.no-splash .hero2__copy>*:nth-child(4){animation-delay:.15s}
@keyframes heroIn{from{opacity:.01;transform:translateY(14px)}to{opacity:1;transform:none}}

/* Aparición al hacer scroll */
.js .reveal{opacity:0;transform:translateY(20px);transition:opacity .6s ease,transform .6s cubic-bezier(.2,.7,.2,1)}
.js .reveal.is-in{opacity:1;transform:none}

@media (prefers-reduced-motion:reduce){
  .hero2__copy>*{animation:none}
  .js .reveal{opacity:1;transform:none;transition:none}
}
