.before-after {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/9;
  cursor: ew-resize;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Imágenes */
.before-after img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  transition: none;
}

/* Mitad inicial visible */
.before-after img.after {
  clip-path: inset(0 50% 0 0);
  animation: revealInit 0.8s;
}

@keyframes revealInit {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 50% 0 0); }
}

/* Línea divisoria */
.before-after .divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: rgba(255,255,255,0.9);
  border-left: 1px solid rgba(0,0,0,0.2);
  box-shadow: 0 0 5px rgba(0,0,0,0.15);
  transition: none;
  z-index: 5;
}

/* Círculo central */
.before-after .divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.3);
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* Zona descarga */
.download-zone {
  text-align: center;
  margin-top: 20px;
}

#download-btn {
  display: inline-block;
  background: #222;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease;
}

#download-btn:hover {
  background: #444;
}