/* Fuentes: tf-sistema/public/entrada/sistema-holografico.css:6–27 (tokens),
 * 902–918 (destello/pulso rojo), 930–932/955–959 (encoger/inclinar/desenfocar),
 * 1894–1898 (vault-flash); shared/aire.css:13 (.fondo-velo);
 * shared/calidad-holograma.css:600–613 y
 * entrada/holograma-calidad-tropicalizado.css:1044–1064 (tratamiento de escena).
 * Adaptación: solo .holo-intro, sobre la foto hero-poster; el velo se retira
 * al destello. .mechanism del sistema se aplica al .qch-quality-emblem real.
 * No se importan fondos, tipografía, navegación ni pantallas de acceso del portal.
 */
:root {
  --tf-ice: #e8fdff;
  --tf-cyan: #91ecf7;
  --tf-cyan-bright: #c8f8ff;
  --tf-ease: cubic-bezier(.2,.75,.2,1);
  --tf-spring: cubic-bezier(.18,.9,.28,1.16);
  --tf-mono: GeistMono, monospace;
  --tf-sans: Archivo, Geist, sans-serif;
}
html.holo-opening, html.holo-opening body { overflow: hidden; overscroll-behavior: none; }
html.holo-opening:not(.holo-revealing) :is(.navigation,.hero-moments) { visibility: hidden; }
html.holo-opening .scroll-cue { opacity: 0 !important; }
body.tf-workspace .holo-intro {
  --tf-vault-ease: cubic-bezier(.77,0,.175,1);
  position: fixed;
  inset: 0;
  z-index: 90;
  width: 100%;
  height: 100svh;
  min-height: 0;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
}
body.tf-workspace .holo-intro > .ventana-inner,
body.tf-workspace .holo-intro .tropicalized-root {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
}
.holo-intro .holo-shade {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.10);
}
body.tf-workspace .holo-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 50%,rgba(6,43,59,.08) 0 26%,transparent 57%),
    linear-gradient(180deg,rgba(3,31,43,.08),transparent 28% 72%,rgba(1,18,28,.12));
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
body.tf-workspace .holo-intro:is([data-phase="entering"],[data-phase="access"])::before,
.holo-intro:is([data-phase="entering"],[data-phase="access"]) .holo-shade { opacity: 0; }
.holo-intro .vault-flare {
  position: fixed;
  inset: 0;
  z-index: 14;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 50%,rgba(232,253,255,.74),rgba(145,236,247,.1) 20%,transparent 46%),
    rgba(3,11,19,.04);
  mix-blend-mode: screen;
}
@keyframes vault-flash {
  0% { opacity: 0; }
  30% { opacity: .82; }
  100% { opacity: 0; }
}
/* Pulso de sistema-holografico.css:914–918 aplicado a los trazos SVG. */
body.tf-workspace .holo-intro[data-phase="keying"] .qch-vault-mechanism {
  filter: drop-shadow(0 0 8px rgba(252,2,2,.28));
}
body.tf-workspace .holo-intro[data-phase="keying"] .qch-precision-arc {
  stroke: rgba(255,91,99,.6);
}
/* Los movimientos expresamente pedidos, copiados del mecanismo del sistema. */
body.tf-workspace .holo-intro .qch-quality-emblem {
  transition: transform .7s var(--tf-ease), opacity .7s var(--tf-ease), filter .7s var(--tf-ease);
}
body.tf-workspace .holo-intro[data-phase="unlocking"] .qch-quality-emblem {
  transform: translate(-50%,-50%) scale(.76) rotateX(9deg);
}
body.tf-workspace .holo-intro[data-phase="entering"] .qch-quality-emblem {
  opacity: 0;
  filter: blur(11px);
  transform: translate(-50%,-50%) scale(1.55);
}
@media(prefers-reduced-motion:reduce) {
  .holo-intro { display:none !important; }
  html.holo-opening,html.holo-opening body { overflow:visible; }
  html.holo-opening :is(.navigation,.hero-moments) { visibility:visible; }
}

/* Pastilla original, añadido 7:10 p.m.: sistema-holografico.css:850–871,897–900;
 * holograma-calidad-tropicalizado.css:659–671,676–690,797–800. */
.holo-intro .activation-readout {
  position: absolute;
  left: 50%;
  bottom: 6%;
  z-index: 8;
  width: min(380px, 74vw);
  padding: 9px 14px;
  border: 1px solid var(--tf-line);
  border-radius: 999px;
  color: var(--tf-muted);
  background: rgba(4, 17, 27, .62);
  font-family: var(--tf-mono);
  font-size: .58rem;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .3s ease, transform .3s ease;
}
.holo-intro.portal-scene[data-phase]:not([data-phase="idle"]) .activation-readout {
  opacity: 1;
  transform: translate(-50%, 0);
}
body.tf-workspace .holo-intro .activation-readout {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 14;
  width: min(380px, 76vw);
  color: #e8fdff;
  border-color: rgba(224, 253, 255, .46);
  background: rgba(7, 55, 72, .5);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
}
body.tf-workspace .holo-intro.portal-scene > .activation-readout {
  position: fixed;
  bottom: max(28px, env(safe-area-inset-bottom));
  font-size: .64rem;
}
body.tf-workspace .holo-intro.portal-scene[data-phase]:not([data-phase="idle"]) .activation-readout {
  opacity: 1;
  transform: translate(-50%, 0);
}
body.tf-workspace .holo-intro.portal-scene[data-phase="access"] .activation-readout {
  visibility: hidden;
  opacity: 0 !important;
}

/* 20-nov, pedido de Edgar: «coloca el holograma más al centro de la pantalla».
   En pantallas angostas la caja del mecanismo mide menos que la pantalla y quedaba arriba:
   se centra a lo alto, donde ya caen el destello y el anillo del umbral. */
@media (max-width: 920px) {
  body.tf-workspace .holo-intro .tropicalized-root {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  body.tf-workspace .holo-intro .tropicalized-root > .qch-projection { flex: 0 0 auto; }
}
