html.intro-activa,
html.intro-activa body { overflow: hidden; }

#intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #04102a;
  opacity: 1;
  transition: opacity 420ms cubic-bezier(.23, 1, .32, 1);
}

#intro::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 170, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 255, .07) 1px, transparent 1px);
  background-size: 40px 40px;
}

#intro.intro--saliendo { opacity: 0; pointer-events: none; }

.intro__marco {
  position: relative;
  width: min(88vw, 960px);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro__esquina {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(150, 195, 255, .55);
  pointer-events: none;
}
.intro__esquina--ai { top: -10px; left: -10px; border-right: 0; border-bottom: 0; }
.intro__esquina--ad { top: -10px; right: -10px; border-left: 0; border-bottom: 0; }
.intro__esquina--bi { bottom: -10px; left: -10px; border-right: 0; border-top: 0; }
.intro__esquina--bd { bottom: -10px; right: -10px; border-left: 0; border-top: 0; }

.intro__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #04102a;
}

.intro__rotulo {
  position: absolute;
  left: 0;
  bottom: -2.4rem;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(190, 215, 255, .65);
  pointer-events: none;
}

.intro__saltar {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 2;
  width: auto;
  padding: .6rem 1.1rem;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #eaf2ff;
  background: rgba(10, 30, 70, .82);
  border: 1px solid rgba(150, 195, 255, .5);
  border-radius: 3px;
  cursor: pointer;
}
.intro__saltar:hover { background: rgba(20, 55, 120, .95); border-color: rgba(190, 220, 255, .85); }
.intro__saltar:active { transform: scale(.97); }
.intro__saltar:focus-visible { outline: 2px solid #9ecbff; outline-offset: 2px; }

.intro__progreso {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  border: 0;
  appearance: none;
  background: rgba(150, 195, 255, .16);
}
.intro__progreso::-webkit-progress-bar { background: rgba(150, 195, 255, .16); }
.intro__progreso::-webkit-progress-value { background: linear-gradient(90deg, #4d8fe0, #9ecbff); }
.intro__progreso::-moz-progress-bar { background: linear-gradient(90deg, #4d8fe0, #9ecbff); }

@media (max-width: 640px) {
  .intro__marco { width: 94vw; }
  .intro__saltar { right: 1rem; bottom: 1rem; padding: .5rem .9rem; }
  .intro__rotulo { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  #intro { display: none; }
  html.intro-activa,
  html.intro-activa body { overflow: auto; }
}
