/* css/modal.css */
.modal{
  position: fixed;
  z-index: 1000;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  height: 80vh;
  max-width: 1200px;

  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  resize: both;
  min-width: 400px;
  min-height: 300px;

  border: 1px solid rgba(202,161,90,.28);
  box-shadow: 0 20px 70px rgba(0,0,0,.28);
  background:
    radial-gradient(800px 320px at 50% 0%, rgba(202,161,90,.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.85), rgba(244,234,220,.65));
  backdrop-filter: blur(10px);
}

.modal-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  cursor: move;
  user-select: none;
  flex-shrink: 0;

  color: var(--cream);
  background:
    radial-gradient(600px 220px at 30% 0%, rgba(59,183,255,.14), transparent 60%),
    linear-gradient(135deg, rgba(43,27,19,.92), rgba(26,18,13,.92));
  border-bottom: 1px solid rgba(202,161,90,.25);
}

.modal-header h4{
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

.close-modal{
  color: rgba(244,234,220,.95);
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0 6px;
}

.close-modal:hover{
  color: rgba(255,180,180,.95);
  transform: scale(1.15);
}

.contenedor-texto{
  overflow: auto;
  flex: 1;
  padding: 15px;
  white-space: pre;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.5;
  background: rgba(244,234,220,.35);
}
