/* Zenith Remote — demo animada estilo “GIF de sofá” */
.zenith-remote-section {
  position: relative;
  overflow: hidden;
}

.remote-demo {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}

@media (min-width: 900px) {
  .remote-demo {
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
  }
}

.remote-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.remote-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  opacity: 0.55;
  transition: opacity 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

.remote-step.is-active {
  opacity: 1;
  border-color: rgba(233, 20, 41, 0.35);
  background: rgba(233, 20, 41, 0.06);
}

.remote-step-num {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(233, 20, 41, 0.18);
  color: #ff6b7a;
}

.remote-step h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.remote-step p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
}

.remote-stage {
  position: relative;
  min-height: 320px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(233, 20, 41, 0.14), transparent 60%),
    #0c0c0f;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.remote-stage-glow {
  position: absolute;
  inset: auto -20% -30% -20%;
  height: 60%;
  background: radial-gradient(circle, rgba(233, 20, 41, 0.12), transparent 70%);
  pointer-events: none;
}

.remote-frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

.remote-frame.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Escena 1 — barra de reproducción */
.remote-desktop {
  width: min(100%, 420px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 14, 18, 0.95);
  padding: 0.75rem 1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.remote-desktop-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.remote-cover {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e91429, #5a1020);
}

.remote-meta {
  flex: 1;
  min-width: 0;
}

.remote-meta strong {
  display: block;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.remote-meta span {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
}

.remote-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: rgba(233, 20, 41, 0.2);
  color: #ff8a96;
  display: grid;
  place-items: center;
  animation: remote-pulse 1.6s ease-in-out infinite;
}

@keyframes remote-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(233, 20, 41, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(233, 20, 41, 0); }
}

/* Escena 2 — QR */
.remote-qr-card {
  text-align: center;
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(20, 20, 24, 0.96);
}

.remote-qr-grid {
  width: 140px;
  height: 140px;
  margin: 0 auto 0.75rem;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 2px;
}

.remote-qr-cell {
  border-radius: 1px;
  background: #f5f5f5;
}

.remote-qr-cell.on {
  background: #111;
}

.remote-scan-line {
  width: 140px;
  height: 2px;
  margin: -72px auto 0;
  background: linear-gradient(90deg, transparent, #e91429, transparent);
  animation: remote-scan 2.2s ease-in-out infinite;
}

@keyframes remote-scan {
  0%, 100% { transform: translateY(-60px); opacity: 0; }
  20% { opacity: 1; }
  50% { transform: translateY(60px); opacity: 1; }
  80% { opacity: 0; }
}

/* Escena 3 — móvil en el sofá */
.remote-phone-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.remote-phone {
  width: 148px;
  border-radius: 22px;
  border: 3px solid rgba(255, 255, 255, 0.14);
  background: #09090b;
  padding: 10px 8px 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.remote-phone-notch {
  width: 44px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 auto 8px;
}

.remote-phone-ui {
  border-radius: 14px;
  background: #141417;
  padding: 12px 10px;
  text-align: center;
}

.remote-phone-ui .remote-cover {
  width: 56px;
  height: 56px;
  margin: 0 auto 8px;
}

.remote-phone-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.remote-phone-controls span {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
}

.remote-phone-controls span.play {
  background: #fff;
  color: #000;
  animation: remote-tap 2s ease-in-out infinite;
}

@keyframes remote-tap {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(0.92); }
  55% { transform: scale(0.92); }
}

.remote-couch-caption {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

/* Ciclo automático de escenas */
.remote-stage[data-scene="1"] .remote-frame--1,
.remote-stage[data-scene="2"] .remote-frame--2,
.remote-stage[data-scene="3"] .remote-frame--3 {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.zenith-remote-section[data-scene="1"] .remote-step:nth-child(1),
.zenith-remote-section[data-scene="2"] .remote-step:nth-child(2),
.zenith-remote-section[data-scene="3"] .remote-step:nth-child(3) {
  opacity: 1;
  border-color: rgba(233, 20, 41, 0.35);
  background: rgba(233, 20, 41, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  .remote-icon-btn,
  .remote-scan-line,
  .remote-phone-controls span.play {
    animation: none;
  }
  .remote-frame {
    transition: none;
  }
}
