/* Modal base */
.modal-overlay{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  /* background: rgba(0,0,0,.55); */
  background: #01426A;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 25 !important;
}

.modal{
  width: min(650px, 100%);
  /* background: #0f172a; */
  color: #e2e8f0;
  /* border: 1px solid rgba(255,255,255,.12); */
  border-radius: 16px;
  padding: 22px 20px 18px;
  /* box-shadow: 0 18px 50px rgba(0,0,0,.45); */
  transform: translateY(6px) scale(.98);
  transition: transform .18s ease;
  position: relative;
  z-index: 25 !important;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centrado horizontal */
  align-items: center; 
  gap: 10px;
}
.modal-title{
  margin: 0 0 8px;
  font-size: 20px;
}

.modal-text{
  margin: 0 0 16px;
  line-height: 1.4;
  color: rgba(226,232,240,.9);
}

.modal-actions{
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 10px;
}

.modal-close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  /* background: rgba(255,255,255,.08); */
  background: #fff;
  color: #008BDA;
  font-size: 22px;
  cursor: pointer;
}

.modal-close:hover{ filter: brightness(.95); }

.btn{
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary{
  background: #fff;
  color: #008BDA;
}

.btn-primary:hover{ filter: brightness(.95); }

.btn-ghost{
  background: rgba(255,255,255,.08);
  color: #e2e8f0;
}

.btn-ghost:hover{ background: rgba(255,255,255,.14); }

.modal-check{
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  font-size: 13px;
  color: rgba(226,232,240,.85);
}

/* Estado abierto */
.modal-overlay.is-open{
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay.is-open .modal{
  transform: translateY(0) scale(1);
}

/* Bloquear scroll del body cuando el modal está abierto */
body.modal-open{
  overflow: hidden;
  background: #01426a;
}
body.modal-open .container{
  background-color: #01426a;
}

.img-mecanica{
  width: 650px;
}

@media (max-width: 768px) {
  /* Estilos para pantallas de 768px o menos */
.img-mecanica{
  width: 300px;
}
}