.encuadre-moto { position: relative; }
.encuadre-moto:has(> .zoom-moto:not([hidden])) {
  overflow: hidden;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}
.encuadre-moto:has(> .zoom-moto:not([hidden])) > img {
  display: block;
  transform-origin: 48.6% 60.2%;
  transition: transform 280ms ease-in-out;
}
.encuadre-moto:has(> .zoom-moto[aria-pressed="true"]) > img {
  transform: scale(3);
}
.zoom-moto:not([hidden]) {
  display: flex;
  position: absolute;
  inset: 0;
  align-items: flex-end;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  padding: .55rem;
  border: 0;
  background: transparent;
  color: #f4e5bd;
  font: inherit;
  cursor: zoom-in;
}
.zoom-moto[aria-pressed="true"] { cursor: zoom-out; }
.zoom-moto:focus-visible { outline: 2px solid #f4e5bd; outline-offset: -3px; }
.zoom-moto span {
  padding: .3rem .65rem;
  border: 1px solid rgba(244, 229, 189, .55);
  border-radius: 2rem;
  background: rgba(10, 13, 23, .88);
  font-size: .84rem;
  line-height: 1.25;
}
.zoom-moto span::before { content: "+"; margin-inline-end: .3em; }
.zoom-moto[aria-pressed="true"] span::before { content: "−"; }
@media (max-width: 600px) {
  .encuadre-moto:has(> .zoom-moto[aria-pressed="true"]) > img { transform: scale(3.6); }
}
@media (prefers-reduced-motion: reduce) {
  .encuadre-moto:has(> .zoom-moto:not([hidden])) > img { transition: none; }
}
