{# reCAPTCHA v3: solo si el campo existe y recibes la clé #}
{% if registrationForm.captcha is defined and recaptcha_site is defined %}
{{ form_widget(registrationForm.captcha) }}
{{ form_errors(registrationForm.captcha) }}
{% endif %}
{% if registrationForm.submit is defined %}
{{ form_row(registrationForm.submit) }}
{% else %}
{% endif %}
{# IMPORTANTE: cierra el formulario sin render_rest:false, así incluye _token y ocultos #}
{{ form_end(registrationForm) }}
{% endblock %}
{% block javascripts %}
{{ parent() }}
{# reCAPTCHA solo si pasas la clé desde el controller #}
{% if recaptcha_site is defined %}
{% endif %}
{% endblock %}