/**
 * Estilos para el efecto de torres VoIP
 */

/* Marcadores de torres celulares */
.cell-tower-marker {
    position: relative;
    z-index: 5 !important; /* Debajo de los botones de servicio */
}

.tower-base {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Torre azul por defecto */
.tower-base i {
    font-size: 24px;
    color: #0066ff;
    filter: drop-shadow(0 0 10px #0066ff);
    z-index: 2;
    position: relative;
    transition: all 0.3s ease;
}

/* Ondas de señal - rojas por defecto */
.signal-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #ff0000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.signal-wave.wave-1 {
    animation: signalPulse 2s ease-out infinite;
}

.signal-wave.wave-2 {
    animation: signalPulse 2s ease-out infinite 0.5s;
}

.signal-wave.wave-3 {
    animation: signalPulse 2s ease-out infinite 1s;
}

@keyframes signalPulse {
    0% {
        width: 20px;
        height: 20px;
        opacity: 0.8;
    }
    100% {
        width: 60px;
        height: 60px;
        opacity: 0;
    }
}

/* Estilos de torre activa */
.tower-base.active-tower i {
    color: #ff0000 !important;
    filter: drop-shadow(0 0 20px #ff0000) !important;
}

/* Ondas verdes cuando está activa */
.tower-base.active-tower .signal-wave,
.signal-wave.active-wave {
    border-color: #00ff00 !important;
    animation-duration: 0.5s !important;
}

/* Puntos del camino VoIP - verde */
.voip-path-dot {
    background: #00ff00 !important;
    box-shadow: 0 0 4px #00ff00;
}

/* Icono de comunicación */
.voip-communication {
    position: fixed;
    pointer-events: none;
}

/* Animación del pulso de llegada */
@keyframes commPulse {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

/* Ajustes para móvil */
@media (max-width: 768px) {
    .tower-base {
        width: 30px;
        height: 30px;
    }
    
    .tower-base i {
        font-size: 18px;
    }
    
    .signal-wave {
        width: 15px;
        height: 15px;
    }
    
    @keyframes signalPulse {
        0% {
            width: 15px;
            height: 15px;
            opacity: 0.8;
        }
        100% {
            width: 45px;
            height: 45px;
            opacity: 0;
        }
    }
}