body {
    font-family: system-ui;
    display: grid;
    place-items: center;
    height: 100vh;
    background: #fafafa;
  }
  
  .d-flex {
    display: flex;
    gap: 4rem;
  }
  
  .caja {
    width: 100px;
    height: 100px;
    background: royalblue;
    border-radius: 80px;
    position: relative;
    text-align: center;
  }
  
  /* ❌ Provoca reflow: cambia coordenadas de layout */
  .reflow {
    animation: moverLeft 3s infinite alternate;
  }
  
  @keyframes moverLeft {
    from { left: 0; }
    to { left: 200px; }
  }
  
  /* ✅ Más eficiente: usa transform (no recalcula layout) */
  .repaint {
    background: mediumseagreen;
    animation: moverTransform 1.5s infinite alternate;
  }
  
  @keyframes moverTransform {
    from { transform: translateY(100px); }
    to { transform: translateX(400px); }
  }
  
  