/* =============================================================
   MODALS — Modales comunes (confirmación, prompt, vistos)
   ============================================================= */

.custom-confirm {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 10001;
  align-items: center;
  justify-content: center;
}
.custom-confirm__div-1 {
  background: white;
  width: 90%;
  max-width: 400px;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2);
  text-align: center;
}
.confirm-icon { font-size: 40px; margin-bottom: 15px; }
.confirm-title { margin: 0 0 10px; color: #1e293b; font-size: 18px; }
.confirm-msg { color: #64748b; font-size: 14px; line-height: 1.5; margin-bottom: 25px; }
.custom-confirm__div-2 { display: flex; gap: 12px; }
.btn-confirm-cancel {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-weight: bold;
  cursor: pointer;
}
.btn-confirm-ok {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: #2563eb;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.custom-prompt {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  z-index: 10005;
  align-items: center;
  justify-content: center;
}
.custom-prompt__div-1 {
  background: rgba(255,255,255,0.9);
  width: 280px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  animation: applePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}
.custom-prompt__div-2 { padding: 20px; text-align: center; }
.prompt-title { margin: 0 0 10px; color: #000; font-size: 17px; font-weight: 600; }
.prompt-msg { color: #3a3a3c; font-size: 13px; line-height: 1.4; margin-bottom: 15px; }
.prompt-input {
  width: 100%;
  padding: 8px;
  border: 0.5px solid #c6c6c8;
  border-radius: 8px;
  background: white;
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
}
.custom-prompt__div-3 { display: flex; border-top: 0.5px solid #c6c6c8; }
.close-custom-prompt-cancelar {
  flex: 1;
  padding: 12px;
  border: none;
  background: transparent;
  color: #007aff;
  font-size: 17px;
  cursor: pointer;
  border-right: 0.5px solid #c6c6c8;
}
.close-custom-prompt-aceptar {
  flex: 1;
  padding: 12px;
  border: none;
  background: transparent;
  color: #007aff;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

.modal-vistos {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  z-index: 10010;
  align-items: center;
  justify-content: center;
}
.modal-vistos__div-1 {
  background: rgba(255,255,255,0.9);
  width: 280px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  animation: applePop 0.3s ease;
}
.modal-vistos__div-2 { padding: 20px; }
.modal-vistos__h3-1 {
  margin: 0 0 15px;
  color: #000;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}
.lista-nombres-vistos {
  max-height: 200px;
  overflow-y: auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.close-modal-vistos {
  width: 100%;
  padding: 12px;
  border: none;
  background: transparent;
  border-top: 0.5px solid #c6c6c8;
  color: #007aff;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}
@keyframes applePop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}