In the following query, the user has several filtering options, you can filter by name, title, area, headquarters the problem is that the name field is not filtering , nothing is returning instead with the other filters if you return results
$nombre=$_POST['nombre'];
$cargo=$_POST['cargo'];
$area=$_POST['area'];
$sede=$_POST['sede'];
$registro=mysqli_query($conexion,"SELECT
nombre,
apellidos,
cargo,
area,
correocorporativo,
extension
FROM formulario
WHERE estado='A'
AND nombre
LIKE '%".$nombre."%'
AND area LIKE '%".$area."%'
OR cargo LIKE '%".$cargo."%'
OR sede LIKE '%".$sede."%'"