/* Estilo de la intro de marca (src/plantillas/intro-eya.html, solo en la Home). Hoja externa, no
   `<style>` en línea: la CSP (docs/seguridad-y-seo.md) no lleva `unsafe-inline`. */
#eya-intro {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #111;
  overflow: hidden;
  animation: eya-out 0.55s cubic-bezier(0.65, 0, 0.35, 1) 2.45s forwards;
}
#eya-intro svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: eya-push 3s linear forwards;
}
#eya-intro .p {
  opacity: 0;
  transform-box: fill-box;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-duration: 0.6s;
}
#eya-intro .e1 {
  --x: -140px;
  --y: 0;
  animation-name: eya-in;
  animation-delay: 0.15s;
}
#eya-intro .e2 {
  --x: -140px;
  --y: 0;
  animation-name: eya-in;
  animation-delay: 0.25s;
}
#eya-intro .y {
  --x: 0;
  --y: -120px;
  animation-name: eya-in;
  animation-delay: 0.3s;
}
#eya-intro .a {
  --x: 140px;
  --y: 0;
  animation-name: eya-in;
  animation-delay: 0.4s;
}
#eya-intro .tri {
  --x: 0;
  --y: -70px;
  animation-name: eya-in;
  animation-delay: 1.1s;
  animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}
#eya-intro .bar {
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 1;
  animation: eya-bar 0.55s cubic-bezier(0.65, 0, 0.35, 1) 1.3s forwards;
}
#eya-intro .band {
  position: absolute;
  inset: 0;
  background: #ff6600;
  transform: translateX(-115%) skewX(-6deg);
  animation: eya-band 0.55s cubic-bezier(0.65, 0, 0.35, 1) 2.05s forwards;
}
@keyframes eya-in {
  from {
    opacity: 0;
    transform: translate(var(--x), var(--y));
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes eya-bar {
  to {
    transform: scaleX(1);
  }
}
@keyframes eya-push {
  to {
    transform: scale(1.05);
  }
}
@keyframes eya-band {
  to {
    transform: translateX(0) skewX(-6deg);
  }
}
@keyframes eya-out {
  to {
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
    visibility: hidden;
  }
}
@media (prefers-reduced-motion: reduce) {
  #eya-intro {
    display: none;
  }
}
