/* ANTES-DESPUÉS · la manija y las etiquetas las viste la marca */
.ad { position: relative; margin: 0; overflow: hidden; aspect-ratio: var(--proporcion, 4 / 3); touch-action: pan-y; }
.ad__antes, .ad__despues { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ad__despues { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ad::after { /* línea divisoria */
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px;
  background: var(--sobre-acento); box-shadow: 0 0 0 1px rgb(0 0 0 / .15); pointer-events: none;
}
.ad__rango { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ad:has(.ad__rango:focus-visible) { outline: 2px solid var(--acento); outline-offset: 3px; }
