/* ===== Comparador antes y después =====
   Usa el diseño del Generador de contadores (contador.css) y agrega lo suyo. */
.ba-drops { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ba-drop { aspect-ratio: 4 / 3; position: relative; overflow: hidden; }
.ba-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.ba-drop.has::after { content: attr(data-label); position: absolute; left: 6px; top: 6px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .55); padding: 2px 8px; border-radius: 99px; }
.ba-swap { width: auto; margin-top: 8px; }
.ba-colors { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ba-colors button, .ba-custom { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; margin: 0; }
.ba-colors button.active, .ba-custom.active { outline: 3px solid var(--brand); outline-offset: 1px; }
.ba-custom { position: relative; overflow: hidden; background: conic-gradient(#f43f5e, #facc15, #22c55e, #3b82f6, #a855f7, #f43f5e); }
.ba-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.cd-side input[type=url] { margin-top: 8px; }
#weight.warn { color: #b45309; }
