diff --git a/xg2.js b/xg2.js
index 71af154ee21191bf6d63344e84b6850ddd9678a3..487200ae32e92e311aaa7b34525703ae9cd34ff9 100644
--- a/xg2.js
+++ b/xg2.js
@@ -165,7 +165,7 @@
             .attr("width", d => Math.abs(x(d.xG_diff) - x(0))) // Longitud proporcional a xG_diff
             .attr("height", y.bandwidth())
             .attr("fill", d => {
-                const intensity = Math.min(0.2, Math.abs(d.xG_diff) / 10); // Escala de intensidad ajustable
+                const intensity = Math.max(0.2, Math.min(1, Math.abs(d.xG_diff) / 10)); // Escala de intensidad ajustable
                 return d.xG_diff > 0 
                     ? d3.interpolateBlues(intensity) // Azul para valores positivos
                     : d3.interpolateReds(intensity); // Rojo para valores negativos