/* ==============================
   BORDE ANIMADO PARA AUDIO-PHONE
   ============================== */

/* CONTENEDOR DEL EFECTO */
.box {
  position: relative;
  width: 320px;          /* igual al audio-phone */
  margin: auto;
}

/* BORDE GIRATORIO */
.box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 46px;
  background: repeating-conic-gradient(
    from var(--a),
    #ff6e48,
    #00fff1,
    #ff00aa,
    #46fcb4,
    #00fff1
  );
  animation: rotating 5s linear infinite;
}

/* BLUR EXTERNO */
.box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 46px;
  background: repeating-conic-gradient(
    from var(--a),
    #ff6e48,
    #00fff1,
    #ff00aa,
    #46fcb4,
    #00fff1
  );
  animation: rotating 5s linear infinite;
  filter: blur(45px);
  opacity: 0.75;
}

/* RECORTE INTERNO (CLAVE PARA QUE SEA BORDE) */
.box > span {
  position: absolute;
  inset: 4px;
  background: transparent;
  border-radius: 42px;
  z-index: 1;
}

/* TU GADGET */
.audio-phone {
  position: relative;
  z-index: 2;
}

/* ==============================
   ANIMACIÓN
   ============================== */

@property --a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes rotating {
  from { --a: 0deg; }
  to   { --a: 360deg; }
}
