/* ============================================
   10. MODALES
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0);
  z-index: 200;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease;
}

.modal-overlay.modal-open {
  display: flex;
  background-color: rgba(0, 0, 0, 0.5);
  animation: modal-fade-in 0.25s ease forwards;
}

@keyframes modal-fade-in {
  from { background-color: rgba(0, 0, 0, 0); }
  to   { background-color: rgba(0, 0, 0, 0.5); }
}

.modal-box {
  background: white;
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modal-box-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modal-box-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--gray-900);
}

.modal-subtitle {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 4px;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--gray-400);
  font-size: 1.25rem;
}

.modal-close:hover {
  background-color: var(--gray-100);
  color: var(--gray-600);
}

.modal-divider {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 20px 0;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}

