/* ==========================================================
   Animación "Diseño y Optimización de Redes Inalámbricas"
   Optimizada: solo anima transform / opacity / dashoffset,
   sin filtros ni gradientes escalados. Se pausa fuera de
   pantalla (js/wireless-animation.js) y respeta
   prefers-reduced-motion.
   ========================================================== */

.wireless-animation-container {
    background: #fff;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.wl-scene {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
}

/* Textos */
.wl-label {
    font: 700 17px 'Ubuntu', sans-serif;
    fill: #14183E;
}

.wl-sublabel {
    font: 400 13px 'Open Sans', sans-serif;
    fill: #6b7690;
}

/* Estructuras metálicas */
.wl-metal {
    stroke: #5b6780;
    stroke-linecap: round;
    fill: none;
}

/* Enlaces inalámbricos */
.wl-link {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 8 8;
    animation: wl-dash 1.2s linear infinite;
}

.wl-link--backhaul { stroke: #F37021; }
.wl-link--access   { stroke: #1363C6; opacity: .75; animation-duration: 1.6s; }

@keyframes wl-dash {
    to { stroke-dashoffset: -16; }
}

/* Ondas de cobertura de la torre */
.wl-ring {
    fill: none;
    stroke: #1363C6;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
    transform-box: fill-box;
    transform-origin: center;
    opacity: 0;
    animation: wl-ring 3.6s ease-out infinite;
}

.wl-ring--2 { animation-delay: 1.2s; }
.wl-ring--3 { animation-delay: 2.4s; }

@keyframes wl-ring {
    0%   { transform: scale(.35); opacity: .85; }
    100% { transform: scale(4);   opacity: 0; }
}

/* Ondas Wi-Fi de los routers */
.wl-wave {
    fill: none;
    stroke: #15ACE1;
    stroke-width: 3.5;
    stroke-linecap: round;
    opacity: .15;
    animation: wl-wave 1.8s ease-in-out infinite;
}

.wl-wave--2 { animation-delay: .25s; }
.wl-wave--3 { animation-delay: .5s; }

@keyframes wl-wave {
    0%, 100% { opacity: .15; }
    40%      { opacity: 1; }
}

/* LEDs y baliza */
.wl-led {
    animation: wl-blink 1.1s linear infinite;
}

.wl-led--2 { animation-delay: .2s; }
.wl-led--3 { animation-delay: .45s; }
.wl-led--4 { animation-delay: .7s; }

.wl-beacon {
    animation: wl-blink 1.6s linear infinite;
}

@keyframes wl-blink {
    0%, 55%   { opacity: 1; }
    56%, 100% { opacity: .25; }
}

/* Pausa cuando la escena no es visible */
.wl-scene.is-paused,
.wl-scene.is-paused * {
    animation-play-state: paused !important;
}

/* Accesibilidad: sin movimiento */
@media (prefers-reduced-motion: reduce) {
    .wl-scene * {
        animation: none !important;
    }

    .wl-ring { opacity: 0; }
    .wl-wave { opacity: .8; }
    .wl-packet { display: none; }
}
