.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(0px);
    transition: background 0.25s ease, backdrop-filter 0.25s ease;
  }
  
  .modal-overlay.active {
    display: flex;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
  }

  .modal-content {
    background: #1d1d22;
    border: 1px solid #29292e;
    border-radius: 8px;
    padding: 35px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  /* Animación cuando el modal está activo */
  .modal-overlay.active .modal-content {
    transform: scale(1);
    opacity: 1;
  }

  /* Animación inversa cuando se está cerrando */
  .modal-overlay.closing .modal-content {
    transform: scale(0.9);
    opacity: 0;
  }

  .modal-content h2 { color: #ff9000; font-size: 24px; margin-bottom: 15px; font-family: 'Segoe UI', system-ui, sans-serif; }
  .modal-content p { color: #c4c4cc; font-size: 15px; line-height: 1.6; margin-bottom: 15px; font-family: 'Segoe UI', system-ui, sans-serif; }
  .modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #a8a8b3;
    font-size: 22px;
    cursor: pointer;
    transition: 0.2s;
  }
  .modal-close:hover { color: #fff; }
  .modal-btn-close {
    display: inline-block;
    margin-top: 10px;
    background-color: #29292e;
    color: #e1e1e6;
    border: 1px solid #383842;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
  }
  .modal-btn-close:hover {
    background-color: #383842;
    color: #fff;
  }