/* ==========================================================================
   Portada · capas de fondo muy sutiles tras la gráfica 3D
   retícula + etiquetas (canvas) · cristal líquido · nodos (canvas) · viñeta
   ========================================================================== */
.hero__bg { position: absolute; inset: 0; z-index: -4; overflow: hidden; pointer-events: none; background: var(--bg-deep); }
.hero__bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.glassform {
  position: absolute; opacity: 0.16; filter: blur(14px); will-change: transform;
  background: radial-gradient(120% 120% at 28% 22%, oklch(0.5 0.07 258 / 0.5), oklch(0.2 0.04 262 / 0.1) 62%, transparent 78%);
  box-shadow:
    inset 0 0 0 1.5px oklch(0.82 0.04 250 / 0.55),
    inset 16px 22px 44px oklch(0.85 0.05 250 / 0.28),
    inset -22px -26px 54px oklch(0.4 0.08 262 / 0.4);
}
.glassform--a { width: 62vmax; height: 46vmax; left: -16vmax; top: -12vmax; border-radius: 58% 42% 61% 39% / 47% 56% 44% 53%; animation: glassDriftA 90s ease-in-out infinite alternate; }
.glassform--b { width: 44vmax; height: 52vmax; right: -14vmax; top: 6vmax; border-radius: 41% 59% 46% 54% / 58% 43% 57% 42%; animation: glassDriftB 110s ease-in-out infinite alternate; }
.glassform--c { width: 56vmax; height: 30vmax; left: 22vmax; bottom: -16vmax; border-radius: 52% 48% 38% 62% / 55% 61% 39% 45%; opacity: 0.12; animation: glassDriftC 100s ease-in-out infinite alternate; }
@keyframes glassDriftA { to { transform: translate3d(5vmax, 3vmax, 0) rotate(7deg); } }
@keyframes glassDriftB { to { transform: translate3d(-4vmax, 4vmax, 0) rotate(-9deg); } }
@keyframes glassDriftC { to { transform: translate3d(-5vmax, -2vmax, 0) rotate(5deg); } }

.hero__bg::after { /* viñeta */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 78% 74% at 50% 46%, transparent 38%, oklch(0.085 0.015 262 / 0.55) 74%, oklch(0.06 0.015 262 / 0.94) 100%);
}
@media (prefers-reduced-motion: reduce) { .glassform { animation: none; } }
