/* ═══════════════════════════════════════════════════════════════════
   MODAL
═══════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.7);
  z-index: 1000; display: none; align-items: center;
  justify-content: center; padding: 1rem;
  backdrop-filter: blur(4px);
}
.modal-overlay.modal-visible { display: flex; }
.modal-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-md), 0 0 40px var(--primary-glow);
  animation: modal-in .2s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(.94) translateY(10px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.35rem; border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 1rem; font-weight: 700; }
.modal-close {
  background: transparent !important;
  border-color: #ff050500 !important;
  color: #ff0505 !important;
  font-size: 30px; font-weight: 900;
  cursor: pointer; padding: .2rem .4rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.modal-close:hover {
  background: rgba(255,5,5,.12) !important;
  border-radius: 10px;
}
.modal-body   { padding: 1.35rem; }
.modal-footer {
  display: flex; gap: .6rem; justify-content: flex-end;
  padding: .9rem 1.35rem; border-top: 1px solid var(--border);
}

/* ── Responsivo ─────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .modal-overlay { padding: 0; align-items: flex-start; }
  .modal-box {
    position: fixed;
    top: 10%; left: 5%; right: 5%; bottom: 10%;
    max-width: none; width: auto;
    max-height: none; overflow-y: auto;
  }
}
