/* PLABS_BEATBOX_COACH_V1 — intro coach DJ/escenario (todas las lecciones BeatBox) */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@700;800&display=swap");

.plux-story--beatbox {
  --bb-cyan: #3df0ff;
  --bb-pink: #ff4d9a;
  --bb-yel: #ffd24a;
  --bb-pur: #8b5cff;
  --bb-ink: #f4f0ff;
  background:
    radial-gradient(90% 55% at 50% -8%, rgba(255, 77, 154, 0.32), transparent 55%),
    radial-gradient(50% 40% at 12% 70%, rgba(61, 240, 255, 0.16), transparent 60%),
    radial-gradient(45% 35% at 88% 28%, rgba(139, 92, 255, 0.2), transparent 60%),
    linear-gradient(180deg, #2a1458 0%, #120a2c 48%, #06051a 100%) !important;
  color: var(--bb-ink);
  font-family: Outfit, Fredoka, Nunito, system-ui, sans-serif;
}

.plux-story--beatbox .plux-story__bubble {
  background: rgba(18, 10, 44, 0.92);
  border: 3px solid rgba(61, 240, 255, 0.45);
  box-shadow:
    8px 8px 0 rgba(0, 0, 0, 0.28),
    0 0 28px rgba(139, 92, 255, 0.25);
}

.plux-story--beatbox .plux-story__bubble:before {
  border-right-color: rgba(61, 240, 255, 0.45);
}
.plux-story--beatbox .plux-story__bubble:after {
  border-right-color: rgba(18, 10, 44, 0.92);
}

.plux-story--beatbox .plux-story__type {
  color: #f3e8ff;
}
.plux-story--beatbox .plux-story__type .caret {
  border-right-color: var(--bb-pink);
}

.plux-story--beatbox .plux-story__cta {
  background: linear-gradient(180deg, #c084fc, #ad2fed);
  box-shadow: 0 6px 0 #6b21a8;
}
.plux-story--beatbox .plux-story__cta.is-ready:active {
  box-shadow: 0 3px 0 #6b21a8;
}
.plux-story--beatbox .plux-story__skip {
  color: #d8b4fe;
}

/* ===== Coach stage ===== */
.plux-bbcoach {
  position: relative;
  flex-shrink: 0;
  width: min(300px, 78vw);
  height: min(300px, 78vw);
  display: grid;
  place-items: center;
  isolation: isolate;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.45));
}

.plux-bbcoach__glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 77, 154, 0.35), transparent 55%),
    radial-gradient(circle at 50% 55%, rgba(61, 240, 255, 0.22), transparent 60%);
  animation: bbGlowPulse 2.4s ease-in-out infinite;
  z-index: 0;
}

.plux-bbcoach__ring {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 2px solid rgba(61, 240, 255, 0.35);
  box-shadow: 0 0 18px rgba(61, 240, 255, 0.25), inset 0 0 18px rgba(139, 92, 255, 0.2);
  animation: bbRingSpin 12s linear infinite;
  z-index: 1;
}
.plux-bbcoach__ring::before,
.plux-bbcoach__ring::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bb-yel);
  box-shadow: 0 0 10px var(--bb-yel);
  top: 50%;
  left: 50%;
  margin: -5px;
}
.plux-bbcoach__ring::before { transform: translateY(-118px); }
.plux-bbcoach__ring::after {
  background: var(--bb-pink);
  box-shadow: 0 0 10px var(--bb-pink);
  transform: translateY(118px);
}

.plux-bbcoach__stage {
  position: relative;
  z-index: 2;
  width: 78%;
  height: 78%;
  display: grid;
  place-items: center;
  animation: bbBob 3s ease-in-out infinite;
}

/* Boombox body */
.plux-bbcoach__box {
  position: relative;
  width: 78%;
  height: 58%;
  border-radius: 22px;
  background:
    linear-gradient(180deg, #2a1a55 0%, #160b33 100%);
  border: 3px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 0 0 2px rgba(139, 92, 255, 0.35),
    0 10px 0 #0a0618,
    0 0 30px rgba(255, 77, 154, 0.25);
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: center;
  gap: 6px;
  padding: 12px 10px 14px;
  box-sizing: border-box;
}

.plux-bbcoach__spk {
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #1a1033 35%, #0d081c 36% 58%, #3df0ff 59% 64%, #160b33 65%);
  box-shadow:
    inset 0 0 0 3px rgba(61, 240, 255, 0.35),
    0 0 16px rgba(61, 240, 255, 0.25);
  position: relative;
  animation: bbSpkThump 0.85s ease-in-out infinite alternate;
}
.plux-bbcoach__spk--r { animation-delay: 0.12s; }
.plux-bbcoach__spk::after {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: radial-gradient(circle, #ff4d9a 0%, #8b5cff 70%, transparent 71%);
  opacity: 0.85;
}

.plux-bbcoach__eq {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 72%;
  padding-bottom: 4px;
}
.plux-bbcoach__eq i {
  display: block;
  width: 7px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--bb-yel), var(--bb-pink));
  box-shadow: 0 0 8px rgba(255, 77, 154, 0.55);
  animation: bbEqDance 0.55s ease-in-out infinite alternate;
  height: 40%;
}
.plux-bbcoach__eq i:nth-child(1) { animation-delay: 0s; height: 35%; }
.plux-bbcoach__eq i:nth-child(2) { animation-delay: .07s; background: linear-gradient(180deg, var(--bb-cyan), var(--bb-pur)); height: 55%; }
.plux-bbcoach__eq i:nth-child(3) { animation-delay: .14s; height: 70%; }
.plux-bbcoach__eq i:nth-child(4) { animation-delay: .21s; background: linear-gradient(180deg, var(--bb-cyan), var(--bb-pur)); height: 48%; }
.plux-bbcoach__eq i:nth-child(5) { animation-delay: .28s; height: 62%; }

