/* ===========================================================
   SEDA — atmósfera y textura
   =========================================================== */

#seda-atmosfera {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* El contenido va por encima del lienzo.
   OJO: el header NO entra aquí. Lleva su propio position/z-index en
   sitio.css (fixed, z-index 100). Si se mete en esta regla, deja de
   ser fijo y el menú de celular queda por debajo del contenido. */
main,
.sitio-pie { position: relative; z-index: 1; }

/* --- grano: ahora sí visible --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* viñeta: oscurece las orillas y centra la mirada */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center,
    transparent 42%,
    rgba(0, 18, 26, 0.5) 100%);
}
