/* Estilos del modal de DEMO ContaPyme */

/* Evitar scroll de fondo cuando el modal está abierto */
body.modal-open {
  overflow: hidden;
}

.modal-overlay {
  height: 100%;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  z-index: 2000;
}

.modal-overlay.is-open {
  display: flex;
}

.demo-modal {
  position: relative;
  margin: 5vh auto;
  max-width: 580px;
  width: calc(100% - 32px);
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.modal-header-demo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid #eef0f3;
}

.modal-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  color: #0a2540; /* azul oscuro legible */
  font-weight: 700;
}

.modal-close {
  appearance: none;
  border: none;
  background: #f3f5f8;
  color: #0a2540;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-close:hover {
  background: #e6e9ef;
}

.modal-body {
  height: 400px;
  padding: 0 !important;
}

.modal-body iframe {
  width: 100%;
  height: 100%;
}

/* Responsivo */
@media (min-width: 768px) {
  .modal-title {
    font-size: 22px;
  }
}