/* Estilos para el botón de cerrar con anillo de progreso del modal de instrucciones */
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1051; /* above modal content */
}
.modal-close:focus {
  outline: none;
}
.modal-close svg {
  width: 44px;
  height: 44px;
  display: block;
}
.modal-close .progress-ring__circle {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 3.5;
  fill: none;
  stroke-linecap: round;
  transition: stroke-dashoffset 5s linear;
  /* initial value will be set by JS */
}
.modal-close .icon-x {
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
/* optional darker ring background */
.modal-close .progress-ring__bg {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 3.5;
  fill: none;
}

/* Animación de salida suave: Zoom Out con Fade */
@keyframes zoomOutFade {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.7);
  }
}
