/* Background slider fijo con blur (no afecta al contenido) */
.cg-bgslider {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Capas del slider */
.cg-bgslider__layer {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  /* Blur solo al fondo */
  filter: blur(var(--cg-blur, 10px));
  transform: scale(1.08);

  opacity: 0;
  transition: opacity 1200ms ease;
}

/* Capa activa visible */
.cg-bgslider__layer.is-active {
  opacity: 1;
}

/* Overlay para oscurecer + darle look pro (NO se blurea porque va aparte) */
.cg-bgslider__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 10%,
      rgba(0,0,0,0.30),
      rgba(0,0,0,0.70)
    ),
    linear-gradient(
      180deg,
      rgba(0,0,0,0.35),
      rgba(0,0,0,var(--cg-dim, 0.55))
    );
}

/* Asegura que tu contenido quede arriba */
.cg-page {
  position: relative;
  z-index: 1;
}

/* Accesibilidad: menos animación */
@media (prefers-reduced-motion: reduce) {
  .cg-bgslider__layer {
    transition: none;
  }
}
