{
  "openapi": "3.1.0",
  "info": {
    "title": "API pública de Cuentas Claras",
    "version": "1.0.0",
    "description": "Datos públicos de la app Cuentas Claras en JSON, para asistentes de IA y agentes. Sólo lectura, sin autenticación y sin datos personales: es la misma información que ya está publicada en la portada.",
    "contact": { "url": "https://cuentasclaras.cc/soporte" },
    "license": { "name": "Uso libre con atribución a cuentasclaras.cc" }
  },
  "servers": [{ "url": "https://cuentasclaras.cc" }],
  "paths": {
    "/api/publico/info": {
      "get": {
        "operationId": "obtenerInformacion",
        "summary": "Qué es Cuentas Claras, precio, plataformas e idiomas",
        "responses": {
          "200": {
            "description": "Información general",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "nombre": { "type": "string" },
                    "resumen": { "type": "string" },
                    "precio": { "type": "string" },
                    "plataformas": {
                      "type": "object",
                      "properties": {
                        "android": { "type": "string" },
                        "iphone": { "type": "string" },
                        "web": { "type": "string" }
                      }
                    },
                    "idiomas": { "type": "array", "items": { "type": "string" } },
                    "web": { "type": "string" }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/publico/funciones": {
      "get": {
        "operationId": "listarFunciones",
        "summary": "Funciones de la app con su descripción",
        "responses": {
          "200": {
            "description": "Lista de funciones",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "funciones": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "nombre": { "type": "string" },
                          "descripcion": { "type": "string" }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/publico/faq": {
      "get": {
        "operationId": "listarPreguntasFrecuentes",
        "summary": "Preguntas frecuentes con su respuesta",
        "responses": {
          "200": {
            "description": "Preguntas frecuentes",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "faq": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "pregunta": { "type": "string" },
                          "respuesta": { "type": "string" }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
