/* Escena animada de radioenlaces (dos sedes unidas por un enlace) */
.rl-map { --brand-blue: #56aaf2; --brand-purple: #8740a8; }
.rl-map {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

.rl-zone {
  opacity: 0.16;
  transform-box: fill-box;
  transform-origin: center;
  animation: rl-breathe 6s ease-in-out infinite;
}

.rl-beam {
  stroke-dasharray: 10 10;
  animation: rl-dash 1.4s linear infinite;
}

.rl-pkt {
  fill: #fff;
  stroke: var(--brand-purple);
  stroke-width: 3;
  opacity: 0;
  animation: rl-travel 3.6s ease-in-out infinite;
}

.rl-pkt.b { animation-delay: 1.2s; stroke: var(--brand-blue); }
.rl-pkt.c { animation-delay: 2.4s; }

.rl-ring {
  fill: none;
  stroke: var(--brand-purple);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: rl-pulse 3s ease-out infinite;
}

.rl-ring.r2 { animation-delay: 1.5s; }
.rl-ring.d { stroke: var(--brand-blue); animation-delay: 0.7s; }
.rl-ring.d.r2 { animation-delay: 2.2s; }

@keyframes rl-breathe {
  0%, 100% { opacity: 0.1; transform: scaleY(0.85); }
  50% { opacity: 0.22; transform: scaleY(1); }
}

@keyframes rl-dash {
  to { stroke-dashoffset: -20; }
}

@keyframes rl-travel {
  0% { opacity: 0; transform: translateX(0); }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translateX(282px); }
}

@keyframes rl-pulse {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(4); }
}

@media (prefers-reduced-motion: reduce) {
  .rl-zone,
  .rl-beam,
  .rl-pkt,
  .rl-ring {
    animation: none;
  }

  .rl-pkt { opacity: 1; transform: translateX(141px); }
}

/*--------------------------------------------------------------
# Capacitaciones
--------------------------------------------------------------*/

.rl-cloud {
  animation: rl-drift 14s ease-in-out infinite alternate;
}

.rl-cloud.b {
  animation-duration: 18s;
  animation-direction: alternate-reverse;
}

@keyframes rl-drift {
  from { transform: translateX(-12px); }
  to { transform: translateX(16px); }
}

.rl-blink {
  animation: rl-blink 1.6s ease-in-out infinite;
}

.rl-blink.d {
  animation-delay: 0.8s;
}

@keyframes rl-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.rl-win {
  animation: rl-twinkle 4s ease-in-out infinite;
}

.rl-win.w2 { animation-delay: 1.3s; }
.rl-win.w3 { animation-delay: 2.6s; }

@keyframes rl-twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .rl-cloud,
  .rl-blink,
  .rl-win {
    animation: none;
  }
}

/* Torre con ondas de senal que se emiten */
.tower { position: relative; width: 100%; max-width: 520px; aspect-ratio: 968 / 1019; margin-inline: auto; }
.tower img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tower .tw-wave { transform-origin: 50% 35%; }

@media (prefers-reduced-motion: no-preference) {
  .tower .tw-wave { animation: tw-wave 3.4s ease-in-out infinite; opacity: 0; }
  .tower .tw-wave.w2 { animation-delay: 0.4s; }
  .tower .tw-wave.w3 { animation-delay: 0.8s; }
  @keyframes tw-wave {
    0%, 100% { opacity: 0; transform: scale(0.9); }
    22% { opacity: 1; transform: scale(1); }
    62% { opacity: 1; transform: scale(1.015); }
    88% { opacity: 0; transform: scale(1.07); }
  }
}
