/* v357 · LUCES DEL POWER DANCE STUDIO — panel del interruptor de la pared izquierda (#pet-luces, companion.js LucesPanel).
 * Cristal obsidiana con bisel de latón (§3), 10 muestras de 44 px en su regla base (§6.4), solo transform / opacity en la
 * entrada (§6.1, curva de rebote §6.2) con keyframes gemelos A/B por data-burst (V-14). El estado vive en data-estado y
 * aria-pressed, nunca en class (V-12). */
.pet-luces {
  position: fixed;
  left: 8px;
  top: 8px;
  z-index: 9000;
  box-sizing: border-box;
  width: 340px;
  max-width: calc(100vw - 16px);
  padding: 10px 10px 10px;
  border-radius: 14px;
  background: rgba(13, 13, 18, 0.97);
  border: 1px solid rgba(201, 162, 39, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 236, 190, 0.18), inset 0 -2px 0 rgba(0, 0, 0, 0.55), 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 14px rgba(255, 42, 61, 0.22);
  color: #f3f0ea;
  font-family: 'Rajdhani', system-ui, sans-serif;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.pet-luces[hidden] { display: none; }
.pet-luces[data-burst="a"] { animation: pet-luces-in-a 220ms cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.pet-luces[data-burst="b"] { animation: pet-luces-in-b 220ms cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes pet-luces-in-a {
  from { opacity: 0; transform: scale(0.92) translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes pet-luces-in-b {
  from { opacity: 0; transform: scale(0.92) translateY(6px); }
  to { opacity: 1; transform: none; }
}

.pet-luces-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; margin-bottom: 8px; }
.pet-luces-t {
  margin: 0;
  min-width: 0;
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ffd98a;
  text-shadow: 0 1px 0 #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pet-luces-x {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: -8px -6px -8px 0;
  border: 0;
  background: transparent;
  color: #d7d2c8;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 120ms cubic-bezier(0.16, 1, 0.3, 1);
}
.pet-luces-x:active { transform: scale(0.95); }

.pet-luces-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.pet-luces-chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0d0d12;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -2px 0 rgba(0, 0, 0, 0.6);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 120ms cubic-bezier(0.16, 1, 0.3, 1);
}
.pet-luces-chip:active { transform: scale(0.95); }
/* La cruz de neón en miniatura, del color de la luz (lo que retiñe en la pared). */
.pet-luces-cruz { position: relative; width: 18px; height: 24px; }
.pet-luces-cruz::before,
.pet-luces-cruz::after {
  content: '';
  position: absolute;
  background: var(--luz, #ff2a3d);
  box-shadow: 0 0 6px var(--luz, #ff2a3d);
  border-radius: 1px;
}
.pet-luces-cruz::before { left: 8px; top: 0; width: 3px; height: 24px; }
.pet-luces-cruz::after { left: 0; top: 8px; width: 18px; height: 3px; }
.pet-luces-n { position: absolute; left: 4px; top: 2px; font-size: 0.55rem; font-weight: 700; color: rgba(255, 255, 255, 0.45); }
.pet-luces-lock { position: absolute; right: 3px; bottom: 2px; width: 9px; height: 8px; display: none; }
.pet-luces-lock::before { content: ''; position: absolute; left: 1px; right: 1px; bottom: 0; height: 5px; background: #c9a227; border-radius: 1px; }
.pet-luces-lock::after { content: ''; position: absolute; left: 2px; top: -1px; width: 3px; height: 3px; border: 1px solid #c9a227; border-bottom: 0; border-radius: 3px 3px 0 0; }
.pet-luces-chip[data-estado="bloqueada"] .pet-luces-lock { display: block; }
.pet-luces-chip[data-estado="bloqueada"] .pet-luces-cruz { opacity: 0.55; }
.pet-luces-chip[data-estado="puesta"] { border-color: var(--luz, #ff2a3d); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 10px var(--luz, #ff2a3d); }
.pet-luces-chip[aria-pressed="true"] { outline: 2px solid #ffd98a; outline-offset: 1px; }

.pet-luces-pie { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 8px; }
.pet-luces-info { flex: 1 1 auto; min-width: 0; }
.pet-luces-nom, .pet-luces-msg { margin: 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pet-luces-nom { font-size: 0.86rem; font-weight: 700; color: #fff; }
.pet-luces-msg { font-size: 0.72rem; color: #b9b3a8; min-height: 1em; }
.pet-luces-acc {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 112px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(201, 162, 39, 0.7);
  background: #1a1408;
  color: #ffd98a;
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 236, 190, 0.2), 0 0 10px rgba(201, 162, 39, 0.25);
  transition: transform 120ms cubic-bezier(0.16, 1, 0.3, 1);
}
.pet-luces-acc:active { transform: scale(0.95); }
.pet-luces-acc[data-estado="tuya"] { border-color: rgba(34, 230, 255, 0.6); color: #bff6ff; background: #08161a; }
.pet-luces-acc[data-estado="confirmar"] { border-color: #ff2a3d; color: #fff; background: #2a0a10; }
.pet-luces-acc[data-estado="puesta"] { border-color: rgba(255, 255, 255, 0.18); color: #8f8a80; background: #121216; box-shadow: none; cursor: default; }

/* v358 · las muestras 6–10 se mueven como su luz en la pared (solo opacity, transform y filter). */
.pet-luces-chip[data-fx="respira"] .pet-luces-cruz { animation: pet-luces-respira 5s cubic-bezier(0.37, 0, 0.63, 1) infinite; }
.pet-luces-chip[data-fx="nocturno"] .pet-luces-cruz { animation: pet-luces-respira 6s cubic-bezier(0.37, 0, 0.63, 1) infinite; }
.pet-luces-chip[data-fx="onda"] .pet-luces-cruz { animation: pet-luces-onda 2.4s cubic-bezier(0.37, 0, 0.63, 1) infinite; }
.pet-luces-chip[data-fx="aurora"] .pet-luces-cruz { animation: pet-luces-aurora 9s cubic-bezier(0.37, 0, 0.63, 1) infinite; }
.pet-luces-chip[data-fx="barrido"] { overflow: hidden; }
.pet-luces-chip[data-fx="barrido"]::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 0;
  width: 10px;
  height: 3px;
  border-radius: 1px;
  background: #cfe0ff;
  box-shadow: 0 0 6px #6f9bff;
  pointer-events: none;
  animation: pet-luces-barrido 1.28s steps(12) infinite alternate;
}

@keyframes pet-luces-respira {
  0%, 100% {
    opacity: 0.42;
  }
  50% {
    opacity: 1;
  }
}
@keyframes pet-luces-onda {
  0%, 100% {
    filter: hue-rotate(14deg);
  }
  50% {
    filter: hue-rotate(-22deg);
  }
}
@keyframes pet-luces-aurora {
  0%, 100% {
    filter: hue-rotate(0deg);
  }
  40% {
    filter: hue-rotate(103deg);
  }
  70% {
    filter: hue-rotate(140deg);
  }
}
@keyframes pet-luces-barrido {
  0% {
    transform: translateX(4px);
  }
  100% {
    transform: translateX(46px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pet-luces[data-burst] { animation: none; }
  .pet-luces-chip[data-fx] .pet-luces-cruz,
  .pet-luces-chip[data-fx]::after { animation: none; }
}
