/* Spotlight de marca: verde → amarillo → naranja siguiendo el cursor */
.glow-card {
  --glow-x: 50%;
  --glow-y: 50%;
  --glow-hue: 72;
  position: relative;
  isolation: isolate;
}

.glow-card > :not(.glow-layer) {
  position: relative;
  z-index: 1;
}

.glow-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(
      240px 240px at var(--glow-x) var(--glow-y),
      hsl(var(--glow-hue) 96% 60% / .13),
      transparent 68%
    );
  transition: opacity .22s ease;
}

.glow-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background:
    radial-gradient(
      190px 190px at var(--glow-x) var(--glow-y),
      hsl(var(--glow-hue) 100% 60% / .94),
      rgba(255,255,255,.68) 28%,
      transparent 72%
    );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.glow-card.glow-activo .glow-layer {
  opacity: 1;
}

.glow-card.glow-activo {
  box-shadow:
    0 28px 72px -42px hsl(var(--glow-hue) 75% 34% / .5),
    var(--sombra-card, 0 20px 50px -30px rgba(0,0,0,.35));
}

@media (pointer: coarse) {
  .glow-layer {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glow-layer {
    transition: none;
  }
}
