/* ═══════════════════════════════════════
   MODAL VINCULAR COLABORADOR
═══════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-card {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: modalSlideUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideUp {
    from { transform: translateY(20px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

.modal-header-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, #c3185d 40%, #f41877 100%);
}

.modal-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    flex-shrink: 0;
}

.modal-header-custom h5 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.modal-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
    display: block;
}

.modal-close {
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(255, 255, 255, 0.37);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.modal-body-custom {
    padding: 24px;
}

.modal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.modal-field {
    margin-bottom: 14px;
}

.modal-row .modal-field {
    margin-bottom: 0;
}

.modal-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.modal-label .required {
    color: #c62828;
    margin-left: 2px;
}

.modal-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #e9ecef;
    border-radius: 8px;
    font-size: 13px;
    color: #495057;
    background: #f8f9fa;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}

.modal-input:focus {
    border-color: #764ba2;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.12);
}

.modal-body-custom .validation-message {
    font-size: 11px;
    color: #c62828;
    margin-top: 4px;
    display: block;
}

.modal-footer-custom {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e9ecef;
}

.btn-modal-cancel {
    flex: 1;
    padding: 10px;
    border: 1.5px solid #cacbcb;
    background: #fff;
    color: #6c757d;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-modal-cancel:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #b9b0b3;
}

.btn-modal-submit {
    flex: 2;
    padding: 10px;
    background: linear-gradient(135deg,#c3185d 40%, #f41877 100%);    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(118, 75, 162, 0.35);
}

.btn-modal-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(118, 75, 162, 0.45);
}

.btn-modal-submit:disabled,
.btn-modal-cancel:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 480px) {
    .modal-row {
        grid-template-columns: 1fr;
    }
    .modal-row .modal-field {
        margin-bottom: 14px;
    }
}