/* Portify · Campo · transición entre páginas ("tablero"). Ver campo-gate.js.
   Capa fija sobre toda la página; nunca recibe eventos. Respaldo sin WebGL2: fundido del color de fondo + logo SVG. */
.gate-fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2147483000; pointer-events: none; display: block; margin: 0; padding: 0; border: 0; }
.gate-fx--css { overflow: hidden; }
.gate-fx--css .gate-bg { position: absolute; inset: 0; background: var(--bg); }
.gate-fx--css .gate-lock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; color: var(--text); opacity: 0; }
.gate-fx--css .gate-logo { flex: none; overflow: visible; }
/* wordmark del respaldo: letras que aparecen una a una (misma tipografía y cadencia que el shader) */
.gate-fx--css .gate-word { display: none; font-family: var(--display, 'DM Serif Display', ui-serif, Georgia, serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
.gate-fx--css.gate-fx--hold .gate-word { display: inline-block; }   /* el nombre sólo va en la pantalla de carga, no en las transiciones */
.gate-fx--css .gate-word i { font-style: normal; display: inline-block; opacity: 0; animation: gate-type 650ms cubic-bezier(0.23, 1, 0.32, 1) both; animation-delay: calc(220ms + var(--i) * 95ms); }
@keyframes gate-type { from { opacity: 0; transform: translateY(0.16em); } to { opacity: 1; transform: none; } }

/* Retención (CampoGate.hold): la cubierta bloquea los clics mientras tapa la página */
.gate-fx--hold { pointer-events: auto; cursor: default; }
.gate-fx--hold.gate-fx--css .gate-logo { animation: gate-breathe 2.8s ease-in-out infinite; }
.gate-fx--hold.gate-fx--css .gate-dot { animation: gate-dot 2.8s ease-in-out infinite; }
@keyframes gate-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes gate-dot { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .gate-fx--css .gate-word i { animation: none; opacity: 1; }
  .gate-fx--hold.gate-fx--css .gate-logo, .gate-fx--hold.gate-fx--css .gate-dot { animation: none; }
}
