/* ---------- Pantalla de carga: el rayo cae y aparecen las letras ---------- */
.load-splash { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; background: var(--ink); animation: splashOut .3s ease .5s forwards; }
.splash-mark { position: relative; width: min(30vw, 120px); aspect-ratio: 385 / 560; }
.splash-mark svg, .splash-mark img { position: absolute; inset: 0; width: 100%; height: 100%; }
.sp-bolt { clip-path: inset(0 0 100% 0); animation: boltDown .22s cubic-bezier(.6, 0, .4, 1) .02s forwards; }
.splash-mark svg { filter: drop-shadow(0 0 0 rgba(47, 211, 218, 0)); animation: boltFlash .3s ease .2s; }
.sp-letters { opacity: 0; transform: scale(1.06); animation: lettersIn .22s ease .2s forwards; }
@keyframes boltDown { to { clip-path: inset(0 0 0 0); } }
@keyframes boltFlash { 50% { filter: drop-shadow(0 0 22px rgba(47, 211, 218, .9)); } }
@keyframes lettersIn { to { opacity: 1; transform: none; } }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }
.no-splash .load-splash { display: none; }
@media (prefers-reduced-motion: reduce) { .load-splash { display: none; } }

/* ---------- Entradas ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .clip-img { clip-path: inset(12% 0 0 0); transform: scale(1.08); transition: clip-path 1.3s var(--ease), transform 1.6s var(--ease); }
.js .is-in .clip-img { clip-path: inset(0 0 0 0); transform: none; }

.js .hero-title .ln > span { transform: translateY(105%); }
.js .hero-sub, .js .hero-ctas, .js .hero-rating, .js .contact-sub { opacity: 0; transform: translateY(18px); }
.is-loaded .hero-title .ln > span { transform: none; transition: transform 1.1s var(--ease); }
.is-loaded .hero-title .ln:nth-child(2) > span { transition-delay: .08s; }
.is-loaded .hero-title .ln:nth-child(3) > span { transition-delay: .16s; }
.is-loaded .hero-title .ln:nth-child(4) > span { transition-delay: .24s; }
.is-loaded .hero-sub, .is-loaded .hero-ctas, .is-loaded .hero-rating, .is-loaded .contact-sub { opacity: 1; transform: none; transition: opacity .9s ease .35s, transform 1s var(--ease) .35s; }
.is-loaded .hero-ctas { transition-delay: .45s; }
.is-loaded .hero-rating { transition-delay: .55s; }
.js .hero-media { transform: scale(1.08); }
.is-loaded .hero-media { transform: none; transition: transform 2.2s var(--ease); }

/* destello que recorre el titular de la portada una vez */
.hero-home .hero-title { position: relative; }
.hero-home .hero-title::after {
  content: ''; position: absolute; top: -6%; bottom: -6%; left: -10%; width: 8%;
  background: linear-gradient(90deg, rgba(47, 211, 218, 0), rgba(143, 220, 220, .55), rgba(47, 211, 218, 0));
  transform: skewX(-18deg); opacity: 0; pointer-events: none; mix-blend-mode: screen;
}
.is-loaded .hero-home .hero-title::after { animation: heroSweep 1.4s cubic-bezier(.5, 0, .2, 1) 1.1s; }
@keyframes heroSweep { 0% { opacity: 0; left: -10%; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; left: 105%; } }

@keyframes rowIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js .clip-img, .js .hero-title .ln > span, .js .hero-sub, .js .hero-ctas, .js .hero-rating, .js .contact-sub, .js .hero-media { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