/* Headphones */
.plux-bbcoach__phones {
  position: absolute;
  top: -18%;
  left: 50%;
  width: 88%;
  height: 42%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 3;
}
.plux-bbcoach__phones::before,
.plux-bbcoach__phones::after {
  content: "";
  position: absolute;
  top: 28%;
  width: 22%;
  height: 48%;
  border-radius: 12px;
  background: linear-gradient(180deg, #3df0ff, #8b5cff);
  box-shadow: 0 0 12px rgba(61, 240, 255, 0.45);
}
.plux-bbcoach__phones::before { left: 0; }
.plux-bbcoach__phones::after { right: 0; }
.plux-bbcoach__band {
  position: absolute;
  top: 8%;
  left: 12%;
  right: 12%;
  height: 18%;
  border: 5px solid #ffd24a;
  border-bottom: 0;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 0 10px rgba(255, 210, 74, 0.45);
}

/* Vinyl */
.plux-bbcoach__vinyl {
  position: absolute;
  bottom: 2%;
  right: 4%;
  width: 28%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #ff4d9a 0 12%, #120a2c 13% 28%, #3df0ff 29% 32%, #120a2c 33% 48%, #8b5cff 49% 52%, #120a2c 53% 70%, #ffd24a 71% 74%, #0a0618 75%);
  box-shadow: 0 0 14px rgba(255, 77, 154, 0.4);
  animation: bbSpin 3.2s linear infinite;
  z-index: 3;
}

/* Floating notes */
.plux-bbcoach__notes {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.plux-bbcoach__notes span {
  position: absolute;
  font-size: 1.15rem;
  filter: drop-shadow(0 0 6px rgba(61, 240, 255, 0.7));
  animation: bbNoteFloat 2.8s ease-in-out infinite;
  opacity: 0.9;
}
.plux-bbcoach__notes span:nth-child(1) { left: 8%; top: 18%; color: #3df0ff; animation-delay: 0s; }
.plux-bbcoach__notes span:nth-child(2) { right: 10%; top: 12%; color: #ff4d9a; animation-delay: .6s; font-size: 1.35rem; }
.plux-bbcoach__notes span:nth-child(3) { left: 18%; bottom: 16%; color: #ffd24a; animation-delay: 1.1s; }
.plux-bbcoach__notes span:nth-child(4) { right: 16%; bottom: 22%; color: #c084fc; animation-delay: 1.7s; }

.plux-bbcoach__tag {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  font-family: Outfit, Fredoka, sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd24a;
  text-shadow: 0 0 10px rgba(255, 210, 74, 0.55);
  white-space: nowrap;
}

@keyframes bbGlowPulse {
  0%, 100% { opacity: 0.7; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes bbRingSpin {
  to { transform: rotate(360deg); }
}
@keyframes bbBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes bbSpkThump {
  from { transform: scale(0.96); }
  to { transform: scale(1.05); }
}
@keyframes bbEqDance {
  from { transform: scaleY(0.45); }
  to { transform: scaleY(1); }
}
@keyframes bbSpin {
  to { transform: rotate(360deg); }
}
@keyframes bbNoteFloat {
  0%, 100% { transform: translateY(0) rotate(-6deg); opacity: 0.55; }
  50% { transform: translateY(-14px) rotate(8deg); opacity: 1; }
}

@media (max-width: 640px) {
  .plux-bbcoach {
    width: min(220px, 72vw);
    height: min(220px, 72vw);
  }
  .plux-bbcoach__ring::before { transform: translateY(-86px); }
  .plux-bbcoach__ring::after { transform: translateY(86px); }
  .plux-bbcoach__tag { font-size: 0.62rem; }
}

@media (prefers-reduced-motion: reduce) {
  .plux-bbcoach__glow,
  .plux-bbcoach__ring,
  .plux-bbcoach__stage,
  .plux-bbcoach__spk,
  .plux-bbcoach__eq i,
  .plux-bbcoach__vinyl,
  .plux-bbcoach__notes span {
    animation: none !important;
  }
}
