=== Libro de Reclamaciones para Perú ===
Contributors: neurosystems
Tags: libro de reclamaciones, complaints book, indecopi, peru, customer service
Requires at least: 5.0
Tested up to: 6.9
Stable tag: 1.5.4.1
Requires PHP: 7.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Libro de Reclamaciones Virtual para Perú. Cumple con INDECOPI, evita multas y gestiona tus reclamos fácilmente.

== Description ==

**NeuroSystems Libro de Reclamaciones Peru** te ayuda a implementar un Libro de Reclamaciones Virtual en tu sitio WordPress, siguiendo los lineamientos establecidos por INDECOPI de acuerdo con la Ley N° 29571 (Código de Protección y Defensa del Consumidor).

Este plugin está diseñado específicamente para negocios que operan en Perú y necesitan cumplir con las regulaciones de protección al consumidor de manera fácil y profesional.

**Main Features**

* Legal Compliance: Form with fields required by INDECOPI regulations
* Automatic Code Generation: Creates unique codes for each complaint (e.g., REC-20250102-0001)
* Notifications: Sends a receipt to the customer and a notification to the administrator
* Management Panel: View, manage and respond to complaints directly from WordPress
* Responsive Design: Form adapts to mobile, tablet and desktop devices
* Easy Implementation: Use the shortcode `[neurlrp_libro_reclamaciones]`
* File Attachments: Allows customers to attach files
* Guardian Data: Support for representative information when the consumer is a minor

**PRO Version**

Upgrade to the PRO version for additional features:

* Email Diagnostics and Logs
* Custom Email Configuration (Sender, CC, BCC)
* Data Export to CSV/Excel
* File Attachments in Responses
* Priority Support
* License System

[Get PRO Version](https://neurosystems.net.pe/producto/libro-de-reclamaciones-pro/)

**Legal Requirement**

According to Peruvian Law N° 29571 and Supreme Decree N° 011-2011-PCM, providers selling products or services in Peru through the internet are required to have a Virtual Complaints Book accessible on their website.

**Disclaimer of Liability**

Please note that this plugin provides a standard template designed to facilitate compliance with general regulations. However, specific legal requirements may vary depending on your business type.

**Important:** The authors of this plugin are not responsible for the legal compliance of your specific business. We strongly recommend consulting with your legal department or a lawyer to ensure this format meets your company's specific obligations. This tool is a technical solution to publish the form and manage notifications, but it does not replace professional legal advice.

== External Services ==

This plugin connects to an external service for conversion tracking purposes.

**Service:** NeuroSystems Conversion Tracking API
**Purpose:** Tracks when users click the "Get PRO Version" link in the plugin settings page to help us understand upgrade interest.
**Data Sent:** Domain name of the WordPress installation
**When:** Only when an administrator clicks the PRO upgrade link in the plugin settings
**Endpoint:** https://neurosystems.net.pe/wp-json/lrp-license/v1/track-conversion

**Privacy & Terms:**
* Privacy Policy: https://neurosystems.net.pe/privacy-policy/
* Terms of Service: https://neurosystems.net.pe/terms-of-service/

No personal data or user information is transmitted. Only the domain name is sent for statistical purposes.

== Installation ==

**Automatic Installation**

1. Go to Plugins > Add New in your WordPress dashboard
2. Search for "NeuroSystems Libro de Reclamaciones Peru"
3. Click Install Now and then Activate
4. Create a new page (e.g., "Complaints Book")
5. Add the shortcode: `[neurlrp_libro_reclamaciones]`

**Manual Installation**

1. Download the plugin ZIP file
2. Go to Plugins > Add New > Upload Plugin
3. Select the ZIP file and click Install Now
4. Activate the plugin
5. Follow steps 4-5 from automatic installation

== Frequently Asked Questions ==

= Is a Virtual Complaints Book mandatory? =

Yes, according to Law N° 29571 and Supreme Decree N° 011-2011-PCM, providers selling products or services in Peru through the internet are required to have a Virtual Complaints Book.

= Does the form support INDECOPI requirements? =

Yes. The form includes required fields such as consumer data, document type (DNI, CE, RUC, Passport), type of contracted good, and complaint details.

= Do customers receive a receipt? =

Yes, an email is automatically sent to the customer with the unique code of their complaint and registered details.

= Can I manage complaints from WordPress? =

Yes, complaints are registered in the Complaints menu of your WordPress panel, where you can change their status and respond.

= How do I customize email settings? =

In the free version, emails are sent using your WordPress site's default email. For advanced email configuration (custom sender, CC, BCC), upgrade to the PRO version.

= Can I export complaint data? =

Data export to CSV/Excel is available in the PRO version. In the free version, you can access data through your WordPress database or use third-party export plugins.

== Screenshots ==

1. Complaint form interface
2. Administration panel
3. Complaint details view
4. Email settings
5. Customer receipt email

== Changelog ==

= 1.5.4.1 =
* Versión de mantenimiento corregida: Actualización automática de la base de datos para instalaciones existentes.

= 1.5.4 =
* Versión de mantenimiento y ajustes menores.

= 1.5.3.1 - 2026-01-04 =
* Feature: Separated Full Name field into Names, Paternal Surname, and Maternal Surname (INDECOPI requirement).
* Improvement: Dynamic RUC logic to hide surnames and rename label to 'Razón Social'.
* Improvement: Emails now display full concatenated name.

= 1.5.3 - 2026-01-04 =
* Security: Implemented late escaping for all echoed variables to prevent XSS.
* Update: Renamed shortcode to `[neurlrp_libro_reclamaciones]` to use unique prefix.
* Fix: Addressed all feedback from second WordPress.org review.

= 1.5.2 - 2025-12-19 =
* Improvement: Enhanced form design with modern gradients and animations
* Improvement: Better responsive design for mobile devices
* Improvement: Improved UX with smooth transitions and hover effects
* Improvement: Professional styling for better user experience
* Fix: All WordPress.org compliance issues resolved

= 1.5.1 - 2025-12-18 =
* Update: Plugin name changed to "NeuroSystems Libro de Reclamaciones Peru"
* Update: Plugin slug changed to "neurosystems-libro-reclamaciones-peru"
* Update: All prefixes changed from "lrp_" to "neurlrp_" (4+ characters)
* Security: Added direct file access protection to all template files
* Security: Improved nonce sanitization with wp_unslash and sanitize_text_field
* Security: Added proper escaping to all output variables
* Improvement: Refactored admin scripts and styles to external files
* Improvement: Moved inline email styles to external CSS file
* Fix: Corrected typo in Plugin URI
* Fix: Translated admin menu texts to English
* Documentation: Added External Services section for conversion tracking
* Change: Moved file attachment feature for responses to PRO version only

= 1.5.0 - 2025-12-02 =
* New: Separated response forms based on status
* New: Response management system with validation
* Improvement: Conditional email sending logic
* Improvement: HTML email templates with status colors
* Improvement: Dynamic form interface in admin
* Database: Added support for response tracking

= 1.4.0 =
* Update: Migration to new domain neurosystems.net.pe
* Improvement: Enhanced conversion tracking system
* Improvement: More intuitive configuration interface
* Fix: Display issues in some themes

== Upgrade Notice ==

= 1.5.1 =
Major update with security improvements, WordPress.org compliance, and prefix changes. Please test thoroughly after updating.

== Additional Info ==

Developed by NeuroSystems
Website: https://neurosystems.net.pe
PRO Version: https://neurosystems.net.pe/producto/libro-de-reclamaciones-pro/
