.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content.clean {
  background-color: #e0e0e0;
  width: 95%;
  max-width: 500px;
  min-height: 250px;
  height: auto;
  box-sizing: border-box;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.modal-title {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #1c2d4a;
  z-index: 2;
  white-space: normal;
  overflow-wrap: break-word;
  padding: 0 75px;
}

.modal-message {
  font-size: 1.3rem;
  line-height: 1.7;
  color: #1c2d4a;
  margin-bottom: 2rem;
  white-space: pre-line;
  word-break: break-word;
  padding: 0 0.5rem;
  z-index: 2;
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  z-index: 2;
}

.btn-group button,
.btn-confirmacion,
.btn-cancelar {
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease;
  min-width: 140px;
  text-align: center;
}

.btn-confirmacion {
  background-color: #1c2d4a;
  color: white;
  border: 2px solid #1c2d4a;
}

.btn-confirmacion:hover {
  background-color: #0f1c33;
  border-color: #0f1c33;
}

.btn-cancelar {
  background-color: white;
  color: #1c2d4a;
  border: 2px solid #1c2d4a;
}

.btn-cancelar:hover {
  background-color: #f0f0f0;
}

.modal-corner {
  position: absolute;
  width: 75px;
  pointer-events: none;
  z-index: 1;
}

.top-left {
  top: 0;
  left: 0;
}
.top-right {
  top: 0;
  right: 0;
}
.bottom-left {
  bottom: 0;
  left: 0;
}
.bottom-right {
  bottom: 0;
  right: 0;
}

@media (max-width: 450px) {
  .modal-content.clean {
    width: 300px;
    max-height: 90vh;
    height: auto;
    padding: 1.5rem;
  }
  .btn-group {
    flex-direction: column;
  }
  .btn-group button {
    width: 100%;
    max-width: 250px;
  }
}
