  /* ===========================================
     MODAL EDITAR VACANTE - ESTILOS MEJORADOS
     =========================================== */
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
  }

  .modal-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .modal-content {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
  }

  .modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
  }

  .modal-header {
    padding: 25px 30px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background-color: #ffffff;
    border-radius: 20px 20px 0 0;
    z-index: 10;
  }

  .modal-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .modal-title i {
    color: #4CAF50;
    font-size: 1.8rem;
  }

  .modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #95a5a6;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
  }

  .modal-close:hover {
    background-color: #f8f9fa;
    color: #e74c3c;
    transform: rotate(90deg);
  }

  .modal-body {
    padding: 30px;
  }

  .modal-body .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }

  .modal-body .form-group {
    margin-bottom: 20px;
  }

  .modal-body .form-group:last-child {
    margin-bottom: 0;
  }

  .modal-body .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    font-size: 0.95rem;
  }

  .modal-body .form-label.required::after {
    content: "*";
    color: #e74c3c;
    margin-left: 4px;
  }

  .modal-body .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: #f8f9fa;
  }

  .modal-body .form-control:focus {
    border-color: #4CAF50;
    background-color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
  }

  .modal-body select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2334495e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 48px;
  }

  .modal-body textarea.form-control {
    resize: vertical;
    min-height: 120px;
  }

  .modal-body .form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
  }

  .modal-body .btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
  }

  .modal-body .btn-primary {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
  }

  .modal-body .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
  }

  .modal-body .btn-outline-secondary {
    background-color: transparent;
    border: 2px solid #95a5a6;
    color: #7f8c8d;
  }

  .modal-body .btn-outline-secondary:hover {
    background-color: #7f8c8d;
    border-color: #7f8c8d;
    color: white;
    transform: translateY(-2px);
  }

  /* ===========================================
     MODO OSCURO PARA EL MODAL
     =========================================== */
  .dark-mode .modal-content {
    background-color: #2d2d2d;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  }

  .dark-mode .modal-header {
    background-color: #2d2d2d;
    border-bottom-color: #404040;
  }

  .dark-mode .modal-title {
    color: #e0e0e0;
  }

  .dark-mode .modal-title i {
    color: #6b8bc9;
  }

  .dark-mode .modal-close {
    color: #888;
  }

  .dark-mode .modal-close:hover {
    background-color: #3d3d3d;
    color: #f44336;
  }

  .dark-mode .modal-body .form-label {
    color: #ccc;
  }

  .dark-mode .modal-body .form-control {
    background-color: #333;
    border-color: #404040;
    color: #e0e0e0;
  }

  .dark-mode .modal-body .form-control:focus {
    border-color: #6b8bc9;
    background-color: #3d3d3d;
    box-shadow: 0 0 0 4px rgba(107, 139, 201, 0.25);
  }

  .dark-mode .modal-body select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23cccccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  }

  .dark-mode .modal-body .btn-outline-secondary {
    border-color: #666;
    color: #ccc;
  }

  .dark-mode .modal-body .btn-outline-secondary:hover {
    background-color: #888;
    border-color: #888;
    color: #1a1a1a;
  }

  .dark-mode .modal-body .form-actions {
    border-top-color: #404040;
  }

  /* ===========================================
     MODAL DE CONFIRMACIÓN - DISEÑO COMPACTO
     =========================================== */
  #confirmVacanteModal .modal-content {
    max-width: 360px;
    border-radius: 16px;
  }
  #confirmVacanteModal .modal-header {
    padding: 14px 20px 12px;
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    position: relative;
    background: linear-gradient(135deg, #1e293b, #334155); /* sobrescrito por JS */
  }
  .cvm-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .cvm-icon-wrap i {
    font-size: 1rem;
    color: #fff;
  }
  #confirmVacanteModal .modal-title {
    font-size: 1.1rem;
    color: #fff;
    gap: 0;
  }
  #confirmVacanteModal .modal-title span {
    color: #fff;
  }
  .dark-mode #confirmVacanteModal .modal-title span {
    color: #fff;
  }
  #confirmVacanteModal .modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    color: rgba(255, 255, 255, 0.75);
  }
  #confirmVacanteModal .modal-close:hover {
    background-color: rgba(255, 255, 255, 0.18);
    color: #fff;
    transform: rotate(90deg);
  }
  #confirmVacanteModal .modal-body {
    padding: 14px 20px 16px;
  }
  #confirmVacanteModal #cvmMsg {
    font-size: .9rem;
    line-height: 1.55;
    margin: 0 0 14px;
    color: #4b5563;
  }
  .dark-mode #confirmVacanteModal #cvmMsg {
    color: #d1d5db;
  }
  .cvm-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
  }
  .cvm-btn-del,
  .cvm-btn-pause,
  .cvm-btn-resume {
    padding: 9px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: .9rem;
    border: none;
    color: #fff;
    transition: opacity .2s, transform .15s;
  }
  .cvm-btn-del    { background: linear-gradient(135deg, #f44336, #c62828); }
  .cvm-btn-pause  { background: linear-gradient(135deg, #f59e0b, #d97706); }
  .cvm-btn-resume { background: linear-gradient(135deg, #4caf50, #388e3c); }
  .cvm-btn-del:hover,
  .cvm-btn-pause:hover,
  .cvm-btn-resume:hover { opacity: .88; transform: translateY(-1px); }

  /* Responsive */
  @media (max-width: 768px) {
    .modal-content {
      width: 95%;
      margin: 20px;
    }

    .modal-header {
      padding: 20px;
    }

    .modal-body {
      padding: 20px;
    }

    .modal-title {
      font-size: 1.4rem;
    }

    .modal-body .form-grid {
      grid-template-columns: 1fr;
      gap: 15px;
    }

    .modal-body .form-actions {
      flex-direction: column-reverse;
    }

    .modal-body .btn {
      width: 100%;
      justify-content: center;
    }
  }
