.cotizador-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  padding: 24px;
  overflow-y: auto;
}

.cotizador-modal:target {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cotizador-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 28, 38, 0.78);
}

.cotizador-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.cotizador-modal__header {
  padding: 26px 32px 12px;
  border-bottom: 1px solid #e7eef0;
}

.cotizador-modal__header h2 {
  margin: 0 42px 6px 0;
  color: #245465;
  font-size: clamp(22px, 3vw, 34px);
}

.cotizador-modal__header p {
  margin: 0 0 6px;
  color: #5b6e75;
}

.cotizador-modal__body {
  min-height: 620px;
  padding: 18px 24px 28px;
}

.cotizador-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #00b2a9;
  color: #fff !important;
  font-size: 30px;
  font-weight: 400;
  line-height: 34px;
  text-align: center;
  text-decoration: none !important;
}

.cotizador-modal__close:hover,
.cotizador-modal__close:focus {
  background: #008f89;
  color: #fff !important;
}

@media (max-width: 600px) {
  .cotizador-modal {
    padding: 8px;
  }

  .cotizador-modal__dialog {
    max-height: calc(100vh - 16px);
    border-radius: 12px;
  }

  .cotizador-modal__header {
    padding: 22px 18px 10px;
  }

  .cotizador-modal__body {
    min-height: 700px;
    padding: 12px 10px 20px;
  }
}
