<?php
$path = __DIR__ . '/../config.php';
if (!file_exists($path)) {
    http_response_code(500);
    header('Content-Type: application/json');
    echo json_encode(['error' => 'Falta backend/config.php. Copia config.example.php a config.php y completa tus credenciales.']);
    exit;
}
return require $path;
