html:has(.site-intro[open]) { overflow: hidden; }

.site-intro:not([open]) { display: none; }

.site-intro[open] {
  --scene: url("../assets/intro/escenario-escritorio.jpg");
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  display: grid;
  place-items: center;
  isolation: isolate;
  color: #fff;
  background: #020905;
  animation: alianza-intro-exit .3s ease 2.7s both;
}

.site-intro::backdrop { background: transparent; }

.site-intro__scene,
.site-intro__lights {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.site-intro__scene {
  background:
    radial-gradient(ellipse at center, rgb(0 9 3 / .17) 0%, transparent 55%, rgb(0 5 2 / .45) 100%),
    var(--scene) center / cover no-repeat;
  animation: alianza-stage 3s ease-out both;
}

.site-intro__lights {
  background:
    conic-gradient(from 131deg at 14% 13%, transparent 0deg, rgb(135 255 155 / .34) 11deg, transparent 24deg),
    conic-gradient(from 206deg at 85% 12%, transparent 0deg, rgb(213 255 227 / .21) 10deg, transparent 21deg);
  mix-blend-mode: screen;
  animation: alianza-lights 2.7s ease-in-out both;
}

.site-intro__logo {
  position: relative;
  width: min(72vw, 620px);
  max-height: 45vh;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 18px rgb(0 0 0 / .75));
  opacity: 0;
  animation: alianza-logo .85s cubic-bezier(.18,.7,.28,1) .85s both;
}

.site-intro__skip {
  position: absolute;
  z-index: 1;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgb(255 255 255 / .6);
  border-radius: 6px;
  background: rgb(0 10 5 / .86);
  color: #fff;
  font: 600 14px/1.3 system-ui, sans-serif;
  cursor: pointer;
}

.site-intro__skip:focus-visible { outline: 2px solid #b5ff99; outline-offset: 3px; }

@media (max-aspect-ratio: 4/5) {
  .site-intro[open] { --scene: url("../assets/intro/escenario-movil.jpg"); }
  .site-intro__logo { width: 91vw; }
}

@keyframes alianza-stage {
  from { transform: scale(1.055); filter: brightness(.45); }
  37% { filter: brightness(1.08); }
  to { transform: scale(1); filter: brightness(.78); }
}

@keyframes alianza-lights {
  0% { opacity: .15; transform: scale(1.05) skewX(-7deg); }
  42% { opacity: .9; }
  100% { opacity: .3; transform: scale(1.05) skewX(4deg); }
}

@keyframes alianza-logo {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes alianza-intro-exit {
  from { opacity: 1; }
  to { opacity: 0; }
}
